/* Accueil v2 — « tableau de régulation » : encre, papier, vert d'eau médical. Mobile-first. */

.ac {
    --ac-encre: #0d1726;
    --ac-encre-2: #15233a;
    --ac-papier: #f5f2ec;
    --ac-blanc: #ffffff;
    --ac-ligne: #e2dccf;
    --ac-texte: #1b2433;
    --ac-doux: #5a6474;
    --ac-signal: #2cc9a8;
    --ac-signal-fonce: #1fae90;
    --ac-bleu: #2563eb;
    --ac-live: #22c55e;
    --ac-rayon: 14px;
    --ac-police-titre: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --ac-police-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;
    color: var(--ac-texte);
    font-size: 1rem;
    line-height: 1.55;
}

.ac *,
.ac *::before,
.ac *::after { box-sizing: border-box; }

/* Remise à zéro sans spécificité (:where) : les classes de composant priment toujours. */
:where(.ac) :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; }
:where(.ac) :where(ul, ol) { padding: 0; list-style: none; }
:where(.ac) img { display: block; max-width: 100%; height: auto; }
:where(.ac) svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ac mark { background: none; color: var(--ac-signal); }
.ac a:focus-visible,
.ac summary:focus-visible { outline: 3px solid var(--ac-bleu); outline-offset: 3px; border-radius: 6px; }

.ac-conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Typographie commune ---------- */

