
/* ============================================================
   POLICES DE LA CHARTE
   General Sans : typographie principale.
   Lora : typographie secondaire, exclusivement en Medium italique.
   ============================================================ */

@font-face {
    font-family: "General Sans";
    src: url("/Assets/Fonts/GeneralSans-Variable.woff2") format("woff2");
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "General Sans";
    src: url("/Assets/Fonts/GeneralSans-VariableItalic.woff2") format("woff2");
    font-weight: 200 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Lora";
    src: url("/Assets/Fonts/Lora-MediumItalic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Icônes Material Symbols, hébergées sur le site (sous-ensemble des 3 icônes
   utilisées en front : data_loss_prevention, hearing_aid, edit_square).
   font-display: block et non swap : avec une police à ligatures, un swap
   afficherait le nom de l'icône en toutes lettres le temps du chargement. */
@font-face {
    font-family: "Material Symbols Outlined";
    src: url("/Assets/Fonts/MaterialSymbols-Subset.woff2") format("woff2");
    font-weight: 100 700;
    font-style: normal;
    font-display: block;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}


/* ============================================================
   VARIABLES & RESET
   ============================================================ */

:root {
    --color-primary:       #29338a;
    --color-primary-dark:  #1a174d;
    --color-primary-light: #1a174d;
    --color-accent:        #f5eddb;
    --color-accent-light:  #d4e8fa;    --color-bg:            #fffcfa;
    --color-beige:         #f5eddb; /* Beige de la charte */
    --color-bleu-ciel:     #d4e8fa; /* Bleu ciel de la charte */
    --color-bleu-profond:  #1a174d; /* Bleu profond de la charte */
    --color-bleu-medium:   #29338a; /* Bleu medium de la charte */
    --color-bleu-clair:    #3b5ca6; /* Bleu clair de la charte */
    --color-blanc-casse:   #fffcfa; /* Blanc cassé de la charte */
    --color-rouge:         #dc3226; /* Rouge de la charte (arc du logo) */
    --color-lien:          #1e6b3a; /* Vert des liens dans les textes (6,6:1 sur blanc) */
    --color-white:         #ffffff;
    --color-text:          #1a174d;
    --color-muted:         #3b5ca6;
    --color-overlay:       rgba(0, 0, 0, 0.1);


    --shadow-neumorphic:
        inset 6px 6px 12px rgba(12, 52, 112, 0.2),
        inset -6px -6px 12px rgba(250, 250, 250, 0.7);
    --shadow-neumorphic-sm:
        3px 3px 6px rgba(12, 52, 112, 0.15),
        -3px -3px 6px rgba(255, 255, 255, 0.7);
    --shadow-card-glow:
        0 0 5px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(255, 255, 255, 0.2),
        4px 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-soft:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.08);

    --radius-sm:  0.8rem;
    --radius-md:  1rem;
    --radius-lg:  1.5rem;

    --transition-base:  0.3s ease;
    --transition-slow:  0.5s ease;
    --transition-cubic: 1s cubic-bezier(0.22, 1, 0.36, 1);

    --font-texte:  "General Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-accent: "Lora", Georgia, "Times New Roman", serif;
}

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

img {
    max-width: 100%;
    display: block;
}

/* Les champs et boutons n'héritent pas de la police par défaut */
button,
input,
select,
textarea {
    font-family: inherit;
}

/* Charte : titres en General Sans Medium, jamais en gras */
h1, h2, h3, h4, h5, h6, th {
    font-weight: 500;
}

/* Emphase dans le texte courant */
strong, b {
    font-weight: 600;
}

/* Charte : « début du titre » en General Sans, « fin du titre » en Lora Medium italique */
h1 em, h2 em, h3 em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
}


/* ============================================================
   LAYOUT DE BASE
   ============================================================ */

html,
body { overflow-x: clip; }

body,
main {
    display: flex;
    flex-direction: column;
    font-family: var(--font-texte);
    font-weight: 500;
}

/* Écart unique entre toutes les sections : c'est la seule source de l'espacement
   vertical, les sections n'ont pas de padding propre (sauf celles à fond photo,
   où le padding est du décor interne). À ne pas poser sur body : cela créerait
   un vide entre le header et main. */
main {
    gap: 7rem;
    /* Même écart avant le footer. Posé en padding sur main (et non en marge sur
       le footer) pour que le fond dégradé de main couvre cet espace : sinon la
       limite du dégradé devient une ligne nette au-dessus du footer. */
    padding-bottom: 7rem;
}

main {
    background: radial-gradient(ellipse 1600px 1000px at top left, #e8f3ff, #ffffff 45%, #d6ecf8);
    background-attachment: fixed;
}

.main-backoffice{
    font-family: var(--font-texte);
}

@media (max-width: 1024px) {
    /* En "scroll" (contrairement à "fixed"), le dégradé se peint par rapport à la
       hauteur totale de main, pas au viewport. Quelle que soit la taille fixe choisie,
       il y a toujours une zone plate au-delà (dégradé "terminé") sur une page aussi
       longue qu'une home. Solution : une taille non bornée (par défaut, calculée sur
       la hauteur réelle de main) et seulement 2 teintes de bleu, sans palier blanc —
       la transition court alors sur toute la hauteur de la page, jamais plate,
       jamais de bande blanche qui tombe mal au milieu d'une section. */
    main {
        background-attachment: scroll;
        background: radial-gradient(ellipse at top left, #e8f3ff, #d6ecf8);
    }
}

/* iOS ne gère pas background-attachment: fixed, quelle que soit la largeur
   (ex. iPad Pro 12.9" paysage = 1366px, au-dessus des paliers ci-dessus) */
@media (hover: none) {
    .section-actions,
    .section-gammes,
    .article-intro-title,
    main { background-attachment: scroll; }
}

/* Même écart unique, resserré sur mobile */
@media (max-width: 900px) {
    main { gap: 4.5rem; padding-bottom: 4.5rem; }
}

.section {
    display: flex;
    flex-direction: column;
    /* Titre -> contenu : 3rem partout. L'espace entre sections vient du gap de main ;
       seules les sections à fond photo gardent une marge interne (décor). */
    gap: 3rem;
    padding-block: 0;
}

h2 {
    font-size: 64px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    color: var(--color-text);
}

@media (max-width: 1024px) {
    h2 { font-size: 48px; }
}

@media (max-width: 768px) {
    h2 { font-size: 40px; }
}

h3 { line-height: 1.3; }


/* ============================================================
   ÉLÉMENTS COMMUNS RÉUTILISABLES
   ============================================================ */

.section-subtitle {
    max-width: 620px;
    margin: -1.5rem auto 0;
    text-align: center;
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-muted);
}

/* Mobile : même marge latérale que le contenu des pages (1,5 rem) */
@media (max-width: 768px) {
    .section-subtitle { padding-inline: 1.5rem; }
}

/* Petits carrés décoratifs */
.section-titlePage .titlePage-carre,
.a-propos-carre,
.produits-carre,
.etapes-carre,
.gammes-caree,
.article-carre,
.review-carre,
.contact-carre {
    width: 15px;
    height: 15px;
    margin: auto;
}

.section-titlePage .titlePage-carre,
.a-propos-carre,
.produits-carre,
.article-carre,
.review-carre,
.contact-carre {
    background-color: var(--color-primary);
}

.etapes-carre,
.gammes-caree,
.engagements-carre {
    background-color: var(--color-white);
}

/* Séparateurs */
.a-propos-separator,
.contact-separator {
    background-color: var(--color-accent);
    width: 1px;
    height: auto;
}

.a-propos-separator {
    background-color: var(--color-beige); /* Beige de la charte */
    width: 2px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 1.3s ease 0.3s;
}

.section-a-propos.is-visible .a-propos-separator { opacity: 1; }

/* Texte */
.bold-seo { font-weight: 600; }

.a-propos-content p { font-weight: 500; }


/* ============================================================
   TITLE PAGE
   ============================================================ */

.section-titlePage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.section-titlePage .titlePage {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--color-primary);
    font-size: 60px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.section-titlePage .titleHeader {
    color: var(--color-text);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.section-titlePage .titlePage-meta {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.section-titlePage .titlePage-carre { margin-top: 2rem; }

@media (max-width: 768px) {
    .section-titlePage {
        margin-inline: 1rem;
        margin-bottom: 3rem;
    }
    .section-titlePage .titlePage {
        font-size: 45px;
        margin-top: 1rem;
    }
    .section-titlePage .titleHeader { font-size: 28px; }
}

/* ============================================================
   HEADER
   ============================================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-block: 1.4rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Même hauteur et mêmes marges que l'en-tête du site : le padding vertical
   (1,4 rem, 0,9 rem sur mobile) et les marges de .header sont ceux de header. */
.header-admin{
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* Icônes plus hautes que les onglets du site : sans ce padding, la barre reste
   à la hauteur du logo, comme sur le site. */
.header-admin .header-onglets-list { padding-block: 0; }

header.scrolled {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    margin-inline: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 40px;
    font-weight: 500;
}

.header-logo a {
    text-decoration: none;
    display: flex;
    color: var(--color-text);
    gap: 0.2rem;
}

.header-admin a{
    color: var(--color-white);
    text-decoration: none;
}

.header-logo a img {
    height: 50px;
    width: auto;
    margin-top: auto;
    /* Aligne le centre du « e » de France (55,2 % de la hauteur du SVG)
       sur le centre du « B » des onglets, quelle que soit la hauteur du logo. */
    transform: translateY(-5%);
}

.header-logo-admin-title{
    font-size: 34px;
    font-weight: 500;
}

.header-onglets {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.8rem;
}

.header-onglets-list {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
    font-size: 16px;
    letter-spacing: -0.3px;
    color: var(--color-white);
    padding: 0.3rem 0;
}

.header-consultation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Pages d'annonce : numéro du centre à la place du bouton questionnaire */
.header-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    margin-left: auto;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--color-bleu-medium);
    text-decoration: none;
}

.header-tel:hover { color: var(--color-bleu-profond); }

.header-tel-icone {
    fill: none;
    stroke: var(--color-rouge);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .header-tel { font-size: 15px; margin-right: 0.75rem; }
}

/* « Prendre rendez-vous » (pages classiques) : bouton bleu, texte et icône blancs */
.header-rdv {
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    background: var(--color-bleu-medium);
    color: var(--color-blanc-casse); /* 10,6:1 sur le bleu medium */
    font-size: 15px;
    transition: background var(--transition-base);
}

.header-rdv:hover { background: var(--color-bleu-profond); color: var(--color-blanc-casse); }
.header-rdv .header-tel-icone { stroke: currentColor; }

/* Petits écrans : le bouton ne garde que l'icône (nom donné par aria-label) */
@media (max-width: 480px) {
    .header-rdv { padding: 0.6rem; }
    .header-rdv-texte { display: none; }
}

.header-onglets-list .header-simple-onglet {
    cursor: pointer;
    font-weight: 500;
    border-radius: var(--radius-sm);
    /* text-align: center; */
}

.header-nav-link {
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-bleu-medium); /* Bleu medium de la charte : 10,9:1 sur blanc */
    width: 100%;
    height: 100%;
    padding: 0.5rem 0;
    transition: none;
    white-space: nowrap;
}

.header-nav-link:active,
.header-nav-link:focus,
.header-nav-link.active {
    color: var(--color-bleu-medium);
}

/* Survol : le bleu profond, et non le beige — illisible sur l'en-tête clair */
.header-nav-link:hover,
.header-nav-link.active {
    color: var(--color-bleu-profond);
}

/* Burger */
.burger-icon {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-icon span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    display: block;
    transition: all var(--transition-base);
}

.burger-icon.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-icon.active span:nth-child(2) { opacity: 0; }
.burger-icon.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.menu-overlay { display: none; }

/* Entre 1 151 et 1 340 px (dont les écrans affichés à 125 % sous Windows), la barre
   reste sur une ligne malgré les 4 menus : logo, onglets et bouton sont resserrés.
   En dessous de 1 150 px, elle passe sur deux lignes (bloc suivant). */
@media (min-width: 1151px) and (max-width: 1340px) {
    .header-logo a img { height: 40px; }
    .header-onglets-list { font-size: 15px; gap: 1.1rem; }
    .header-nav-link,
    .dropdown-toggle { letter-spacing: 0.2px; }
    .button-consultation { padding: 0.65rem 1rem; }
    .button-consultation a { font-size: 13px; }
}

@media (max-width: 1150px) {
    .header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-logo {
        justify-content: center;
        width: 100%;
    }

    .header-onglets {
        justify-content: center;
        width: 100%;
    }

    .header-onglets-list {
        justify-content: center;
    }

    .header-consultation {
        align-self: flex-end;
    }
}

/* Dropdown */
/* Volontairement « static » : le panneau se positionne alors par rapport
   à l'en-tête, qui occupe toute la largeur, et non par rapport à l'onglet. */
.has-dropdown { position: static; }

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: var(--color-bleu-medium);
    padding: 0.5rem 0;
}

.dropdown-arrow {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform var(--transition-base);
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.dropdown-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: calc(100% + 14px);
    /* Centré sur la largeur de la page, quel que soit l'onglet survolé */
    left: 50%;
    width: 640px;
    max-width: calc(100vw - 2rem);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem 0.8rem;
    list-style: none;
}

.dropdown-menu-list li { width: 100%; }

.dropdown-menu-list li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.dropdown-menu-list li a:hover {
    background: rgba(12, 52, 112, 0.06);
    color: var(--color-primary);
    transform: translateX(4px);
}

.dropdown-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 1.4rem 1.6rem;
    background: #eef3fb;
    border-radius: var(--radius-md);
}

