/* =====================================================================
   TRAMEORTHO : feuille de style unique, partagée par toutes les pages
   Dérivée de la maquette Claude Design du 12/10/2026, avec les corrections
   de l'audit (tableau comparatif mobile, ordre du hero mobile, en-tête sur
   une ligne, texte lisible dans le visuel des trames, grille des cinq
   questions, photo, façade vidéo). Polices auto-hébergées.
   Pour un autre site : changer les variables de :root et site.config.json.
   ===================================================================== */

@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs de la charte Digital-Web33 */
  --bleu: #2E5F8A;
  --bleu-fonce: #1F4466;
  --fond: #F8FBFE;
  --bloc: #EAF3FA;
  --bord: #C5D9EA;
  --blanc: #FFFFFF;
  --texte: #1B2A38;
  --texte-doux: #3F5368;

  /* Accent chaud, réservé aux boutons d'action (texte blanc : 5:1) */
  --accent: #B5502F;
  --accent-fonce: #96401F;

  /* Classes de score (cases colorées des tableaux) */
  --classe-1: #E9A184;
  --classe-2: #F4C9A3;
  --classe-3: #F6E7B8;
  --classe-4: #CFE3F2;
  --classe-5: #A9CBE4;

  /* Rayons, espacements, tailles */
  --rayon: 8px;
  --rayon-grand: 14px;
  --e1: 4px; --e2: 8px; --e3: 16px; --e4: 24px; --e5: 40px; --e6: 64px;
  --largeur: 1120px;
  --lecture: 680px;
  --police: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); font-size: 1.0625rem; line-height: 1.6; color: var(--texte); background: var(--fond); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; color: var(--bleu-fonce); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5.6vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.005em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lien-evitement { position: absolute; left: 8px; top: -80px; z-index: 50; background: var(--blanc); color: var(--bleu-fonce); padding: 12px 16px; border: 2px solid var(--bleu); border-radius: var(--rayon); font-weight: 600; }
.lien-evitement:focus { top: 8px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 16px; }
.lecture { max-width: var(--lecture); margin-inline: auto; }
.section { padding-block: 40px; }
.section--bloc { background: var(--bloc); }
.section--blanc { background: var(--blanc); }
.section__entete { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.chapeau { font-size: 1.15rem; color: var(--texte-doux); }
.etiquette { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu); }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--rayon); background: var(--accent); color: var(--blanc); font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font-family: inherit; }
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: var(--blanc); }
.bouton:focus-visible { outline-color: var(--bleu-fonce); }
.lien-secondaire { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.lien-fleche::after { content: " \2192"; }

/* ---------- En-tête : logo, bouton, menu sur UNE seule ligne même à 360 px ---------- */
.entete { background: var(--blanc); border-bottom: 1px solid var(--bord); }
.entete__barre { display: flex; align-items: center; gap: 8px; min-height: 64px; flex-wrap: wrap; padding-block: 6px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--bleu-fonce); font-size: 1.2rem; min-height: 44px; margin-right: auto; }
.logo__marque { width: 26px; height: 26px; flex: none; }
.logo__mot { letter-spacing: -0.01em; }
.logo__mot b { font-weight: 700; }
.logo__mot span { font-weight: 400; }
.entete__bouton { min-height: 44px; padding: 8px 12px; font-size: .9rem; }
.entete__bouton .long { display: none; }
.menu-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; background: var(--blanc); color: var(--bleu-fonce); border: 2px solid var(--bleu); border-radius: var(--rayon); cursor: pointer; }
.menu-bouton__barres, .menu-bouton__barres::before, .menu-bouton__barres::after { display: block; width: 20px; height: 2.5px; background: var(--bleu-fonce); border-radius: 2px; content: ""; position: relative; }
.menu-bouton__barres::before { position: absolute; top: -6px; left: 0; }
.menu-bouton__barres::after { position: absolute; top: 6px; left: 0; }
.nav { display: none; width: 100%; flex-basis: 100%; padding-bottom: 8px; }
.nav--ouvert { display: block; }
.nav ul { list-style: none; display: flex; flex-direction: column; }
.nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--texte); font-weight: 600; border-top: 1px solid var(--bloc); }
.nav a:hover { color: var(--bleu); }