.ac-section { padding: 56px 0; background: var(--ac-blanc); }
.ac-section--papier { background: var(--ac-papier); }
.ac-section--encre { background: var(--ac-encre); color: #d5dbe5; }

.ac-entete { margin-bottom: 28px; max-width: 720px; }
.ac-entete--ligne { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; max-width: none; }
.ac-entete__texte { margin-top: 12px; color: var(--ac-doux); font-size: 1.05rem; }
.ac-section--encre .ac-entete__texte { color: #aab4c3; }

.ac-surtitre {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
    font-family: var(--ac-police-mono); font-size: .75rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ac-doux);
}
.ac-surtitre--clair { color: #c3cbd8; }

.ac-titre {
    font-family: var(--ac-police-titre); font-weight: 800;
    font-size: clamp(1.65rem, 6.2vw, 2.75rem); line-height: 1.08; letter-spacing: -.02em;
    color: var(--ac-encre);
}
.ac-section--encre .ac-titre { color: var(--ac-blanc); }

.ac-pastille-live {
    width: 8px; height: 8px; border-radius: 50%; background: var(--ac-live);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
    animation: ac-pulsation 1.8s ease-out infinite;
}

/* ---------- Boutons & liens ---------- */

.ac-bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
    font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
    transition: background-color .2s, transform .2s;
}
.ac-bouton:hover { transform: translateY(-2px); }
.ac-bouton:hover svg { transform: translateX(3px); }
.ac-bouton svg { transition: transform .2s; }
.ac-bouton--signal { background: var(--ac-signal); color: var(--ac-encre); }
.ac-bouton--signal:hover { background: var(--ac-signal-fonce); }
.ac-bouton--encre { background: var(--ac-encre); color: var(--ac-blanc); }
.ac-bouton--encre:hover { background: var(--ac-encre-2); }
.ac-bouton--contour { border-color: rgba(255, 255, 255, .35); color: var(--ac-blanc); }
.ac-bouton--contour:hover { border-color: var(--ac-blanc); }

.ac-lien {
    display: inline-block; padding: 10px 0;
    font-weight: 600; color: var(--ac-encre); text-decoration: none;
    transition: color .2s;
}
.ac-lien::after { content: '→'; display: inline-block; margin-left: 6px; color: var(--ac-signal-fonce); transition: transform .2s; }
.ac-lien:hover { color: var(--ac-signal-fonce); }
.ac-lien:hover::after { transform: translateX(3px); }
.ac-lien--clair { color: var(--ac-blanc); }
.ac-lien--clair::after, .ac-lien--clair:hover { color: var(--ac-signal); }

/* ---------- Types de véhicule ---------- */

.ac-type {
    display: inline-block; padding: 3px 8px; border-radius: 6px; white-space: nowrap;
    font-family: var(--ac-police-mono); font-size: .68rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    background: #eef1f5; color: #344054;
}
.ac-type--ambulance { background: #fde7e7; color: #b42318; }
.ac-type--taxi { background: #e3ecff; color: #1d4ed8; }

/* ---------- Hero ---------- */

.ac-hero {
    padding: 36px 0 32px;
    background-color: var(--ac-encre);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1.5' cy='1.5' r='1.2' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E");
    color: #c9d1dd;
}
.ac-hero__grille { display: grid; gap: 32px; }
.ac-hero__titre {
    font-family: var(--ac-police-titre); font-weight: 800;
    font-size: clamp(2.15rem, 9.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em;
    color: var(--ac-blanc);
}
.ac-hero__chapo { margin-top: 18px; max-width: 560px; font-size: 1.05rem; color: #b8c2d0; }
.ac-hero__chapo strong { color: var(--ac-blanc); }
.ac-hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

/* Visages des transporteurs (preuve sociale) */
.ac-preuve { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; text-decoration: none; color: inherit; }
.ac-preuve__visages { display: flex; flex-shrink: 0; }
.ac-preuve__visages img {
    width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--ac-encre); background: var(--ac-encre-2);
}
.ac-preuve__visages img:first-child { margin-left: 0; }
.ac-preuve__texte { font-size: .85rem; line-height: 1.35; color: #aab4c3; }
.ac-preuve__texte strong { display: block; font-size: .95rem; color: var(--ac-blanc); }
a.ac-preuve:hover .ac-preuve__texte strong { color: var(--ac-signal); }
.ac-preuve--statique { margin-top: 4px; }

/* Photo + bloc « en direct » superposé */
.ac-hero__visuel { position: relative; }
.ac-hero__photo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px; }

/* Bloc « en direct » : compact, n'empiète que sur le bas de la photo */
.ac-direct {
    position: relative; margin: -36px 12px 0;
    background: var(--ac-encre-2); border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.ac-direct__entete {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ac-direct__titre {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--ac-police-mono); font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ac-live);
}
.ac-direct__legende { font-family: var(--ac-police-mono); font-size: .68rem; font-weight: 600; color: var(--ac-signal); text-decoration: none; }
.ac-direct__ligne {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "trajet type" "temps type";
    align-items: center; gap: 0 10px;
    padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06);
    animation: ac-entree .5s ease-out both;
}
.ac-direct__ligne:last-child { border-bottom: 0; }
.ac-direct__ligne:nth-child(2) { animation-delay: .12s; }
.ac-direct__ligne:nth-child(3) { animation-delay: .24s; }
.ac-direct__ligne:first-child { animation: ac-entree .5s ease-out both, ac-eclair 2.4s 1s ease-out 2; }
.ac-direct__temps { grid-area: temps; font-family: var(--ac-police-mono); font-size: .68rem; color: #8994a6; }
.ac-direct__trajet { grid-area: trajet; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--ac-blanc); }
.ac-direct__trajet span { min-width: 0; overflow-wrap: anywhere; }
.ac-direct__trajet svg { width: 13px; height: 13px; color: var(--ac-signal); }
.ac-direct .ac-type { grid-area: type; }

/* Compteurs */
.ac-compteurs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.ac-compteurs__item { display: flex; flex-direction: column-reverse; gap: 4px; }
.ac-compteurs dt { font-size: .75rem; line-height: 1.3; color: #8994a6; }
.ac-compteurs dd {
    font-family: var(--ac-police-titre); font-weight: 800; font-variant-numeric: tabular-nums;
    font-size: clamp(1.35rem, 6vw, 2.6rem); line-height: 1; color: var(--ac-blanc);
}

/* ---------- Activité ---------- */

.ac-activite { padding-top: 0; }
.ac-defilant { overflow: hidden; margin-bottom: 48px; background: var(--ac-signal); color: var(--ac-encre); }
.ac-defilant__piste { display: flex; width: max-content; animation: ac-defilement 70s linear infinite; }
.ac-defilant__piste span {
    display: inline-flex; align-items: center; padding: 12px 0;
    font-family: var(--ac-police-titre); font-weight: 800; font-size: 1rem; text-transform: uppercase; white-space: nowrap;
}
.ac-defilant__piste span::after { content: '•'; margin: 0 18px; opacity: .45; }

.ac-billets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-billet {
    display: flex; flex-direction: column; gap: 10px; min-width: 0;
    padding: 12px; background: var(--ac-blanc); border: 1px solid var(--ac-ligne); border-radius: var(--ac-rayon);
    transition: transform .2s, box-shadow .2s;
}
.ac-billet:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(13, 23, 38, .08); }
.ac-billet__haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.ac-billet__temps { font-family: var(--ac-police-mono); font-size: .68rem; color: var(--ac-doux); }
.ac-billet__milieu { display: flex; align-items: center; gap: 8px; }
.ac-billet__trajet { position: relative; flex: 1; min-width: 0; display: grid; gap: 8px; padding-left: 18px; }
.ac-billet__trajet li:first-child::after {
    content: ''; position: absolute; left: -14px; top: calc(.2em + 12px); bottom: calc(-6px - .2em);
    border-left: 2px dashed #8f8676;
}
.ac-billet__trajet li {
    position: relative; overflow-wrap: anywhere;
    font-weight: 700; font-size: .9rem; line-height: 1.3; color: var(--ac-encre);
}
.ac-billet__trajet li::before {
    content: ''; position: absolute; left: -18px; top: .2em; width: 10px; height: 10px;
    border-radius: 50%; border: 2px solid var(--ac-encre); background: var(--ac-blanc);
}
.ac-billet__trajet li:last-child::before { background: var(--ac-encre); }
.ac-billet__bas {
    display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px;
    border-top: 1px dashed var(--ac-ligne);
    font-family: var(--ac-police-mono); font-size: .72rem; color: var(--ac-doux);
}
.ac-billet__bas span:first-child { font-weight: 700; color: var(--ac-encre); }
.ac-activite__lien { margin-top: 24px; }

/* Médaillon du transporteur (coche = demande réellement acceptée) */
.ac-medaillon { position: relative; flex-shrink: 0; width: 34px; height: 34px; }
.ac-medaillon img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--ac-blanc); box-shadow: 0 0 0 1px var(--ac-ligne); background: var(--ac-papier);
}
.ac-medaillon--acceptee::after {
    content: '✓'; position: absolute; right: -3px; bottom: -3px;
    display: flex; align-items: center; justify-content: center; width: 16px; height: 16px;
    border-radius: 50%; border: 2px solid var(--ac-blanc); background: var(--ac-live);
    font-size: .55rem; font-weight: 800; line-height: 1; color: var(--ac-blanc);
}

/* ---------- Étapes (itinéraire) ---------- */

.ac-itineraire { display: grid; gap: 0; }
.ac-itineraire__arret { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding-bottom: 28px; }
.ac-itineraire__arret:not(:last-child)::before {
    content: ''; position: absolute; left: 25px; top: 52px; bottom: 0;
    border-left: 2px dashed rgba(255, 255, 255, .22);
}
.ac-itineraire__numero {
    display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 14px; background: var(--ac-signal); color: var(--ac-encre);
    font-family: var(--ac-police-mono); font-weight: 800; font-size: 1.05rem;
}
.ac-itineraire__titre { margin: 4px 0 6px; font-family: var(--ac-police-titre); font-weight: 800; font-size: 1.2rem; color: var(--ac-blanc); }
.ac-itineraire p { color: #aab4c3; }
.ac-itineraire strong { color: var(--ac-blanc); }
.ac-etapes__cta { width: 100%; margin-top: 8px; }

/* ---------- Profils (deux portes) ---------- */

.ac-profils__grille { display: grid; gap: 14px; }
.ac-porte { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 22px; border-radius: 20px; }
.ac-porte p { font-size: 1rem; }
.ac-porte .ac-bouton { margin-top: auto; }
.ac-porte--patient { background: var(--ac-signal); color: var(--ac-encre); }
.ac-porte--pro { background: var(--ac-encre); color: #c3cbd8; }
.ac-porte--pro strong, .ac-porte--pro .ac-porte__titre { color: var(--ac-blanc); }
.ac-porte__etiquette { font-family: var(--ac-police-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.ac-porte__titre { font-family: var(--ac-police-titre); font-weight: 800; font-size: clamp(1.45rem, 5.5vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }

/* ---------- Défilement horizontal (mobile) ---------- */

.ac-defile-horizontal {
    display: grid; grid-auto-flow: column; gap: 12px;
    margin: 0 -20px; padding: 4px 20px 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ac-defile-horizontal::-webkit-scrollbar { display: none; }
.ac-defile-horizontal > li { scroll-snap-align: start; min-width: 0; }

/* ---------- Carte de France ---------- */

.ac-carte__grille { display: grid; gap: 28px; align-items: center; }
.ac-carte__legende { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; font-size: .88rem; font-weight: 600; color: var(--ac-encre); }
.ac-carte__legende li { display: inline-flex; align-items: center; gap: 8px; }
.ac-carte__puce { width: 12px; height: 12px; border-radius: 50%; }
.ac-carte__puce--pro { background: var(--ac-bleu); opacity: .7; }
.ac-carte__puce--demande { background: var(--ac-signal); border: 2px solid var(--ac-encre); }
.ac-carte__cta { margin-top: 24px; }

.ac-carte__cadre { position: relative; margin: 0; }
.ac-carte__svg { display: block; width: 100%; height: auto; fill: initial; stroke: none; }
.ac-carte__regions path { fill: #e4dccb; stroke: var(--ac-papier); stroke-width: 2.5; stroke-linejoin: round; transition: fill .2s; }
.ac-carte__regions a:hover path,
.ac-carte__regions a:focus path { fill: #bdeee3; }
.ac-carte__regions a:focus { outline: none; }
.ac-carte__regions a:focus-visible path { stroke: var(--ac-bleu); stroke-width: 3; }
.ac-carte__pros, .ac-carte__demandes { pointer-events: none; }
.ac-carte__pros circle { fill: var(--ac-bleu); opacity: .55; }
.ac-carte__demandes circle { fill: var(--ac-signal); stroke: var(--ac-encre); stroke-width: 1.5; }
.ac-carte__demandes .ac-carte__onde {
    fill: none; stroke: var(--ac-signal-fonce); stroke-width: 2;
    transform-box: fill-box; transform-origin: center;
    animation: ac-onde 2.8s ease-out infinite;
}

.ac-carte__avatar {
    position: absolute; z-index: 1; width: 34px; height: 34px;
    transform: translate(-50%, -100%); transition: transform .2s;
}
.ac-carte__avatar img {
    display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--ac-blanc); background: var(--ac-ligne);
    box-shadow: 0 6px 14px rgba(13, 23, 38, .25);
}
.ac-carte__avatar::after {
    content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -5px;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--ac-blanc);
}
.ac-carte__avatar:hover, .ac-carte__avatar:focus-visible { z-index: 2; transform: translate(-50%, -100%) scale(1.15); }
.ac-carte__avatar:nth-of-type(n+7) { display: none; }
.ac-carte__note { margin-top: 10px; text-align: center; font-family: var(--ac-police-mono); font-size: .68rem; color: var(--ac-doux); }

/* ---------- Mur des transporteurs ---------- */

.ac-mur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ac-mur > li:nth-child(n+12):not(:last-child) { display: none; }
.ac-mur__tuile {
    position: relative; display: block; overflow: hidden; aspect-ratio: 1;
    border-radius: 12px; background: var(--ac-ligne); text-decoration: none;
}
.ac-mur__tuile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ac-mur__tuile:hover img { transform: scale(1.06); }
.ac-mur__legende {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
    padding: 6px 8px; background: rgba(13, 23, 38, .8);
}
.ac-mur__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; font-weight: 700; color: var(--ac-blanc); }
.ac-mur__lieu { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ac-police-mono); font-size: .66rem; color: #c3cbd8; }
.ac-mur__tuile--plus {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px;
    background: var(--ac-signal); color: var(--ac-encre); text-align: center;
}
.ac-mur__tuile--plus strong { font-family: var(--ac-police-titre); font-weight: 800; font-size: clamp(1.1rem, 5vw, 1.8rem); line-height: 1; }
.ac-mur__tuile--plus span { font-size: .72rem; font-weight: 600; line-height: 1.2; }
.ac-mur__tuile--plus:hover { background: var(--ac-signal-fonce); }

/* ---------- Établissements ---------- */

.ac-etablissements__grille { display: grid; gap: 24px; align-items: center; }
.ac-encart { padding: 26px 22px; border-radius: 20px; background: var(--ac-encre); color: #aab4c3; }
.ac-encart__titre { margin-bottom: 8px; font-family: var(--ac-police-titre); font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: var(--ac-blanc); }
.ac-encart__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ---------- FAQ ---------- */

.ac-faq__grille { display: grid; gap: 8px; }
.ac-question { border-bottom: 1px solid var(--ac-ligne); }
.ac-question summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none;
}
.ac-question summary::-webkit-details-marker { display: none; }
.ac-question summary::after {
    content: '+'; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: var(--ac-blanc); border: 1px solid var(--ac-ligne);
    font-size: 1.2rem; font-weight: 600; transition: transform .2s;
}
.ac-question[open] summary::after { transform: rotate(45deg); background: var(--ac-signal); border-color: var(--ac-signal); }
.ac-question h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--ac-encre); }
.ac-question p { padding: 0 44px 18px 0; color: var(--ac-doux); }

/* ---------- Blog ---------- */

.ac-blog__liste { grid-auto-columns: 80%; }
.ac-article {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    border: 1px solid var(--ac-ligne); border-radius: var(--ac-rayon); background: var(--ac-blanc);
    text-decoration: none; color: var(--ac-encre); transition: transform .2s, box-shadow .2s;
}
.ac-article:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(13, 23, 38, .08); }
.ac-article img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ac-article__corps { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px; }
.ac-article__sujet { align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--ac-papier); font-family: var(--ac-police-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.ac-article__titre { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.35; }
.ac-article time { margin-top: auto; font-family: var(--ac-police-mono); font-size: .72rem; color: var(--ac-doux); }

/* ---------- Villes ---------- */

.ac-etiquettes { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-etiquettes a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--ac-ligne); border-radius: 999px; background: var(--ac-blanc);
    font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ac-encre);
    transition: background-color .2s, border-color .2s;
}
.ac-etiquettes a:hover { background: var(--ac-signal); border-color: var(--ac-signal); }
.ac-etiquettes span, .ac-region li span { font-family: var(--ac-police-mono); font-size: .75rem; font-weight: 500; color: var(--ac-doux); }
.ac-villes__lien { margin-top: 20px; }

/* ---------- Départements ---------- */

.ac-regions { display: grid; gap: 10px; }
.ac-region { border: 1px solid var(--ac-ligne); border-radius: 12px; background: var(--ac-blanc); }
.ac-region summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none;
}
.ac-region summary::-webkit-details-marker { display: none; }
.ac-region h3 { font-size: .98rem; font-weight: 700; color: var(--ac-encre); }
.ac-region summary span {
    min-width: 28px; padding: 2px 8px; border-radius: 6px; background: var(--ac-papier); text-align: center;
    font-family: var(--ac-police-mono); font-size: .72rem; font-weight: 700;
}
.ac-region[open] summary span { background: var(--ac-signal); }
.ac-region ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 0 16px 14px; }
.ac-region li a { display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: .88rem; text-decoration: none; color: var(--ac-texte); }
.ac-region li a:hover { color: var(--ac-bleu); }
.ac-region__tout { font-weight: 700; color: var(--ac-encre) !important; }

