/*====================
1. VARIABLES & IMPORTS
====================*/
:root {
    --lotus-pond: #576049;
    --summer-twilight: #7A4547;
    --bark: #56382E;
    --alabaster: #F7F1DF;
    --soft-lichen: #A9B8A0;
    --lavender-mist: #D1C0BC;
}

@import url('https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css');

/*====================
2. RESET & BASE STYLES
====================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--bark);
    background-color: var(--alabaster);
    font-size: 16px;
}

/*====================
3. TYPOGRAPHY
====================*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--lotus-pond);
}

h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; line-height: 1.3; margin-bottom: 1.2rem; }
h3 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 0.8rem; }

/* Styles des titres de section */
section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--lotus-pond);
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 60px;
    height: 2px;
    background: var(--summer-twilight);
    transition: width 0.3s ease;
}

section h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 2px;
    background: var(--soft-lichen);
    transition: width 0.3s ease;
}

.script-text {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: var(--summer-twilight);
    font-size: 1.8rem;
    line-height: 1.4;
    margin: 0.5rem 0 1.5rem;
}

/*====================
4. LAYOUT & CONTAINERS
====================*/
.section {
    padding: 3rem 2rem 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(86, 56, 46, 0.03);
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/*====================
5. COMPONENTS
====================*/
/* 5.1 Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--summer-twilight);
    color: var(--alabaster);
}

.btn-primary:hover {
    background-color: var(--lotus-pond);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--lotus-pond);
    color: var(--lotus-pond);
}

.btn-secondary:hover {
    background-color: var(--lotus-pond);
    color: var(--alabaster);
}

/*====================
5. COMPONENTS
====================*/
/* 5.1 Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--summer-twilight);
    color: var(--alabaster);
}

.btn-primary:hover {
    background-color: var(--lotus-pond);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--lotus-pond);
    color: var(--lotus-pond);
}

.btn-secondary:hover {
    background-color: var(--lotus-pond);
    color: var(--alabaster);
}

/* 5.2 Navigation */
.navbar {
    background-color: var(--alabaster);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    width: 45px;
    height: 45px;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links,
.nav-links ul,
.dropdown-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--summer-twilight);
    transition: width 0.3s ease;
}

.nav-links a:not(.dropdown-toggle):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a {
    color: var(--bark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.dropdown-toggle {
    position: relative;
    padding-right: 1.8em !important;
    color: var(--bark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.8em;
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    color: currentColor;
    opacity: 0.8;
    z-index: 2;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--summer-twilight);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: var(--lotus-pond);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--lotus-pond);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -1rem;
    background: var(--alabaster);
    min-width: 280px;
    padding: 0.8rem 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(86, 56, 46, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(122, 69, 71, 0.1);
}

.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    color: var(--bark);
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu a:hover {
    background: rgba(122, 69, 71, 0.08);
    color: var(--summer-twilight);
    padding-left: 2rem;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--summer-twilight);
    transform: translateY(-50%);
    transition: width 0.3s ease;
    opacity: 0;
}

.dropdown-menu a:hover::before {
    width: 0.5rem;
    opacity: 1;
}

/* Navigation principale */
.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

/* Styles du dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    padding-right: 1.8em !important;
    color: var(--bark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-toggle{
    margin-right: -18px;
}

.dropdown-toggle:hover,
.dropdown:hover .dropdown-toggle {
    color: var(--summer-twilight);
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.8em;
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    color: currentColor;
    opacity: 0.8;
}

.dropdown:hover .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

/* Style spécifique pour le lien actif dans le dropdown */
.dropdown-toggle.active {
    color: var(--summer-twilight);
}

.dropdown-toggle.active::after {
    color: var(--summer-twilight);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -1rem;
    background: var(--alabaster);
    min-width: 280px;
    padding: 0.8rem 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(86, 56, 46, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(122, 69, 71, 0.1);
}

/* Assurer que le menu reste visible pendant le hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.dropdown-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    color: var(--bark);
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu a:hover {
    background: rgba(122, 69, 71, 0.08);
    color: var(--summer-twilight);
    padding-left: 2rem;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--summer-twilight);
    transform: translateY(-50%);
    transition: width 0.3s ease;
    opacity: 0;
}

.dropdown-menu a:hover::before {
    width: 0.5rem;
    opacity: 1;
}

/* Responsive Dropdown */
@media (max-width: 768px) {
    .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem !important;
    }

    .dropdown-toggle::after {
        position: relative;
        right: 0;
        transform: none;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1.5rem;
        margin-left: 1rem;
        border-left: 2px solid rgba(122, 69, 71, 0.2);
        min-width: auto;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.6rem 1rem;
        margin: 0;
        border-radius: 4px;
    }

    .dropdown-menu a:hover {
        background: rgba(122, 69, 71, 0.05);
        padding-left: 1.5rem;
    }
}

/*====================
6. FOOTER
====================*/
footer {
    background-color: var(--lotus-pond);
    padding: 2.5rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(247, 241, 223, 0.1), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 35px;
    height: auto;
    opacity: 0.9;
}

.footer-brand p {
    color: var(--alabaster);
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--alabaster);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-contact {
    position: relative;
}

.footer-contact::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--alabaster);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.footer-contact:hover::after {
    transform: scaleX(1);
}

