/*
 * Mise en page du site d'aide. Couleurs, polices et logo : uniquement par les variables de charte.css.
 * Priorité à la lisibilité : texte grand, une colonne de lecture, contrastes forts, cibles larges.
 */

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

html { scroll-padding-top: 88px; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--police);
    font-size: var(--taille-texte);
    line-height: var(--interligne);
    -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-fonce); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--police-titres); line-height: 1.25; color: var(--texte); }
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-top: .5rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
code { font-size: .9em; background: var(--accent-clair); padding: .1em .35em; border-radius: 4px; }

.saut { position: absolute; left: -9999px; }
.saut:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); padding: .5rem 1rem; }

/* ---------- En-tête ---------- */

.entete {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--bordure);
}
.entete-interieur {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: .75rem 1rem;
    min-height: 72px;
}
.logo {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    text-decoration: none;
    color: var(--texte);
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--police-logo, var(--police));
    white-space: nowrap;
    padding-left: var(--logo-retrait, 0);
    background: var(--logo-image, none) left center / auto 1.5em no-repeat;
}
.logo::before { content: var(--logo-texte); color: var(--logo-couleur, var(--accent)); }
.logo span { font-family: var(--police); font-weight: 400; color: var(--texte-doux); font-size: 1rem; }
.entete .recherche { flex: 1; min-width: 0; max-width: 640px; margin-left: auto; }

.bouton-menu {
    display: none;
    align-items: center;
    gap: .4rem;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    background: var(--surface);
    color: var(--texte);
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}

/* ---------- Recherche ---------- */

.recherche { position: relative; }
.recherche label { display: block; font-weight: 600; margin-bottom: .4rem; }
.recherche-champ {
    display: flex;
    align-items: center;
    min-width: 0;
    background: var(--surface);
    border: 2px solid var(--bordure);
    border-radius: var(--rayon);
}
.recherche-champ:focus-within { border-color: var(--accent); }
.recherche-champ svg { flex: none; width: 22px; height: 22px; margin-left: .85rem; color: var(--texte-doux); }
.recherche input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: .5rem .85rem;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--texte);
}
.recherche input:focus { outline: none; }
.recherche-effacer {
    display: none;
    min-height: 44px;
    margin-right: .25rem;
    padding: 0 .75rem;
    border: 0;
    background: transparent;
    color: var(--texte-doux);
    font: inherit;
    font-size: .95rem;
    cursor: pointer;
}
.recherche.remplie .recherche-effacer { display: block; }