/* ---------- Barre d'action mobile ---------- */

.ac-barre-mobile {
    position: fixed; left: 12px; right: 96px; bottom: 24px; z-index: 9998;
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px;
    border-radius: 14px; background: var(--ac-signal); color: var(--ac-encre);
    font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(13, 23, 38, .3);
    transform: translateY(160%); transition: transform .3s ease;
}
.ac-barre-mobile.est-visible { transform: translateY(0); }

/* ---------- Animations ---------- */

@keyframes ac-pulsation {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}
@keyframes ac-entree {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes ac-eclair {
    0% { background-color: rgba(44, 201, 168, .16); }
    100% { background-color: transparent; }
}
@keyframes ac-defilement {
    to { transform: translateX(-50%); }
}
@keyframes ac-onde {
    from { transform: scale(1); opacity: .9; }
    to { transform: scale(4.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ac *, .ac *::before, .ac *::after { animation: none !important; transition: none !important; }
    .ac-defilant { overflow-x: auto; }
}

/* ---------- Tablette ---------- */

@media (min-width: 640px) {
    .ac-conteneur { padding: 0 32px; }
    .ac-hero__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; }
    .ac-direct__ligne { grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-areas: "temps trajet type"; }
    .ac-direct__temps { white-space: nowrap; }
    .ac-billets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .ac-billet { padding: 16px; }
    .ac-defile-horizontal { margin: 0 -32px; padding: 4px 32px 12px; scroll-padding: 0 32px; }
    .ac-mur { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .ac-mur > li:nth-child(n+12):not(:last-child) { display: list-item; }
    .ac-mur > li:nth-child(n+16):not(:last-child) { display: none; }
    .ac-mur__nom { font-size: .8rem; }
    .ac-mur__lieu { display: block; }
    .ac-carte__avatar { width: 42px; height: 42px; }
    .ac-carte__avatar:nth-of-type(n+7) { display: block; }
    .ac-direct { margin: -48px 40px 0; }
    .ac-medaillon { width: 40px; height: 40px; }
    .ac-blog__liste { grid-auto-columns: 46%; }
    .ac-etapes__cta { width: auto; }
    .ac-encart__actions { flex-direction: row; }
    .ac-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
    .ac-section { padding: 96px 0; }
    .ac-activite { padding-top: 0; }
    .ac-entete { margin-bottom: 40px; }

    .ac-hero { padding: 64px 0 56px; }
    .ac-hero__grille { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
    .ac-hero__visuel { margin-bottom: 40px; }
    .ac-hero__photo img { aspect-ratio: 4 / 5; border-radius: 24px; }
    .ac-direct { position: absolute; left: -40px; right: 48px; bottom: -32px; margin: 0; }
    .ac-compteurs { margin-top: 56px; gap: 32px; }
    .ac-compteurs dt { font-size: .85rem; }

    .ac-carte__grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
    .ac-carte__avatar { width: 50px; height: 50px; }

    .ac-billets { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .ac-itineraire { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
    .ac-itineraire__arret { grid-template-columns: 1fr; gap: 18px; padding-bottom: 0; }
    .ac-itineraire__arret:not(:last-child)::before { left: 64px; right: -24px; top: 25px; bottom: auto; border-left: 0; border-top: 2px dashed rgba(255, 255, 255, .22); }
    .ac-etapes__cta { margin-top: 48px; }

    .ac-profils__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .ac-porte { padding: 44px 40px; }

    .ac-defile-horizontal { margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; }
    .ac-mur { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
    .ac-mur > li:nth-child(n+16):not(:last-child) { display: list-item; }
    .ac-mur > li:nth-child(n+18):not(:last-child) { display: none; }
    .ac-blog__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

    .ac-etablissements__grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; }
    .ac-encart { padding: 36px 32px; }

    .ac-faq__grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
    .ac-faq .ac-entete { position: sticky; top: 110px; }

    .ac-regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .ac-barre-mobile { display: none; }
}
