/* =====================================================
   LES VOIX DE MEL
   Style global — FIX iOS / Safari FINAL
   ===================================================== */

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

/* ================= HTML ================= */
html {
    min-height: 100%;
    overflow-x: hidden;
}

/* ================= BODY — FOND RÉEL ================= */
body {
    min-height: 100vh;

    /* ✅ Fond appliqué UNIQUEMENT sur body (clé iOS) */
    background-color: #f6f4ee; /* blanc crème mockup */

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f3d3a;

    position: relative;
}

/* ================= MAIN ================= */
main {
    display: block;
    background: transparent;
}

/* ================= MAIN (NEUTRE) ================= */
main {
    background: transparent !important;
    padding: 3rem 0 4rem;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Padding SAFE pour le texte uniquement */
main > section:not(.home-access):not(.home-cards) {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

/* ================= TITRES & TEXTE ================= */
main h2 {
    font-size: 1.9rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

main p {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
    color: #345e5e;
}

/* ================= BLOCS CLASSIQUES ================= */
.bloc {
    padding: 70px 20px;
}

.bloc h2 {
    font-size: 2rem;
    margin-bottom: 35px;
    color: #0f3d3a;
}

/* ================= SCROLL HORIZONTAL ================= */
.cards-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
}

.cards-scroll::-webkit-scrollbar {
    display: none;
}

/* ================= LIEN CARTE (BUG FIX) ================= */
.card-link {
    display: block;          /* 🔥 FIX CRITIQUE */
    flex-shrink: 0;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* ================= CARTE ================= */
.card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 61, 58, 0.10);
    scroll-snap-align: center;
    animation: fadeUp 0.6s ease both;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover desktop */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(15, 61, 58, 0.18);
}

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

.card-body {
    padding: 20px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #0f3d3a;
}

.card p {
    font-size: 0.95rem;
    color: #456f6f;
    line-height: 1.55;
}

/* ================= PRIX ================= */
.price {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f3d3a;
}

/* ================= POINTS ================= */
.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 61, 58, 0.25);
    transition: all 0.3s ease;
}

.dot.active {
    width: 18px;
    border-radius: 999px;
    background: #0f3d3a;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    font-size: 0.9rem;
    color: #456f6f;
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {
    .card-link {
        width: auto;
    }

    .card {
        min-width: 260px;
        max-width: 260px;
    }

    .cards-scroll {
        scroll-snap-type: none;
    }
}

/* ================= ANIMATION ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.formation-hero {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.formation-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.formation-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 40px;
}

.formation-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.formation-price {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 600;
}


.formation-video iframe {
    width: 100%;
    height: 300px;
    border-radius: 20px;
}

a.formation-btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6f6a, #1e4f4a);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.formation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ===============================
   MENU COMPTE — VERSION ALIGNÉE & STABLE
================================ */

.account-menu {
    position: relative;
    display: flex;
    align-items: center;
}

/* ===============================
   BOUTON COMPTE
================================ */

.account-menu .account-btn {
    display: inline-flex;
    align-items: center;            /* 🔥 alignement clé */
    gap: 8px;

    background: rgba(47, 111, 106, 0.15);
    color: #0f3d3a;
    border: none;
    padding: 6px 14px;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;                 /* 🔥 supprime le décalage vertical */

    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease;
}

.account-menu .account-btn:hover {
    background: rgba(47, 111, 106, 0.25);
}

/* ===============================
   NOM UTILISATEUR
================================ */

.account-menu .user-name {
    font-weight: 500;
    color: #1e4f4a;
    white-space: nowrap;
}

/* ===============================
   POINT VERT — ALIGNEMENT PARFAIT
================================ */

/* ===============================
   POINT VERT — ALIGNEMENT DÉFINITIF
================================ */

.account-menu .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;

    display: inline-block;
    flex-shrink: 0;

    /* 🔥 ALIGNEMENT RÉEL */
    position: relative;
    top: 2px; /* ← C’EST CETTE VALEUR QUI RÈGLE TOUT */

    margin-left: 4px;

    box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
    animation: statusPulse 3.6s ease-in-out infinite;
}

/* Pulsation douce */
@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* ===============================
   CHEVRON
================================ */

.account-menu .chevron {
    font-size: 0.7rem;
    opacity: 0.65;
    margin-left: 4px;
    transition: transform 0.25s ease;
}