.recherche-panneau {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    max-height: min(70vh, 640px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: 0 8px 28px rgba(31, 35, 40, .18);
    padding: .5rem;
}
.recherche-panneau[hidden] { display: none; }
.recherche-aide { margin: .5rem .75rem; color: var(--texte-doux); font-size: 1rem; }
.recherche-aide button, .suggestions button {
    min-height: 40px;
    margin: .2rem .3rem .2rem 0;
    padding: .3rem .8rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}
.recherche-aide button:hover, .suggestions button:hover { background: var(--accent-clair); }
.recherche-aide strong { color: var(--texte); }

.resultats { list-style: none; margin: 0; padding: 0; }
.resultat-page { padding: .25rem 0; border-top: 1px solid var(--bordure); }
.resultat-page:first-child { border-top: 0; }
.resultat-chemin { margin: .5rem .75rem .1rem; font-size: .9rem; color: var(--texte-doux); }
.resultat {
    display: block;
    margin: .1rem 0;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: var(--texte);
    text-decoration: none;
}
.resultat:hover, .resultat:focus { background: var(--accent-clair); outline: none; }
.resultat:focus-visible { outline: 3px solid var(--focus); }
.resultat-titre { display: block; font-weight: 600; color: var(--accent); }
.resultat-extrait { display: block; font-size: 1rem; color: var(--texte-doux); }
.resultat mark, mark { background: var(--surligne); color: inherit; padding: 0 .1em; border-radius: 3px; }
.resultat-absente { font-size: .85rem; color: var(--texte-doux); font-style: italic; }

/* ---------- Accueil ---------- */

.accueil-bandeau { background: var(--accent-clair); border-bottom: 1px solid var(--bordure); }
.accueil-bandeau-interieur { max-width: 820px; margin: 0 auto; padding: 2rem 1rem .75rem; text-align: center; }
.accueil-bandeau h1 { font-size: 2.2rem; }
.accueil-bandeau p { color: var(--texte-doux); }
.accueil-bandeau .recherche { text-align: left; margin-top: 1.5rem; }
.accueil-bandeau .recherche input { min-height: 60px; font-size: 1.2rem; }
.accueil-bandeau .recherche-champ svg { width: 26px; height: 26px; }
.exemples { margin-top: .6rem; color: var(--texte-doux); font-size: .9rem; line-height: 1.4; }
/* Encart discret vers le simulateur de SMS, sous la recherche de l'accueil */
.essai-sms {
    margin: .9rem 0 0; padding-top: .35rem; border-top: 1px dashed var(--bordure-pointillee);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .6rem;
    font-size: 1rem; color: var(--texte-doux);
}
.essai-sms > svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.essai-sms a { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; font-weight: 600; color: var(--accent); }
.essai-sms a:hover { color: var(--accent-fonce); }
.essai-sms a svg { width: 16px; height: 16px; flex: none; }
.exemples button {
    margin: .15rem .1rem;
    min-height: 32px;
    padding: .1rem .7rem;
    border: 1px solid var(--bordure);
    border-radius: 999px;
    background: var(--surface);
    color: var(--texte);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.exemples button:hover { border-color: var(--accent); color: var(--accent); }

/* Champ de l'accueil : libellé visible, un vrai bouton « Chercher » à côté (qui ne pense pas à Entrée). */
.recherche-ligne { display: flex; flex-wrap: wrap; gap: .6rem; }
.recherche-ligne .recherche-champ { flex: 1 1 260px; }
.bouton-chercher {
    flex: 0 0 auto;
    min-height: 60px;
    padding: 0 1.6rem;
    border: 0;
    border-radius: var(--rayon);
    background: var(--accent);
    color: var(--sur-accent);
    font: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}
.bouton-chercher:hover { background: var(--accent-fonce); }

/* Bouton « Poser une question » de l'en-tête, sur toutes les pages. */
.entete-poser {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    padding: 0 1rem;
    border: 2px solid var(--accent);
    border-radius: var(--rayon);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}
.entete-poser svg { width: 20px; height: 20px; }
.entete .logo + .entete-poser { margin-left: auto; }
.poser-court { display: none; }

.accueil { max-width: 1200px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.accueil h2 { text-align: left; }
.accueil > section { margin-top: 3.5rem; }
.accueil > section > h2 { margin: 0 0 .25rem; padding: 0; font-size: 1.75rem; }
.section-intro { margin: 0 0 1.25rem; color: var(--texte-doux); }

/* « Je veux… » et « J'ai un souci… » côte à côte : l'entrée du boulanger qui a un souci. */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; align-items: start; margin-top: 2.5rem; }
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; padding: 1.5rem 1.5rem .75rem; box-shadow: var(--ombre); }
.carte h2 { margin: 0 0 .25rem; padding: 0; font-size: 1.6rem; }
.carte-intro { margin: 0 0 .75rem; font-size: 1rem; color: var(--texte-doux); }
.gestes { list-style: none; margin: 0; padding: 0; }
.gestes li { margin: 0; border-top: 1px solid var(--bordure); }
.gestes a { display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .5rem 0; color: var(--texte); text-decoration: none; }
.gestes a:hover strong { text-decoration: underline; }
.picto { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-clair); color: var(--accent); }
.picto svg { width: 24px; height: 24px; }
.gestes strong { display: block; color: var(--accent); }
.gestes small { display: block; font-size: .9rem; color: var(--texte-doux); }
.soucis a { min-height: 56px; font-weight: 600; color: var(--accent); }
.soucis svg { flex: none; width: 22px; height: 22px; }
.carte-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 0 .75rem; border-top: 1px solid var(--bordure); }