.dropdown-banner-text {
    margin: 0;
    color: #1a174d; /* Bleu profond : contraste 13,1:1 sur le bleu ciel */
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.dropdown-cta {
    flex-shrink: 0;
    padding: 0.85rem 1.8rem;
    background: var(--color-bleu-medium); /* Bleu medium de la charte */
    color: var(--color-blanc-casse);       /* 10,6:1 sur ce bleu */
    text-decoration: none;
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid var(--color-bleu-medium);
    border-radius: 0.9rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.dropdown-cta:hover {
    background: var(--color-bleu-profond);
    border-color: var(--color-bleu-profond);
    box-shadow: var(--shadow-neumorphic-sm);
    transform: translateY(2px);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

@media (max-width: 1024px) {
    .dropdown-menu { width: min(520px, calc(100vw - 3rem)); }
    .dropdown-menu-list { grid-template-columns: repeat(2, 1fr); }
    .dropdown-banner-text { font-size: 1.05rem; }
    .dropdown-cta { padding: 0.8rem 1.4rem; font-size: 1rem; }
}

/* Header responsive */
@media (max-width: 900px) {
    .header { margin-inline: 1.5rem; }
    .header-logo { font-size: 37px; }
    .header-onglets-list { font-size: 15px; }
}

@media (max-width: 768px) {
    header.scrolled { transform: none; }
    header { padding-block: 0.9rem; }

    .header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .header-logo {
        z-index: 1002;
        font-size: 40px;
        text-align: start;
        width: auto;
        justify-content: flex-start;
    }

    .header-logo a img {
        height: 40px;
        margin-bottom: 0.2rem;
    }

    .burger-icon {
        display: flex;
        z-index: 1002;
    }

    .header-onglets {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: #fffcfa;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        padding-block: 6rem 2rem;
        transition: opacity var(--transition-base);
        z-index: 1001;
    }

    .header-onglets.open {
        opacity: 1;
        pointer-events: all;
    }

    /* Menu ouvert : la page ne défile plus (le menu, lui, défile s'il est long,
       sans entraîner la page). Le flou du header est retiré : un backdrop-filter
       ferait du header le cadre du menu « fixed », qui ne couvrirait plus l'écran. */
    html.menu-ouvert { overflow: hidden; }
    html.menu-ouvert #mySidenav { overscroll-behavior: contain; }
    html.menu-ouvert header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header-onglets-list {
        flex-direction: column;
        gap: 3rem;
        font-size: 28px;
        font-weight: 500;
    }

    .header-consultation { display: none; }

    /* Back-office — annule le comportement burger du header public */
    .header-admin .header-onglets {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        justify-content: flex-end;
        opacity: 1;
        pointer-events: all;
        transition: none;
        z-index: auto;
    }

    .header-admin .header-onglets-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.2rem;
        font-size: 14px;
        font-weight: 500;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: all;
    }

    /* Chaque onglet occupe toute la largeur : le sous-menu se centre sur l'écran
       et non sur le libellé (il débordait à gauche), et les libellés longs
       (« Nos méthodes d'adaptation ») passent à la ligne au lieu de déborder. */
    #mySidenav .header-onglets-list {
        width: 100%;
        align-items: stretch;
        padding-inline: 1.5rem;
        /* Centré quand le menu tient dans l'écran ; sinon calé en haut et le
           panneau défile (un justify-content: center rendrait le haut inaccessible). */
        margin-block: auto;
        /* 24 px au lieu de 28 : « Nos méthodes d'adaptation » tient sur une ligne. */
        font-size: 24px;
    }

    #mySidenav { justify-content: flex-start; }

    /* Un sous-menu ouvert ne doit jamais être comprimé pour tenir dans l'écran :
       avec overflow: hidden, il se laissait écraser sous la hauteur de son contenu. */
    #mySidenav .header-onglets-list,
    #mySidenav .has-dropdown,
    #mySidenav .dropdown-menu { flex-shrink: 0; }

    .has-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .has-dropdown .header-nav-link {
        width: auto;
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    /* Onglet sans sous-menu (« Tarifs ») : centré comme les autres */
    #mySidenav .header-simple-onglet:not(.has-dropdown) { text-align: center; }

    /* Sous-menu : toujours une fenêtre flottante centrée, hors de la liste du menu
       (il ne la pousse jamais). Fermé, il est seulement transparent ; l'ouverture
       et la fermeture sont un fondu, comme le menu burger. */
    .dropdown-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        z-index: 3;
        width: min(420px, calc(100% - 2rem));
        max-height: calc(100dvh - 7rem);
        margin-top: 0;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 20px 50px rgba(26, 23, 77, 0.28);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    /* Fermé : masqué, y compris quand l'onglet garde le focus ou le « survol »
       qu'un écran tactile laisse après un toucher */
    .has-dropdown:not(.open) .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, -46%) scale(0.98);
    }

    .dropdown-menu-list { grid-template-columns: repeat(2, 1fr); }

    .dropdown-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.1rem 1.2rem;
    }

    /* Sous-menu ouvert : fenêtre posée au-dessus du menu, centrée à l'écran,
       sur un voile ; un toucher en dehors (voile compris) la referme. */
    .has-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Voile derrière la fenêtre : toujours présent, il apparaît et disparaît en fondu */
    #mySidenav::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 2;
        background: rgba(26, 23, 77, 0.35);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    #mySidenav:has(.has-dropdown.open)::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 530px) {
    .header-logo { font-size: 35px; }
    .header-logo a { gap: 0.1rem; }
    .header-logo a img {
        height: 40px;
        margin-bottom: -0.1rem;
    }
}




/* ============================================================
   SECTION INTRO (HERO)
   ============================================================ */

.section-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.intro {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 2;
    margin-inline: 4rem;
    margin-top: 0.5rem;
}

.section-intro h1 {
    font-size: 18px;
    color: rgb(140, 140, 140);
}

.intro-title {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 90%;
    color: var(--color-text);
    margin-top: 0;
}

.intro-infos {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.title-presentation {
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -3px;
    opacity: 0;
    color: var(--color-bleu-profond);
    text-align: start;
    transform: translateY(-60px);
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.intro-title .title-undertitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 20px;
    font-weight: 500;
    opacity: 0;
    color: #617086;
    transform: translateX(-120%);
}

/* Boutons du hero : principal en bleu medium, second en contour */
.intro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.intro-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.7rem;
    border: 1px solid var(--color-bleu-medium);
    border-radius: 999px;
    background: var(--color-bleu-medium);
    color: var(--color-blanc-casse);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.intro-cta:hover {
    background: var(--color-bleu-profond);
    border-color: var(--color-bleu-profond);
    transform: translateY(-2px);
}

.intro-cta--ligne {
    background: transparent;
    color: var(--color-bleu-medium);
}

.intro-cta--ligne:hover {
    background: var(--color-bleu-ciel);
    border-color: var(--color-bleu-medium);
    color: var(--color-bleu-profond);
}

.intro-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    gap: 0.7rem;
    opacity: 0;
    transform: translateY(-20px);
}

.intro-rating-icons {
    display: flex;
    align-items: center;
}

.intro-rating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-white);
}

.intro-rating-icon--google {
    background: var(--color-white);
    color: #4285f4;
    border-color: var(--color-bg);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.intro-rating-score {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
}

/* « · 46 avis Google » : même gris que le sous-titre « Notre engagement… » */
.intro-rating-avis { color: #617086; }

.intro-features {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    margin-top: 4.5rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 3rem;
}

.intro-tabs-toggle { display: none; }

.intro-features-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 0.6rem;
}

.intro-feature-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    border: 1px solid rgba(12, 52, 112, 0.15);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.intro-feature-btn:hover,
.intro-feature-btn.is-active {
    background: #29338a;
    border-color: #29338a;
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

/* Hero : barre d'onglets grise en tête de carte, onglet actif en pilule blanche.
   Au-dessus de 900 px seulement : en dessous, la liste déroulante garde son style.
   Les onglets de « Nos offres » ne sont pas concernés (sélecteurs scopés). */
@media (min-width: 901px) {
    .intro-features .intro-tabs-dropdown {
        margin: -1.5rem -3rem 0;
        padding: 0.6rem;
        background: #eeeeee;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .intro-features .intro-features-tabs {
        flex-wrap: nowrap;
        justify-content: space-around;
        gap: 0.25rem;
    }

    .intro-features .intro-feature-btn {
        padding: 0.75rem 1.2rem;
        border: 0;
        border-radius: 1.25rem;
        background: transparent;
        color: #5f5f5f;
        font-size: 16px;
        font-weight: 600;
        box-shadow: none;
    }

    .intro-features .intro-feature-btn:hover {
        background: transparent;
        color: var(--color-text);
        box-shadow: none;
    }

    .intro-features .intro-feature-btn.is-active {
        background: var(--color-white);
        color: #29338a; /* Bleu medium de la charte */
        box-shadow: none;
    }

    .intro-features .intro-feature-panel-wrap {
        margin-top: 1.5rem;
        padding-top: 0;
        border-top: 0;
    }
}

@media (min-width: 901px) and (max-width: 1024px) {
    .intro-features .intro-tabs-dropdown { margin: -1.25rem -1.5rem 0; }
    .intro-features .intro-features-tabs { flex-wrap: wrap; justify-content: center; }
    .intro-features .intro-feature-btn { padding: 0.7rem 0.9rem; font-size: 15px; }
}

.intro-feature-panel-wrap {
    display: none;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(12, 52, 112, 0.1);
}

.intro-feature-panel-wrap.is-open { display: block; }

.intro-feature-panel {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.intro-feature-subitems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.7rem;
    list-style: none;
    margin-top: 1.1rem;
}

.intro-feature-subitem {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: transform var(--transition-base), background var(--transition-base);
}

.intro-feature-subitem:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.intro-title.show { gap: 2rem; height: fit-content; }

.intro-title.show .title-presentation,
.intro-title.show .intro-rating {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-title.show p {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s,
                transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.button-consultation,
.tel-consultation {
    background: #fffcfa;
    font-weight: 500;
    font-size: 14px;
    padding: 0.55rem 0.9rem;
    width: fit-content;
    white-space: nowrap;
    border-radius: 0.7rem;
    border: 1px solid rgb(200, 200, 200);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.tel-consultation { background-color: var(--color-primary-dark); }

.button-consultation a,
.tel-consultation a {
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
}

.button-consultation {
    background: var(--color-bleu-medium); /* Bleu medium de la charte */
    border-color: var(--color-bleu-medium);
    padding: 0.8rem 1.4rem;
    border-radius: 0.9rem;
}

.button-consultation a {
    color: var(--color-blanc-casse); /* 10,6:1 sur le bleu medium */
    font-size: 15px;
    font-weight: 600;
}
.tel-consultation a    { color: var(--color-white); background-color: var(--color-primary-dark); }

.button-consultation:hover { background: var(--color-bleu-profond); border-color: var(--color-bleu-profond); }

.button-consultation:hover,
.tel-consultation:hover {
    box-shadow: var(--shadow-neumorphic-sm);
    transform: translateY(2px);
}

/* Splide */
.intro-splider {
    position: relative;
    width: 80%;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    /* Le liseré beige dépasse du cadre : c'est .splide qui rogne les photos */
    isolation: isolate;
}

/* Liseré beige en bas à droite du carrousel (charte : le beige en petite touche) */
.intro-splider::before {
    content: "";
    position: absolute;
    left: 35%;
    right: -1.1rem;
    bottom: -1.1rem;
    height: 38%;
    border-radius: var(--radius-md);
    background: var(--color-beige);
    z-index: -1;
}

.splide {
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.splide__list img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    /* Garde les deux visages dans le cadre, en bandeau large comme en format haut (mobile) */
    object-position: 55% 40%;
}

.splide__arrow--prev { display: none; }

.splide__pagination.splide__pagination--ltr { z-index: 1000; }

.splide .splide__pagination__page {
    width: 30px;
    height: 12px;
    background: gray;
    border-radius: 0.5rem;
    opacity: 1 !important;
    transition: all var(--transition-base);
    z-index: 1000;
}

.splide__pagination__page.is-active {
    background: var(--color-accent) !important;
    width: 12px;
    opacity: 1 !important;
}

/* Bande logos */
.intro-bandeLogo {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* De la place pour le logo agrandi au survol (80 px -> 90 px), sinon la bande le rogne */
    padding-block: 1.25rem;
    /* Le padding est annulé en bas, pour que le bas visible des logos coïncide
       avec le bas de la section : l'écart inter-sections reste celui de main. */
    margin-top: 2.25rem;
    margin-bottom: -1.25rem;
    /* Pas de mask-image ici : le masque isole la bande sur son propre calque,
       et le cadre du logo agrandi au survol devenait visible. */
}

.intro-bandeLogo-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: logoScroll 30s linear infinite;
    will-change: transform;
}

.intro-bandeLogo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.intro-bandeLogo-img {
    width: 200px;
    height: 80px;
    margin: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
    transform-origin: center;
    cursor: pointer;
}

.intro-bandeLogo-img:hover { transform: scale(1.12); }

@keyframes logoScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .intro-bandeLogo-track {
        gap: 2rem;
        animation-duration: 20s;
    }
    .intro-bandeLogo-img {
        width: 140px;
        height: 60px;
    }
}

/* Intro responsive */
@media (max-width: 1024px) { .title-presentation { font-size: 56px; } }
@media (max-width: 1024px) {
    .intro-features { margin-inline: 1.5rem; width: auto; padding: 1.25rem 1.5rem; }
}
@media (max-width: 900px) {
    /* Photo en fond plein cadre, titre superposé en haut, carte des onglets
       qui chevauche le bas de la photo (comme une hero card classique) */
    .section-intro { gap: 0; }

    .intro {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 1.75rem 0 0;
        padding-inline: 0;
    }

    .intro-splider {
        position: relative;
        width: auto;
        margin: 0 1.5rem;
        border-radius: var(--radius-lg);
        /* Pas de liseré beige ici : la photo occupe toute la largeur */
        box-shadow: var(--shadow-soft);
    }

    /* Photo juste assez haute pour le titre et les boutons superposés ;
       la carte des onglets passe en dessous (elle ne chevauche plus la photo) */
    .splide__list img { height: 500px; }

    /* Pas de liseré beige sur mobile : la photo occupe toute la largeur */
    .intro-splider::before { display: none; }

    .intro-splider::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(180deg,
            rgba(6, 20, 46, 0.8) 0%,
            rgba(6, 20, 46, 0.6) 45%,
            rgba(6, 20, 46, 0.35) 70%,
            rgba(6, 20, 46, 0.05) 92%,
            transparent 100%);
        pointer-events: none;
    }

    /* Rentré comme la carte des onglets (même inset de 3.5rem) */
    .intro-title {
        position: absolute;
        top: 1.5rem;
        left: 3.5rem;
        right: 3.5rem;
        z-index: 2;
        width: auto;
        margin-top: 0;
        padding: 1.25rem 1.5rem;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    }

    /* Le fade-in JS (opacity/transform différés d'une classe .show ajoutée au
       chargement) laisse le texte semi-transparent le temps de la transition ;
       sur cette mise en page superposée à la photo il doit être net immédiatement
       (même logique que .section-etapes / .section-accompagnement en mobile) */
    .title-presentation,
    .intro-rating,
    .title-undertitle {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .section-intro h1 { color: rgba(255, 255, 255, 0.9); }
    .title-presentation { font-size: 40px; letter-spacing: -1px; color: var(--color-white); }
    .intro-title .title-undertitle,
    .intro-rating-avis { color: var(--color-white); }
    .intro-rating-score { color: var(--color-white); }
    .intro-rating-icon--google { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
    .intro-rating { align-self: flex-end; }

    /* Les boutons sont posés sur la photo : le second passe en contour blanc */
    .intro-actions { gap: 0.6rem; }
    .intro-cta { padding: 0.75rem 1.2rem; font-size: 15px; }
    .intro-cta--ligne {
        border-color: rgba(255, 252, 250, 0.8);
        color: var(--color-blanc-casse);
    }
    .intro-cta--ligne:hover {
        background: rgba(255, 252, 250, 0.16);
        border-color: var(--color-blanc-casse);
        color: var(--color-blanc-casse);
    }

    /* Carte des onglets sous la photo, alignée sur ses bords */
    .intro-features {
        position: relative;
        z-index: 3;
        margin-top: 1.25rem;
        margin-inline: 1.5rem;
        width: auto;
        padding: 1.25rem 1.5rem;
    }

    /* Éloigne la bande logo du bas de la photo, encore visible derrière la carte */
    .intro-bandeLogo { margin-top: 3rem; }

    /* Barre d'onglets → menu déroulant compact (même mécanique que "Nos offres") :
       le bouton affiche l'onglet actif, la liste apparaît au clic par-dessus le
       reste de la carte. */
    .intro-tabs-dropdown { position: relative; }

    .intro-tabs-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        padding: 0.9rem 1.1rem;
        border: 1px solid rgba(12, 52, 112, 0.15);
        border-radius: var(--radius-sm);
        background: var(--color-bg);
        color: var(--color-primary);
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
    }

    .intro-features.dropdown-open .intro-tabs-toggle .dropdown-arrow {
        transform: rotate(-135deg);
        margin-top: 3px;
    }

    .intro-features .intro-features-tabs {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.2rem;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.5rem);
        background: var(--color-white);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-soft);
        padding: 0.5rem;
        z-index: 20;
    }

    .intro-features.dropdown-open .intro-features-tabs {
        display: flex;
    }

    .intro-features .intro-features-tabs li {
        width: 100%;
        list-style: none;
    }

    .intro-features .intro-feature-btn {
        display: flex;
        width: 100%;
        padding: 0.8rem 0.9rem;
        border: none;
        border-radius: var(--radius-sm);
        background: none;
        color: var(--color-text);
        font-size: 15px;
        font-weight: 500;
        text-align: left;
        box-shadow: none;
    }

    .intro-features .intro-feature-btn:hover,
    .intro-features .intro-feature-btn.is-active {
        background: rgba(12, 52, 112, 0.06);
        border-color: transparent;
        color: var(--color-primary);
        box-shadow: none;
    }

    .intro-feature-panel-wrap { margin-top: 1rem; padding-top: 1rem; }
    .intro-feature-panel { font-size: 17px; }
}
@media (max-width: 768px) {
    .splide__pagination.splide__pagination--ltr { padding-bottom: 1rem; }
}

@media (max-width: 700px) {
    /* Même principe que la tablette (photo plein cadre, titre superposé, carte qui
       chevauche le bas de la photo) mais redimensionné pour un écran de téléphone :
       marges, tailles de texte et hauteur de photo réduites en conséquence. */
    .intro {
        margin: 1rem 0 0;
    }

    .intro-splider {
        margin: 0 1rem;
    }

    .splide__list img { height: 500px; }

    .intro-title {
        top: 1.25rem;
        left: 1.75rem;
        right: 1.75rem;
        padding: 0;
        text-align: center;
    }

    .title-presentation {
        font-size: 30px;
        letter-spacing: -0.5px;
        text-align: center;
    }

    .intro-title .title-undertitle { font-size: 14px; }

    .intro-rating { align-self: center; justify-content: center; }
    /* Les deux boutons centrés sous le texte, comme le titre et la note */
    .intro-actions { align-self: stretch; justify-content: center; }
    .intro-rating-icon { width: 36px; height: 36px; font-size: 18px; }
    .intro-rating-score { font-size: 18px; }

    /* Carte sous la photo, alignée sur ses bords */
    .intro-features {
        margin-top: 1rem;
        margin-inline: 1rem;
        padding: 1rem 1.1rem;
    }

    .intro-tabs-toggle { font-size: 14px; padding: 0.8rem 1rem; }
    .intro-feature-btn { font-size: 13px; padding: 0.5rem 0.9rem; }
    .intro-feature-panel { font-size: 16px; }

    .splide__pagination.splide__pagination--ltr { display: none; }
}


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


.visibility-content { display: flex; }

.visibility-stats {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: auto;
    /* box-shadow: var(--shadow-soft); */
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.visibility-card {
    flex: 1 1 300px;
    text-align: center;
    padding: 2.5rem;
    border: 1px solid rgb(200, 200, 200);
    border-left: none;
    background: #fff;
}

.visibility-card:first-child {
    border-left: 1px solid rgb(200, 200, 200);
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.visibility-card:last-child {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.section-visibility span.num {
    display: grid;
    place-items: center;
    font-weight: 500;
    font-size: 3em;
}

span.text {
    color: #d4e8fa;
    font-size: 1.1em;
    text-align: center;
    padding: 0.7em 0;
    font-weight: 500;
    line-height: 1.4;
}

.stat-nubmer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.stat-number-pourcent,
.stat-number {
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.visibility-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #1a174d;
}

.visibility-card p {
    font-size: 1.05rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.visibility-score-start {
    color: #29338a;
    font-size: 40px;
}

.visibility-score p {
    height: fit-content;
    margin-top: auto;
    font-size: 14px;
}

.visibility-score span { width: fit-content; }

/* Google colors */
.visibility-blue   { color: #4285F4; }
.visibility-red    { color: #EA4335; }
.visibility-green  { color: #34A853; }
.visibility-yellow { color: #FBBC05; }

@media (max-width: 1000px) {

    .visibility-stats {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        gap: 1rem;
    }

    .visibility-card {
        border-radius: 3rem;
        border: 1px solid rgb(220, 220, 220);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        border-left: 1px solid rgb(220, 220, 220);
    }

    /* reset des effets "table row" desktop */
    .visibility-card:first-child,
    .visibility-card:last-child {
        border-radius: 3rem;
    }

    .section-visibility span.num {
        font-size: 2.2em;
    }

    .stat-number-pourcent,
    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 700px) {

    .stat-number,
    .stat-number-pourcent { font-size: 2rem; }
    .visibility-card h3 { font-size: 1.05rem; }
    .visibility-card p  { display: block; font-size: 0.95rem; line-height: 1.4; }
    .visibility-score-start { font-size: 30px; }
}

@media (max-width: 480px) {
    .visibility-card { padding: 1.2rem 0.8rem; }
    .stat-number,
    .stat-number-pourcent { font-size: 1.7rem; }
    .visibility-card h3 { font-size: 1rem; }
    .visibility-card p  { font-size: 0.9rem; }
}


/* ============================================================
   SECTION À PROPOS
   ============================================================ */

/* Deux colonnes : photo du centre à gauche, texte et atouts à droite */
.a-propos-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-inline: 4rem;
}

/* Cadre fixe ; la photo, plus haute que lui, y glisse au défilement (parallaxe, main.js) */
.a-propos-cadre {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.a-propos-photo {
    position: absolute;
    left: 0;
    top: -12%;
    width: 100%;
    height: 124%; /* 12 % de marge en haut et en bas pour le déplacement */
    object-fit: cover;
    will-change: transform;
}

.a-propos-texte {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.section-a-propos h2 {
    color: var(--color-text);
    text-align: left;
}

.a-propos-texte p {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    color: #617086;
}

.a-propos-atouts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.4rem 0 0;
    padding: 0;
}

.a-propos-atouts li {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: var(--color-white); /* le bleu ciel se confondait avec le fond de page */
    color: var(--color-bleu-profond);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .a-propos-grille {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-inline: 1.5rem;
    }
    .a-propos-cadre { height: 300px; }
    .section-a-propos h2 { font-size: 40px; }
    .a-propos-texte p { font-size: 16px; }
}

/* Mobile : titre au-dessus de la photo, texte et badges centrés.
   Le bloc texte s'efface (display: contents) pour que le titre puisse passer
   avant la photo dans la grille, sans toucher au HTML. */
@media (max-width: 768px) {
    .a-propos-grille { gap: 1.25rem; }
    .a-propos-texte { display: contents; }
    .section-a-propos h2 { order: -1; }
    .a-propos-texte p { text-align: center; }
    .a-propos-atouts { justify-content: center; }
}


/* ============================================================
   SECTION ACCOMPAGNEMENT : trois piliers en colonnes
   Chaque colonne mène à sa page pilier (lien étiré sur le titre) ;
   les liens du bas passent au-dessus et restent cliquables à part.
   ============================================================ */

.section-piliers h2 { color: var(--color-text); }

.piliers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-inline: 4rem;
    align-items: stretch;
}

.pilier {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pilier:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26, 23, 77, 0.12);
}

.pilier-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pilier-etiquette {
    padding: 0.35rem 0.75rem;
    background: var(--color-beige);
    color: var(--color-bleu-profond);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pilier-icone {
    font-size: 28px;
    color: var(--color-bleu-medium);
}

/* Mobile : étiquette beige centrée, icône centrée en dessous */
@media (max-width: 768px) {
    .pilier-entete {
        flex-direction: column;
        justify-content: center;
        gap: 0.6rem;
    }
}

.pilier-titre {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-bleu-profond);
}

/* Lien étiré : toute la colonne mène à la page pilier */
.pilier-lien {
    color: inherit;
    text-decoration: none;
}
.pilier-lien::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.pilier-lien:focus-visible { outline: none; }
.pilier:has(.pilier-lien:focus-visible) { outline: 2px solid var(--color-bleu-medium); outline-offset: 3px; }

.pilier-accroche {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-bleu-profond);
}

.pilier-texte {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    color: var(--color-bleu-clair);
}

.pilier-texte strong { font-weight: 600; color: var(--color-bleu-profond); }

.pilier-etapes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.5rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid #e5e9f2;
    flex: 1; /* liens du bas alignés d'une colonne à l'autre */
}

.pilier-etape-titre {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-bleu-profond);
}

.pilier-etape-texte {
    margin-top: 0.2rem;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.6;
    color: #617086;
}

.pilier-liens {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid #e5e9f2;
}

.pilier-liens a {
    position: relative;
    z-index: 2; /* au-dessus du lien étiré de la colonne */
    color: var(--color-bleu-profond);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.pilier-liens a:hover { color: var(--color-bleu-clair); text-decoration: underline; }

@media (max-width: 1024px) {
    .piliers { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; padding-inline: 1.5rem; }
}

@media (max-width: 600px) {
    .pilier { padding: 1.5rem; }
    .pilier-titre { font-size: 21px; }
}


/* ============================================================
   SECTION PRODUITS
   ============================================================ */

.section-produits h2 {
    color: var(--color-text);
    font-size: 64px;
}

.produits-slogan { font-weight: 500; font-size: 20px; }

.produits-title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}


.produits-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4rem;
    margin-inline: 5rem;
}

.produits-card {
    width: 380px;
    height: 400px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    overflow: hidden;
    text-decoration: none;
}

.produit-img-wrapper {
    position: relative;
    width: 100%;
    height: 90%;
}

.produit-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.3),
        inset -4px -4px 10px rgba(255, 255, 255, 0.1);
}

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

.produit-infos {
    display: flex;
    padding-block: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.marque-produit { font-size: 28px; font-weight: 500; color: black; }
.phonak span    { color: green; }
.resound span   { color: rgb(201, 0, 0); }
.info-produit   { font-size: 18px; margin-top: 0.2rem; color: var(--color-muted); }

@media (max-width: 1270px) {
    .produits-container { gap: 2rem; margin-inline: 2rem; }
    .produits-card { width: 330px; }
}

@media (max-width: 1024px) {
    .produits-container { gap: 2rem; margin-inline: 1.5rem; }
    .produits-card { width: 280px; height: 360px; }
}

@media (max-width: 768px) {
    .section-produits { padding-block: 3rem; padding-inline: 1.5rem; }
    .section-produits h2 { font-size: 40px; text-align: center; margin-inline: 1.5rem; }
    .produits-container { flex-direction: column; align-items: center; gap: 4rem; }
    .produits-card { width: 100%; height: auto; }
    .produit-img-wrapper { height: 300px; }
}

@media (max-width: 480px) {
    .section-produits h2 { font-size: 40px; }
    .produits-slogan { font-size: 18px; text-align: center; }
    .marque-produit { font-size: 24px; }
    .info-produit   { font-size: 16px; }
}


/* ============================================================
   SECTION ACTIONS (bilan auditif / quel appareil / devis / rdv)
   ============================================================ */

.section-actions {
    position: relative;
    gap: 1rem;
    padding-block: 4rem; /* marge interne du fond photo */
    /* Le voile fait partie du fond : posé sur l'image, il l'assombrit vraiment */
    background-image: linear-gradient(180deg,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.18) 45%,
            rgba(0, 0, 0, 0.38) 100%),
        url('/Assets/Images/audio-france-interieur.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


/* « Votre parcours en 3 étapes » : titre sur la photo, trois cartes blanches */
.parcours-entete {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-inline: 4rem;
}

.section-actions-heading {
    color: var(--color-white);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.parcours-sous-titre {
    text-align: center;
    font-size: 19px;
    font-weight: 500;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.parcours-etapes {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 4rem 0; /* 1rem de gap + 2rem = 3rem sous le titre, comme ailleurs */
    padding: 0;
}

.parcours-etape {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.parcours-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--color-bleu-medium);
    color: var(--color-blanc-casse);
    font-size: 20px;
    font-weight: 600;
}

.parcours-titre {
    margin-top: 0.25rem;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-bleu-profond);
}

.parcours-texte {
    flex: 1; /* boutons alignés en bas des trois cartes */
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
    color: #617086;
}

.parcours-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-bleu-medium);
    border-radius: 999px;
    color: var(--color-bleu-medium);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base);
}

