/* ═══════════════════════════════════════════════════════════
   CSS.CSS — Agenda5.fr v2.0
   Stylesheet unique, organisé par sections
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables & Reset ─────────────────────────────────── */
:root {
    /* Couleurs dark (défaut) */
    --bg-dark: #0C0F18;
    --bg-surface: #131722;
    --bg-light: #F2F4F8;
    --bg-white: #FEFEFE;

    /* Bleu */
    --blue-light: #A2B0CD;
    --blue: #647CAC;
    --blue-dark: #3C4A67;

    /* Jaune (accent) */
    --yellow-light: #FDDE7F;
    --yellow: #FBC425;
    --yellow-dark: #977616;

    /* Texte (dark mode) */
    --text-primary: var(--bg-white);
    --text-secondary: var(--blue-light);
    --text-muted: var(--blue);

    /* Surfaces sémantiques */
    --bg-body: var(--bg-dark);
    --bg-card: var(--bg-surface);
    --bg-card-alt: var(--bg-dark);
    --border-subtle: rgba(100, 124, 172, 0.1);
    --border-medium: rgba(100, 124, 172, 0.15);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.3);

    /* Espacement */
    --container-max: 1200px;
    --section-padding: 6rem 0;
    --radius: 12px;
    --radius-sm: 8px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Navbar */
    --navbar-height: 72px;
    /* Section alternation (pairs) */
    --section-bg-dark: var(--bg-body);
    --section-bg-light: var(--bg-card);
    --module-bg-dark-section: var(--bg-card);
    --module-bg-light-section: var(--bg-card-alt);
}

/* ─── Light mode (auto — suit l'OS) ─────────────────────── */
@media (prefers-color-scheme: light) {
    :root {
        --bg-body: var(--bg-light);
        --bg-card: var(--bg-white);
        --bg-card-alt: var(--bg-light);
        --text-primary: var(--bg-surface);
        --text-secondary: var(--blue-dark);
        --text-muted: var(--blue);
        --border-subtle: rgba(60, 74, 103, 0.1);
        --border-medium: rgba(60, 74, 103, 0.15);
        --shadow-card: 0 8px 30px rgba(60, 74, 103, 0.1);
    }
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 1rem);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Accent couleur ────────────────────────────────────── */
.accent {
    color: var(--yellow);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR — Flottante pill (inspiration Gladia)
   ═══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 2rem);
    max-width: 720px;
}

.navbar__pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(19, 23, 34, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
}

@media (prefers-color-scheme: light) {
    .navbar__pill {
        background: rgba(254, 254, 254, 0.8);
        box-shadow: 0 4px 24px rgba(60, 74, 103, 0.12);
    }
}