.footer-bottom {
    border-top: 1px solid rgba(247, 241, 223, 0.1);
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.copyright {
    color: var(--alabaster);
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

/*====================
7. MEDIA QUERIES
====================*/

@media (max-width: 768px) { 
    body { font-size: 15px; } 
    h1 { font-size: 2rem; } 
    h2 { font-size: 1.75rem; } 
    h3 { font-size: 1.3rem; } 
    .script-text { font-size: 1.5rem; } 
    .navbar { padding: 0.8rem 1rem; }
    .nav-links { display: none; } 
    .section { padding: 3rem 1.5rem 1rem; } 
    footer {
        padding: 2rem 1rem 1.5rem;
        margin-top: -1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-brand {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar {
        padding: 0.8rem 1rem;
        background-color: var(--alabaster);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .nav-container {
        padding: 0;
    }

    .logo {
        height: 40px;
        z-index: 1001;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
        padding: 0.5rem;
        margin-right: -0.5rem;
        transition: all 0.3s ease;
        border-radius: 4px;
    }
    
    .nav-toggle:hover {
        background-color: rgba(169, 184, 160, 0.1);
    }

    .nav-links {
        display: none;
        position: fixed;
        background-color: var(--alabaster);
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 2rem 5rem;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        backdrop-filter: blur(5px);
        z-index: 1000;
        transform: translateY(-10px);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links > li {
        width: 100%;
        margin: 0.5rem 0;
        border-bottom: 1px solid rgba(87, 96, 73, 0.1);
    }
    
    .nav-links > li:last-child {
        border-bottom: none;
    }
    
    .nav-links > li > a {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        color: var(--lotus-pond);
        font-weight: 500;
    }
    
    .nav-links > li > a.active {
        color: var(--summer-twilight);
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: translateY(0) rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        transform: translateY(0) rotate(-45deg);
    }
    
    /* Dropdown styling enhancement */
    .dropdown.active .dropdown-toggle {
        color: var(--summer-twilight);
        background-color: rgba(209, 192, 188, 0.15);
        border-radius: 8px;
    }
    
    .dropdown-menu {
        margin-left: 0;
        border-left: 3px solid var(--soft-lichen);
        background-color: rgba(247, 241, 223, 0.5);
        border-radius: 0 8px 8px 0;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(122, 69, 71, 0.08);
        padding-left: 2rem;
    }
}

/* Enhancement for very small screens */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        height: 35px;
    }
    
    .nav-links {
        padding: 1.5rem 1.5rem 5rem;
    }
    
    .nav-links > li > a {
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--lotus-pond), var(--summer-twilight));
    color: white;
    padding: 7rem 2rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-text i {
    margin-right: 0.5rem;
    color: var(--alabaster);
}

/* FAQ Specific Styles */
.faq-section {
    padding: 4rem 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-section:nth-child(even) {
    background-color: var(--alabaster);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.section-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--summer-twilight);
    width: 40px;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-item h3 {
    color: var(--summer-twilight);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--bark);
    line-height: 1.6;
}

.faq-item ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.faq-item li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-item li::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--summer-twilight);
}

.faq-item a {
    color: var(--summer-twilight);
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-item a:hover {
    color: var(--lotus-pond);
    text-decoration: underline;
}

.faq-item a i {
    margin-right: 0.3rem;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: white;
    border-radius: 25px;
    text-decoration: none;
    color: var(--bark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-link:hover {
    background: var(--soft-lichen);
    color: white;
    transform: translateY(-2px);
}

.category-link i {
    color: var(--lotus-pond);
}

.category-link:hover i {
    color: white;
}

/* Responsive Design */
@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-nav {
        flex-direction: column;
    }
    
    .category-link {
        width: 100%;
        justify-content: center;
    }
    
    .hero-section {
        padding: 3rem 1rem;
        margin-top: 2.5rem;
    }
}