.parcours-cta:hover {
    background: var(--color-bleu-ciel);
    color: var(--color-bleu-profond);
}

@media (max-width: 1024px) {
    .section-actions { background-attachment: scroll; }
    .parcours-etape { padding: 1.75rem; }
}

@media (max-width: 900px) {
    .parcours-entete { margin-inline: 1.5rem; }
    .parcours-etapes {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-inline: 1.5rem;
    }
    .parcours-sous-titre { font-size: 17px; }
    .parcours-titre { font-size: 21px; }
}

/* Mobile : tout le contenu des cartes centré (pastille, titre, texte, bouton) */
@media (max-width: 768px) {
    .parcours-etape {
        align-items: center;
        text-align: center;
    }
}


/* ============================================================
   SECTION ÉTAPES
   ============================================================ */

.section-etapes h2 { color: var(--color-text); }

.etapes-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: stretch;
    margin-inline: 4rem;
}

.etape-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 33%;
    flex: 1;
    min-width: 220px;
    color: var(--color-text);
}

.etapes-separator {
    flex: 1;
    height: 2px;
    background: var(--color-beige); /* Beige de la charte */
    margin-top: 5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.etapes-separator.visible { opacity: 1; transform: scale(1); }

.etape-number {
    width: 150px;
    height: 150px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 70px;
    font-weight: 500;
    border-radius: 50%;
    background-color: #ffffff;
    border: 0.3px solid rgb(201, 201, 201);
    /* box-shadow: var(--shadow-soft); */
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.etape-number.visible { opacity: 1; transform: scale(1); }

.etape-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.etape-content.visible { opacity: 1; transform: translateY(0); }
.etape-content h3 { font-size: 30px; font-weight: 500; }
.etape-content p  { font-family: var(--font-accent); font-style: italic; font-size: 18px; font-weight: 500; color: gray; margin-bottom: 0.5rem; }

.etape-card button {
    width: fit-content;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgb(200, 200, 200);
    background: #fffcfa;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
    margin-top: auto;
    align-self: center;
    cursor: pointer;
}

.etape-card button:hover { box-shadow: var(--shadow-neumorphic-sm); transform: translateY(2px); }

.etape-card button a {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}


@media (max-width: 1000px) {
    /* .etapes-container { gap: 2rem; } */
    .etape-content h3 { font-size: 25px; }
    .etape-number{
        width: 140px;
        height: 140px;
        font-size: 50px;
    }
    .etape-card button {
        padding: 0.4rem 0.8rem;
     }
        /* display: none; */

}

@media (max-width: 900px) {
    .section-etapes h2 { font-size: 40px; max-width: 280px; margin-inline: auto; }

    /* Désactivation des animations sur mobile */
    .etapes-separator,
    .etape-number,
    .etape-content {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .etapes-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 3rem 2rem;
    }
    .etape-card { width: 100%; max-width: 420px; }
    .etape-card:last-of-type { grid-column: 1 / -1; }
    .etapes-separator { display: none; }
    .etape-number { width: 150px; height: 150px; font-size: 50px; margin-bottom: 1rem; }
    .etape-content { text-align: center; }
    .etape-content h3 { font-size: 24px; }
    .etape-content p  { font-size: 16px; }
}

@media (max-width: 480px) {
    .section-etapes h2 { font-size: 40px; }
    .etapes-container { grid-template-columns: 1fr; gap: 2rem; }
    .etape-card:last-of-type { grid-column: auto; }
    .etape-card { max-width: 100%; }
    .etape-number { margin: auto; }
}


/* ============================================================
   SECTION OFFRES
   ============================================================ */

.offres-features {
    margin-top: -1.5rem;
    margin-inline: 4rem;
    border-radius: var(--radius-lg);
    /* Conteneur sans fond : pas de padding bas, sinon il s'ajoute en blanc
       à l'écart inter-sections. Le padding haut, lui, sert d'air sous le titre. */
    padding: 1.5rem 3rem 0;
}

.offre-panel-wrap {
    display: none;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.offre-panel-wrap.is-open { display: block; }

.offre-card {
    background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.5rem 2rem;
}

.offre-card-text {
    color: var(--color-white);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 640px;
    margin-bottom: 2rem;
}

.offre-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.offre-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    background: #29338a;
    color: var(--color-white);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.offre-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.offre-more {
    color: var(--color-white);
    font-weight: 500;
    font-size: 15px;
    text-decoration: underline;
}

.offre-subcards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.offre-subcard {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.offre-subcard-image {
    position: absolute;
    inset: 0;
    /* Fond : l'image de la page de l'offre (back-office) ; sans image, aplat bleu profond */
    background-color: var(--color-bleu-profond);
    background-size: cover;
    background-position: center;
}

/* Avec photo : voile sombre en bas pour garder le libellé blanc lisible */
.offre-subcard-image.has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%);
}

.offre-subcard-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 1rem;
    color: var(--color-white);
    font-weight: 500;
    font-size: 21px;
}

.offre-subcard-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

@media (hover: hover) {
    .offre-subcard:hover .offre-subcard-overlay,
    .offre-subcard:focus-within .offre-subcard-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Tactile : pas de survol possible → la photo reste visible, avec juste un
   dégradé bas + texte aligné à gauche + bouton flèche, comme la référence
   (au lieu du fond bleu plein qui masquait la photo) */
@media (hover: none) {
    .offre-subcard-overlay {
        inset: auto 0 0 0;
        align-items: flex-start;
        justify-content: flex-end;
        text-align: left;
        gap: 0.75rem;
        padding: 1.25rem;
        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
        opacity: 1;
        visibility: visible;
    }
    .offre-subcard-label { display: none; }
    .offre-subcard-quote { font-size: 17px; font-weight: 500; text-align: left; }

    .offre-subcard-cta {
        position: relative;
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: 1.5px solid rgba(255, 255, 255, 0.6);
        color: transparent;
        font-size: 0;
    }

    .offre-subcard-cta::after {
        content: "→";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-white);
        font-size: 18px;
        font-weight: 500;
    }
}

.offre-subcard-quote {
    color: var(--color-white);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.4;
}

.offre-subcard-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: var(--color-beige); /* Beige de la charte */
    color: var(--color-bleu-profond); /* Lisible sur le beige : 14,2:1 */
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.offre-subcard-cta:hover { transform: translateY(-2px); }

/* Au survol : cartouche à gauche, lien souligné à droite */
.offre-subcard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
}

