/* Brigade, page d'aide. Charte de la page des pilotes (finale.css) : mêmes couleurs, polices, rayons, boutons. */

@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url('../../commun/polices/Fraunces-700-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; }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url('../../commun/polices/Fraunces-700-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: 'Plus Jakarta Sans'; font-weight: 400 800; font-display: swap; src: url('../../commun/polices/PlusJakartaSans-400-800-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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400 800; font-display: swap; src: url('../../commun/polices/PlusJakartaSans-400-800-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; }

:root {
  --creme: #FBF6EE;
  --creme-ton: #F3EADC;
  --blanc: #FFFFFF;
  --encre: #1F2A2E;
  --encre-douce: #5E676B;
  --cuivre: #B4582A;
  --cuivre-texte: #A0512A;
  --cuivre-presse: #9A4A22;
  --cuivre-pale: #FDECDF;
  --trait: #1F2A2E2E;

  --titre: 'Fraunces', Georgia, serif;
  --texte: 'Plus Jakarta Sans', system-ui, sans-serif;

  --t-titre: clamp(44px, 5.2vw, 80px);
  --t-section: clamp(26px, 2.2vw, 32px);
  --t-corps: clamp(16px, 1.25vw, 18px);
  --t-petit: 14px;

  --rayon: 12px;
  --marge: clamp(20px, 3.4vw, 48px);
  --gouttiere: 24px;
  --ecart: 160px;

  --sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --revelation: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font-family: var(--texte); font-size: var(--t-corps); line-height: 1.55;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul { margin: 0; }
::selection { background: var(--cuivre-pale); color: var(--encre); }
:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--cuivre) var(--creme-ton); }
.masque { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.grille {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere); padding-inline: var(--marge);
}
.titre-section {
  font-family: var(--titre); font-weight: 700; font-size: var(--t-section);
  line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--rayon);
  background: var(--cuivre); color: var(--blanc);
  font: 700 var(--t-corps)/1.2 var(--texte); text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--sortie), background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.bouton:active { transform: scale(0.97); background: var(--cuivre-presse); }
.lien {
  color: var(--cuivre-texte); font-weight: 700; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; overflow-wrap: anywhere;
  transition: text-decoration-color 180ms ease, color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: var(--cuivre-presse); }
  .lien:hover { text-decoration-color: currentColor; color: var(--cuivre-presse); }
}

/* Un libellé tel qu'il apparaît dans Brigade */
.ui {
  display: inline; padding: 1px 8px; border-radius: 6px;
  background: var(--cuivre-pale); color: var(--cuivre-texte); font-weight: 700;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ------------------------------------------------------------ Barre */
.barre { position: absolute; top: 28px; left: 0; right: 0; z-index: 5; align-items: center; }
.marque {
  grid-column: 1 / 5; display: inline-flex; align-items: center; gap: 12px; justify-self: start;
  color: var(--encre); text-decoration: none; font: 700 var(--t-corps)/1 var(--titre); min-height: 44px;
}
.marque img { width: 36px; height: 36px; border-radius: 8px; }
.barre-liens { grid-column: 5 / -1; justify-self: end; display: flex; gap: 32px; }
.barre-liens a {
  color: var(--encre); font-size: var(--t-petit); font-weight: 600; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
  text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 0.3em;
  transition: text-decoration-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .barre-liens a:hover { text-decoration-color: var(--cuivre); } }

/* ------------------------------------------------------------ Héros */
.heros { padding-top: 168px; align-items: center; }
.heros-texte { grid-column: 1 / 8; }
.heros-titre {
  font-family: var(--titre); font-weight: 700; font-size: var(--t-titre);
  line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance;
}
.heros-phrase { margin-top: 32px; max-width: 40ch; }
.heros-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.heros-logo { grid-column: 9 / -1; justify-self: end; width: clamp(200px, 24vw, 340px); border-radius: var(--rayon); }

/* ------------------------------------------------------------ Film */
.film { margin-top: var(--ecart); }
.film-titre, .film-cadre, .film-note { grid-column: 1 / -1; }
.film-titre { margin-bottom: 32px; }
.film-cadre { border-radius: 20px; overflow: hidden; background: var(--encre); aspect-ratio: 16 / 9; }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-note { margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--encre-douce); max-width: 70ch; }

/* ------------------------------------------------------------ Guides */
.guides { margin-top: var(--ecart); align-items: start; }
.guides-tete { grid-column: 1 / 5; position: sticky; top: 32px; }
.guides-tete > p { margin-top: 16px; color: var(--encre-douce); max-width: 32em; }
.sommaire { margin-top: 28px; padding: 20px 24px; border-radius: var(--rayon); background: var(--blanc); }
.sommaire ol { list-style: none; padding: 0; counter-reset: guide; display: grid; gap: 2px; }
.sommaire li { counter-increment: guide; }
.sommaire a {
  display: flex; align-items: center; gap: 12px; min-height: 40px;
  color: var(--encre); font-weight: 600; text-decoration: none; font-size: 16px;
  text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 0.25em;
  transition: text-decoration-color 180ms ease, color 180ms ease;
}
.sommaire a::before {
  content: counter(guide); flex: none; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--cuivre-pale); color: var(--cuivre-texte);
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) { .sommaire a:hover { color: var(--cuivre-texte); text-decoration-color: currentColor; } }