/* Rotation quand menu ouvert */
.account-menu .account-dropdown.open ~ .account-btn .chevron {
    transform: rotate(180deg);
}

/* ===============================
   MENU DÉROULANT COMPTE
================================ */

.account-menu .account-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    min-width: 220px;
    padding: 0;

    background: none;
    box-shadow: none;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;

    z-index: 1000;
}

/* Ouvert */
.account-menu .account-dropdown.open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Bulles */
.account-menu .account-dropdown .dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 18px;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);

    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    color: #0f3d3a;

    box-shadow: 0 12px 30px rgba(15, 61, 58, 0.15);

    opacity: 0;
    transform: translateY(-6px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        background 0.2s ease;
}

/* Hover */
.account-menu .account-dropdown .dropdown-item:hover {
    background: rgba(47, 111, 106, 0.18);
}

/* Animation séquentielle */
.account-menu .account-dropdown.open .dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

.account-menu .account-dropdown.open .dropdown-item:nth-child(1) {
    transition-delay: 0.05s;
}

.account-menu .account-dropdown.open .dropdown-item:nth-child(2) {
    transition-delay: 0.12s;
}

/* ===============================
   POINT VERT — ALIGNEMENT FINAL
================================ */

.badge-connected {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Point vert */
.badge-connected .status-dot {
    position: relative;
    top: 0;                /* corrige le décalage vertical */
    right: 0;
    transform: none;       /* supprime les anciens translateY */
    margin-left: 6px;      /* espace après le nom */
    
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;

    box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
    animation: statusPulse 3.6s ease-in-out infinite;
}




/* Pulsation lente, respirante */
@keyframes statusPulse {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 4px rgba(46, 204, 113, 0.4);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50%) scale(1.35);
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.9);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 4px rgba(46, 204, 113, 0.4);
        opacity: 0.8;
    }
}

/*page mes formations*/

.mes-formations {
    text-align: center;
    padding: 3rem 1rem;
}

.mes-formations h2 {
    font-size: 2rem;
    color: #0f3d3a;
}

.mes-formations .subtitle {
    margin-bottom: 2rem;
    color: #4b6f6b;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.formation-card {
    display: block;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.75);
    text-decoration: none;
    color: #0f3d3a;
    box-shadow: 0 12px 30px rgba(15,61,58,0.15);
    transition: transform 0.25s ease;
}

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

.formation-card img {
    max-width: 100%;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.no-formation {
    margin-top: 2rem;
}

.btn-discover {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    background: rgba(47,111,106,0.15);
    color: #0f3d3a;
    text-decoration: none;
}

/* ===============================
   PROGRESSION FORMATION
================================ */

.progression {
    margin-top: 14px;
    text-align: left;
}

.progression small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #4b6f6b;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(15, 61, 58, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        rgba(47,111,106,0.6),
        rgba(47,111,106,0.9)
    );
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* ===============================
   FORMATION – GLOBAL
================================ */
.formation-hero {
    padding: 40px 20px;
    max-width: 980px;
    margin: 0 auto;
}

.formation-hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1e4f4a;
}