.offre-subcard-more {
    color: var(--color-blanc-casse);
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-base);
}

.offre-subcard-more:hover { color: var(--color-beige); }

.offre-subcard.is-hidden-more { display: none; }

.offre-more-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}

.offre-more-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

@media (max-width: 1024px) {
    .offres-features { margin-inline: 1.5rem; padding: 1.5rem 1.5rem 0; }
    .offre-subcards  { grid-template-columns: repeat(3, 1fr); }
}

.offres-tabs-toggle { display: none; }

@media (max-width: 900px) {
    .offre-subcards  { grid-template-columns: repeat(2, 1fr); }

    /* Liste des onglets → menu déroulant : le bouton affiche l'onglet actif,
       la liste apparaît au clic ; choisir un onglet la referme et affiche ses vignettes.
       Sélecteurs scopés à .offres-features : .intro-feature-btn / .intro-features-tabs
       sont partagés avec la barre d'onglets du hero, qui doit garder son style. */
    .offres-features {
        padding: 1.25rem 1.5rem;
    }

    .offres-tabs-dropdown {
        position: relative;
    }

    .offres-tabs-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        padding: 0.9rem 1.1rem;
        border: 1px solid rgba(12, 52, 112, 0.15);
        border-radius: var(--radius-sm);
        background: var(--color-bg);
        color: var(--color-primary);
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
    }

    .offres-features.dropdown-open .offres-tabs-toggle .dropdown-arrow {
        transform: rotate(-135deg);
        margin-top: 3px;
    }

    .offres-features .intro-features-tabs {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.2rem;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.5rem);
        background: var(--color-white);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-soft);
        padding: 0.5rem;
        z-index: 20;
    }

    .offres-features.dropdown-open .intro-features-tabs {
        display: flex;
    }

    .offres-features .intro-features-tabs li {
        width: 100%;
        list-style: none;
    }

    .offres-features .intro-feature-btn {
        display: flex;
        width: 100%;
        padding: 0.8rem 0.9rem;
        border: none;
        border-radius: var(--radius-sm);
        background: none;
        color: var(--color-text);
        font-size: 15px;
        font-weight: 500;
        text-align: left;
        box-shadow: none;
    }

    .offres-features .intro-feature-btn:hover,
    .offres-features .intro-feature-btn.is-active {
        background: rgba(12, 52, 112, 0.06);
        border-color: transparent;
        color: var(--color-primary);
        box-shadow: none;
    }

    .offre-panel-wrap {
        margin-top: 1.5rem;
        padding-top: 0;
        border-top: none;
    }

    .offre-subcard-quote { font-size: 17px; }

    .offre-subcard-cta {
        font-size: 15px;
        padding: 0.7rem 1.6rem;
    }
}

@media (max-width: 700px) {
    /* Même marge extérieure que la navbar (.header), pour que les bords de la
       carte s'alignent avec le logo/burger ; le padding interne est réduit pour
       que les vignettes gagnent en largeur malgré cette marge plus grande. */
    .offres-features { margin-inline: 1.5rem; padding: 1rem 0.75rem 0; }
    .offre-subcards { gap: 0.75rem; }
    .offre-card { padding: 1.75rem 1.5rem 1.5rem; }
    .offre-card-text { font-size: 18px; }
}

/* Téléphone : deux vignettes par ligne, plus hautes que larges, contenu toujours
   affiché sur la photo assombrie (pas de survol au doigt) : phrase centrée,
   bouton de rendez-vous et flèche vers la page de l'offre.
   Marges latérales identiques aux autres sections (1,5 rem). */
@media (max-width: 600px) {
    .offres-features { margin-inline: 1.5rem; padding-inline: 0; }
    .offre-subcards { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .offre-subcard { aspect-ratio: 3 / 4; }
    .offre-subcard-label { display: none; }

    .offre-subcard-overlay {
        inset: 0;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.7rem;
        padding: 0.9rem 0.75rem;
        background: rgba(10, 14, 40, 0.5);
        opacity: 1;
        visibility: visible;
    }

    .offre-subcard-quote {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        text-align: center;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    }

    .offre-subcard-actions { flex-direction: column; gap: 0.6rem; }

    /* Bouton de rendez-vous : cartouche beige compacte (annule la flèche ronde tactile) */
    .offre-subcard-cta {
        width: auto;
        height: auto;
        padding: 0.45rem 0.85rem;
        border: none;
        background: var(--color-beige);
        color: var(--color-bleu-profond);
        font-size: 12.5px;
        line-height: 1.25;
        text-align: center;
    }
    .offre-subcard-cta::after { content: none; }

    /* « Voir plus » : flèche ronde blanche (le texte reste lu par les lecteurs d'écran) */
    .offre-subcard-more {
        position: relative;
        display: inline-flex;
        width: 34px;
        height: 34px;
        border: 1.5px solid rgba(255, 255, 255, 0.85);
        border-radius: 50%;
        font-size: 0;
        text-decoration: none;
    }
    .offre-subcard-more::after {
        content: "→";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-white);
        font-size: 18px;
        font-weight: 600;
    }
}

/* Très petits téléphones (moins de 360 px) : une vignette par ligne, sinon le texte déborde */
@media (max-width: 359px) {
    .offre-subcards { grid-template-columns: 1fr; }
    .offre-subcard { aspect-ratio: 4 / 3; }
}


/* ============================================================
   SECTION GAMMES
   ============================================================ */

.section-gammes {
    position: relative;
    /* Même dégradé que la section « Bilan auditif » : plus clair en haut, plus dense en bas */
    background-image: linear-gradient(180deg,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.18) 45%,
            rgba(0, 0, 0, 0.38) 100%),
        url('/Assets/Images/audio-france-interior.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    padding: 4rem;
}


.section-gammes h2 { color: var(--color-white); }

/* Titre et sous-titre centrés, posés sur la photo */
.gammes-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.gammes-sous-titre {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.gammes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

.gamme-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2.25rem;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    color: var(--color-bleu-profond);
    box-shadow: var(--shadow-soft);
}

/* Classe 2 mise en avant par un contour, comme sur la maquette */
.gamme-card--accent { border-color: var(--color-bleu-medium); }

.gamme-surtitre {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #617086;
}

/* Bloc vert : le reste à charge / la prise en charge, mis en avant */
.gamme-aide {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    padding: 1.6rem 1.75rem;
    border-radius: var(--radius-lg);
    background: #e5f3ea;
    color: #1e6b3a; /* 5,9:1 sur ce vert clair */
}

.gamme-aide-montant {
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1.5px;
}

.gamme-aide-prefixe {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
}

.gamme-aide-titre {
    margin-top: 0.4rem;
    font-size: 21px;
    font-weight: 600;
}

.gamme-aide-texte {
    font-size: 15px;
    font-weight: 500;
}

/* Prix : ligne secondaire sous le bloc vert */
.gamme-prix {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 16px;
    font-weight: 500;
    color: #617086;
}

.gamme-montant {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--color-bleu-medium);
}

.gamme-points {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.25rem 0 0;
    padding-left: 1.2rem;
    flex: 1; /* liens « Découvrir » alignés d'une carte à l'autre */
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    color: #4a5568;
}

.gamme-lien {
    color: var(--color-bleu-profond);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.gamme-lien:hover { color: var(--color-bleu-clair); text-decoration: underline; }

/* Mobile : surtitre « Classe … » et lien « Découvrir … » centrés dans la carte */
@media (max-width: 768px) {
    .gamme-surtitre,
    .gamme-lien {
        align-self: center;
        text-align: center;
    }
}

.gammes-pied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

.gammes-note {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.gammes-cta {
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-bleu-profond);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-base), transform var(--transition-base);
}

.gammes-cta:hover { background: var(--color-bleu-ciel); transform: translateY(-2px); }

@media (max-width: 1024px) {
    .section-gammes { background-attachment: scroll; }
}

@media (max-width: 900px) {
    .section-gammes { padding: 3rem 1.5rem; }
    .section-gammes h2 { font-size: 40px; }
    .gammes-container { grid-template-columns: 1fr; gap: 1rem; }
    .gamme-card { padding: 1.75rem; }
    .gamme-aide { padding: 1.3rem 1.4rem; }
    .gamme-aide-montant { font-size: 50px; }
    .gamme-aide-titre { font-size: 19px; }
    .gammes-sous-titre { font-size: 17px; }
    .gammes-pied { flex-direction: column; text-align: center; }
}


/* ============================================================
   SECTION ARTICLES (ACCUEIL)
   ============================================================ */