.guides-liste { grid-column: 6 / -1; display: grid; gap: 24px; }
.guide { padding: 40px 44px; border-radius: var(--rayon); background: var(--blanc); scroll-margin-top: 24px; }
.guide-titre {
  font-family: var(--titre); font-weight: 700; font-size: var(--t-section);
  line-height: 1.1; letter-spacing: -0.02em;
}
.guide-chapeau { margin-top: 16px; font-weight: 600; max-width: 40em; }
.gestes { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; max-width: 42em; }
.gestes li { position: relative; padding-left: 22px; }
.gestes li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cuivre); }
.guide-renvoi { margin-top: 24px; font-size: 16px; }
.encadre { margin-top: 28px; padding: 24px; border-radius: var(--rayon); background: var(--creme); max-width: 42em; }
.encadre-titre { font-weight: 800; margin-bottom: 6px; }
.encadre p + p { margin-top: 0.8em; }
/* Les vrais écrans de Brigade, posés sur un pas de ton crème, sans ombre */
.capture-bloc { margin: 28px 0 0; padding: 16px; border-radius: var(--rayon); background: var(--creme-ton); }
.capture-bloc figcaption { margin-top: 12px; font-size: var(--t-petit); color: var(--encre-douce); line-height: 1.5; max-width: 42em; }
.capture-bloc figcaption .mention-ia { display: block; margin-top: 4px; }
.capture { width: 100%; border-radius: 8px; }
.capture-bloc--briefing .capture { width: min(100%, 612px); }
.capture-bloc--telephone { display: grid; justify-items: start; }
.telephone { width: 330px; max-width: 100%; padding: 8px; border-radius: var(--rayon); background: var(--encre); }
.telephone-ecran {
  height: 460px; overflow-y: auto; overscroll-behavior: contain; border-radius: 4px; background: var(--creme);
  scrollbar-width: thin; scrollbar-color: var(--cuivre) var(--creme-ton);
}
.telephone-ecran img { width: 100%; }
.mention-ia { margin-top: 24px; font-size: var(--t-petit); color: var(--encre-douce); line-height: 1.5; max-width: 42em; }

