/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7f9fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-logo {
    max-width: 90%;
    width: 400px;
    height: auto;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    color: #4db8e8;
    margin-bottom: 0.5rem;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

/* Main Navigation Menu */
.main-menu {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(77, 184, 232, 0.2);
}

.main-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    background: rgba(77, 184, 232, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.main-menu a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 184, 232, 0.3);
}

.main-menu a:active {
    transform: translateY(0);
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Tiles Grid */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Individual Tile */
.tile {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tile-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}



.tile h2 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tile p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    color: #666;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(77, 184, 232, 0.1);
}

/* Stain Detail Pages */
.stain-detail {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.stain-detail h1 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.stain-detail h2 {
    color: #2563eb;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.stain-detail ul, .stain-detail ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.stain-detail li {
    margin-bottom: 0.5rem;
}

.back-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #2563eb;
}

.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.tip {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

/* Recommended Products Section */
.recommended-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #4db8e8;
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.product-card h3 {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    min-height: 2.5em;
}

.product-card p {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    flex-grow: 1;
    line-height: 1.4;
}

.product-link {
    display: inline-block;
    background: #4db8e8;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s ease;
    margin-top: auto;
    width: 100%;
}

.product-link:hover {
    background: #3a9fc9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-logo {
        max-width: 280px;
        margin-bottom: 0.5rem;
    }
    
    header {
        padding: 1.5rem 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }

    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .recommended-products {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 1.5rem 1rem 1rem;
    }

    .footer-menu ul {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-menu li {
        margin: 0;
    }

    .footer-menu a {
        font-size: 1rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .main-menu {
        margin-top: 1rem;
        padding-top: 0.8rem;
    }

    .main-menu ul {
        flex-direction: column;
        gap: 0.8rem;
    }

    .main-menu a {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}

.footer-menu {
    margin-bottom: 1.5rem;
}

.footer-menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.footer-menu li {
    margin: 0 15px;
}

.footer-menu a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    display: inline-block;
    position: relative;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #2563eb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-menu a:hover {
    color: #2563eb;
}

.footer-menu a:hover::after {
    width: 100%;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

/* Symboles de lessive */
.categorie-symboles {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.categorie-symboles h1 {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    grid-column: 1 / -1;

}


.categorie-symboles h2 {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    grid-column: 1 / -1;
}

.symboles {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}



.symboles img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.symboles h2 {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.symboles p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.center-subtitles {
    /* Centers subtitles both horizontally and vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .categorie-symboles {
        grid-template-columns: 1fr;
    }
}

.lined-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lined-title::before,
.lined-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #000;
}