/* « Votre semaine de boulanger » : toutes les pages, dans l'ordre du travail. */
.semaine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; counter-reset: temps; }
.semaine > li { margin: 0; padding: 1.25rem; background: var(--surface); border: 1px solid var(--bordure); border-top: 6px solid var(--dore, var(--accent)); border-radius: 14px; }
.temps-titre { display: flex; align-items: center; gap: .6rem; margin: 0 0 .25rem; font-size: 1.3rem; }
.temps-titre::before { counter-increment: temps; content: counter(temps); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); font-size: 1.05rem; font-weight: 700; }
.semaine p { margin: 0 0 .6rem; font-size: 1rem; color: var(--texte-doux); }
.semaine ul { margin: 0; padding-left: 1.2rem; font-size: 1.05rem; }
.autres { margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px dashed var(--bordure); border-radius: 14px; }
.autres p { margin: 0 0 .6rem; font-weight: 600; }
.pastilles { display: flex; flex-wrap: wrap; gap: .5rem .6rem; font-size: 1rem; }
.pastilles a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--bordure); border-radius: 999px; background: var(--fond); text-decoration: none; }
.pastilles a.tout { border: 0; background: none; font-weight: 600; text-decoration: underline; }

/* « Vous démarrez ? » et « À transmettre à vos clients ». */
.duo-bas { margin-top: 3.5rem; }
.demarrer { list-style: none; margin: 0 0 .75rem; padding: 0; counter-reset: etape; }
.demarrer li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; }
.demarrer li::before { counter-increment: etape; content: counter(etape); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-size: .9rem; font-weight: 700; }
.carte-clients { background: var(--clients-fond); border-color: var(--clients-bordure); }
.carte-clients h2, .carte-clients a { color: var(--clients-lien); }
.carte-clients .carte-intro { color: var(--clients-texte); }
.carte-clients ul { margin: 0 0 .75rem; padding-left: 1.2rem; }
.carte-sous-titre { margin: .5rem 0 .25rem; font-size: .95rem; font-weight: 700; color: var(--clients-lien); }

/* Accès au simulateur de SMS, mis en avant pour les nouveaux boulangers. */
.acces-simulateur { display: flex; align-items: center; gap: .9rem; margin: .5rem 0 1rem; padding: .9rem 1rem; border: 2px solid var(--accent); border-radius: 12px; background: var(--accent-clair); color: var(--texte); text-decoration: none; }
.acces-simulateur:hover { background: var(--surface); }
.acces-simulateur svg { flex: none; width: 34px; height: 34px; color: var(--accent); }
.acces-simulateur strong { display: block; color: var(--accent); }
.acces-simulateur small { display: block; font-size: .9rem; color: var(--texte-doux); }

/* Page à écrire : visible, mais signalée comme telle. */
.pastilles a.a-ecrire { gap: .5rem; border-style: dashed; background: var(--surface); }
.pastilles a.a-ecrire span { padding: 0 .5rem; border-radius: 999px; background: var(--accent-clair); color: var(--texte-doux); font-size: .8rem; }