/* ---------- Héros ---------- */
.hero { background-color: var(--fond); background-image: repeating-linear-gradient(0deg, rgba(46,95,138,.05) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(46,95,138,.05) 0 1px, transparent 1px 22px); padding-block: 20px 28px; }
/* Ordre mobile : titre, sous-titre, boutons, bandeau de différence, visuel, réassurance */
.hero__grille { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "titre" "soustitre" "boutons" "visuel"; }
.hero__titre { grid-area: titre; }
.hero__soustitre { grid-area: soustitre; font-size: 1.1rem; color: var(--texte-doux); }
.hero__boutons { grid-area: boutons; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.hero__visuel { grid-area: visuel; }
.hero__bandeau { grid-area: bandeau; }
.hero__reassurance { grid-area: reassurance; font-size: .95rem; color: var(--texte-doux); }
.bandeau { list-style: none; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.bandeau__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); font-weight: 700; color: var(--bleu-fonce); line-height: 1.25; font-size: 1rem; }
.bandeau__item span span { font-weight: 400; color: var(--texte-doux); }
.bandeau__picto { width: 28px; height: 28px; flex: none; }

/* ---------- Deux trames : une colonne et texte de 14 px minimum sur mobile ---------- */
.trames { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0; }
.trames__legende { grid-column: 1 / -1; font-size: .9rem; color: var(--texte-doux); text-align: center; }
.doc { background: var(--blanc); border: 1px solid var(--bord); border-radius: 6px; padding: 14px; font-size: .9rem; line-height: 1.45; color: var(--texte); display: flex; flex-direction: column; gap: 8px; }
.doc__fictif { align-self: flex-start; font-size: .875rem; font-weight: 700; color: var(--bleu-fonce); background: var(--bloc); border-radius: 3px; padding: 1px 8px; }
.doc__entete { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; border-bottom: 1px solid var(--bord); }
.doc__cabinet { height: 6px; width: 60%; background: var(--bord); border-radius: 3px; }
.doc__cabinet--court { width: 40%; }
.doc__titre { font-weight: 700; color: var(--bleu-fonce); }
.doc__patient { color: var(--texte-doux); }
.doc__sous-titre { font-weight: 700; margin-top: 2px; }
.doc__puces { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.doc__tableau { width: 100%; border-collapse: collapse; }
.doc__tableau th, .doc__tableau td { border: 1px solid var(--bord); padding: 5px 8px; text-align: left; font-weight: 400; }
.doc__tableau th { background: var(--bloc); font-weight: 700; }
.case { font-weight: 700; text-align: center; }
.case--1 { background: var(--classe-1); } .case--2 { background: var(--classe-2); } .case--3 { background: var(--classe-3); } .case--4 { background: var(--classe-4); } .case--5 { background: var(--classe-5); }
.trames--grand { gap: 20px; }
.trames--grand .doc { font-size: 1rem; padding: 20px; gap: 10px; border-radius: var(--rayon-grand); }
.trames--grand .doc__tableau th, .trames--grand .doc__tableau td { padding: 8px 10px; }
.trames--grand .doc__cabinet { height: 8px; }
.trames--grand .trames__legende { font-size: 1.05rem; }

/* ---------- Cartes ---------- */
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.carte h3 { font-size: 1.15rem; }
.carte h4 { font-size: 1.1rem; }
.carte__picto { width: 48px; height: 48px; }

/* ---------- Objets du métier ---------- */
.objets { background: var(--blanc); border-block: 1px solid var(--bord); padding-block: 40px; }
.objets figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.objets svg { width: 100%; height: auto; max-width: 960px; }
.objets figcaption { color: var(--texte-doux); font-size: .95rem; text-align: center; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); counter-reset: etape; }
.etape { display: flex; flex-direction: column; gap: 10px; counter-increment: etape; }
.etape__numero { width: 40px; height: 40px; border-radius: 50%; background: var(--bleu); color: var(--blanc); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.etape__numero::before { content: counter(etape); }

/* ---------- Maquette d'écran (emplacement de capture) ---------- */
.ecran { background: var(--blanc); border: 1px solid var(--bord); border-radius: 10px; overflow: hidden; }
.ecran__barre { display: flex; gap: 6px; padding: 8px 10px; background: var(--bloc); border-bottom: 1px solid var(--bord); }
.ecran__point { width: 9px; height: 9px; border-radius: 50%; background: var(--bord); }
.ecran__corps { min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--texte-doux); font-size: .9rem; }
.ecran__corps img { display: block; width: 100%; height: auto; }