.formation-content {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

/* ===============================
   PROGRESSION
================================ */
.progress-wrapper {
    margin-top: 20px;
}

.progress-label {
    font-size: 15px;
    margin-bottom: 6px;
    color: #1e4f4a;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(0,0,0,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2f6f6a, #4ecdc4);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* ===============================
   BOUTONS
================================ */
.formation-btn {
    display: inline-block;
    padding: 12px 26px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6f6a, #1e4f4a);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===============================
   VIDÉO
================================ */
.formation-video {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.formation-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ===============================
   MODULES
================================ */
.formation-hero h2 {
    margin-top: 30px;
    font-size: 24px;
    color: #1e4f4a;
}

.formation-module {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.formation-module strong {
    font-size: 17px;
    display: block;
}

/* ===============================
   BADGES
================================ */
.badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.badge.done {
    background: rgba(46,204,113,0.18);
    color: #27ae60;
}

.badge.locked {
    background: rgba(0,0,0,0.1);
    color: #555;
}

.badge.current {
    background: rgba(52,152,219,0.2);
    color: #2980b9;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .formation-hero h1 {
        font-size: 26px;
    }

    .formation-hero h2 {
        font-size: 22px;
    }

    .formation-btn {
        width: 100%;
        text-align: center;
    }
}

/* =====================================================
   AJOUT SAFE – IMAGE / VIDÉO FORMATION (NON DESTRUCTIF)
   ===================================================== */

/* Conteneur média formation */
.formation-media {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Image responsive (corrige débordement mobile) */
.formation-media img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

/* Vidéo teaser responsive */
.formation-media iframe,
.formation-media video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.18);
    display: block;
}

/* Sécurité mobile */
@media (max-width: 640px) {
    .formation-media img {
        max-height: 260px;
    }
}

/* ===============================
   VISUEL FORMATION (IMAGE / TEASER)
================================ */

.formation-image,
.formation-video {
    max-width: 980px;
    margin: 30px auto;
    padding: 0 20px;
}

.formation-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 24px;
}

/* Mobile */
@media (max-width: 640px) {
    .formation-image img {
        max-height: 260px;
        border-radius: 18px;
    }
}

.page-blocks {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.block {
    margin-bottom: 40px;
}

.block-image img {
    max-width: 100%;
    border-radius: 12px;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.block-comment {
    background: #f6f6f6;
    padding: 20px;
    border-left: 4px solid #c79b3b;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .3s ease;
}

.gallery-item img:hover {
    transform: scale(1.04);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Voyages passés */
.card-link.past {
    opacity: 0.85;
}

/* Indication cliquable */
.card-hint {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #3a7d6a;
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.card-link:hover .card-hint {
    transform: translateX(6px);
    opacity: 1;
}

.voyage-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.voyage-slider img {
    flex: 0 0 85%;
    max-width: 85%;
    border-radius: 18px;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Desktop */
@media (min-width: 768px) {
    .voyage-slider img {
        flex: 0 0 45%;
        max-width: 45%;
    }
}


/* ===============================
   TÉMOIGNAGES SLIDER
================================ */
.testimonials-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 80%;
    background: #ffffff;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    scroll-snap-align: center;
    text-align: center;
}

.testimonial-photo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial-content {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-name {
    font-weight: 600;
    opacity: 0.8;
}


/* Galerie immersive */
.gallery-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* Plein écran */
.gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 20px;
}


/* ===============================
   DESCRIPTION LONGUE VOYAGE
================================ */

.voyage-long-description {
    margin-top: 60px;
    padding: 45px 35px;
    background: linear-gradient(
        180deg,
        rgba(245, 245, 242, 0.95),
        rgba(255, 255, 255, 1)
    );
    border-radius: 28px;
}

.voyage-long-description h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.6rem;
    font-weight: 600;
}

.voyage-long-text {
    max-width: 720px;
    margin: auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.voyage-long-text p {
    margin-bottom: 22px;
}


/* === QUILL ADMIN FIX === */

.quill-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.ql-toolbar {
    border-radius: 8px 8px 0 0;
}

.ql-container {
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
}

.ql-editor {
    min-height: 120px;
    max-height: 200px;
    background: #fff;
    padding: 12px;
    font-size: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .ql-container {
        max-height: 160px;
    }

    .ql-editor {
        min-height: 100px;
        max-height: 140px;
        font-size: 14px;
    }
}


/* ===============================
   HERO VOYAGE — FORCE OVERRIDE
================================ */

.hero-voyage {
    position: relative !important;
    width: 100% !important;
    min-height: 320px !important;
    height: auto !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 30px 0 40px 0 !important;
}

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

.hero-voyage .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-voyage h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-voyage .hero-sub {
    font-size: 1rem;
    opacity: 0.95;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-voyage {
        min-height: 220px !important;
    }
}


.hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* ===============================
   HERO DESKTOP — FIX IMAGE MANQUANTE
================================ */

.hero {
    background-image: url("/assets/images/hero.jpg"); /* adapte si besoin */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===============================
   HERO VOYAGE – AJUSTEMENTS
================================ */

.page-voyage-detail .hero {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    margin: 30px auto;
    max-width: 1100px;
}

/* Overlay plus léger */
.page-voyage-detail .hero-overlay {
    background: rgba(0, 0, 0, 0.15);
}

/* Texte bien lisible */
.page-voyage-detail .hero-content h1,
.page-voyage-detail .hero-content p {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}


/* ===============================
   GALERIE PLEIN ÉCRAN
================================ */
#gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 9999;
    display: none;
}

#gallery-overlay.active {
    display: block;
}

.gallery-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 30px;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.gallery-slider {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.gallery-slide {
    min-width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.gallery-slide img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 18px;
}


/* ===============================
   BADGES VOYAGES
================================ */
.card {
    position: relative;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    color: #fff;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.badge-avenir {
    background: rgba(34, 197, 94, 0.9); /* vert */
}

.badge-passe {
    background: rgba(120, 120, 120, 0.85); /* gris */
}


/* HERO ACCUEIL — TITRE */
.home-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 2.6rem;
    color: #1e4f4a;
    margin-bottom: 1rem;
}

/* ===============================
   NAV DESKTOP
================================ */

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 500;
    color: #000;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #000;
    transition: width .2s ease;
}

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

/* ===============================
   ZONE UTILISATEUR (DESKTOP)
================================ */

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Badge connecté */
.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f3f3;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
}

/* Point vert connecté */
.user-link::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
}

/* Déconnexion */
.header-user a[href*="deconnexion"] {
    font-size: .9rem;
    color: #777;
    text-decoration: none;
}

.header-user a[href*="deconnexion"]:hover {
    color: #000;
}

/* Bouton inscription */
.btn-inscription {
    background: #000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

/* ===============================
   BURGER
================================ */

.burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===============================
   MENU MOBILE – VERSION MOCKUP
================================ */

.mobile-menu {
    position: fixed;
    top: 70px; /* hauteur du header */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding-top: 40px;
    gap: 22px;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: all 0.35s ease;
    z-index: 999;
}

/* OUVERT */
.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Liens mobile */
.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    color: #0f3d3a;
}

/* ===============================
   VISIBILITÉ
================================ */

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .burger {
        display: block;
    }

    .main-nav {
        display: none;
    }
}

/* ===============================
   SÉCURITÉ – HEADER UNIQUE
================================ */

/* Sécurité : cache uniquement les anciens headers identifiés */
header.old-header,
header.legacy-header {
    display: none !important;
}


/* ===============================
   COMPTE — AJUSTEMENT MOBILE
================================ */

@media (max-width: 900px) {

    /* Cache le texte "Connecté" mais garde le point vert */
    .account-menu .badge-connected {
        font-size: 0;
        padding: 0;
        background: none;
    }

    /* Réaffiche uniquement le point vert */
    .account-menu .badge-connected .status-dot {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-left: 6px;
    }

    /* Réduction de la bulle */
    .account-menu .account-btn {
        padding: 0.5rem 1rem;
        gap: 0.4rem;
    }

    /* Ajuste le chevron */
    .account-menu .chevron {
        margin-left: 6px;
        font-size: 0.75rem;
    }
}



/* ===============================
   HOME — CARTES D’ACCÈS (CLEAN FINAL — ADAPTÉ)
================================ */

/*
   RÈGLES :
   - La section n’a AUCUNE surface visuelle
   - Pas de fond, pas d’ombre, pas de bordure
   - Alignement strict des cartes
*/

.home-access {
    max-width: 1200px;
    margin: 12px auto 90px; /* MODIF : 25px → 12px */
    padding: 0 20px;

    background: transparent;
    border: none;
    box-shadow: none;
}

/* ===============================
   CONTENEUR CARTES
================================ */

.access-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;

    align-items: stretch; /* 🔑 alignement parfait */
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ===============================
   CARTE
================================ */

.access-card {
    position: relative;
    display: block;

    height: 240px; /* MODIF : 320px → 240px (-25%) */
    border-radius: 26px;
    overflow: hidden;

    background-color: #f3efe4;
    text-decoration: none;
    color: inherit;

    /* Ombre UNIQUEMENT sur la carte */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;

    will-change: transform;
}

/* respiration subtile (désactivable plus tard) */
.access-card {
    animation: cardBreath 6s ease-in-out infinite;
}

@keyframes cardBreath {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

/* ===============================
   IMAGE
================================ */

.access-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
    transition: transform 0.8s ease;
}

/* ===============================
   OVERLAY
================================ */

.access-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.05)
    );

    z-index: 1;
    pointer-events: none;
}

