/* =================== VARIABLES =================== */
:root {
    --primary: #43131f;
    --gold: #c29e39;
    --dark: #14080d;
    --light: #f9f9f9;
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --transition: .3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* =================== NAVBAR =================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    z-index: 1000;
}

.navbar .brand {
    font-weight: 700;
    font-size: 1.3rem;
}

/* Logo principal */
.brand img.logo {
    height: 80px;
    width: auto;
    display: block;
}

/* Logo dans le menu mobile */
.mobile-logo {
    display: none;
    margin-bottom: 2rem;
}

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

/* Affichage en mobile */
@media (max-width: 991px) {
    .mobile-logo {
        display: block;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--light);
}

/* Bouton déconnexion */
.logout-link {
    color: var(--gold);
    font-size: 1.2rem;
    transition: color .3s, transform .2s;
}

.logout-link:hover {
    color: var(--light);
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform .5s ease;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 2rem;
        margin: 1rem 0;
    }
}

/* =================== HERO =================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("https://picsum.photos/1920/1080?blur=3") center/cover no-repeat fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--light);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--primary);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.btn-primary:hover {
    background: var(--light);
    color: var(--primary);
}

/* =================== SECTIONS =================== */
.section {
    padding: 5rem 2rem;
}

.section.dark {
    background: var(--primary);
    color: var(--gold);
}

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

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--gold);
}

/* =================== GRIDS =================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* =================== SECTEURS =================== */
.card {
    background: var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-dark);
    transition: transform var(--transition);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    padding: 1rem;
    color: var(--gold);
}

.card:hover {
    transform: translateY(-5px);
}

/* =================== GALERIE / CAROUSEL =================== */
.carousel {
    position: relative;
    max-width: 800px;
    /* largeur max de la galerie */
    margin: 0 auto;
    /* centrage dans la page */
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px var(--shadow-dark);
    background: #000;
    /* fond noir discret */
}

.carousel-track {
    display: flex;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

/* Images fixes mais non rognées */
.carousel-track img {
    width: 800px;
    height: 600px;
    object-fit: contain;
    /* l’image garde ses proportions */
    flex-shrink: 0;
    /* empêche la compression */
    background: #000;
    /* fond noir si pas rempli */
    margin: 0 auto;
    border-radius: var(--radius);
}

/* Boutons navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(0, 0, 0, 0.5);
    color: var(--gold);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--primary);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Dots navigation */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition);
}

.carousel-dots button.active {
    background: var(--gold);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 991px) {
    .carousel-track img {
        width: 100%;
        /* prend toute la largeur */
        height: auto;
        /* conserve proportions */
    }

    .carousel {
        max-width: 100%;
    }
}

/* =================== AVANTAGES =================== */
.adv-item {
    text-align: center;
}

.adv-item i {
    color: var(--gold);
    margin-bottom: 1rem;
}

.adv-item p {
    font-weight: 600;
}

/* =================== TARIFS =================== */
.pricing {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.plan {
    flex: 1;
    min-width: 240px;
    background: var(--primary);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: var(--transition);
}

.plan h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.plan p {
    font-size: 1.2rem;
}

.plan.highlight {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(194, 158, 57, 0.5);
}

/* =================== TEAM =================== */
.member {
    text-align: center;
}

.member img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
}

.member h3 {
    color: var(--gold);
}

.member p {
    font-size: 0.9rem;
}

/* =================== VIDEO =================== */
.video-luxe {
    border: 4px solid var(--gold);
    padding: 6px;
    border-radius: var(--radius);
    box-shadow: 0 0 25px rgba(194, 158, 57, 0.5);
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =================== CONTACT =================== */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1rem;
}

.contact-form textarea {
    grid-column: span 2;
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    grid-column: span 2;
    justify-self: center;
}

.recaptcha {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    color: var(--gold);
}

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

    .contact-form textarea,
    .contact-form button,
    .recaptcha {
        grid-column: span 1;
    }
}

/* =================== FOOTER =================== */
.footer {
    background: var(--primary);
    color: var(--gold);
    padding: 3rem 1rem 2rem;
    border-top: 1px solid rgba(194, 158, 57, 0.3);
    font-size: 0.95rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-col p {
    line-height: 1.6;
}

.footer-col.center {
    text-align: center;
}

.footer-col.right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--light);
}

/* Réseaux sociaux */
.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: .5rem;
}

.btn-social {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.btn-social:hover {
    background: var(--light);
    color: var(--primary);
}

.icon-edit {
    color: var(--gold);
    margin-bottom: 1rem;
    display: inline-block;
    transition: color var(--transition);
}

.icon-edit:hover {
    color: var(--light);
}

/* Bas de footer */
.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    border-top: 1px solid rgba(194, 158, 57, 0.3);
    padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-col.right {
        align-items: center;
    }
}

/* =================== SCROLL PROGRESS =================== */
#scroll-progress {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    /* On passe le bouton à gauche */
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 1500;
}

