@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* Styles de la navbar extraits de style.css (index.html) */
:root {
    --primary-color: #de6b70;
    --primary-color-dark: #c55a5f;
    --primary-color-rgb: 222, 107, 112;
    --text-color: #323232;
    --background-color: #ffffff;
    --input-background: #ffffff;
    --border-color: #dddddd;
    --disabled-color: #cccccc;
    --dark-background: #1a1a1a;
    --dark-input-background: #2d2d2d;
    --dark-border-color: #404040;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #DDD0C8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: backdrop-filter 0.3s ease;
}

.navbar-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(221, 208, 200, 0.8);
}

.logo-link {
    text-decoration: none;
}

.img-logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
}

.nav-link {
    text-decoration: none;
    color: #323232;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

.nav-link:hover {
    color: #4c681a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #de6b70, #4c681a);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #DDD0C8;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
}

@media (min-width: 1210px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #323232;
    font-size: 19.2px;
    transition: color 0.3s ease;
    position: relative;
}

.dropdown-link:hover {
    color: #4c681a;
}

.dropdown-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #de6b70, #4c681a);
    transition: width 0.3s ease;
}

.dropdown-link:hover::after {
    width: 100%;
}

.fa-arrow-down {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

@media (min-width: 1210px) {
    .dropdown:hover .fa-arrow-down {
        transform: rotate(180deg);
    }
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4c681a;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.burger-menu:hover {
    color: #4c681a;
}

.dark-theme .burger-menu {
    color: #113356;
}

.dark-theme .burger-menu:hover {
    color: #113356;
}

@media (max-width: 1209px) {
    .burger-menu {
        display: block;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #DDD0C8;
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
        height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-link {
        width: 100%;
        padding: 1rem 0;
        font-size: 1.4rem;
    }
    .dropdown-content {
        position: static;
        display: none;
        background-color: transparent;
        box-shadow: none;
        margin-left: 1rem;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .dropdown.active .fa-arrow-down {
        transform: rotate(180deg);
    }
    .dropdown-link {
        padding: 0.5rem 0;
    }
}

.theme-switch {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-checkbox {
    --toggle-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 4.25em;
    height: 2.125em;
    background: -webkit-gradient(linear, left top, right top, color-stop(50%, #efefef), color-stop(50%, #2a2a2a)) no-repeat;
    background: -o-linear-gradient(left, #efefef 50%, #2a2a2a 50%) no-repeat;
    background: linear-gradient(to right, #efefef 50%, #2a2a2a 50%) no-repeat;
    background-size: 205%;
    background-position: 0;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
    border-radius: 99em;
    position: relative;
    cursor: pointer;
    font-size: var(--toggle-size);
}

.theme-checkbox::before {
    content: "";
    width: 1.5em;
    height: 1.5em;
    position: absolute;
    top: 0.313em;
    left: 0.313em;
    background: -webkit-gradient(linear, left top, right top, color-stop(50%, #efefef), color-stop(50%, #2a2a2a)) no-repeat;
    background: -o-linear-gradient(left, #efefef 50%, #2a2a2a 50%) no-repeat;
    background: linear-gradient(to right, #efefef 50%, #2a2a2a 50%) no-repeat;
    background-size: 205%;
    background-position: 100%;
    border-radius: 50%;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
}

.theme-checkbox:checked::before {
    left: calc(100% - 1.5em - 0.313em);
    background-position: 0;
}

.theme-checkbox:checked {
    background-position: 100%;
}

@media (max-width: 1209px) {
    .theme-switch {
        margin: 1rem 0;
    }
}

/* Styles pour le thème sombre */
.dark-theme .navbar {
    background-color: #BAD2E0;
}

.dark-theme .navbar-blur {
    background-color: rgba(186, 210, 224, 0.8);
}

.dark-theme .nav-link,
.dark-theme .dropdown-link {
    color: #113356;
}

.dark-theme .nav-link:hover,
.dark-theme .dropdown-link:hover {
    color: #0A1F2E;
}

.dark-theme .dropdown-content {
    background-color: #BAD2E0;
    border: none;
}

.dark-theme .nav-link::after,
.dark-theme .dropdown-link::after {
    background: linear-gradient(90deg, #42a5f5, #1976d2);
}

.dark-theme .nav-link:hover::after,
.dark-theme .dropdown-link:hover::after {
    background: linear-gradient(90deg, #42a5f5, #1976d2);
} 

/* --- Scrollbar mode sombre unique et prioritaire --- */
body.dark-theme::-webkit-scrollbar-thumb, .dark-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%) !important;
    border-radius: 10px !important;
    border: 3px solid #f5f5f5 !important;
}
body.dark-theme::-webkit-scrollbar-thumb:hover, .dark-theme ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1976d2 0%, #1565c0 100%) !important;
} 

@media (max-width: 1209px) {
    .dark-theme .nav-links.active {
        background-color: #BAD2E0 !important;
    }
} 