/* ===============================
   TEXTE
================================ */

.access-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 20px; /* MODIF : 26px → 20px */
    z-index: 2;

    text-align: center;
}

.access-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem; /* MODIF : 1.55rem → 1.35rem */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.access-content p {
    font-size: 0.85rem; /* MODIF : 0.95rem → 0.85rem */
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ===============================
   HOVER (DESKTOP)
================================ */

.access-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.28);
}

.access-card:hover img {
    transform: scale(1.06);
}

/* ===============================
   MOBILE — 2 CARTES ALIGNÉES
================================ */

@media (max-width: 768px) {

    .access-cards {
        display: flex;
        gap: 16px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        padding-bottom: 12px;
    }

    .access-cards::-webkit-scrollbar {
        display: none;
    }

    .access-card {
        flex: 0 0 calc(50% - 8px);
        height: 180px; /* MODIF : 240px → 180px (-25%) */
        scroll-snap-align: start;
    }

    .access-content h3 {
        font-size: 1.2rem; /* MODIF */
    }
}

/* =====================================================
   HERO IMAGE — VERSION MAQUETTE STABLE (DESKTOP + MOBILE)
===================================================== */

.hero-image {
    position: relative;
    width: 100%;

    /* Desktop */
    height: 60vh;
    min-height: 420px;

    overflow: hidden;
    background: #000;
}