/* État scrollé — plus opaque */
.navbar--scrolled .navbar__pill {
    background: rgba(19, 23, 34, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
    .navbar--scrolled .navbar__pill {
        background: rgba(254, 254, 254, 0.95);
        box-shadow: 0 8px 32px rgba(60, 74, 103, 0.15);
    }
}

/* Logo */
.navbar__logo {
    display: inline-flex;
    align-items: center;
}

.navbar__logo-img {
    margin: 0.1rem 0.4rem;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.navbar__logo-label {
    color: var(--yellow);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

@media (prefers-color-scheme: light) {
    .navbar__logo-label {
        color: var(--yellow);
        text-shadow: none;
    }
}

/* Liens nav */
.navbar__nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.navbar__link {
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.navbar__link:hover,
.navbar__link--active {
    color: var(--text-primary);
    background: rgba(100, 124, 172, 0.1);
}

.navbar__link--cta {
    background: var(--yellow);
    color: var(--bg-dark) !important;
    font-weight: 600;
}

.navbar__link--cta:hover {
    background: var(--yellow-light);
}



/* Burger mobile */
.navbar__burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.4rem;
    flex-shrink: 0;
}

.navbar__burger svg {
    width: 22px;
    height: 22px;
}

/* Menu mobile */
.navbar__mobile {
    display: none;
    flex-direction: column;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: rgba(19, 23, 34, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
}

@media (prefers-color-scheme: light) {
    .navbar__mobile {
        background: rgba(254, 254, 254, 0.97);
    }
}

.navbar__mobile--open {
    display: flex;
}

.navbar__mobile-link {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    transition: color var(--transition);
}

.navbar__mobile-link:last-child {
    border-bottom: none;
}

.navbar__mobile-link:hover {
    color: var(--yellow);
}

@media (max-width: 768px) {
    .navbar__nav { display: none; }
    .navbar__burger { display: block; }
    .navbar { max-width: calc(100% - 2rem); }
    .navbar__logo-label { font-size: 0.84rem; }
}

/* ─── Landing simple header (logo + contact full width) ───────────────── */
.navbar--landing {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 1rem;
    transform: none; /* cancel global translateX from .navbar */
    left: auto;
}

.navbar--landing .navbar__pill {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    background: transparent; /* remove background on landing headers */
    border: none; /* remove border */
    box-shadow: none; /* remove shadow */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar__spacer { flex: 1; }
.navbar__contact { margin-left: 1rem; border-radius: 100px; padding: 0.6rem 1rem; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — Navigation sections (desktop)
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: all var(--transition);
}

.sidebar__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar__link span {
    opacity: 1;
    white-space: nowrap;
}

.sidebar__link:hover span,
.sidebar__link--active span {
    opacity: 1;
}

.sidebar__link:hover,
.sidebar__link--active {
    color: var(--yellow);
    opacity: 1;
}

/* Séparateur visuel avant le premier lien de section */
.sidebar__link--top {
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar::before,
.sidebar::after {
    content: '';
    display: block;
    width: 1px;
    height: 24px;
    background: var(--text-muted);
    margin: 0.4rem auto;
    border-radius: 1px;
    opacity: 0.4;
}

@media (min-width: 1025px) {
    .container {
        padding-left: 10vw;
        padding-right: 10vw;
    }
}

@media (max-width: 1024px) {
    .sidebar { display: none; }
}

/* ─── Bouton flottant retour en haut (mobile/tablette) ─── */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 800;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--bg-dark);
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(251, 196, 37, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top--visible {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}

@media (max-width: 1024px) {
    .back-to-top--visible {
        display: flex;
    }
}


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    padding: 4rem 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    display: grid;
    grid-template-areas: 
        "text widget"
        "buttons ."; /* Desktop layout */
    grid-template-columns: 1fr 1fr; /* Adjust column widths */
    align-items: center;
    gap: 1rem;
    width: 100%;
    z-index: 1;
}

.hero__text {
    grid-area: text;
    grid-row: 1;
}

.hero__text, .hero__actions {
    grid-column: 1; /* Place text and actions in the first column */
}

.hero__actions {
    grid-area: buttons;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap; /* keep buttons on one line on wide screens */
    align-items: center;
}

.hero__visual {
    grid-area: widget;
}

.hero__title {
    margin: 1.2rem auto;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(19, 23, 34, 0.4);
}

.hero__title--accent {
    color: var(--yellow);
}

.hero__subtitle {
    margin: auto;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* ─── Indicateur scroll (souris) ────────────────────────── */
.hero__scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8rem;
    gap: 1rem;
    position: absolute;
    bottom: 0px;
}

.scroll-mouse {
    width: 18px;
    height:28px;
    border-radius: 12px;
    border: 1px solid var(--text-muted);
    position: relative;
    opacity: 0.6;
}

.scroll-mouse__wheel {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--yellow);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-mouse__line {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    opacity: 0.4;
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--navbar-height) + 1.5rem) 0 2.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        margin-top: 1.5rem;
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .hero__content {
        height: 80vh;
        grid-template-areas: 
            "text"
            "widget"
            "buttons"; /* Mobile layout */
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        top: 0;
    }

    .hero__text {
        grid-area: text;
        text-align: left; /* Ajout pour aligner le texte à gauche */
        margin: auto 1rem;

    }

    .hero__actions {
        grid-area: buttons;
        justify-content: center;
        margin-top: 1.5rem;
        gap: 0.75rem;
        flex-wrap: wrap; /* allow wrapping on small screens */
    }

    .hero__visual {
        grid-area: widget;
    }


    .hero__actions .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.25rem;
    }

    .hero__visual { order: -1; }
    .agenda-demo {
        max-width: 260px;
        padding: 0.9rem;
    }
    .agenda-demo__slot {
        padding: 0.4rem 0.2rem;
    }
    .agenda-demo__slot svg {
        width: 12px;
        height: 12px;
    }
    .hero__scroll-indicator {
        display: none;
    }
}


/* ─── Boutons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.hero__actions .btn {
    white-space: nowrap; /* prevent icon/text wrapping inside buttons */
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--yellow);
    color: var(--bg-dark);
}