/* ---------- Vidéo (façade chargée au clic) ---------- */
.video { max-width: 760px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.video__cadre { position: relative; aspect-ratio: 16 / 9; width: 100%; background-color: var(--bleu-fonce); border-radius: var(--rayon-grand); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--blanc); text-align: center;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 22px); }
.video__cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__note { padding: 24px; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.video__lecture { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 22px; border: 2px solid var(--blanc); background: rgba(31,68,102,.9); color: var(--blanc); border-radius: 40px; font-weight: 700; font-size: 1.05rem; font-family: inherit; cursor: pointer; }
.video__lecture:hover { background: var(--blanc); color: var(--bleu-fonce); }
.video__legende { font-size: .95rem; color: var(--texte-doux); }

/* ---------- Tableau comparatif : tableau dès 640 px, cartes empilées en dessous ---------- */
.tableau-defile { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--rayon-grand); background: var(--blanc); }
.comparaison { width: 100%; border-collapse: collapse; }
.comparaison th, .comparaison td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--bord); }
.comparaison thead th { background: var(--bloc); color: var(--bleu-fonce); }
.comparaison tbody th { font-weight: 600; width: 22%; color: var(--bleu-fonce); }
.comparaison .col-tr { background: #F3F8FC; font-weight: 600; border-inline: 2px solid var(--bleu); }
.comparaison thead .col-tr { background: var(--bleu); color: var(--blanc); }
.comparaison tbody tr:last-child td, .comparaison tbody tr:last-child th { border-bottom: 0; }
.comparaison tbody tr:last-child .col-tr { border-bottom: 2px solid var(--bleu); }

/* ---------- Fiches brutes (cinq questions) : 1, 2 puis 3 colonnes, dernière ligne centrée ---------- */
.fiches { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
.fiche { flex: 1 1 100%; background: #FFFFFF; border: 1px solid #8A99A8; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fiche__numero { font-weight: 700; color: var(--texte-doux); font-size: .95rem; }
.fiche h3 { font-size: 1.1rem; color: var(--texte); }

/* ---------- Histoire ---------- */
.histoire { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.histoire__photo { width: 180px; height: 180px; border-radius: var(--rayon-grand); overflow: hidden; border: 1px solid var(--bord); background: var(--bloc); }
.histoire__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.histoire__texte { max-width: var(--lecture); display: flex; flex-direction: column; gap: 16px; font-size: 1.12rem; line-height: 1.7; }
.signature { font-weight: 700; color: var(--bleu-fonce); }

/* ---------- Questions fréquentes ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq__item { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); }
.faq__item h3 { font-size: 1.05rem; }
.faq__bouton { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: transparent; border: 0; padding: 12px 18px; font-family: inherit; font-size: 1.05rem; font-weight: 600; color: var(--bleu-fonce); cursor: pointer; }
.faq__bouton::after { content: "+"; font-size: 1.6rem; line-height: 1; flex: none; }
.faq__bouton[aria-expanded="true"]::after { content: "\2212"; }
.faq__reponse { padding: 0 18px 18px; color: var(--texte); }
.faq__reponse[hidden] { display: none; }

/* ---------- Appel final ---------- */
.appel { background: var(--bleu); color: var(--blanc); padding-block: 56px; text-align: center; }
.appel h2 { color: var(--blanc); }
.appel .conteneur { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.appel__micro { color: #E4EEF7; font-size: .95rem; }
.appel .bouton:focus-visible { outline-color: var(--blanc); }

/* ---------- Pied de page ---------- */
.pied { background: var(--blanc); border-top: 1px solid var(--bord); padding-block: 40px; }
.pied__grille { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.pied__liens { list-style: none; display: flex; flex-direction: column; }
.pied__liens a { display: inline-flex; min-height: 44px; align-items: center; }
.pied__mention { color: var(--texte-doux); font-size: .95rem; }
.trait-trame { height: 8px; margin-bottom: 28px; background-image: repeating-linear-gradient(90deg, var(--bord) 0 2px, transparent 2px 10px), repeating-linear-gradient(0deg, var(--bord) 0 1px, transparent 1px 4px); opacity: .8; }

/* ---------- Pages intérieures ---------- */
.page-titre { background: var(--bloc); padding-block: 40px; border-bottom: 1px solid var(--bord); }
.page-titre .conteneur { display: flex; flex-direction: column; gap: 12px; }
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 16px; }
.prose h3 { margin-top: 8px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.encadre { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.encadre--bloc { background: var(--bloc); }
.encadre h2, .encadre h3 { margin-top: 0; font-size: 1.15rem; }
.schema { list-style: none; display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); counter-reset: schema; }
.schema__etape { counter-increment: schema; position: relative; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: 18px 18px 18px 64px; }
.schema__etape::before { content: counter(schema); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--bleu); color: var(--blanc); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.schema__etape:not(:last-child)::after { content: "\2193"; position: absolute; left: 24px; bottom: -28px; color: var(--bleu); font-size: 1.3rem; z-index: 2; }

/* ---------- Marqueurs de travail (visibles seulement dans la version de développement) ---------- */
.marqueur { display: inline; background: #FFF3C4; color: #5B4300; border: 1px dashed #A67C00; border-radius: 4px; padding: 0 5px; font-size: .88em; font-weight: 600; }

/* ---------- Formulaire ---------- */
.formulaire { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-weight: 600; color: var(--bleu-fonce); }
.champ input, .champ select, .champ textarea { min-height: 48px; padding: 10px 12px; font-family: inherit; font-size: 1rem; color: var(--texte); background: var(--blanc); border: 2px solid #7C93A8; border-radius: var(--rayon); width: 100%; }
.champ textarea { min-height: 130px; resize: vertical; }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: #A12B1B; }
.champ__erreur { color: #A12B1B; font-weight: 600; font-size: .95rem; }
.champ__aide { color: var(--texte-doux); font-size: .92rem; }
.consentement { display: flex; gap: 12px; align-items: flex-start; }
.consentement input { width: 24px; height: 24px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--bleu); }
.consentement label { font-weight: 400; color: var(--texte); }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alerte { padding: 16px 18px; border-radius: var(--rayon); border: 1px solid var(--bord); background: var(--blanc); display: flex; flex-direction: column; gap: 8px; }
.alerte--erreur { border-color: #A12B1B; background: #FFF6F4; }
.alerte--ok { border-color: var(--bleu); background: var(--bloc); }
.bouton[disabled] { opacity: .75; cursor: progress; }
[hidden] { display: none !important; }

/* ---------- Blog ---------- */
.blog-liste { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.blog-carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.blog-carte h2, .blog-carte h3 { font-size: 1.25rem; }
.blog-carte a { text-decoration: none; }
.blog-carte__meta { color: var(--texte-doux); font-size: .92rem; }
.article { max-width: 65ch; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; }
.article h2 { font-size: 1.5rem; margin-top: 14px; }
.sommaire { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); }
.sommaire__bouton { width: 100%; min-height: 48px; text-align: left; background: transparent; border: 0; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--bleu-fonce); cursor: pointer; }
.sommaire ol { padding: 0 16px 16px 38px; display: flex; flex-direction: column; gap: 6px; }
.retenir { background: var(--bloc); border-radius: var(--rayon-grand); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.sources { font-size: .95rem; color: var(--texte-doux); border-top: 1px solid var(--bord); padding-top: 14px; }
.tableau-article { overflow-x: auto; }
.tableau-article table { border-collapse: collapse; min-width: 480px; width: 100%; background: var(--blanc); }
.tableau-article th, .tableau-article td { border: 1px solid var(--bord); padding: 8px 12px; text-align: left; }
.tableau-article th { background: var(--bloc); }
.auteur { border-top: 1px solid var(--bord); padding-top: 16px; color: var(--texte-doux); }

/* ---------- Tableau comparatif en cartes empilées (téléphone) ---------- */
@media (max-width: 639px) {
  .tableau-defile { overflow: visible; border: 0; background: transparent; border-radius: 0; }
  .comparaison, .comparaison tbody, .comparaison tr, .comparaison th, .comparaison td { display: block; width: 100%; }
  .comparaison thead { position: absolute; left: -9999px; }
  .comparaison tbody { display: flex; flex-direction: column; gap: 12px; }
  .comparaison tbody tr { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-grand); overflow: hidden; }
  .comparaison tbody th { width: 100%; padding: 12px 16px; background: var(--bloc); border-bottom: 1px solid var(--bord); }
  .comparaison td { padding: 10px 16px; border-bottom: 0; }
  .comparaison td::before { content: attr(data-etiquette); display: block; font-size: .85rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: 2px; }
  .comparaison .col-tr { background: #F3F8FC; border-inline: 0; border-top: 1px solid var(--bord); }
  .comparaison .col-tr::before { color: var(--bleu); }
  .comparaison tbody tr:last-child .col-tr { border-bottom: 0; }
}

/* ---------- Écrans larges ---------- */
@media (min-width: 640px) {
  .conteneur { padding-inline: 24px; }
  .bandeau { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bandeau__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .entete__bouton .long { display: inline; }
  .entete__bouton .court { display: none; }
  .entete__bouton { padding: 8px 16px; font-size: .95rem; }
  .histoire { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; }
  .trames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trames--grand .doc { font-size: 1.05rem; }
  .fiche { flex: 1 1 calc(50% - 16px); max-width: calc(50% - 8px); }
  .comparaison { min-width: 620px; }
}

@media (min-width: 960px) {
  .section { padding-block: 60px; }
  .menu-bouton { display: none; }
  .nav { display: block; width: auto; flex-basis: auto; padding: 0; order: 2; margin-right: auto; }
  .nav ul { flex-direction: row; gap: 4px; }
  .nav a { border-top: 0; padding-inline: 12px; font-size: .98rem; }
  .entete__bouton { order: 3; }
  .logo { margin-right: 12px; font-size: 1.4rem; }
  .logo__marque { width: 28px; height: 28px; }
  .entete__barre { flex-wrap: nowrap; gap: 8px; }
  .hero { padding-block: 32px 36px; }
  .hero__grille { column-gap: 48px; row-gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "titre" "soustitre" "boutons" "visuel"; align-items: start; }
  .hero__visuel { align-self: center; }
  .hero .doc { font-size: .85rem; padding: 14px; }
  .fiche { flex: 1 1 calc(33.333% - 16px); max-width: calc(33.333% - 11px); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .carte, .fiche, .blog-carte { transition: border-color .2s ease; }
  .carte:hover, .blog-carte:hover { border-color: var(--bleu); }
}

/* ---------- Utilitaires (remplacent les attributs style en ligne : la CSP interdit le style en ligne) ---------- */
.etapes--marge { margin-bottom: 48px; }
.legende-trames { text-align: center; color: var(--texte-doux); margin-top: 12px; }
.entete-retrouve { margin-top: 64px; }
.entete-retrouve h3 { font-size: 1.5rem; }
.phrase-cle { margin-top: 28px; max-width: 760px; color: var(--bleu-fonce); font-weight: 600; }
.note-tarif { margin: 28px 0 36px; font-weight: 600; color: var(--bleu-fonce); }
.titre-comparatif { margin-bottom: 16px; }
.marge-haut-10 { margin-top: 10px; }
.marge-haut-24 { margin-top: 24px; }
.section__entete--nul { margin-bottom: 0; }
.lien-gras { font-weight: 600; }
.titre-schema { margin-bottom: 28px; }
.colonne { display: flex; flex-direction: column; gap: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.liste-simple { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article__entete { display: flex; flex-direction: column; gap: 12px; }
.section--haute { padding-top: 40px; }
.sans-marge { margin-top: 0; }
.blog-liste--une { grid-template-columns: minmax(0, 1fr); }
.colonne.lecture { margin-inline: auto; }
@media (min-width: 640px) { .colonne.lecture { gap: 24px; } }

/* Premier écran : les trois différences, mises en avant */
.differences { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.difference { background: #fff; border: 1px solid var(--bordure, #C5D9EA); border-left: 6px solid var(--accent); border-radius: 10px; padding: 16px 18px; display: grid; gap: 4px; }
.difference__avec { font-size: 1.35rem; font-weight: 700; color: var(--bleu); line-height: 1.2; }
.difference__sans { font-size: .95rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.difference__texte { color: var(--texte-doux); }
@media (min-width: 900px) { .differences { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .hero__titre { max-width: 22ch; } .hero__soustitre { max-width: 60ch; } }

/* Trois vidéos de démonstration */
.videos { margin: 40px auto 0; }
.videos h3 { margin: 0 0 6px; }
.video__intro { margin: 0 0 18px; color: var(--texte-doux); }
.videos__grille { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.video-carte { margin: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .videos__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* Vignette des vidéos : image réelle, le lecteur ne se charge qu'au clic */
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__cadre .video__note { position: absolute; inset: 0; max-width: none; padding: 0; display: grid; place-items: center; }
.video__cadre .video__lecture { position: relative; z-index: 1; }

/* Vignettes : le bouton Lire se pose en bas à droite, sans recouvrir le titre */
.video__cadre .video__note { place-items: end end; padding: 0 14px 14px 0; }
.video__cadre .video__lecture { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