/* IMAGE — FIX DÉFINITIF */
.hero-image img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;          /* 🔥 CRUCIAL : PAS auto */
    min-height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
    z-index: 0;
}

/* VOILE DE LECTURE (LÉGER, SANS BLANCHIR) */
.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.12),
        rgba(0,0,0,0.25)
    );
}

/* TEXTE */
.hero-overlay {
    position: relative;
    z-index: 2;

    height: 100%;
    padding: 0 1.5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;
}

.hero-overlay h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    line-height: 1.15;

    color: #ffffff;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.35),
        0 0 1px rgba(0, 0, 0, 0.45);
}

/* TEXTE */
.hero-overlay p {
    font-size: 1rem;
    max-width: 320px;
    opacity: 0.95;
}

/* BOUTON */
.hero-btn {
    margin-top: 1.1rem;
    padding: 0.65rem 1.4rem;

    background: #c7924b;
    color: #fff;

    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .hero-image {
        height: 32vh;
        min-height: 220px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 0.95rem;
    }
}
/* ===============================
   VAGUE DOUCE — MAQUETTE MOBILE
================================ */

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 3;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===============================
   HERO COLLÉ AU HEADER
================================ */

main,
main > section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===============================
   MOBILE — HOME ULTRA COLLÉ (MAQUETTE)
================================ */

@media (max-width: 768px) {

    .hero-image {
        height: 32vh;
        min-height: 210px;
        max-height: 280px;

        margin-bottom: 0 !important;
    }

    .hero-wave {
        height: 26px;
    }

    .hero-image + * {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .home-access {
        margin-top: 4px !important; /* MODIF : encore plus serré */
        padding-top: 0 !important;
        margin-bottom: 56px;
    }

    main > section {
        margin-top: 0 !important;
    }
}

/* ===============================
   HOME — INTRO (SECTION MAQUETTE)
================================ */

.home-intro {
    max-width: 720px;
    margin: 110px auto 120px;
    padding: 0 20px;

    text-align: center;
    background: transparent;
}

/* TITRE — EXACT MAQUETTE */
.home-intro h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 2.4rem;

    color: #1e4f4a;
    letter-spacing: 0.4px;
    line-height: 1.15;

    margin-bottom: 28px;
}

/* TEXTE */
.home-intro p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #345e5e;

    max-width: 640px;
    margin: 0 auto;
}

/* ===============================
   MOBILE — AJUSTEMENT MAQUETTE
================================ */

@media (max-width: 768px) {

    .home-intro {
        margin: 70px auto 90px;
    }

    .home-intro h2 {
        font-size: 2rem;
        margin-bottom: 22px;
    }

    .home-intro p {
        font-size: 1rem;
    }
}

/* ===============================
   TITRE MANUSCRIT — STYLE MAQUETTE
================================ */

.handwritten-title {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;

    font-size: 2.8rem;
    line-height: 1.1;

    color: #1e4f4a;
    letter-spacing: 0.2px;

    text-align: center;
    margin-bottom: 28px;
}

/* Mobile */
@media (max-width: 768px) {
    .handwritten-title {
        font-size: 2.3rem;
    }
}

/* ===============================
   TITRE ACCUEIL — ÉQUILIBRE MAQUETTE
================================ */

.home-title {
    display: flex;
    justify-content: center;
    align-items: baseline; /* alignement typographique précis */
    gap: 12px;

    text-align: center;
    margin-bottom: 34px;

    flex-wrap: nowrap;                 /* 🔥 interdit tout retour ligne */
    transform: none ;        
}