.btn--primary:hover {
    background: var(--yellow-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(251, 196, 37, 0.25);
}

.btn--secondary {
    background: var(--blue-dark);
    color: var(--text-primary);
}

@media (prefers-color-scheme: light) {
    .btn--secondary {
        background: var(--blue-light);
        color: var(--bg-dark);
    }
}

.btn--secondary:hover {
    background: var(--blue);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.btn--ghost:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

/* Force pill shape for landing header contact button */
.btn.navbar__contact {
    border-radius: 100px;
    padding: 0.6rem 1rem;
}

/* ─── Animation Agenda Demo (Hero) ─────────────────────── */
.hero__visual {
    display: flex;
    justify-content: center;
}

.agenda-demo {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius);
    padding: 1.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

@media (prefers-color-scheme: light) {
    .agenda-demo {
        box-shadow: 0 20px 60px rgba(60, 74, 103, 0.15);
    }
}

.agenda-demo__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.agenda-demo__title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.agenda-demo__dots {
    display: flex;
    gap: 4px;
}

.agenda-demo__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-dark);
}

.agenda-demo__dots span:first-child { background: #ff5f57; }
.agenda-demo__dots span:nth-child(2) { background: #ffbd2e; }
.agenda-demo__dots span:last-child { background: #28ca41; }

.agenda-demo__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
}

.agenda-demo__col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.agenda-demo__day {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-demo__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.25rem;
    border-radius: 6px;
    animation: slotPulse 3s ease-in-out infinite;
}

.agenda-demo__slot svg {
    width: 14px;
    height: 14px;
}

/* Couleurs par domaine */
.agenda-demo__slot--medical {
    background: rgba(100, 124, 172, 0.2);
    color: var(--blue-light);
}
.agenda-demo__slot--tech {
    background: rgba(251, 196, 37, 0.15);
    color: var(--yellow);
}
.agenda-demo__slot--juridique {
    background: rgba(162, 176, 205, 0.15);
    color: var(--blue-light);
}
.agenda-demo__slot--enterprise {
    background: rgba(251, 196, 37, 0.1);
    color: var(--yellow-light);
}

@media (prefers-color-scheme: light) {
    .agenda-demo__slot--medical { color: var(--blue-dark); }
    .agenda-demo__slot--juridique { color: var(--blue-dark); }
    .agenda-demo__slot--tech { color: var(--yellow-dark); }
    .agenda-demo__slot--enterprise { color: var(--yellow-dark); }
}

@keyframes slotPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.agenda-demo__slot:nth-child(2) { animation-delay: 0.5s; }
.agenda-demo__slot:nth-child(3) { animation-delay: 1s; }

/* Badge rotatif */
.agenda-demo__badge {
    position: absolute;
    bottom: -12px;
    right: 1.5rem;
    background: var(--yellow);
    color: var(--bg-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 196, 37, 0.3);
}

.agenda-demo__badge-text {
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ENCART ANS / SAS
   ═══════════════════════════════════════════════════════════ */
.ans-block {
    margin-top: 2rem;
    padding: 0;
}

.ans-block__inner {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.ans-block__head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

.ans-block__head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ans-block__badges {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.ans-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.ans-badge svg {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    flex-shrink: 0;
}

.ans-badge > div {
    min-width: 0;
}

.ans-badge h3 {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ans-badge p {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
}

.ans-block__logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.ans-block p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ans-block a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ans-block a:hover {
    color: var(--yellow-light);
}

@media (max-width: 768px) {
    .ans-block__inner {
        padding: 1rem;
    }

    .ans-block__head {
        justify-content: center;
        text-align: center;
    }

    .ans-block__badges {
        grid-template-columns: 1fr;
    }

    .ans-block__logo {
        width: 40px;
        height: 40px;
    }

    .ans-block p {
        font-size: 0.8rem;
        word-break: break-word;
    }
}

@media (prefers-color-scheme: light) {
    .ans-block__inner {
        background: var(--bg-light);
    }
}

/* ═══════════════════════════════════════════════════════════
   ACCORDION (Détails fonctionnalités)
   ═══════════════════════════════════════════════════════════ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion__item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.accordion__item[open] {
    border-color: var(--border-medium);
}

.accordion__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    list-style: none;
}

.accordion__header::-webkit-details-marker {
    display: none;
}

.accordion__header::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.accordion__item[open] .accordion__header::after {
    transform: rotate(-135deg);
}

.accordion__header:hover {
    background: rgba(100, 124, 172, 0.05);
}

.accordion__header svg {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    flex-shrink: 0;
}

.accordion__body {
    padding: 0 1.25rem 1.25rem 3.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.accordion__body ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
    list-style: disc;
}

.accordion__body li {
    margin-bottom: 0.25rem;
}

.accordion__body a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS COMMUNES
   ═══════════════════════════════════════════════════════════ */
.section {
    padding: var(--section-padding);
}

.section__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section__tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(100, 124, 172, 0.15);
    color: var(--blue-light);
    margin-bottom: 1rem;
}

.section__tag--tech {
    background: rgba(251, 196, 37, 0.12);
    color: var(--yellow);
}

.section__tag--op {
    background: rgba(60, 74, 103, 0.3);
    color: var(--blue-light);
}

.section__tag--client {
    background: rgba(251, 196, 37, 0.08);
    color: var(--yellow-light);
}

.section__tag--tarif {
    background: rgba(251, 196, 37, 0.15);
    color: var(--yellow);
}

@media (prefers-color-scheme: light) {
    .section__tag {
        background: rgba(100, 124, 172, 0.1);
        color: var(--blue-dark);
    }

    .section__tag--tech,
    .section__tag--tarif {
        background: rgba(251, 196, 37, 0.15);
        color: var(--yellow-dark);
    }
}

.section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section__desc {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section__showcase {
    margin: 0 auto 1.5rem;
    max-width: 640px;
}

.section__showcase--duo {
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.section__capture {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
}

.section__capture img {
    width: 100%;
    height: auto;
    display: block;
}

.section__capture--desktop img {
    height: clamp(220px, 24vw, 300px);
    object-fit: cover;
}

.section__capture--mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.section__mobile-frame {
    width: min(196px, 70%);
    margin: auto;
    padding: 4px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(100, 124, 172, 0.22), rgba(60, 74, 103, 0.35));
    border: 1px solid var(--border-subtle);
    aspect-ratio: 9 / 18;
    overflow: hidden;
}

.section__capture figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
}

.section__capture figcaption a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section__capture figcaption a:hover {
    color: var(--yellow-light);
}

@media (max-width: 768px) {
    .section__showcase {
        margin-bottom: 1.25rem;
        max-width: 100%;
    }

    .section__showcase--duo {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: light) {
    .section__capture {
        box-shadow: 0 10px 30px rgba(60, 74, 103, 0.08);
    }
}

/* Alternance fond */
.section--medical,
.section--client {
    background: var(--bg-card);
}

/* ═══════════════════════════════════════════════════════════
   SECTION ALTERNANCE — paire (1+2 = sombre, 3+4 = clair)
   ═══════════════════════════════════════════════════════════ */
/* Use 4n+1 / 4n+2 as the dark pair, 4n+3 / 4n+4 as the light pair. */
main > section:nth-of-type(4n+1),
main > section:nth-of-type(4n+2) {
    background: var(--section-bg-dark);
    color: var(--text-primary);
}

main > section:nth-of-type(4n+3),
main > section:nth-of-type(4n+4) {
    background: var(--section-bg-light);
    color: var(--text-primary);
}

/* Modules / conteneurs contrastés selon le fond de la section */
main > section:nth-of-type(4n+1) .feature-card,
main > section:nth-of-type(4n+2) .feature-card,
main > section:nth-of-type(4n+1) .section__capture,
main > section:nth-of-type(4n+2) .section__capture,
main > section:nth-of-type(4n+1) .pricing-card,
main > section:nth-of-type(4n+2) .pricing-card,
main > section:nth-of-type(4n+1) .ans-block__inner,
main > section:nth-of-type(4n+2) .ans-block__inner {
    background: var(--module-bg-dark-section);
    border-color: var(--border-subtle);
}

main > section:nth-of-type(4n+3) .feature-card,
main > section:nth-of-type(4n+4) .feature-card,
main > section:nth-of-type(4n+3) .section__capture,
main > section:nth-of-type(4n+4) .section__capture,
main > section:nth-of-type(4n+3) .pricing-card,
main > section:nth-of-type(4n+4) .pricing-card,
main > section:nth-of-type(4n+3) .ans-block__inner,
main > section:nth-of-type(4n+4) .ans-block__inner {
    background: var(--module-bg-light-section);
    border-color: var(--border-subtle);
}

@media (prefers-color-scheme: light) {
    /* In light mode keep the same alternation but use the adapted vars */
    main > section:nth-of-type(4n+1),
    main > section:nth-of-type(4n+2) {
        background: var(--section-bg-dark);
    }
    main > section:nth-of-type(4n+3),
    main > section:nth-of-type(4n+4) {
        background: var(--section-bg-light);
    }
}

.section--details {
    padding-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES GRID (Médical, Technique)
   ═══════════════════════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 0.85rem;
    row-gap: 0.6rem;
    align-items: center;
    transition: all var(--transition);
}

.section--medical .feature-card {
    background: var(--bg-card-alt);
}

.feature-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.feature-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1;
}

.feature-card__icon svg {
    width: 20px;
    height: 20px;
}

.feature-card__icon--medical {
    background: rgba(100, 124, 172, 0.15);
    color: var(--blue-light);
}

.feature-card__icon--tech {
    background: rgba(251, 196, 37, 0.12);
    color: var(--yellow);
}

@media (prefers-color-scheme: light) {
    .feature-card__icon--medical { color: var(--blue-dark); }
    .feature-card__icon--tech { color: var(--yellow-dark); }
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════════
   LIST FEATURES (Opérateur, Client)
   ═══════════════════════════════════════════════════════════ */
.list-features {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.list-features__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.list-features__item:hover {
    background: rgba(100, 124, 172, 0.05);
    border-color: var(--border-medium);
}

.list-features__item > svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--yellow);
    margin-top: 2px;
}

.list-features__item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.list-features__item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   TARIFS / PRICING
   ═══════════════════════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.pricing-card--highlight {
    border-color: var(--yellow);
    box-shadow: 0 0 0 1px var(--yellow), 0 12px 40px rgba(251, 196, 37, 0.1);
}

.pricing-card__badge {
    position: absolute;
    top: -10px;
    right: 1.5rem;
    background: var(--yellow);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card__header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-card__price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-card__list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-card__list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-card__list li svg {
    width: 16px;
    height: 16px;
    color: var(--yellow);
    flex-shrink: 0;
}

.pricing-card__note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 0;
    margin-top: 2rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
}

.footer__brand-head {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__logo {
    width: 32px;
    height: 32px;
}

.footer__logo-label {
    color: var(--yellow);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

@media (prefers-color-scheme: light) {
    .footer__logo-label {
        color: var(--yellow);
        text-shadow: none;
    }
}

.footer__brand p {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer__col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.footer__col a:hover {
    color: var(--yellow);
}

.footer__bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer__links {
        grid-template-columns: 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS — Entrées au scroll (ajoutées via JS)
   ═══════════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