/* Appel au canal, en bas de l'accueil. */
.appel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding: 1.75rem; background: var(--texte); color: var(--surface); border-radius: 14px; }
.appel div { flex: 1 1 380px; }
.appel h2 { margin: 0 0 .25rem; padding: 0; color: var(--surface); font-size: 1.5rem; }
.appel p { margin: 0; color: var(--sur-sombre-doux); }
.appel .bouton { background: var(--accent-clair); color: var(--texte); }
.appel .bouton:hover { background: var(--surface); color: var(--texte); }
.appel-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
/* Sur fond clair (bas des fiches) : la question prime, les deux autres sorties sont secondaires. */
.pas-trouve .bouton-contour { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.pas-trouve .bouton-discret { background: transparent; color: var(--accent); font-weight: 600; text-decoration: underline; }
.pas-trouve .bouton-contour:hover, .pas-trouve .bouton-discret:hover { background: var(--accent-clair); color: var(--accent-fonce); }
.appel .bouton-contour { background: transparent; border: 2px solid var(--accent-clair); color: var(--surface); }
.appel .bouton-discret { background: transparent; border: 2px solid var(--texte-doux); color: var(--sur-sombre-doux); font-weight: 600; }

/* ---------- Page de fiche ---------- */

.mise-en-page {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 240px;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.menu { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding: 1.5rem 0 2rem; font-size: 1rem; }
.menu-titre { display: block; margin: 1rem 0 .25rem; font-weight: 700; color: var(--texte); }
.menu-titre:first-child { margin-top: 0; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0; }
.menu li a { display: block; padding: .35rem .75rem; border-left: 3px solid transparent; color: var(--texte-doux); text-decoration: none; }
.menu li a:hover { color: var(--accent); }
.menu li a[aria-current="page"] { border-left-color: var(--accent); color: var(--accent); font-weight: 600; background: var(--accent-clair); }
.menu details summary { cursor: pointer; padding: .35rem 0; font-weight: 600; list-style-position: outside; }
.menu details[open] summary { color: var(--accent); }

.contenu { min-width: 0; padding: 1.5rem 0 4rem; max-width: 46rem; }
.ariane { font-size: .95rem; color: var(--texte-doux); margin-bottom: 1rem; }
.ariane a { color: var(--texte-doux); }
.verifie { color: var(--texte-doux); font-size: .95rem; margin-bottom: 1.5rem; }

.en-bref {
    margin: 1.5rem 0 0;
    padding: 1.1rem 1.4rem;
    background: var(--accent-clair);
    border-left: 5px solid var(--accent);
    border-radius: 0 var(--rayon) var(--rayon) 0;
    font-size: 1.1rem;
}
.en-bref h2 { margin: 0 0 .4rem; padding: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.en-bref p:last-child { margin-bottom: 0; }

.clients {
    margin: 2.5rem 0 0;
    padding: 1.1rem 1.4rem;
    background: var(--clients-fond);
    border-left: 5px solid var(--clients-bord);
    border-radius: 0 var(--rayon) var(--rayon) 0;
}
.clients h2 { margin: 0 0 .25rem; padding: 0; color: var(--clients-bord); }
.clients-note { font-size: .95rem; color: var(--texte-doux); font-style: italic; }
.clients p:last-child { margin-bottom: 0; }

.tableau { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { padding: .6rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bordure); }
th { background: var(--fond); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; min-width: 9rem; }

.arrivee { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; padding: .5rem .9rem; border-radius: var(--rayon); background: var(--surligne); font-size: 1rem; }
.arrivee button { margin-left: auto; min-height: 36px; border: 0; background: transparent; color: var(--texte); font: inherit; font-size: 1rem; text-decoration: underline; cursor: pointer; }

.suite { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--bordure); }
.suite a { display: block; flex: 1; max-width: 48%; padding: .9rem 1.1rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); text-decoration: none; }
.suite a:hover { border-color: var(--accent); }
.suite small { display: block; color: var(--texte-doux); font-size: .9rem; }
.suite .suivante { margin-left: auto; text-align: right; }

.sommaire { position: sticky; top: 88px; align-self: start; padding: 1.5rem 0; font-size: .95rem; }
.sommaire-titre { font-weight: 700; margin-bottom: .5rem; }
.sommaire ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--bordure); }
.sommaire li { margin: 0; }
.sommaire li li a { padding-left: 1.6rem; }
.sommaire a { display: block; padding: .25rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--texte-doux); text-decoration: none; }
.sommaire a:hover { color: var(--accent); }
.sommaire a.actif { border-left-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ---------- Simulateur de SMS ---------- */
/* Ordinateur : étapes | téléphone dessiné | administration. Téléphone (≤ 720 px) : la conversation
   en haut sans téléphone dessiné, « Côté boulanger » (dernier événement), les étapes en grille. */

.sim-page { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.sim-intro { max-width: 46rem; color: var(--texte-doux); }
.sim { display: grid; grid-template-columns: minmax(250px, 1fr) 360px minmax(260px, 1fr); gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.sim-etapes, .sim-admin { padding: 1.25rem; background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; }
.sim h2 { margin: 0 0 .25rem; padding: 0; font-size: 1.3rem; }
.sim-contexte, .sim-admin-intro { margin: 0 0 .9rem; font-size: .95rem; color: var(--texte-doux); }
.sim-boutons { display: flex; flex-direction: column; gap: .6rem; }
.sim-bouton { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .5rem .9rem; border: 2px solid var(--accent); border-radius: 10px; background: var(--surface); color: var(--texte); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.sim-bouton:hover { background: var(--accent-clair); }
.sim-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); font-weight: 700; font-size: .95rem; }
.sim-libelle { display: block; }
.sim-court, .sim-intro-courte { display: none; }
.sim-note { display: block; font-size: .85rem; color: var(--accent); }
.sim-note:empty { display: none; }
.sim-bouton.sim-sans-elle { border-style: dashed; border-color: #b9ae9e; background: var(--fond); color: var(--texte-doux); }
.sim-bouton.sim-sans-elle .sim-num { background: #b9ae9e; }
.sim-bouton.sim-fait, .sim-bouton:disabled { border-color: var(--bordure); background: #efebe4; color: #6b6f76; cursor: not-allowed; }
.sim-bouton.sim-fait .sim-num { background: #c9c3b8; }
.sim-bouton.sim-fait .sim-note { color: #6b6f76; }
.sim-recommencer { min-height: 48px; margin-top: .25rem; border: 0; border-radius: 10px; background: var(--accent-clair); color: var(--texte); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.sim-avertissement { margin: 1rem 0 0; font-size: .875rem; color: var(--texte-doux); }

.sim-cadre { box-sizing: border-box; width: 360px; max-width: 100%; height: 720px; padding: 14px; background: #1f2328; border-radius: 44px; }
.sim-ecran { height: 100%; display: flex; flex-direction: column; background: #f2f2f4; border-radius: 32px; overflow: hidden; }
.sim-entete { flex: none; display: flex; align-items: center; gap: .6rem; padding: 1.2rem 1rem .75rem; background: #ffffff; border-bottom: 1px solid #e3e3e8; }
.sim-entete strong { display: block; font-size: .95rem; }
.sim-entete small { display: block; font-size: .75rem; color: #6b6f76; }
.sim-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); font-weight: 700; }
.sim-conversation { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .5rem; padding: .9rem .75rem; overflow-y: auto; font-size: .95rem; line-height: 1.4; }
.sim-vide { margin: auto; color: #6b6f76; text-align: center; font-size: .9rem; }
.sim-bulle { max-width: 84%; }
.sim-bulle-robot { align-self: flex-start; }
.sim-bulle-client { align-self: flex-end; text-align: right; }
.sim-bulle-texte { display: inline-block; padding: .55rem .75rem; border-radius: 18px 18px 18px 4px; background: #ffffff; color: #1f2328; white-space: pre-line; text-align: left; }
.sim-bulle-client .sim-bulle-texte { border-radius: 18px 18px 4px 18px; background: #2f6fd6; color: #ffffff; }
.sim-bulle-heure { margin: 2px 6px 0; font-size: .7rem; color: #6b6f76; }

.sim-admin-entete { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.sim-voir-tout { display: none; min-height: 36px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.sim-admin-liste { display: flex; flex-direction: column; gap: .6rem; }
.sim-admin-vide { margin: 0; padding: 1rem; border: 1px dashed var(--bordure); border-radius: 10px; color: var(--texte-doux); }
.sim-evenement { padding: .7rem .9rem; border: 1px solid var(--bordure); border-left: 5px solid var(--accent); border-radius: 10px; background: var(--fond); }
.sim-evenement-titre { font-weight: 700; }
.sim-evenement-detail { font-size: .95rem; color: #3d434a; white-space: pre-line; }
.sim-evenement-heure { margin-top: .2rem; font-size: .8rem; color: var(--texte-doux); }

@media (max-width: 1000px) {
    .sim { grid-template-columns: minmax(0, 1fr) 360px; }
    .sim-admin { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .sim-page { padding: .5rem .75rem 2rem; }
    .sim-page .ariane, .sim-intro { display: none; }
    .sim-page h1 { font-size: 1.25rem; margin: 0; }
    .sim-intro-courte { display: block; margin: 0; font-size: .85rem; color: var(--texte-doux); }
    .sim-court { display: block; font-weight: 700; }
    .sim-libelle { font-size: .75rem; color: var(--texte-doux); }
    .sim { display: flex; flex-direction: column; gap: 0; margin-top: .75rem; border: 1px solid var(--bordure); border-radius: 14px; overflow: hidden; background: var(--surface); }
    .sim-telephone { order: 1; }
    .sim-admin { order: 2; }
    .sim-etapes { order: 3; }
    .sim-cadre { width: auto; height: 32vh; min-height: 240px; padding: 0; background: none; border-radius: 0; }
    .sim-ecran { border-radius: 0; }
    .sim-entete { padding: .5rem .9rem; }
    .sim-etapes, .sim-admin { padding: .6rem .75rem; border: 0; border-top: 1px solid var(--bordure); border-radius: 0; }
    .sim-admin h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }
    .sim-admin-intro, .sim-etapes h2, .sim-contexte { display: none; }
    .sim-voir-tout { display: inline-block; }
    .sim-voir-tout[hidden] { display: none; }
    .sim-evenement { padding: .4rem .6rem; font-size: .9rem; }
    .sim-evenement-heure { display: none; }
    .sim:not(.sim-tout-voir) .sim-evenement-ancien { display: none; }
    .sim-admin-vide { padding: .3rem 0; border: 0; font-size: .9rem; }
    .sim-boutons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .sim-bouton { min-height: 52px; padding: .35rem .6rem; gap: .5rem; font-size: .9rem; line-height: 1.25; }
    .sim-bouton.sim-fait .sim-libelle, .sim-bouton.sim-sans-elle .sim-libelle { display: none; }
    .sim-num { width: 24px; height: 24px; font-size: .8rem; }
    .sim-note { font-size: .75rem; }
    .sim-recommencer { margin-top: 0; font-size: .875rem; }
    .sim-avertissement { font-size: .8rem; }
}

/* ---------- Pied de page ---------- */

.pas-trouve { margin: 3rem 0 0; padding: 1.25rem 1.4rem; border: 1px dashed var(--bordure); border-radius: var(--rayon); background: var(--surface); }
.pas-trouve p { margin: 0 0 .75rem; }
.bouton {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: .5rem 1.2rem;
    border-radius: var(--rayon);
    background: var(--accent);
    color: var(--sur-accent);
    font-weight: 600;
    text-decoration: none;
}
.bouton:hover { background: var(--accent-fonce); color: var(--sur-accent); }

.pied { border-top: 1px solid var(--bordure); padding: 1.5rem 1rem; text-align: center; color: var(--texte-doux); font-size: .9rem; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 50;
    max-width: calc(100% - 2rem);
    transform: translateX(-50%);
    padding: .8rem 1.2rem;
    border-radius: var(--rayon);
    background: var(--texte);
    color: var(--surface);
    font-size: 1rem;
    box-shadow: 0 8px 28px rgba(31, 35, 40, .25);
}
.toast[hidden] { display: none; }

/* ---------- Écrans plus étroits ---------- */

@media (max-width: 1200px) {
    .mise-en-page { grid-template-columns: 260px minmax(0, 1fr); }
    .sommaire { display: none; }
}

@media (max-width: 900px) {
    .bouton-menu { display: inline-flex; }
    .mise-en-page { display: block; }
    .menu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        width: min(340px, 88vw);
        max-height: none;
        padding: 1.25rem;
        background: var(--surface);
        box-shadow: 0 0 40px rgba(31, 35, 40, .3);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }
    body.menu-ouvert .menu { transform: none; }
    body.menu-ouvert::after { content: ""; position: fixed; inset: 0; z-index: 35; background: rgba(31, 35, 40, .35); }
    .menu-fermer { display: inline-flex; }
}

@media (min-width: 901px) {
    .menu-fermer { display: none; }
}

@media (max-width: 640px) {
    :root { --taille-texte: 17px; }
    h1 { font-size: 1.6rem; }
    .accueil-bandeau h1 { font-size: 1.7rem; }
    .accueil-bandeau-interieur { padding: 1.5rem 1rem .5rem; }
    .entete-interieur { flex-wrap: wrap; gap: .5rem; }
    .entete .recherche { order: 3; flex-basis: 100%; max-width: none; }
    .logo span { display: none; }
    .entete-poser { margin-left: auto; padding: 0 .75rem; }
    .poser-long { display: none; }
    .poser-court { display: inline; }
    .suite { flex-direction: column; }
    .suite a { max-width: none; }
    .faq-liste { columns: 1; }
}

@media print {
    .entete, .menu, .sommaire, .pas-trouve, .suite, .pied, .toast { display: none !important; }
    .mise-en-page { display: block; }
    body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    .menu { transition: none; }
}