/* “Bienvenue sur” */
.home-title-intro {
    font-family: 'EB Garamond', serif;
    font-size: 1.55rem;                /* 🔥 mieux équilibré */
    font-weight: 400;                  /* 🔥 plus présent */

    color: #1e4f4a;
    letter-spacing: 0.4px;
    line-height: 1;

    white-space: nowrap;
}

/* “Les Voix de Mel” */
.home-title-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2.35rem;                /* 🔥 réduit pour équilibre */
    font-weight: 600;

    color: #1e4f4a;
    line-height: 1;

    white-space: nowrap;
    transform: none ;           
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .home-title {
        gap: 8px;
        transform: none ;      
    }

    .home-title-intro {
        font-size: 1.80rem;
    }

    .home-title-signature {
        font-size: 2rem;
    }
}

/* =====================================================
   HEADER — SOURCE UNIQUE (SITE-HEADER)
   Dancing Script — ISOLATION TYPOGRAPHIQUE TOTALE
===================================================== */

/* ===============================
   HEADER (CONTENEUR)
================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #FCFBF9; /* crème maquette */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(15, 61, 58, 0.08);
}

/* ===============================
   STRUCTURE INTERNE
================================ */

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

/* =====================================================
   HEADER — TYPOGRAPHIE STABLE & COHÉRENTE
===================================================== */

/* Header n’hérite de RIEN */
.site-header {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Logo — Dancing Script UNIQUEMENT */
.site-header .site-logo {
    font-family: 'Dancing Script', cursive !important;
    font-weight: 600;
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: 0;

    color: #3a5f56;
    text-decoration: none !important;
    white-space: nowrap;

    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    font-synthesis: none;
}



/* ===============================
   LOGO — DANCING SCRIPT (SOURCE UNIQUE)
================================ */

.site-header .site-logo {
    font-family: 'Dancing Script', cursive !important;
    font-weight: 600;
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: 0;

    color: #3a5f56;
    text-decoration: none !important;

    display: inline-block;
    white-space: nowrap;

    /* 🔥 RENDU IDENTIQUE SAFARI / CHROME */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;

    font-kerning: normal;
    font-synthesis: none;

    transform: translateZ(0);
    backface-visibility: hidden;

    transition: opacity 0.25s ease;
}

/* Hover / focus */
.site-header .site-logo:hover,
.site-header .site-logo:focus,
.site-header .site-logo:active {
    opacity: 0.85;
    text-decoration: none;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {
    .site-header .site-logo {
        font-size: 1.6rem;
    }
}


/* ===============================
   HOME — BOUTON QUI SUIS-JE
================================ */

.home-intro .about-toggle {
    margin-top: 30px;

    appearance: none;
    border: none;
    background: transparent;

    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;

    color: #1e4f4a;
    cursor: pointer;

    padding: 10px 18px;
    border-radius: 999px;

    transition: background 0.25s ease, transform 0.25s ease;
}

.home-intro .about-toggle:hover {
    background: rgba(47, 111, 106, 0.08);
    transform: translateY(-1px);
}

/* Texte caché */
.home-intro .about-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition:
        max-height 0.5s ease,
        opacity 0.4s ease;

    margin-top: 26px;
}

/* Ouvert */
.home-intro .about-content.open {
    max-height: 900px;
    opacity: 1;
}

.home-intro .about-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #345e5e;
    margin-bottom: 22px;
}

/* ===============================
   BOUTON "QUI SUIS-JE ?" — MIS EN VALEUR
================================ */