.section-articles {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-articles h2 { color: var(--color-primary-light); }

@media (max-width: 768px) {
    .section-articles h2 { font-size: 40px; }
    .section-visibility h2 { font-size: 40px; }
}

.articles-container {
    display: grid;
    margin-inline: 7rem;
    grid-template-columns: repeat(10, 1fr);
    column-gap: 1rem;
}

.articles-container .article-card:nth-child(1) { grid-column: span 4; }
.articles-container .article-card:nth-child(2) { grid-column: span 6; }
.articles-container .article-card:nth-child(3) { grid-column: span 7; margin-top: -4.5rem; }
.articles-container .article-card:nth-child(4) { grid-column: span 3; margin-top: -4.5rem; }

.article-card {
    display: flex;
    flex-direction: column;
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.card-img-wrap {
    height: 70%;
    transition: height 0.4s ease;
    border: 1px solid rgb(200, 200, 200);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.back-img-test {
    height: 70%;
    border-radius: 1rem;
}

.card-content { overflow: hidden; }

.card-content-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
    padding-block: 0.4rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

@media (hover: hover) {
    .article-card:hover                      { z-index: 10; }
    .article-card:hover .card-img-wrap       { height: 25%; cursor: pointer; }
    .article-card:hover .card-content-inner  { max-height: 400px; }
    .article-card:hover .article-title       { opacity: 0; pointer-events: none; }

    .articles-container:hover .article-card          { opacity: 0.25; }
    .articles-container:hover .article-card:hover    { opacity: 1; }
}
.article-card.disable-hover { pointer-events: none; }

.article-title {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 0.7rem 1rem;
    font-size: 20px;
    color: var(--color-primary-light);
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    transition: opacity 0.4s ease;
}

.article-category-date,
.article-grid-card-category-date { display: flex; gap: 0.5rem; }

.article-category,
.article-grid-card-category {
    background-color: var(--color-accent-light);
    padding: 0.25rem 0.75rem;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    height: fit-content;
    width: fit-content;
}

/* Badges — couleur de fond par catégorie */
.article-category.cat--prevention,
.article-grid-card-category.cat--prevention    { background-color: #2563eb; }

.article-category.cat--correction,
.article-grid-card-category.cat--correction    { background-color: #16a34a; }

.article-category.cat--reeducation,
.article-grid-card-category.cat--reeducation   { background-color: #ea580c; }

.article-category.cat--tarif,
.article-grid-card-category.cat--tarif         { background-color: #d97706; }

.article-category.cat--centre,
.article-grid-card-category.cat--centre        { background-color: #8b5cf6; }

/* Entête article — couleur de texte par catégorie */
.article-infos-category.cat--prevention   { color: #2563eb; }
.article-infos-category.cat--correction   { color: #16a34a; }
.article-infos-category.cat--reeducation  { color: #ea580c; }
.article-infos-category.cat--tarif        { color: #d97706; }
.article-infos-category.cat--centre       { color: #8b5cf6; }

.article-date,
.article-autor { margin-block: auto; color: grey; font-size: 13px; }

.article-chapo {
    font-size: 15px;
    color: var(--color-text);
}

.article-grid-card-chapo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.96);
    padding: 1.2rem;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease;
}

.article-grid-card:hover .article-grid-card-chapo {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .articles-container { gap: 1.5rem; margin-inline: 1rem; }
}

@media (max-width: 950px) {
    .articles-container .article-card:nth-child(1),
    .articles-container .article-card:nth-child(2),
    .articles-container .article-card:nth-child(3),
    .articles-container .article-card:nth-child(4) {
        grid-column: span 5;
    }
    .articles-container .article-card:nth-child(3),
    .articles-container .article-card:nth-child(4) {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .card-img-wrap, .card-content-inner { transition: none !important; }

    .article-title {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.5rem 0.5rem 0;
        font-size: 16px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1 !important;
    }

    .section-articles { padding-inline: 1.5rem; }
    .articles-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-inline: 0;
    }
    .articles-container .article-card:nth-child(n) {
        grid-column: auto;
        margin-top: 0;
    }
    .article-card { height: auto; }
    .card-img-wrap { height: 180px; }
    .card-content { margin-top: 1rem; border-top-left-radius: 0; }
    .card-content-inner { max-height: none; padding: 0; overflow: visible; }
    .article-chapo { display: none; }
    .article-category,
    .article-grid-card-category { font-size: 12px; }
    .section-articles { padding-block: 0; }
}

@media (max-width: 480px) {
    .card-img-wrap { height: 160px; }
    .article-card  { border-radius: 0.8rem; }
}


/* ============================================================
   PAGE LISTE DES ARTICLES
   ============================================================ */

.article-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 5%;
    margin-inline: 4rem;
    margin-block: 2rem;
    row-gap: 4rem;
    box-sizing: border-box;
    max-width: 100%;
}

.article-grid-card {
    display: flex;
    flex-direction: column;
    width: 30%;
    max-width: 30%;
    height: fit-content;
    overflow-wrap: break-word;
    word-break: break-word;
    cursor: pointer;
    text-decoration: none;
    /* box-shadow: var(--shadow-soft); */
    border-radius: var(--radius-lg);
    transition: box-shadow 0.9s ease;
    border: 1px solid rgb(200, 200, 200);
    position: relative;
    overflow: hidden;
}

.article-grid-card:hover { box-shadow: var(--shadow-neumorphic); }

.article-grid-card-img { width: 100%; height: 200px; overflow: hidden; }

.article-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.article-grid-card-title {
    font-size: 20px;
    color: var(--color-primary-dark);
}

.article-grid-card-content {
    padding: 0.5rem;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    background: #ffffff;
}

.article-grid-card-content-inner {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}


/* ============================================================
   PAGE ARTICLE DÉTAIL
   ============================================================ */

.article-container {
    max-width: 1300px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-infos {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: auto;
}

.article-infos-category { color: var(--color-accent); font-size: 20px; font-weight: 500; }

.article-infos-autor,
.article-infos-date { font-size: 18px; color: var(--color-muted); }

.article-intro {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-intro-title {
    position: relative;
    margin-top: -4.6rem;
    width: fit-content;
    margin-inline: auto;
    padding: 1rem 1.5rem 0;
    font-size: 42px;
    font-weight: 500;
    color: var(--color-primary-dark);
    text-align: center;
    background: radial-gradient(ellipse 1600px 1000px at top left, #e8f3ff, #ffffff 45%, #d6ecf8);
    background-attachment: fixed;
}

.section-article hr { margin-block: 1rem; }

.article-intro-resume {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.article-intro-resume h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-top: 1.5rem;
}

.article-intro-resume h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.3;
    margin-top: 1rem;
}

.article-intro-resume h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-top: 0.75rem;
}

.article-intro-resume p { font-size: 1rem; font-weight: 500; }

.article-intro-resume strong { font-weight: 600; }
.article-intro-resume em     { font-style: italic; }

.article-intro-resume a {
    color: var(--color-lien);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.article-intro-resume a:hover { color: var(--color-primary); }

.article-intro-resume ul,
.article-intro-resume ol {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.article-intro-resume ul { list-style: disc; }
.article-intro-resume ol { list-style: decimal; }

.article-intro-resume li {
    line-height: 1.6;
    color: var(--color-text);
}

.article-intro-resume table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1rem;
    font-size: 0.95rem;
}

.article-intro-resume th,
.article-intro-resume td {
    padding: 0.6rem 0.9rem;
    border: 1px solid #d4e8fa;
    text-align: left;
    vertical-align: top;
}

.article-intro-resume th {
    background: var(--color-primary-dark);
    color: #fff;
    font-weight: 500;
}

.article-intro-resume tr:nth-child(even) td {
    background: #fffcfa;
}

.article-intro-resume hr {
    border: none;
    border-top: 1px solid rgb(220, 220, 220);
    margin-block: 1.5rem;
}

/* Image d'en-tête des pages et articles : ratio fixe plutôt qu'une hauteur fixe,
   pour que le cadrage reste le même quelle que soit la largeur d'écran. */
.article-intro-image {
    width: 100%;
    display: block;
    margin: 2rem auto 0;
    aspect-ratio: 16 / 7;
    height: auto;
    object-fit: cover;
    /* Cadrage remonté : le bas de l'image passe sous le titre, et les visages
       (souvent dans le tiers haut) ne sont plus coupés au front. */
    object-position: center 30%;
}

/* Format et cadrage choisis dans le back-office (sans choix : bandeau 16/7,
   3/2 sur mobile, cadrage automatique). Classes plus précises que les règles
   ci-dessus et que celles des media queries : le format reste le même sur mobile. */
.article-intro-image.image-format--16-9 { aspect-ratio: 16 / 9; }
.article-intro-image.image-format--3-2  { aspect-ratio: 3 / 2; }
.article-intro-image.image-format--4-3  { aspect-ratio: 4 / 3; max-width: 900px; }
.article-intro-image.image-format--1-1  { aspect-ratio: 1 / 1; max-width: 640px; }

/* Originale : photo entière, sans recadrage, limitée à la hauteur de l'écran */
.article-intro-image.image-format--original {
    aspect-ratio: auto;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.article-intro-image.image-cadrage--haut   { object-position: center top; }
.article-intro-image.image-cadrage--centre { object-position: center center; }
.article-intro-image.image-cadrage--bas    { object-position: center bottom; }

/* Back-office : cases de choix du format et du cadrage */
.form-choix-format { border: 0; padding: 0; margin: 0; min-width: 0; }

.format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.format-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 84px;
    padding: 0.6rem 0.7rem;
    border: 1px solid #cdd3de;
    border-radius: 10px;
    background: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-bleu-profond);
    cursor: pointer;
}

.format-option input { position: absolute; opacity: 0; pointer-events: none; }
.format-option:has(input:checked) { border-color: var(--color-bleu-medium); background: var(--color-bleu-ciel); }
.format-option:has(input:focus-visible) { outline: 2px solid var(--color-bleu-medium); outline-offset: 2px; }

.format-apercu {
    width: 56px;
    border-radius: 3px;
    background: var(--color-bleu-clair);
}

.format-apercu--libre {
    height: 38px;
    border: 2px dashed var(--color-bleu-clair);
    background: transparent;
}

.format-option--texte { min-width: 0; padding: 0.5rem 0.95rem; }

/* ------------------------------------------------------------
   Pages éditables : même gabarit que l'article, plus trois cas
   ------------------------------------------------------------ */
/* Sans image, le titre ne vient plus chevaucher le bas de la photo */
.article-intro-title--sans-image { margin-top: 1.5rem; }

/* Rubrique de la page, à la place de la catégorie d'article */
.article-infos-category.cat--page { color: var(--color-bleu-medium); }

/* Aperçu d'un brouillon, visible des seuls administrateurs */
.page-apercu {
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--color-beige);
    color: var(--color-bleu-profond);
    font-weight: 600;
    text-align: center;
}

/* ------------------------------------------------------------
   FAQ sous les articles : deux colonnes d'accordéons
   ------------------------------------------------------------ */
/* Sur l'accueil (section directe de main) : l'écart entre sections vient de main,
   et les marges latérales sont celles des autres sections. */
main > .section-faq {
    margin-block: 0;
    margin-inline: 4rem;
}

@media (max-width: 900px) {
    main > .section-faq { margin-inline: 1.5rem; }
}

.section-faq {
    margin-block: 4rem 3rem;
}

.section-faq h2 {
    margin-bottom: 2.5rem;
    color: var(--color-bleu-medium);
    text-align: center;
}

.faq-liste {
    columns: 2;
    column-gap: 1.5rem;
}

.faq-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(41, 51, 138, 0.14);
    border-radius: var(--radius-md);
    background: var(--color-white);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    color: var(--color-bleu-profond);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item[open] summary { color: var(--color-bleu-medium); }

/* Le signe + devient − à l'ouverture */
.faq-signe {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.faq-signe::before,
.faq-signe::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.faq-signe::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-signe::after { opacity: 0; transform: translate(-50%, -50%) rotate(0); }

/* La hauteur est animée par main.js : le contenu glisse au lieu de surgir. */
.faq-reponse {
    overflow: hidden;
    transition: height 0.4s ease;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
}

.faq-reponse p { padding: 0 1.5rem 1.4rem; }

@media (max-width: 900px) {
    .faq-liste { columns: 1; }
    .section-faq { margin-block: 3rem 2rem; }
    .faq-item summary { font-size: 16px; padding: 1.1rem 1.2rem; }
    .faq-reponse p { padding: 0 1.2rem 1.2rem; }
}

/* FAQ rédigée dans le texte d'un article ou d'une page (functions.faq.php) :
   une colonne, et réponses de plusieurs paragraphes ou listes bien espacées
   (les marges du texte d'article ne s'appliquent pas dans l'accordéon). */
.faq-liste--contenu {
    columns: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-block: 0.25rem 1rem;
}

.faq-liste--contenu .faq-item { margin-bottom: 0; }

.faq-liste--contenu .faq-reponse > p,
.faq-liste--contenu .faq-reponse > ul,
.faq-liste--contenu .faq-reponse > ol {
    margin: 0 0 0.8rem;
    padding: 0 1.5rem;
}

.faq-liste--contenu .faq-reponse > ul,
.faq-liste--contenu .faq-reponse > ol { padding-left: 3rem; }

.faq-liste--contenu .faq-reponse > :last-child {
    margin-bottom: 0;
    padding-bottom: 1.4rem;
}

@media (max-width: 900px) {
    .faq-liste--contenu .faq-reponse > p,
    .faq-liste--contenu .faq-reponse > ul,
    .faq-liste--contenu .faq-reponse > ol { padding-inline: 1.2rem; }
    .faq-liste--contenu .faq-reponse > ul,
    .faq-liste--contenu .faq-reponse > ol { padding-left: 2.6rem; }
    .faq-liste--contenu .faq-reponse > :last-child { padding-bottom: 1.2rem; }
}

/* ------------------------------------------------------------
   Bandeau cookies et contenus tiers en attente de consentement
   ------------------------------------------------------------ */
.cookies-banniere {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    max-width: 1100px;
    margin-inline: auto;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--color-bleu-profond);
    color: var(--color-blanc-casse);
    box-shadow: 0 18px 40px rgba(26, 23, 77, 0.35);
}

.cookies-banniere[hidden] { display: none; }

.cookies-banniere-texte { flex: 1 1 26rem; display: flex; flex-direction: column; gap: 0.4rem; }
.cookies-banniere-texte p { font-size: 15px; line-height: 1.5; max-width: 70ch; }
.cookies-banniere-titre { font-size: 19px; font-weight: 600; }
.cookies-banniere-texte a { color: var(--color-bleu-ciel); }

.cookies-banniere-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cookies-btn {
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--color-beige);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}

.cookies-btn--accepte { background: var(--color-beige); color: var(--color-bleu-profond); }
.cookies-btn--accepte:hover { background: var(--color-blanc-casse); }

.cookies-btn--refus { background: transparent; color: var(--color-blanc-casse); }
.cookies-btn--refus:hover { background: rgba(255, 252, 250, 0.14); }

.cookies-modifier { margin-block: 1.5rem; }
.cookies-modifier .cookies-btn { border-color: var(--color-bleu-medium); background: var(--color-bleu-medium); color: var(--color-blanc-casse); }
.cookies-modifier .cookies-btn:hover { background: var(--color-bleu-profond); }

.cookies-contenu-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 260px;
    padding: 2rem;
    border: 1px dashed rgba(41, 51, 138, 0.35);
    border-radius: var(--radius-md);
    background: var(--color-bleu-ciel);
    color: var(--color-bleu-profond);
    text-align: center;
}

.cookies-contenu-bloque button {
    padding: 0.7rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-bleu-medium);
    color: var(--color-blanc-casse);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.cookies-contenu-bloque button:hover { background: var(--color-bleu-profond); }

@media (max-width: 600px) {
    .cookies-banniere { padding: 1.25rem; gap: 1rem; }
    .cookies-banniere-actions { width: 100%; }
    .cookies-btn { flex: 1 1 auto; text-align: center; }
}

/* Fil d'Ariane des pages d'article */
.fil-ariane {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 14px;
    color: var(--color-bleu-clair);
}

.fil-ariane a {
    color: var(--color-bleu-clair);
    text-decoration: none;
}

.fil-ariane a:hover {
    color: var(--color-bleu-medium);
    text-decoration: underline;
}

.fil-ariane span[aria-hidden] { opacity: 0.55; }

.fil-ariane-actuel {
    max-width: 40ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-bleu-profond);
}

/* Mobile : le dernier niveau (page en cours, déjà en titre juste dessous) est
   masqué avec son séparateur. Il reste lu par les lecteurs d'écran. */
@media (max-width: 768px) {
    .fil-ariane > span[aria-hidden]:nth-last-child(2) { display: none; }
    .fil-ariane-actuel {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* La catégorie de l'article renvoie à sa liste d'articles */
a.article-infos-category {
    text-decoration: none;
    transition: opacity var(--transition-base);
}

a.article-infos-category:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ------------------------------------------------------------
   Page « Tous les articles » : filtres par catégorie
   ------------------------------------------------------------ */
/* Barre de filtres : un rail clair arrondi, l'onglet actif en pastille blanche */
.articles-filtres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2.5rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: #eeeeee;
}

.articles-filtre {
    /* Couleur propre à la catégorie, reprise des étiquettes d'articles */
    --cat: var(--color-bleu-medium);
    padding: 0.65rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5f5f5f;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}

.articles-filtre[data-filtre="prevention"]  { --cat: #2563eb; }
.articles-filtre[data-filtre="correction"]  { --cat: #16a34a; }
.articles-filtre[data-filtre="reeducation"] { --cat: #ea580c; }
.articles-filtre[data-filtre="tarif"]       { --cat: #d97706; }
.articles-filtre[data-filtre="centre"]      { --cat: #8b5cf6; }

.articles-filtre:hover {
    color: var(--cat);
    background: rgba(255, 255, 255, 0.6);
}

.articles-filtre.is-active {
    background: var(--color-white);
    color: var(--cat);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(26, 23, 77, 0.14);
}

.article-grid-card.is-filtre-masque { display: none; }

.articles-vide {
    margin-top: 2rem;
    text-align: center;
    font-size: 18px;
    color: var(--color-bleu-clair);
}

/* Bouton « Tous nos articles » sous la section blog de l'accueil */
.articles-cta {
    display: flex;
    justify-content: center;
    /* Les cartes d'articles sont en position: relative et passeraient au-dessus
       du bouton, remonté par marge négative : il deviendrait non cliquable. */
    position: relative;
    z-index: 1;
}

/* La section espace ses blocs de 3 rem, et la grille laisse 4,5 rem de vide sous
   les cartes 3 et 4, remontées par marge négative : on compense, mais seulement
   s'il y a au moins 3 articles (sinon rien n'est remonté et le bouton chevaucherait). */
@media (min-width: 951px) {
    .section-articles:has(.article-card:nth-child(3)) .articles-cta { margin-top: -6rem; }
}

/* ------------------------------------------------------------
   Sommaire de l'article : colonne de gauche, collée au défilement
   ------------------------------------------------------------ */
/* Image, titre et infos occupent toute la largeur ; le sommaire ne commence
   qu'après le trait de séparation, dans la colonne de gauche. */
.article-body {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2.5rem;
    /* Pas de « align-items: start » : la colonne du sommaire doit s'étirer
       sur toute la hauteur de l'article, sinon le blocage n'a aucune course. */
    margin-top: 1.5rem;
}

.article-toc.is-empty { display: none; }

.article-toc-inner {
    /* Reste visible pendant la lecture, sous la barre de navigation */
    position: sticky;
    top: 7rem;
    /* Jamais plus haut que l'écran : au-delà, c'est la liste qui défile */
    max-height: calc(100vh - 9rem);
    display: flex;
    flex-direction: column;
    border-radius: 0; /* angles droits */
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.article-toc-title {
    padding: 1.25rem 1.5rem 0.75rem;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-bleu-clair);
}

/* La liste défile seule quand elle est plus haute que l'écran ;
   main.js y fait glisser le titre en cours de lecture. */
.article-toc-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.article-toc-liste {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0;
    padding: 0 0.75rem 1.25rem;
    list-style: none;
    counter-reset: toc;
}

.article-toc-liste a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-bleu-medium);
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base);
}

.article-toc-liste a.is-sub {
    padding-left: 1.6rem;
    font-size: 14px;
    color: var(--color-bleu-clair);
}

.article-toc-liste a:hover { background: var(--color-bleu-ciel); }

.article-toc-liste a.is-current {
    background: var(--color-bleu-ciel);
    color: var(--color-bleu-profond);
    font-weight: 600;
}

.article-toc-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 1.5rem 1.25rem;
    background: var(--color-bleu-profond);
    text-align: center;
}

.article-toc-cta img { width: 150px; height: auto; }

.article-toc-cta p {
    color: var(--color-blanc-casse);
    font-size: 17px;
    line-height: 1.3;
}

.article-toc-cta a {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: var(--color-beige);
    color: var(--color-bleu-profond);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-base), transform var(--transition-base);
}

.article-toc-cta a:hover {
    background: var(--color-blanc-casse);
    transform: translateY(-2px);
}

/* Le titre visé ne doit pas passer sous l'en-tête collant */
.article-content h2,
.article-content h3 { scroll-margin-top: 7rem; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

@media (max-width: 900px) {
    /* Le sommaire passe au-dessus du contenu de l'article, sans blocage */
    .article-body { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .article-toc-inner { position: static; max-height: none; }
    .article-toc-nav { overflow-y: visible; }
    .article-toc-cta { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 1rem; text-align: start; }
    .article-toc-cta img { width: 120px; }
}

/* Mobile : sommaire réduit aux grandes parties (h2) ; sans h2, la liste est masquée */
@media (max-width: 768px) {
    .article-toc-liste .toc-sous-titre { display: none; }
    .article-toc.sans-h2 .article-toc-title,
    .article-toc.sans-h2 .article-toc-nav { display: none; }
}

/* Contenu article (HTML saisi dans le back-office) */
.article-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    margin-inline: 0;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--color-text);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    text-align: start;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-top: 1rem;
}

.article-content p { 
    font-size: 1rem; 
    font-weight: 500; 
    line-height: 1.5;
    margin-bottom: 0.8rem;
    margin-left: 1rem;
}

.article-content strong { font-weight: 600; }
.article-content em     { font-style: italic; }

.article-content a {
    color: var(--color-lien);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.article-content a:hover { color: var(--color-primary); }

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
    line-height: 1.6;
    color: var(--color-text);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1rem;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    padding: 0.6rem 0.9rem;
    border: 1px solid #d4e8fa;
    text-align: left;
    vertical-align: top;
}

.article-content th {
    background: var(--color-primary-dark);
    color: #fff;
    font-weight: 500;
}

.article-content tr:nth-child(even) td {
    background: #fffcfa;
}

.article-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.2rem;
    margin-block: 1rem;
    font-style: italic;
    color: var(--color-muted);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-block: 1rem;
    display: block;
}

.article-content hr {
    border: none;
    border-top: 1px solid rgb(220, 220, 220);
    margin-block: 1.5rem;
}

.article-content code {
    background: #d4e8fa;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}


@media (max-width: 1024px) {
    .article-grid-container { margin-inline: 1.5rem; row-gap: 2.5rem; }
    .article-grid-card { width: 47%; max-width: 47%; }
    /* .article-container { margin-inline: 1.5rem; } */
    .article-intro-title { font-size: 36px; margin-top: -3rem; }
    .article-intro-image { width: 100%; }
    .article-content,
    .article-intro,
    .article-container > hr { margin-inline: 2rem; } /* chapeau et traits gris suivent les marges du texte */
}

@media (max-width: 768px) {
    .article-grid-container {
        flex-direction: column;
        /* margin-inline: 1.5rem; */
        row-gap: 2.5rem;
        /* margin-block: 0 3rem; */
    }
    .article-grid-card { width: 100%; max-width: 100%; }
    .article-infos {gap: 0.8rem;}
    .article-infos-category { font-size: 18px; }
    .article-infos-autor,
    .article-infos-date { font-size: 16px; }
    .article-intro-title { font-size: 28px; margin-top: -2rem; padding: 1rem; background-attachment: scroll; }
    .article-intro-resume { font-size: 15px; }
    .article-intro-image { width: 100%; aspect-ratio: 3 / 2; margin-top: 2rem; } /* plus haut sur mobile */
    .article-content,
    .article-intro,
    .article-container > hr { margin-inline: 1.5rem; }
    /* Chapeau : paragraphes centrés entre les deux traits gris (les listes restent à gauche) */
    .article-intro-resume p { text-align: center; }
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.2rem; }
    .article-content h4 { font-size: 1rem; }
    .article-content table,
    .article-intro-resume table { display: block; overflow-x: auto; }
}

@media (max-width: 580px) {
    /* Même marge latérale que le reste du site sur mobile (1,5 rem) */
    .article-grid-container { margin-inline: 1.5rem; row-gap: 2rem; }
    .articles-filtres { max-width: calc(100% - 3rem); }
    .article-container { 
        padding-right: 1rem;
        padding-left: 1rem;
     }
    .article-intro-title { font-size: 25px; margin-top: -1.8rem; }
    .article-intro-resume { font-size: 14px; }
    .article-intro-image { margin-top: 0rem; }
    /* Catégorie, auteur et date sur une seule ligne, séparés par un point */
    .article-infos { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.25rem 0.5rem; text-align: center; }
    .article-infos > * + *::before { content: "·"; margin-right: 0.5rem; color: var(--color-muted); }
    .article-infos-category { font-size: 14px; }
    .article-infos-autor,
    .article-infos-date { font-size: 14px; }
    /* .article-content { margin-inline: 1rem; } */
    .article-content h2 { font-size: 1.4rem; }
    .article-content h3 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    /* .article-container { margin-inline: 1rem; } */
    .article-container { padding-inline: 0rem;}
    .fil-ariane { padding-inline: 1rem; } /* l'image reste bord à bord, pas le texte */
    .article-intro-title { font-size: 22px; margin-top: -1.5rem; }
    .article-grid-card-title { font-size: 18px; }
    /* .article-content { margin-inline: 0.5rem; } */
    .article-content h2 { font-size: 1.3rem; }
    .article-content h3 { font-size: 1.1rem; }
    .article-content h4 { font-size: 0.95rem; }
    .article-content p  { font-size: 0.95rem; }
}


/* ============================================================
   PAGE GAMMES
   ============================================================ */

.section-gammes-page {
    display: flex;
    justify-content: center;
    gap: 5rem;
    padding-inline: 4rem;
    padding-bottom: 3rem;
    margin-top: 3rem;
    color: var(--color-primary-light);
}

.gammes-class1,
.gammes-class2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 35%;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    padding: 1.5rem;
    border-radius: 3rem;
    border: 1px solid rgb(200, 200, 200);
    background: #ffffff;
    /* box-shadow: var(--shadow-soft); */
}

.section-gammes-page h3 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .section-gammes-page { gap: 3rem; }
    .gammes-class1, .gammes-class2 { width: 45%; }
}

@media (max-width: 768px) {
    .section-gammes-page {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-inline: 1.5rem;
        margin-top: 0;
    }
    .gammes-class1, .gammes-class2 { width: 100%; }
}

@media (max-width: 480px) {
    .section-gammes-page { padding-inline: 1rem; }
    .section-gammes-page h3 { font-size: 28px; }
}


/* ============================================================
   PAGE ENGAGEMENTS (Prévention / Correction / Rééducation)
   ============================================================ */

.section-prevention,
.section-correction,
.section-reeducation,
.section-consultation {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

.section-prevention { margin-top: 3rem; }
.section-correction,
.section-consultation { flex-direction: row-reverse; }

.prevention-image,
.correction-image,
.reeducation-image,
.consultation-image {
    width: 50%;
    min-height: 450px;
    background-image: url("/Assets/Images/audio-france-interieur.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.prevention-title-line,
.correction-title-line,
.reeducation-title-line,
.consultation-title-line {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 2rem;
}

.correction-title-line,
.consultation-title-line { flex-direction: row; }

.prevention-title-line .line,
.correction-title-line .line,
.reeducation-title-line .line,
.consultation-title-line .line {
    flex: 1;
    height: 1px;
    background-color: var(--color-accent);
    margin-top: 1rem;
}

.prevention-title,
.correction-title,
.reeducation-title,
.consultation-title {
    color: var(--color-primary);
    text-align: start;
    font-size: 50px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* Charte : chiffre d'étape en Lora Medium italique dans un cartouche rond */
.titre-chiffre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3em;
    height: 1.3em;
    margin-right: 0.3em;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
    font-size: 0.7em;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: 0.15em;
}

.prevention,
.correction,
.reeducation,
.consultation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 50%;
    box-sizing: border-box;
    padding: 2.5rem 3rem;
}

.prevention-content,
.reeducation-content { text-align: end; }

.correction-content p,
.prevention-content p,
.reeducation-content p,
.consultation-content p {
    font-size: 21px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    text-align: justify;
    letter-spacing: -0.2px;
}

.prevention-content-button {
    width: fit-content;
    margin: 0 auto;
    background: #fffcfa;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgb(200, 200, 200);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.prevention-content-button a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 24px;
}

.prevention-content-button:hover {
    box-shadow: var(--shadow-neumorphic-sm);
    transform: translateY(2px);
}

/* Animations d'entrée */
.prevention,
.reeducation {
    opacity: 0;
    transform: translateX(-80px);
    transition: all var(--transition-slow);
}

.correction,
.consultation {
    opacity: 0;
    transform: translateX(80px);
    transition: all var(--transition-slow);
}

.prevention.visible,
.correction.visible,
.reeducation.visible,
.consultation.visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 1024px) {
    .section-correction { flex-direction: row-reverse; }
    .prevention-image,
    .correction-image,
    .reeducation-image,
    .consultation-image { background-attachment: scroll; }
    .prevention,
    .correction,
    .reeducation {
        width: 50%;
        padding-bottom: 4rem;
        gap: 1.5rem;
    }
    .prevention-title,
    .correction-title,
    .reeducation-title { font-size: 36px; }
    .correction-content p,
    .prevention-content p,
    .reeducation-content p { font-size: 18px; }
    .prevention, .reeducation { transform: translateX(-40px); }
    .correction { transform: translateX(40px); }
}

@media (max-width: 768px) {
    .section-prevention,
    .section-correction,
    .section-reeducation,
    .section-consultation { flex-direction: column; }

    .prevention-image,
    .correction-image,
    .reeducation-image,
    .consultation-image { width: 100%; height: 300px; }

    .prevention-title,
    .correction-title,
    .reeducation-title { font-size: 40px; }

    .correction-content p,
    .prevention-content p,
    .reeducation-content p { font-size: 19px; line-height: 1.6; }
}

@media (max-width: 480px) {
    .section-prevention,
    .section-correction,
    .section-reeducation,
    .section-consultation {
        margin-inline: 1rem;
        margin-bottom: 3rem;
    }

    .prevention,
    .correction,
    .reeducation,
    .consultation {
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
        padding: 0;
        gap: 1rem;
    }

    .prevention-title,
    .correction-title,
    .reeducation-title,
    .consultation-title {
        width: 100%;
        font-size: 40px;
        text-align: center;
    }

    .prevention-content,
    .correction-content,
    .reeducation-content,
    .consultation-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .prevention-content br,
    .correction-content br,
    .reeducation-content br,
    .consultation-content br { display: none; }

    .prevention-content p,
    .correction-content p,
    .reeducation-content p,
    .consultation-content p { font-size: 17px; line-height: 1.4; }

    .prevention-image,
    .correction-image,
    .reeducation-image,
    .consultation-image { display: none; }

    .line { display: none; }
}


/* ============================================================
   PAGE CONTACT
   ============================================================ */

.section-contact {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 3rem;
    margin-top: 3rem;
    color: var(--color-primary-light);
}

.contact-title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-title h1 { color: var(--color-primary); font-size: 70px; font-weight: 500; }
.contact-title h2 { font-weight: 500; font-size: 30px; color: var(--color-text); }
.contact-title h3 { font-weight: 500; font-size: 16px; color: var(--color-primary-light); text-align: center; }

.contact-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
}

.contact-separator { opacity: 1; }

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 25%;
    padding: 1.5rem;
    border-radius: 3rem;
    background: #ffffff;
    border: 1px solid rgb(200, 200, 200);
    /* box-shadow: var(--shadow-soft); */
}

.section-contact h3 { font-size: 34px; font-weight: 500; letter-spacing: 1px; }
.section-contact h4 { font-size: 26px; font-weight: 500; color: var(--color-primary-light); }

.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-infos a { color: var(--color-primary); text-decoration: none; }
.section-contact p { font-size: 18px; font-weight: 500; }

.contact-equipe {
    display: flex;
    flex-direction: column;
    margin: auto;
    text-align: center;
    gap: 0.5rem;
}

.contact-equipe-membres {
    display: flex;
    gap: 2rem;
    margin: auto;
    margin-top: 1rem;
}

.contact-equipe-membres p { font-size: 16px; font-weight: 500; color: var(--color-accent); }

.section-contact iframe {
    margin: auto;
    width: 60%;
    height: 300px;
    box-shadow: 0 0 15px rgba(200, 200, 220, 0.5);
}

/* « Nous trouver » (accueil) : coordonnées à gauche, carte à droite */
.nous-trouver {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: center;
    margin-inline: 4rem;
}

.nous-trouver-infos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.nous-trouver-infos h2 {
    margin-bottom: 0.6rem;
    color: var(--color-text);
    text-align: left;
}

.nous-trouver-nom {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-bleu-profond);
}

.nous-trouver-adresse {
    font-size: 17px;
    font-weight: 500;
    color: #617086;
}

.nous-trouver-tel {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-bleu-medium);
    text-decoration: none;
}

.nous-trouver-horaires {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.5rem 0 0.9rem;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    color: #617086;
}

.nous-trouver-horaires strong { font-weight: 600; color: var(--color-bleu-profond); }

.nous-trouver-cta {
    display: inline-flex;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    background: var(--color-bleu-medium);
    color: var(--color-blanc-casse);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-base), transform var(--transition-base);
}

.nous-trouver-cta:hover { background: var(--color-bleu-profond); transform: translateY(-2px); }

.nous-trouver-carte {
    height: 340px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-bleu-ciel);
}