.tarifs { width: 100%; max-width: 42em; margin-top: 24px; border-collapse: collapse; font-size: 16px; }
.tarifs th, .tarifs td { padding: 14px 12px; text-align: left; vertical-align: top; }
.tarifs thead th { font-size: var(--t-petit); color: var(--encre-douce); font-weight: 600; padding-top: 0; }
.tarifs tbody tr { border-top: 1px solid #1F2A2E1F; }
.tarifs tbody th { font-family: var(--titre); font-weight: 700; font-size: 20px; line-height: 1.2; white-space: nowrap; }
.tarifs .tarif-prix { text-align: right; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Question, contact, avis */
.question {
  margin-top: var(--ecart); padding: 112px var(--marge); background: var(--encre);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.feuille { width: min(680px, 100%); padding: 56px 56px 48px; background: var(--blanc); color: var(--encre); border-radius: var(--rayon); }
.feuille > p { margin-top: 16px; max-width: 36em; }
.feuille > .bouton { margin-top: 28px; }
.feuille .mention-ia { margin-top: 16px; }
.contact { margin-top: 36px; padding: 24px; border-radius: var(--rayon); background: var(--creme); }
.contact-titre { font-weight: 800; margin-bottom: 4px; }
.carte-avis {
  width: min(680px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 40px; border-radius: var(--rayon); background: var(--cuivre); color: var(--blanc); text-decoration: none;
  transition: transform 140ms var(--sortie), background-color 180ms ease;
}
.carte-avis-texte { display: grid; gap: 6px; }
.carte-avis-titre { font-family: var(--titre); font-weight: 700; font-size: var(--t-section); line-height: 1.1; letter-spacing: -0.02em; }
.carte-avis-phrase { font-weight: 600; }
.carte-avis svg { flex: none; transition: transform 240ms var(--sortie); }
.carte-avis:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .carte-avis:hover { background: var(--cuivre-presse); }
  .carte-avis:hover svg { transform: translate(4px, -4px); }
}

/* ------------------------------------------------------------ Pied de page */
.pied { padding: 12px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tuile { border-radius: var(--rayon); padding: 28px; background: var(--blanc); color: var(--encre); min-height: 200px; }
.tuile--declaration { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.pied-titre { font-family: var(--titre); font-weight: 700; font-size: var(--t-section); line-height: 1.1; letter-spacing: -0.02em; }
.pied-credit { font-size: var(--t-petit); color: var(--encre-douce); }
.tuile--liens { grid-column: 5 / 8; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tuile--liens .lien { min-height: 36px; display: inline-flex; align-items: center; }
.tuile--email { grid-column: 8 / 11; display: flex; align-items: flex-end; }
.tuile--marque { grid-column: 11 / -1; background: var(--encre); display: flex; align-items: center; justify-content: center; }
.tuile--marque img { width: clamp(96px, 9vw, 150px); border-radius: var(--rayon); }

/* ------------------------------------------------------------ Tablette */
@media (max-width: 1099px) {
  :root { --ecart: 120px; }
  .barre-liens { gap: 20px; }
  .heros { padding-top: 132px; }
  .heros-texte { grid-column: 1 / 9; }
  .heros-logo { grid-column: 9 / -1; }
  .guides-tete { grid-column: 1 / -1; position: static; }
  .guides-liste { grid-column: 1 / -1; margin-top: 40px; }
  .sommaire ol { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .tuile--declaration { grid-column: 1 / 7; }
  .tuile--liens { grid-column: 7 / -1; }
  .tuile--email { grid-column: 1 / 9; min-height: 120px; }
  .tuile--marque { grid-column: 9 / -1; min-height: 120px; }
}

/* ------------------------------------------------------------ Téléphone */
@media (max-width: 699px) {
  :root { --gouttiere: 12px; --ecart: 96px; --t-titre: 12vw; }
  .barre { top: 16px; }
  .barre-liens { display: none; }
  .heros { padding-top: 96px; }
  .heros-texte { grid-column: 1 / -1; grid-row: 2; }
  .heros-logo { grid-column: 1 / -1; grid-row: 1; justify-self: start; width: 148px; margin-bottom: 28px; }
  .heros-phrase { margin-top: 20px; font-size: 16px; }
  .heros-actions .bouton { width: 100%; }
  .film-cadre { margin-inline: calc(-1 * var(--marge)); border-radius: 0; }
  .sommaire { padding: 12px 16px; }
  .sommaire ol { grid-template-columns: 1fr; }
  .guides-liste { margin-inline: calc(-1 * var(--marge) + 8px); gap: 12px; }
  .guide { padding: 28px 20px; }
  .encadre { padding: 18px 16px; }
  .capture-bloc { padding: 10px; margin-inline: -8px; }
  .telephone { width: 100%; }
  .telephone-ecran { height: 440px; }
  .tarifs, .tarifs tbody, .tarifs tr, .tarifs th, .tarifs td { display: block; width: 100%; }
  .tarifs thead { display: none; }
  .tarifs tbody tr { padding: 12px 0; }
  .tarifs th, .tarifs td { padding: 2px 0; }
  .tarifs .tarif-prix { text-align: left; }
  .question { padding: 72px 8px; }
  .feuille { padding: 32px 20px 24px; }
  .feuille > .bouton { width: 100%; }
  .contact { padding: 18px 16px; }
  .carte-avis { padding: 24px 20px; }
  .pied { padding: 8px; gap: 6px; grid-template-columns: 1fr 1fr; }
  .tuile { padding: 20px; min-height: 0; }
  .tuile--declaration { grid-column: 1 / -1; }
  .tuile--liens { grid-column: 1 / -1; }
  .tuile--email { grid-column: 1; font-size: var(--t-petit); align-items: flex-start; }
  .tuile--marque { grid-column: 2; min-height: 120px; }
  .tuile--marque img { width: 96px; }
  .pied-titre { font-size: 22px; }
}

/* ------------------------------------------------------------ Mouvement (la page réduite est la page finie) */
@media (prefers-reduced-motion: no-preference) {
  .js .heros-texte > * { opacity: 0; transform: translateY(14px); animation: monte 620ms var(--sortie) forwards; }
  .js .heros-texte > :nth-child(2) { animation-delay: 120ms; }
  .js .heros-texte > :nth-child(3) { animation-delay: 220ms; }
  .js .heros-logo { opacity: 0; transform: translateY(24px) rotate(-2deg); animation: monte 900ms var(--revelation) 160ms forwards; }
  .guide:target { animation: repere 1400ms var(--sortie); }
  /* Chaque guide, chaque écran et le bloc des questions montent à leur arrivée (aide.js pose .attente) */
  .js [data-revele] { transition: opacity 700ms var(--sortie), transform 900ms var(--sortie); }
  .js [data-revele].attente { opacity: 0; transform: translateY(24px); }
  .js .capture-bloc[data-revele] { transition-delay: 120ms; }
  .sommaire a::before { transition: transform 180ms var(--sortie), background-color 180ms ease; }
  .sommaire a:active::before { transform: scale(0.9); }
}
@keyframes monte { to { opacity: 1; transform: none; } }
@keyframes repere { from { box-shadow: inset 0 0 0 2px var(--cuivre); } to { box-shadow: inset 0 0 0 2px transparent; } }