.about-toggle {
    margin-top: 24px;
    padding: 12px 32px;

    border-radius: 999px;
    border: none;

    background: linear-gradient(
        135deg,
        rgba(30, 79, 74, 0.12),
        rgba(30, 79, 74, 0.22)
    );

    font-size: 1rem;
    font-weight: 600;
    color: #1e4f4a;

    cursor: pointer;
    position: relative;

    box-shadow:
        0 10px 28px rgba(15, 61, 58, 0.18),
        inset 0 0 0 1px rgba(255,255,255,0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.about-toggle + .about-toggle {
    margin-top: 12px;   /* espace réduit entre les deux boutons */
}

/* respiration douce */
.about-toggle {
    animation: softPulse 4.5s ease-in-out infinite;
}

@keyframes softPulse {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

/* Hover */
.about-toggle:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 45px rgba(15, 61, 58, 0.28),
        inset 0 0 0 1px rgba(255,255,255,0.45);

    background: linear-gradient(
        135deg,
        rgba(30, 79, 74, 0.18),
        rgba(30, 79, 74, 0.32)
    );
}

.about-toggle.is-secondary {
    background: linear-gradient(
        135deg,
        rgba(30, 79, 74, 0.18),
        rgba(30, 79, 74, 0.08)
    );

    box-shadow:
        0 10px 30px rgba(30, 79, 74, 0.18),
        inset 0 0 0 1px rgba(30, 79, 74, 0.25);

    font-weight: 600;
}

/* Hover un peu plus affirmé */
.about-toggle.is-secondary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 38px rgba(30, 79, 74, 0.25),
        inset 0 0 0 1px rgba(30, 79, 74, 0.35);
}

/* ===============================
   CONTENU DÉROULANT — FLUIDE
================================ */

.about-content {
    max-width: 720px;
    margin: 0 auto;

    overflow: hidden;
    max-height: 0;

    opacity: 0;
    transform: translateY(-6px);

    transition:
        max-height 1.1s cubic-bezier(.4,0,.2,1),
        opacity 0.6s ease,
        transform 0.6s ease;

    will-change: max-height, opacity, transform;
}

/* ÉTAT OUVERT */
.about-content.open {
    max-height: 1200px; /* large pour texte long */
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   HOME — SECTION CARTES SECONDAIRES (SLIDER)
===================================================== */

.home-access-secondary {
    margin: 80px auto 100px;
}

/* CONTENEUR SLIDER */
.access-cards-secondary {
    display: flex;
    gap: 26px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 16px;
}

/* Cache scrollbar */
.access-cards-secondary::-webkit-scrollbar {
    display: none;
}

/* ===============================
   CARTES — BASE
================================ */

.access-cards-secondary .access-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ===============================
   DESKTOP — 2 CARTES VISIBLES
================================ */

@media (min-width: 769px) {
    .access-cards-secondary .access-card {
        width: calc(50% - 13px); /* 2 cartes max */
        height: 260px;
    }
}
/* ===============================
   SLIDER SECONDAIRE — MOBILE
   1 CARTE = 1 ÉCRAN
================================ */

@media (max-width: 768px) {

    .access-cards-secondary {
        display: flex;
        gap: 16px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        padding: 0;              /* 🔥 clé */
        margin: 0;
    }

    .access-cards-secondary::-webkit-scrollbar {
        display: none;
    }

    .access-cards-secondary .access-card {
        flex: 0 0 100%;          /* 🔥 clé absolue */
        min-width: 100%;
        height: 200px;

        scroll-snap-align: start;
    }
}

.access-cards-secondary::after {
    content: "↔";
    display: block;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.35;
    margin-top: 10px;
}


/* ===============================
   POINTS INDICATEURS SLIDER
================================ */

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 14px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(30, 79, 74, 0.3);
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 18px;
    border-radius: 999px;
    background: #1e4f4a;
}

/* ===============================
   HINT SWIPE MOBILE
================================ */

.slider-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;

    margin-top: 12px;
    opacity: 0.55;
}

/* Chevron */
.slider-hint .chevron {
    font-size: 1.6rem;
    color: #1e4f4a;
    animation: swipeHint 1.8s ease-in-out infinite;
}

/* Décalage animation */
.slider-hint .chevron:first-child {
    animation-delay: 0s;
}
.slider-hint .chevron:last-child {
    animation-delay: 0.3s;
}

/* Animation */
@keyframes swipeHint {
    0% {
        transform: translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(8px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0);
        opacity: 0.3;
    }
}

/* Desktop : on masque le hint */
@media (min-width: 900px) {
    .slider-hint {
        display: none;
    }
}


/* ===============================
   TÉMOIGNAGES — SECTION DOUCE
================================ */

.testimonials-section {
    margin: 120px auto 140px;
    padding: 0 20px;
    max-width: 1200px;
    text-align: center;
}

/* Titre */
.testimonials-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1e4f4a;
    margin-bottom: 50px;
}

/* Slider */
.testimonials-slider {
    display: flex;
    gap: 24px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 20px;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

/* Carte témoignage */
.testimonial-card {
    flex: 0 0 45%; /* 🔥 2 cartes desktop */
    max-width: 520px;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);

    border-radius: 32px;
    padding: 34px 32px;

    scroll-snap-align: center;

    transition: background 0.35s ease;
}