.nous-trouver-carte iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Carte bloquée tant que les cookies ne sont pas acceptés : l'encadré remplit le cadre */
.nous-trouver-carte .cookies-contenu-bloque {
    height: 100%;
    min-height: 0;
    border-radius: inherit;
}

@media (max-width: 900px) {
    .nous-trouver {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-inline: 1.5rem;
    }
    .nous-trouver-infos h2 { font-size: 40px; }
    .nous-trouver-carte { height: 280px; }
}

/* Mobile : coordonnées, horaires et bouton centrés */
@media (max-width: 768px) {
    .nous-trouver-infos { align-items: center; text-align: center; }
}

.contact-legal-infos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.contact-acces {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-acces-transport { display: flex; gap: 3rem; }

.contact-acces ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-acces-metro .transport {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: black;
    font-weight: 500;
    font-size: 12px;
}

.contact-acces-metro .arret { font-weight: 500; }

.ligne8  { background: #c5a3ca; }
.ligne12 { background: #007852; }
.bus62   { background: #583603c2; }
.bus89   { background: #2196f3; }

@media (max-width: 1024px) {
    .section-contact { padding-inline: 1.5rem; gap: 0; }
    .contact-title h1 { font-size: 50px; }
    .contact-title h2 { font-size: 40px; }
    .contact-title h3 { font-size: 18px; }
    .contact-container { gap: 3rem; }
    .contact-content { width: 30%; }
    .contact-content h3 { font-size: 28px; }
    .contact-content p  { font-size: 16px; }
    .section-contact iframe { width: 90%; margin: 3rem auto 0; height: 280px; }
}

@media (max-width: 768px) {
    .section-contact { margin-top: 0; gap: 2rem; }
    .contact-title h1 { font-size: 38px; }
    .contact-title h2 { font-size: 26px; }
    .contact-title h3 { font-size: 26px; }
    .contact-container { flex-direction: column; align-items: center; gap: 2rem; }
    .contact-content { width: 70%; }
    .contact-separator { width: 60%; height: 1px; }
    .contact-content h3 { font-size: 20px; }
    .contact-content p  { font-size: 15px; }
    .section-contact iframe { width: 90%; margin: 3rem auto 0; height: 250px; }
    .contact-legal-infos { margin-top: 2rem; }
    .contact-acces { text-align: center; }
    .contact-acces-transport { text-align: center; }
    .contact-acces-metro { text-align: start; }
}


/* ============================================================
   SECTION AVIS : bandeau beige, note Google et trois avis
   ============================================================ */

.section-avis {
    padding: 4rem;
    background: var(--color-beige); /* Beige de la charte */
}

.avis-entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.section-avis h2 {
    color: var(--color-text);
    text-align: left;
}

.avis-note {
    margin-top: 0.5rem;
    font-size: 17px;
    font-weight: 500;
    color: #617086;
}

.avis-note strong { font-weight: 600; color: var(--color-bleu-profond); }

.avis-lien {
    color: var(--color-bleu-medium);
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.avis-lien:hover { color: var(--color-bleu-profond); }

.avis-cartes {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.avis-carte {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: var(--color-white);
}

.avis-etoiles {
    font-size: 19px;
    letter-spacing: 2px;
    color: #b8860b; /* or foncé : 3,3:1 sur blanc, lisible pour un pictogramme */
}

.avis-texte {
    flex: 1;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.6;
    color: #4a5568;
}

.avis-auteur {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-bleu-profond);
}

@media (max-width: 900px) {
    .section-avis { padding: 3rem 1.5rem; }
    .section-avis h2 { font-size: 40px; }
    .avis-entete { align-items: flex-start; flex-direction: column; }
    .avis-cartes { grid-template-columns: 1fr; gap: 1rem; }
}

/* Mobile : note Google et lien « Voir les avis » centrés sous le titre */
@media (max-width: 768px) {
    .avis-entete { align-items: center; text-align: center; }
}


/* ============================================================
   PAGE MENTIONS LÉGALES
   ============================================================ */

.section-legal {
    display: flex;
    justify-content: center;
    text-align: center;
}

.legal-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 80%;
    margin: auto;
}

.section-legal h2 { font-size: 50px; color: var(--color-primary-dark); }
.section-legal p  { font-size: 18px; }

.section-legal ul {
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* ============================================================
   QUESTIONNAIRE
   ============================================================ */

.questionnaire-start {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: min(1200px, 92%);
    margin: 3rem auto;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.questionnaire-start-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.questionnaire-start-text p {
    font-size: 1.08rem;
    line-height: 1.5;
    color: #3b5ca6;
    margin-bottom: 1.4rem;
    max-width: 650px;
}

.questionnaire-start-text p:first-child {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1a174d;
}

.questionnaire-start button {
    width: fit-content;
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 1rem;
}

.questionnaire-start button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--color-primary-dark);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 14px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.questionnaire-start button a:hover {
    box-shadow: var(--shadow-neumorphic-sm);
    transform: translateY(2px);
}

.questionnaire-start img {
    width: 42%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .questionnaire-start {
        flex-direction: column-reverse;
        margin: 0 auto 3rem;
    }
    .questionnaire-start img { width: 100%; height: 260px; }
    .questionnaire-start-text { padding: 2rem; }
    .questionnaire-start-text p { font-size: 1rem; }
    .questionnaire-start-text p:first-child { font-size: 1.2rem; }
    .questionnaire-start button { width: 100%; }
    .questionnaire-start button a { width: 100%; text-align: center; padding: 1rem; font-size: 1rem; }
}

.questionnaire {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
}

.questionnaire h2 { display: none; }

.questionnaire__header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 3rem;
}

.questionnaire__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 3rem auto;
}

.questionnaire-step-container { width: 100%; min-height: 250px; }

.questionnaire__step {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 60%;
    min-width: 300px;
    margin: auto;
}

.questionnaire__title { font-size: 26px; margin-bottom: 10px; }

.questionnaire-step-container h3 { text-align: center; margin-bottom: 1.5rem; }

.questionnaire__counter { font-size: 14px; color: #3b5ca6; }

.questionnaire__error {
    background: #ffe5e5;
    color: #b00020;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.questionnaire__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d4e8fa;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    box-sizing: border-box;
    flex: 0 0 calc(50% - 0.5rem);
}

.questionnaire__option:last-child:nth-child(even) {
    flex-basis: 100%;
    max-width: calc(50% - 0.5rem);
}

.questionnaire__option:hover { border-color: #1a174d; transform: translateY(-2px); }
.questionnaire__checkbox { transform: scale(1.2); }
.questionnaire__letter  { font-weight: 500; width: 25px; }
.questionnaire__label-text { flex: 1; }

.questionnaire-buttons-container { display: flex; flex-direction: column; gap: 0.8rem; }

.questionnaire-names { display: flex; gap: 0.5rem; }

.questionnaire-names input{
    border-radius: 0.5rem;
    border: 0.5px solid rgb(201, 201, 201);
}

.questionnaire__buttons {
    display: flex;
    justify-content: space-between;
    margin: auto;
    gap: 1rem;
}

#btn-next,
#btn-submit,
#btn-prev {
    width: fit-content;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgb(200, 200, 200);
    background: #fffcfa;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

#btn-next:hover:not(:disabled),
#btn-submit:hover:not(:disabled),
#btn-prev:hover { box-shadow: var(--shadow-neumorphic-sm); transform: translateY(2px); }

#btn-next:disabled,
#btn-submit:disabled { background: #d4e8fa; color: #3b5ca6; cursor: not-allowed; box-shadow: none; }

#email,
#lastname,
#firstname,
#phone { padding: 0.5rem; box-sizing: border-box; }

.questionnaire__result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    padding: 3rem 2rem;
    border: 1px solid rgb(200, 200, 200);
    border-radius: 1rem;
    width: 80%;
    margin: 6rem auto;
    margin-top: 4rem;
    box-shadow: var(--shadow-soft);
}

.questionnaire__result-model {
    margin-top: 0.75rem;
    line-height: 1.6;
}

.questionnaire__result-brand {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-light);
}

.questionnaire__result-name {
    display: block;
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.questionnaire__result-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.questionnaire__result-btn {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    background-color: #fffcfa;
    color: var(--color-primary-dark);
    border: 1px solid rgb(200, 200, 200);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.questionnaire__result-btn:hover {
    box-shadow: var(--shadow-neumorphic-sm);
    transform: translateY(2px);
}

.questionnaire__result-btn a { color: var(--color-primary-dark); text-decoration: none; font-size: 16px; }
.questionnaire__result-label { color: green; font-weight: 500; font-size: 1.1rem; }
.questionnaire__result-intro { font-size: 1.1rem; color: green; font-weight: 500; margin-bottom: 0.5rem; }
.questionnaire__result-class-info {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text); }
.questionnaire__result-stars {
    display: block;
    color: #29338a;
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .section-questionnaire { margin-inline: 1rem; }
    .questionnaire__form { grid-template-columns: 1fr; width: 100%; margin-top: 1rem; gap: 1rem; }
    .questionnaire__result { width: 100%; padding: 2rem 1rem; margin: 2rem auto; box-sizing: border-box; }
    .questionnaire-step-container { height: auto; }
    .questionnaire__step { margin: 0; width: 100%; gap: 0.5rem; }
    .questionnaire__option { gap: 8px; padding: 10px; }
    .questionnaire__letter { width: fit-content; }
    .questionnaire-names { flex-direction: column; }
    .questionnaire-names input, #phone { width: 100%; box-sizing: border-box; }
    .questionnaire__checkbox { transform: scale(1.1); }
}

/* ============================================================
    SECTION LOGIN
   ============================================================ */


/* Wrapper */
.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Box */
.login-box {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 4px 4px 40px rgba(123, 123, 123, 0.25);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.8rem;
    color: #111827;
}

.login-header p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Form */
.login-form .form-group {
    margin-bottom: 1.2rem;
}

.login-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #374151;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
}

.login-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

/* Button */
.btn-login {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login:hover {
    background: #1d4ed8;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.login-wrapper #response{
    display: none;
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}

/* ERREUR */
.login-wrapper #response.error{
    display: block;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* SUCCESS */
.login-wrapper #response.success{
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ============================================================
   INFOS SECTION BACKOFFICE
   ============================================================ */

.dashboard-section-infos{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3rem;
    margin-bottom: 3rem;
    margin-inline: 3rem;
}

.dashboard-card-infos{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 2rem;
    width: 32%;
    height: fit-content;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
}

.dashboard-card-infos h3{
    font-size: 24px;
    font-weight: 500;
    color: #6b7280;
}

.dashboard-card-infos p{
    font-size: 32px;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.dashboard-card-infos-test{
    display: flex;
    justify-content: space-between;
}


/* INFOS BACKOFFICE — responsive */
@media (max-width: 1024px) {
    .dashboard-section-infos {
        margin-inline: 1.5rem;
        gap: 1.5rem;
    }

    .dashboard-card-infos {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .dashboard-section-infos {
        flex-direction: column;
    }

    .dashboard-card-infos {
        width: 100%;
    }

    .dashboard-card-infos:nth-child(2) {
        flex-direction: column;
    }

    .dashboard-card-infos-test {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-section-infos {
        margin-inline: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .dashboard-card-infos {
        padding: 14px;
        gap: 1rem;
    }

    .dashboard-card-infos h3 {
        font-size: 20px;
    }

    .dashboard-card-infos p {
        font-size: 24px;
    }
}

/* ============================================================
   NEW ARTICLES SECTION BACKOFFICE
   ============================================================ */

   
/* =========================
   TABLE ARTICLES ADMIN
========================= */

.new-articles-section {
    /* width: 100%; */
    margin-inline: 3rem;
    margin-bottom: 3rem;
    padding: 0;
    /* background: #fff; */
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* TABLE */

.new-articles-section-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: none;
}

/* HEADER */

.new-articles-section-table-title {
    background: #1e3a5f;
}

.new-articles-section-table-title th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

.new-articles-section-table-title th:last-child {
    text-align: center;
}

/* BODY */

.new-articles-section-table-body tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.new-articles-section-table-body tr:last-child {
    border-bottom: none;
}

.new-articles-section-table-body tr:hover {
    background: #f8faff;
}

.new-articles-section-table-body td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e293b;
}

/* =========================
   STATUS
========================= */

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* PUBLIÉ */

.status.publié {
    background: #ecfdf5;
    color: #059669;
}

.status.publié::before {
    background: #059669;
}

/* BROUILLON */

.status.brouillon {
    background: #fffbeb;
    color: #d97706;
}

.status.brouillon::before {
    background: #d97706;
}

/* =========================
   ACTIONS
========================= */

td.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* BUTTON */

.btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        opacity 0.15s ease;
}

/* HOVER */

.btn:hover {
    transform: scale(1.08);
}

/* ICONS */

.btn-add {
    color: #059669;
    font-size: 20px;
}

.btn-delete {
    color: #dc2626;
    font-size: 20px;
}

.btn-edit {
    color: #64748b;
    font-size: 20px;
}

/* DISABLED */

.btn.disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
    background: #f1f5f9;
}

.gray {
    color: #94a3b8;
    font-size: 20px;
}

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

@media (max-width: 1024px) {

    .new-articles-section {
        margin-inline: 1.5rem;
    }

    .new-articles-section-table-title th,
    .new-articles-section-table-body td {
        padding-inline: 1rem;
    }
}

@media (max-width: 768px) {

    .new-articles-section {

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

    .new-articles-section-table-title th {
        font-size: 0.68rem;
    }

    .new-articles-section-table-body td {
        font-size: 0.82rem;
    }

    td.actions {
        gap: 0.5rem;
    }

    .btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {

    .new-articles-section {
        border-radius: 10px;
    }

    .new-articles-section-table-title th {
        padding: 0.75rem;
        font-size: 0.64rem;
    }

    .new-articles-section-table-body td {
        padding: 0.75rem;
        font-size: 0.76rem;
    }

    .status {
        font-size: 0.65rem;
        padding: 0.25rem 0.55rem;
    }

    .btn {
        width: 28px;
        height: 28px;
    }

    .btn-add,
    .btn-delete,
    .btn-edit,
    .gray {
        font-size: 18px;
    }
}


/* ============================================================
   BLOG SECTION BACKOFFICE
   ============================================================ */

/* =========================
   BLOG ADMIN MODERNE CARD
========================= */

.admin-blog-section {
    margin: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* CARD */

.admin-blog-articles-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.admin-blog-articles-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* LEFT */

.admin-blog-articles-card__left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* RIGHT */

.admin-blog-articles-card__right {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* IMAGE */

.admin-blog-articles-card__image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    background: #f1f5f9;
}

/* Page sans photo : emplacement vide de la même taille */
.admin-blog-articles-card__image--vide {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
}

.admin-blog-articles-card__statut.is-publie { color: #16a34a; }
.admin-blog-articles-card__statut.is-brouillon { color: #ea580c; }

/* Bande de couleur à gauche de chaque carte : vert = publié, orange = brouillon */
.admin-blog-articles-card.is-publie { border-left: 6px solid #16a34a; }
.admin-blog-articles-card.is-brouillon { border-left: 6px solid #ea580c; }
.admin-blog-articles-card[hidden] { display: none; }

/* Filtres de liste (catégorie / rubrique et état) */
.admin-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1.25rem;
    /* Sans cadre ni fond : les filtres reposent directement sur la page */
    padding: 0 0 0.5rem;
}

.admin-filtre {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 200px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.admin-filtre .form-input { text-transform: none; letter-spacing: normal; font-weight: 500; }

.admin-filtres-compte {
    margin-left: auto;
    font-size: 0.85rem;
    color: #64748b;
}

.admin-filtres-vide {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}
.admin-filtres-vide[hidden] { display: none; }
.admin-blog-articles-card__category.cat--page { color: var(--color-bleu-clair); }

/* Champs SEO et documents (formulaires des pages et des articles) */
.form-aide {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #64748b;
}
.form-aide.is-long { color: #d97706; } /* titre SEO au-delà des 60 caractères conseillés */

.form-textarea--code {
    min-height: 160px;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
}

.documents-pdf-resultat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.documents-pdf-resultat[hidden] { display: none; }

/* Adresse d'une page : affichée, non modifiable */
.form-url-lecture {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
}

/* STATUT */

.admin-blog-articles-card__statut {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.admin-blog-articles-card__statut::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* STATUT + CATÉGORIE */

.admin-blog-articles-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-blog-articles-card__category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.admin-blog-articles-card__category::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.admin-blog-articles-card__category.cat--prevention  { color: #2563eb; }
.admin-blog-articles-card__category.cat--correction  { color: #16a34a; }
.admin-blog-articles-card__category.cat--reeducation { color: #ea580c; }
.admin-blog-articles-card__category.cat--tarif       { color: #d97706; }
.admin-blog-articles-card__category.cat--centre      { color: #8b5cf6; }

/* TITRE */

.admin-blog-articles-card__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CHAPO */

.admin-blog-articles-card__chapo {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESUME */

.admin-blog-articles-card__resume {
    font-size: 0.8rem;
    color: #94a3b8;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ACTIONS */

.admin-blog-articles-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* BUTTONS */

.admin-blog-articles-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* VARIANTS */

.admin-blog-articles-card__btn--edit {
    background: #2563eb;
    color: white;
}

.admin-blog-articles-card__btn--edit:hover {
    background: #1d4ed8;
}

.admin-blog-articles-card__btn--delete {
    background: #ef4444;
    color: white;
}

.admin-blog-articles-card__btn--delete:hover {
    background: #dc2626;
}

.admin-blog-articles-card__btn--publish {
    background: #059669;
    color: white;
}

.admin-blog-articles-card__btn--publish:hover {
    background: #047857;
}

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

@media (max-width: 768px) {

    .admin-blog-section {
        margin: 1.5rem;
    }

    .admin-blog-articles-card {
        flex-direction: column;
    }

    .admin-blog-articles-card__right {
        flex: 1;
        width: 100%;
    }

    .admin-blog-articles-card__image {
        height: 140px;
    }
}

@media (max-width: 480px) {

    .admin-blog-section {
        margin: 1rem;
    }

    .admin-blog-articles-card {
        padding: 1rem;
    }

    .admin-blog-articles-card__title {
        font-size: 0.9rem;
    }

    .admin-blog-articles-card__btn {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}


/* ============================================================
   Parametres SECTION BACKOFFICE
   ============================================================ */


.moderateurs-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10rem;
    margin: 3rem;
}

/* USERS BLOCK */

.users-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

/* TITLE */

.users-title {
    font-size: 2rem;
    font-weight: 500;
    color: #0f172a;
    margin: 0;
}

/* TABLE */

.users-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.users-table thead {
    background: #0c3470;
    color: white;
}

.users-table th,
.users-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.9rem;
}

.users-table tr:last-child td {
    border-bottom: none;
}

/* STATUS */

.users-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* VARIANTS */

.users-status--admin {
    background: #fee2e2;
    color: #dc2626;
}

.users-status--user {
    background: #dbeafe;
    color: #2563eb;
}

.users-status--pending {
    background: #fef3c7;
    color: #92400e;
}

/* FORM */

.admin-user-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* FIELD */

.admin-user-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* INPUT */

.admin-user-form__field input {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.admin-user-form__field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* BUTTON */

.admin-user-form__btn {
    padding: 10px 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.admin-user-form__btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

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

@media (max-width: 1024px) {

    .moderateurs-section {
        flex-direction: column;
        gap: 2rem;
        margin: 2rem;
    }

    .users-table {
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    .moderateurs-section {
        margin: 1rem;
    }

    .users-title {
        font-size: 1.5rem;
    }

    .users-table th,
    .users-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .admin-user-form__btn {
        font-size: 0.85rem;
    }
}

/* ============================================================
   FORM BACKOFFICE — BLOG FORM MODERNE
   ============================================================ */

.admin-blog-form-section {
    margin: 3rem;
}

.admin-blog-form-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

/* FORM GRID */

.article-form {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* COLUMN */

.form-column {
    background: #fff;
    height: fit-content;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

/* SUBTITLE */

.form-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 1rem;
}

/* SECTION */

.form-section {
    margin-bottom: 1rem;
}

.form-titre-slug{
    display: flex;
    justify-content: space-between;
}

.form-add-article-title{
    width: 55%;
}

/* LABEL */

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.4rem;
}

/* INPUTS */

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

/* FOCUS MODERNE */

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* TEXTAREA */

/* .form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-textarea--large {
    min-height: 180px;
} */

.form-textarea--chapo   { min-height: 150px; resize: vertical; }
.form-textarea--resume  { min-height: 250px; resize: vertical; }
.form-textarea--content { min-height: 500px; resize: vertical; }

/* GRID */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* PREVIEW */

.form-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* BUTTON */

.form-button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;

    background: #2563eb;
    color: white;

    font-size: 0.95rem;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.form-button:hover {
    background: #1d4ed8;
    box-shadow: var(--shadow-neumorphic-sm);
    transform: translateY(2px);
}

/* ACTIONS */

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* HTML INSERTER */

.form-html-guide {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.html-inserter {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.html-inserter-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.html-inserter-fields {
    display: flex;
    gap: 0.4rem;
    align-items: flex-end;
}

.html-inserter-fields--double {
    flex-wrap: wrap;
}

.html-inserter-fields--double .html-inserter-input {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: 0;
}

.html-inserter-input {
    flex: 1;
    padding: 5px 8px;
    font-size: 0.82rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s ease;
    min-width: 0;
}

.html-inserter-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.html-inserter-btn {
    flex-shrink: 0;
    padding: 5px 10px;
    background: #0c3470;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
    align-self: flex-end;
}

.html-inserter-btn:hover { background: #072654; }

.html-inserter-btn--full {
    width: 100%;
    padding: 6px;
    margin-top: 0.2rem;
}

.html-inserter-fields--heading {
    flex-wrap: wrap;
}

.html-inserter-fields--heading textarea {
    flex: 1 1 100%;
}

.html-inserter-fields--heading .html-inserter-id-input {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.html-inserter-link-types {
    display: flex;
    gap: 0.3rem;
}

.html-link-type-btn {
    flex: 1;
    padding: 3px 6px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.html-link-type-btn.active {
    background: #0c3470;
    color: #fff;
    border-color: #0c3470;
}

.html-link-type-btn:hover:not(.active) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.html-llm-prompt {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.html-llm-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.html-llm-copy-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.html-llm-copy-btn:hover { background: #ddd; }

.html-llm-prompt-text {
    font-size: 11.5px;
    line-height: 1.6;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem;
    white-space: pre-wrap;
    color: #444;
    margin: 0;
    font-family: monospace;
    user-select: all;
}

/* FEEDBACK */

.success {
    padding: 10px 14px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 0.85rem;
}

.error {
    padding: 10px 14px;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.85rem;
}

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

@media (max-width: 900px) {

    .admin-blog-form-section {
        margin: 1.5rem;
    }

    .article-form {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

    .admin-blog-form-section {
        margin: 1rem;
    }

    .form-column {
        padding: 1rem;
    }

    .admin-blog-form-title {
        font-size: 1.4rem;
    }

    .form-button {
        font-size: 0.9rem;
    }
}

/* ============================================================
   HTML GUIDE — UPLOAD IMAGE INLINE
   ============================================================ */

.html-img-upload-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block: 0.25rem;
}

.html-img-upload-input { display: none; }

.html-img-upload-label {
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: 1px dashed #94a3b8;
    font-size: 0.85rem;
    color: #475569;
    background: #f8fafc;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.html-img-upload-label:hover { border-color: #2563eb; color: #2563eb; }

.html-img-upload-status { font-size: 0.8rem; }

/* ============================================================
   HTML GUIDE — PANNEAU FLOTTANT
   ============================================================ */

.html-guide-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0c3470;
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-texte);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.html-guide-fab:hover { background: #072654; transform: scale(1.07); }

.html-guide-fab.is-open { background: #072654; }

.html-guide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 950;
}

.html-guide-overlay.open { display: block; }

.html-guide-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100dvh;
    background: #fff;
    z-index: 960;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.html-guide-panel.open { right: 0; }

.html-guide-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #0c3470;
    color: #fff;
    flex-shrink: 0;
}

.html-guide-panel-title {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.html-guide-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s ease;
}

.html-guide-close-btn:hover { background: rgba(255, 255, 255, 0.2); }

.html-guide-panel-body {
    overflow-y: auto;
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .html-guide-panel { width: 100%; right: -100%; }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer.footer-site {
    /* Bandeau pleine largeur : aucun blanc sur les côtés ni en bas */
    padding: 0;
}

.footer-panneau {
    /* Le bleu court d'un bord à l'autre ; le contenu, lui, reste centré sur 1400 px
       grâce au max() : au-delà, le surplus de largeur passe en marge interne. */
    max-width: none;
    margin-inline: 0;
    padding: clamp(2.5rem, 5vw, 4.5rem) max(clamp(1.5rem, 5vw, 4.5rem), (100% - 1400px) / 2);
    border-radius: 0;
    background: var(--color-bleu-profond);
    color: var(--color-blanc-casse);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-haut {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 3fr;
    gap: 3rem;
}

.footer-marque {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.footer-logo { width: 220px; height: auto; }

.footer-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-blanc-casse);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.footer-tel:hover { color: var(--color-bleu-ciel); }

.footer-adresse {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 252, 250, 0.78);
}

.footer-cta {
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: var(--color-beige);
    color: var(--color-bleu-profond);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-base), transform var(--transition-base);
}

.footer-cta:hover {
    background: var(--color-blanc-casse);
    transform: translateY(-2px);
}

.footer-colonnes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.footer-colonne h3 {
    margin-bottom: 1.1rem;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-blanc-casse);
}

.footer-colonne ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-colonne a {
    color: rgba(255, 252, 250, 0.82);
    font-size: 15px;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-colonne a:hover {
    color: var(--color-blanc-casse);
    text-decoration: underline;
}

.footer-horaires li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 15px;
    color: rgba(255, 252, 250, 0.82);
}

.footer-horaires li span:last-child {
    color: var(--color-bleu-ciel);
    white-space: nowrap;
}

.footer-bas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(212, 232, 250, 0.22);
    font-size: 14px;
    color: rgba(255, 252, 250, 0.72);
}

.footer-dev-name {
    font-weight: 600;
    color: var(--color-blanc-casse);
}

.footer-legal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
}

.footer-legal a {
    color: rgba(255, 252, 250, 0.82);
    font-size: 14px;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--color-blanc-casse);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-haut { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .footer-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}

@media (max-width: 560px) {
    .footer-colonnes { grid-template-columns: minmax(0, 1fr); }
    .footer-bas { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------
   Pied de page mobile : tout centré, et chaque colonne (Votre audition,
   Le centre, Le blog, Horaires) devient un menu dépliable.
   Le repli n'est actif que si main.js a ajouté .footer-accordeon :
   sans JavaScript, les listes restent affichées.
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .footer-marque { align-items: center; text-align: center; }
    .footer-bas { flex-direction: column; align-items: center; text-align: center; }
    .footer-legal { justify-content: center; }

    .footer-colonnes { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .footer-colonne ul { align-items: center; }
    .footer-horaires li { justify-content: center; gap: 0.5rem; }

    .footer-accordeon .footer-colonne {
        border-top: 1px solid rgba(212, 232, 250, 0.22);
    }
    .footer-accordeon .footer-colonne:last-child {
        border-bottom: 1px solid rgba(212, 232, 250, 0.22);
    }

    .footer-accordeon .footer-colonne h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        margin: 0;
        padding: 1rem 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Chevron : pointe vers le bas, vers le haut une fois ouvert */
    .footer-accordeon .footer-colonne h3::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-top: -4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.25s ease, margin 0.25s ease;
    }
    .footer-accordeon .footer-colonne.is-open h3::after {
        margin-top: 4px;
        transform: rotate(-135deg);
    }

    .footer-accordeon .footer-colonne ul {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    }
    .footer-accordeon .footer-colonne.is-open ul {
        max-height: 320px;
        padding-bottom: 1.1rem;
        opacity: 1;
    }
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-size: 1rem;
    text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ============================================================
   ACCESSIBILITÉ — prefers-reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   PAGES D'ATTERRISSAGE (annonces) — /rdv/…
   Bandes successives sans écart ; accents en rouge de la charte.
   ============================================================ */

.lp { display: flex; flex-direction: column; }

.lp-hero,
.lp-bloc {
    padding: 4.5rem max(4rem, calc((100% - 1200px) / 2));
}

.lp-bloc { background: var(--color-white); }
.lp-bloc--teinte { background: #f3f6fb; }
.lp-bloc--avis { background: var(--color-bleu-medium); }

/* Accroche + formulaire */
.lp-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.lp-hero-texte { display: flex; flex-direction: column; gap: 1.25rem; }

.lp-surtitre {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-rouge);
}

.lp-titre {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -1px;
    color: var(--color-bleu-medium);
}

.lp-intro {
    max-width: 560px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #4a5568;
}

.lp-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border: 1px solid var(--color-bleu-medium);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.lp-btn--plein { background: var(--color-bleu-medium); color: var(--color-blanc-casse); }
.lp-btn--plein:hover { background: var(--color-bleu-profond); border-color: var(--color-bleu-profond); transform: translateY(-2px); }
.lp-btn--ligne { background: var(--color-white); color: var(--color-bleu-medium); }
.lp-btn--ligne:hover { background: var(--color-bleu-ciel); }

.lp-atouts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
}

.lp-atouts li::before {
    content: "✓";
    margin-right: 0.45rem;
    font-weight: 700;
    color: var(--color-rouge);
}

.lp-photo {
    width: 100%;
    height: auto;
    min-height: 0; /* sinon la colonne flex impose la hauteur naturelle et ignore le ratio */
    aspect-ratio: 3 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-top: 0.75rem;
}

/* Formulaire « Être rappelé » */
.lp-rappel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem;
    border-top: 4px solid var(--color-rouge);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: 0 14px 34px rgba(26, 23, 77, 0.12);
}

.lp-rappel-titre { font-size: 24px; font-weight: 600; color: var(--color-bleu-medium); }
.lp-rappel-intro { margin-bottom: 0.5rem; font-size: 15px; line-height: 1.5; color: #617086; }
.lp-label { margin-top: 0.5rem; font-size: 15px; font-weight: 600; color: var(--color-bleu-profond); }

.lp-champ {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #cdd3de;
    border-radius: 10px;
    background: var(--color-white);
    font: inherit;
    font-size: 16px; /* 16 px : pas de zoom automatique sur iPhone */
    color: var(--color-bleu-profond);
}

.lp-champ:focus { outline: 2px solid var(--color-bleu-medium); outline-offset: 1px; border-color: transparent; }

.lp-rappel-envoi { margin-top: 1rem; width: 100%; }
.lp-rappel-envoi:disabled { opacity: 0.6; cursor: wait; }

.lp-rappel-retour { min-height: 1.2em; font-size: 15px; font-weight: 600; }
.lp-rappel-retour.is-ok { color: #1e6b3a; }
.lp-rappel-retour.is-erreur { color: var(--color-rouge); }

.lp-rappel-mention { font-size: 13px; line-height: 1.5; color: #617086; }
.lp-rappel-mention a { color: var(--color-bleu-medium); }

/* Piège à robots : hors écran, jamais visible */
.lp-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Blocs */
.lp-h2 {
    margin-bottom: 2.25rem;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-bleu-medium);
    text-align: left;
}

.lp-genes,
.lp-etapes,
.lp-avis {
    list-style: none;
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.lp-genes { grid-template-columns: repeat(4, 1fr); }
.lp-etapes { grid-template-columns: repeat(3, 1fr); }
.lp-avis { grid-template-columns: repeat(3, 1fr); }

.lp-carte {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    border: 1px solid #e3e7ef;
    border-radius: var(--radius-lg);
    background: var(--color-white);
}

/* Trait rouge au-dessus de chaque gêne */
.lp-gene::before {
    content: "";
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-rouge);
}

.lp-carte-titre { font-size: 18px; font-weight: 600; color: var(--color-bleu-medium); }
.lp-carte-texte { font-size: 15px; line-height: 1.6; color: #4a5568; }

.lp-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bleu-medium);
    color: var(--color-blanc-casse);
    font-weight: 600;
}

/* Avis sur fond bleu */
.lp-bloc--avis .lp-h2 { color: var(--color-white); }

.lp-avis-carte {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
}

.lp-avis-texte { font-size: 16px; line-height: 1.6; color: var(--color-white); }
.lp-avis-auteur { font-size: 14px; font-weight: 500; color: rgba(255, 252, 250, 0.8); }

/* Questions fréquentes : une colonne centrée, accordéon du site */
.lp-faq .lp-h2,
.lp-faq-liste { max-width: 760px; margin-inline: auto; width: 100%; }
.lp-faq-liste { display: flex; flex-direction: column; gap: 0.8rem; }

/* Contact + carte */
.lp-contact {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.lp-contact .lp-h2 { margin-bottom: 1rem; }
.lp-contact-texte { margin-bottom: 1.5rem; font-size: 16px; line-height: 1.8; color: #4a5568; }

.lp-carte-maps {
    height: 260px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-bleu-ciel);
}

.lp-carte-maps iframe { display: block; width: 100%; height: 100%; border: 0; }
.lp-carte-maps .cookies-contenu-bloque { height: 100%; min-height: 0; border-radius: inherit; }

/* Bande de trois points forts (sans cartes), trait rouge au-dessus */
.lp-bloc--points { border-block: 1px solid #e3e7ef; }

.lp-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.lp-point { display: flex; flex-direction: column; gap: 0.6rem; }

.lp-point::before {
    content: "";
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-rouge);
}

.lp-point .lp-carte-texte { font-size: 16px; }

@media (max-width: 1024px) {
    .lp-hero { grid-template-columns: 1fr; }
    .lp-genes { grid-template-columns: repeat(2, 1fr); }
    .lp-titre { font-size: 44px; }
}

@media (max-width: 768px) {
    .lp-hero,
    .lp-bloc { padding: 3rem 1.5rem; }
    .lp-titre { font-size: 34px; }
    .lp-h2 { font-size: 30px; margin-bottom: 1.5rem; }
    .lp-genes,
    .lp-etapes,
    .lp-avis,
    .lp-points,
    .lp-contact { grid-template-columns: 1fr; }
    .lp-points { gap: 2rem; }
    .lp-actions .lp-btn { flex: 1 1 100%; }
    .lp-photo { aspect-ratio: 16 / 9; }
}

/* ============================================================
   MOBILE : tous les titres centrés (sections, pages, articles,
   pages d'annonce, cartes et pied de page)
   ============================================================ */
@media (max-width: 768px) {
    main h1,
    main h2,
    main h3,
    main h4,
    .lp-carte-titre,
    .footer-site h3 {
        /* !important : passe devant les alignements à gauche propres à chaque section */
        text-align: center !important;
        /* Titre plus étroit que son bloc (colonne flex calée à gauche) : recentré */
        align-self: stretch;
        margin-inline: auto;
    }

    /* Trait rouge au-dessus des points forts des pages d'annonce : centré avec le titre */
    .lp-point::before { align-self: center; }
}