#scroll-progress svg {
    transform: rotate(-90deg);
}

circle.bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 5;
}

circle.progress {
    fill: none;
    stroke: var(--gold);
    stroke-width: 5;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    transition: stroke-dashoffset .2s linear;
}

#scroll-progress i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--gold);
}

/* =================== COOKIE BANNER =================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--gold);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--gold);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform .4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .actions {
    display: flex;
    gap: 1rem;
}

.cookie-banner button {
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-banner .btn-primary {
    background: var(--gold);
    color: var(--primary);
}

.cookie-banner button:hover {
    background: var(--gold);
    color: var(--primary);
}

/* =================== REVEAL EFFECT =================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =================== MODAL LOGIN =================== */
.modal {
    display: none;
    /* masquée par défaut */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeOut .3s forwards;
}

.modal.show {
    display: flex;
    animation: fadeIn .3s forwards;
}

.modal-content {
    background: var(--primary);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(194, 158, 57, 0.5);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    animation: slideUp .4s ease forwards;
}

.modal.show .modal-content {
    animation: slideUp .4s ease forwards;
}

.modal-content h2 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gold);
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--light);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form input {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1rem;
}

.login-form button {
    margin-top: 1rem;
    cursor: pointer;
}

.footer-link {
    cursor: pointer;
    color: var(--gold);
    font-weight: 600;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--light);
}

/* Message erreur */
.error-message {
    display: none;
    color: #ff6b6b;
    font-size: 0.9rem;
}

.login-form input.error {
    border: 1px solid #ff6b6b;
}

/* =================== ANIMATIONS =================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.edit-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.edit-form .form-label {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: .3rem;
    display: inline-block;
}

.edit-form .custom-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    color: var(--light);
    width: 100%;
    transition: border var(--transition), box-shadow var(--transition);
}

.edit-form .custom-input:focus {
    outline: none;
    border-color: var(--light);
    box-shadow: 0 0 8px rgba(194, 158, 57, 0.6);
}

/* Modal phone - même style que ta modal admin */
#modal_phone {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

#modal_phone.show {
    display: flex;
    animation: fadeIn .3s forwards;
}

#modal_phone .modal-content {
    background: var(--primary);
    color: var(--gold);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 0 30px rgba(194, 158, 57, 0.5);
    max-width: 500px;
    width: 90%;
    position: relative;
}

#modal_phone .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#modal_phone .modal-title {
    font-size: 1.3rem;
    color: var(--gold);
}

#modal_phone .modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gold);
    transition: color .3s;
}

#modal_phone .modal-close:hover {
    color: var(--light);
}

#modal_phone .modal-footer {
    text-align: center;
    margin-top: 1rem;
}

/* Icône d'édition harmonisée */
.edit-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2rem;
    color: var(--gold);
    cursor: pointer;
    transition: color .3s, transform .2s;
    z-index: 50;
}

.edit-icon:hover {
    color: var(--light);
    transform: scale(1.2);
}

/* Pour chaque section éditable */
.section {
    position: relative;
    /* important pour contenir .edit-icon */
}

.hero {
    position: relative;
    /* pareil pour le header */
}

/* =================== SCOPE =================== */
.scope-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--primary);
    text-align: center;
    color: var(--gold);
    overflow: hidden;
}

.scope-section .banner__item {
    padding: 2vh 2rem;
    opacity: 0;
    transform: translateY(-30%);
}

.scope-section img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.scope-section .title {
    font-size: 3rem;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 3px;
}

.scope-section .subtitle {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scope-section .text {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 1rem;
}

/* Animations */
.slideInBottom {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all .5s ease;
}

@media screen and (min-width:750px) {
    .scope-section .title {
        font-size: 5rem;
    }

    .scope-section .subtitle {
        font-size: 2.2rem;
    }
}

/* Transition de sortie Scope */
.scope-section.fade-out {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
    pointer-events: none;
}

/* Overlay Scope */
.scope-overlay {
    position: fixed;
    inset: 0;
    background: #43131f;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 5000;
    /* toujours au-dessus */
    transition: opacity 1s ease, visibility 1s ease;
}

.scope-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Animations internes (déjà présentes chez toi) */
.banner__item {
    opacity: 0;
    transform: translateY(-30%);
}

.banner__item.slideInBottom {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Vidéo plein écran */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recouvre tout sans déformation */
    z-index: 0;
}

/* Overlay sombre au-dessus de la vidéo */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Texte et boutons */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--light);
}

/* Pour éviter que le contenu passe sous la navbar */
main {
    padding-top: 120px;
    /* hauteur de ta navbar */
    padding-bottom: 80px;
    /* espace avant le footer */
    min-height: calc(100vh - 200px);
    /* garde le contenu lisible */
}

#secteur .secteur-img {
    max-width: 300px;
    margin: 20px auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.gold-links a {
    color: #d4af37;
    /* Doré */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.gold-links a:hover {
    color: #ffd700;
    /* Doré clair au survol */
}