/* Hover très léger */
@media (hover: hover) {
    .testimonial-card:hover {
        background: rgba(255, 255, 255, 0.75);
    }
}

/* Texte */
.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.75;
    color: #345e5e;
    font-style: italic;
}

/* Auteur */
.testimonial-author {
    display: block;
    margin-top: 22px;
    font-size: 0.95rem;
    color: #1e4f4a;
    opacity: 0.8;
}

/* Points */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.testimonials-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(30, 79, 74, 0.35);
    transition: all 0.3s ease;
}

.testimonials-dots .dot.active {
    width: 18px;
    border-radius: 999px;
    background: #1e4f4a;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .testimonial-card {
        flex: 0 0 85%; /* 🔥 1 carte par écran */
    }

    .testimonials-title {
        font-size: 1.9rem;
        margin-bottom: 36px;
    }
}

/* ===============================
   CTA — LIRE TOUS LES TÉMOIGNAGES
================================ */

.testimonials-cta {
    margin-top: 34px;
    text-align: center;
}

.testimonials-link {
    display: inline-block;

    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;

    color: #1e4f4a;
    text-decoration: none;

    padding: 6px 2px;
    position: relative;

    opacity: 0.8;
    transition: opacity 0.25s ease;
}

/* Soulignement doux */
.testimonials-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.testimonials-link:hover {
    opacity: 1;
}

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

/* ===============================
   PAGE ATELIERS
================================ */

.page-ateliers {
    max-width: 980px;
    margin: auto;
    padding: 60px 20px;
}

.page-intro {
    text-align: center;
    margin-bottom: 70px;
}

.ateliers-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ===============================
   CARTE ATELIER
================================ */

.atelier-card {
    background: rgba(255,255,255,0.75);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 18px 40px rgba(15,61,58,0.12);
}

/* Chapitre */
.chapitre {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ===============================
   WEBINAIRE
================================ */

.webinar-block {
    margin-top: 30px;
    padding: 20px;
    background: rgba(47,111,106,0.08);
    border-radius: 18px;
}

/* ===============================
   ATELIER
================================ */

.atelier-block {
    margin-top: 30px;
}

/* ===============================
   CHAPITRE TEXTE
================================ */

.chapter-toggle {
    margin-top: 30px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: #1e4f4a;
}

.chapter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    opacity: 0;
}

.chapter-content.open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 25px;
}


/* Bouton principal achat */
.btn-buy {
    background: #2f6f6a;
    color: #fff;
}

/* Bouton accès contenu */
.btn-access {
    background: #3a8f87;
    color: #fff;
}

/* Bouton login */
.btn-login {
    background: transparent;
    color: #2f6f6a;
    border: 1px solid #2f6f6a;
}

/* Bouton secondaire (webinaire, replay) */
.btn-secondary {
    background: rgba(47,111,106,0.12);
    color: #2f6f6a;
}

/* Désactiver l’effet "prix" si acquis */
.price.hidden {
    display: none;
}


/* =====================================================
   WEBINAIRES / ATELIERS — LAYOUT SPÉCIFIQUE
   (ne touche pas aux autres sliders)
===================================================== */

.ateliers-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    overflow: visible;
}

/* Tablette */
@media (min-width: 640px) {
    .ateliers-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .ateliers-layout {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin: auto;
    }
}

.ateliers-layout .card {
    width: 100%;
    max-width: none;
}


/* =====================================================
   PAGE ATELIERS — CARTES BIEN DISTINCTES
   n'affecte QUE cette page
===================================================== */

.ateliers-layout .card {
    background: #ffffff;
    border-radius: 26px;
    padding-bottom: 12px;

    box-shadow:
        0 18px 38px rgba(15,61,58,0.12),
        0 4px 12px rgba(15,61,58,0.06);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* léger relief au survol desktop */
@media (hover: hover) {
    .ateliers-layout .card:hover {
        transform: translateY(-6px);
        box-shadow:
            0 26px 55px rgba(15,61,58,0.18),
            0 8px 18px rgba(15,61,58,0.08);
    }
}

/* séparation interne plus élégante */
.ateliers-layout .card-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(15,61,58,0.25),
        transparent
    );
    margin: 28px 0;
}

/* espace interne plus respirant */
.ateliers-layout .card-body p {
    margin-bottom: 12px;
}