/* ===================================================================
   POTIOK — page « Brief vidéo » (/ressources/brief-video/)
   Chargée uniquement sur cette page : n'affecte aucune autre page.
   Polices hébergées sur le site (aucun appel à Google ni à un CDN).
   =================================================================== */
@font-face{ font-family:'Inter Potiok'; font-weight:400; font-style:normal; font-display:swap; src:url('/assets/fonts/inter-400.woff') format('woff'); }
@font-face{ font-family:'Inter Potiok'; font-weight:500; font-style:normal; font-display:swap; src:url('/assets/fonts/inter-500.woff') format('woff'); }
@font-face{ font-family:'Inter Potiok'; font-weight:600; font-style:normal; font-display:swap; src:url('/assets/fonts/inter-600.woff') format('woff'); }
@font-face{ font-family:'Inter Potiok'; font-weight:700; font-style:normal; font-display:swap; src:url('/assets/fonts/inter-800.woff') format('woff'); }
@font-face{ font-family:'Inter Potiok'; font-weight:800; font-style:normal; font-display:swap; src:url('/assets/fonts/inter-800.woff') format('woff'); }

/* Sur cette page seulement, les variables de police du site pointent vers les polices hébergées. */
:root{
  --font-head: 'Inter Potiok', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter Potiok', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-accent: Georgia, 'Times New Roman', serif;
  --brief-err: #B3392F;
  --brief-ok: #2F7D5B;
}

/* En-tête de page */
.brief-hero .page-hero-stack{ gap: 32px; }
.brief-hero h1{ font-weight: 800; }
.brief-promise{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 22px 26px;
  max-width: 760px;
}
.brief-promise h2{ font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin: 0 0 12px; }
.brief-promise ul{ margin: 0; padding-left: 20px; }
.brief-promise li{ margin: 5px 0; }

/* Formulaire */
.brief-wrap{ max-width: 900px; }
.brief-page{ padding: 40px 0 72px; }
.brief-noscript{ padding: 0 0 20px; }
.brief-page .sec{
  background: var(--blanc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 10px;
  margin: 0 0 20px;
  min-width: 0;
}
.brief-page .sec > h2{
  display: flex; align-items: center; gap: 14px;
  font-size: 1.15rem; line-height: 1.25; margin: 0 0 4px;
}
.brief-page .sec > h2 .n{
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bleu-vert); color: var(--blanc);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
}
.brief-page .sec > .sub{ margin: 0 0 22px 46px; color: var(--ink-muted); font-size: .9rem; max-width: none; }
.brief-page .q{ margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
.brief-page .q > label, .brief-page .q > legend{ display: block; font-weight: 600; font-size: .95rem; margin: 0 0 4px; padding: 0; float: none; width: 100%; }
.brief-page .hint{ display: block; color: var(--ink-muted); font-size: .84rem; margin: 0 0 8px; font-weight: 400; line-height: 1.45; }
.brief-page .opt{ font-weight: 400; color: var(--ink-muted); font-size: .8rem; }

.brief-page textarea, .brief-page input[type=text], .brief-page input[type=email],
.brief-page input[type=tel], .brief-page input[type=date], .brief-page select{
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--blanc);
  border: 1.5px solid var(--gris-clair); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.brief-page textarea{ min-height: 104px; resize: vertical; line-height: 1.5; }
.brief-page textarea.tall{ min-height: 150px; }
.brief-page textarea:focus, .brief-page input:focus, .brief-page select:focus{
  outline: none; border-color: var(--bleu-vert); box-shadow: 0 0 0 3px rgba(88,131,143,.28);
}
.brief-page .grid2{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* Choix cliquables (pastilles) */
.brief-page .choices{ display: flex; flex-wrap: wrap; gap: 8px; }
.brief-page .choices label{ position: relative; cursor: pointer; margin: 0; }
.brief-page .choices input{ position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.brief-page .choices span{
  display: inline-block; padding: 9px 16px; border: 1.5px solid var(--gris-clair);
  border-radius: 999px; background: var(--blanc); font-size: .9rem; transition: all .15s;
}
.brief-page .choices input:hover + span{ border-color: var(--bleu-vert); }
.brief-page .choices input:checked + span{ background: var(--bleu-vert); border-color: var(--bleu-vert); color: var(--blanc); }
.brief-page .choices input:focus-visible + span{ outline: 2px solid var(--anthracite); outline-offset: 3px; }

/* Cartes de format */
.brief-page .cards{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.brief-page .cards label{ position: relative; cursor: pointer; display: block; margin: 0; }
.brief-page .cards input{ position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.brief-page .cards .c{ display: block; height: 100%; padding: 15px 18px; border: 1.5px solid var(--gris-clair); border-radius: var(--radius); background: var(--blanc); transition: all .15s; }
.brief-page .cards .c b{ display: block; font-size: .95rem; margin-bottom: 3px; font-weight: 700; }
.brief-page .cards .c small{ color: var(--ink-muted); font-size: .82rem; line-height: 1.45; display: block; }
.brief-page .cards input:hover + .c{ border-color: var(--bleu-vert); }
.brief-page .cards input:checked + .c{ background: var(--beige); border-color: var(--bleu-vert); box-shadow: inset 0 0 0 1px var(--bleu-vert); }
.brief-page .cards input:focus-visible + .c{ outline: 2px solid var(--anthracite); outline-offset: 3px; }
.brief-page .cards .wide{ grid-column: 1 / -1; }

/* Consentement */
.brief-page .consent{ background: var(--blanc); border: 1px solid var(--line); border-left: 4px solid var(--bleu-vert); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 24px; }
.brief-page .check{ display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: .92rem; cursor: pointer; }
.brief-page .check input{ flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--bleu-vert); }
.brief-page .rgpd{ font-size: .8rem; color: var(--ink-muted); margin: 10px 0 0; line-height: 1.55; max-width: none; }
.brief-page .rgpd a{ color: var(--ink); }
.brief-page .err{ display: none; color: var(--brief-err); font-size: .85rem; margin: 6px 0 0; max-width: none; font-weight: 500; }
.brief-page .err.show{ display: block; }
.brief-page .err a{ color: var(--brief-err); font-weight: 600; }
.brief-page .err .btn{ margin-top: 10px; color: var(--ink); }

.brief-page .send{ display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.brief-page .send .btn:disabled{ opacity: .6; cursor: wait; }
.brief-page .after{ color: var(--ink-muted); font-size: .85rem; max-width: 460px; margin: 0; }

.brief-page .hp{ position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation */
.brief-page .thanks{ background: var(--blanc); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 28px; text-align: center; }
.brief-page .thanks[hidden]{ display: none; }
.brief-page .thanks h2{ font-size: 1.6rem; margin: 0 auto 12px; text-align: center; }
.brief-page .thanks p{ margin: 0 auto 10px; max-width: 520px; text-align: center; }
.brief-page .thanks .tick{ width: 56px; height: 56px; border-radius: 50%; background: var(--brief-ok); color: var(--blanc); font-size: 1.7rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.brief-page .hintpdf{ color: var(--ink-muted); font-size: .82rem; }

@media (max-width: 700px){
  .brief-page{ padding: 24px 0 56px; }
  .brief-page .sec{ padding: 22px 18px 6px; }
  .brief-page .sec > .sub{ margin-left: 0; }
  .brief-page .grid2{ grid-template-columns: 1fr; }
  .brief-page .cards{ grid-template-columns: 1fr; }
  .brief-promise{ padding: 18px 18px; }
  .brief-page .send .btn{ width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce){ .brief-page *{ transition: none !important; } }

/* Fiche imprimable : c'est elle qui devient le PDF « Télécharger mon brief » */
.sheet{ display: none; }
@media print{
  @page{ size: A4; margin: 16mm 15mm; }
  html, body{ background: #fff !important; }
  .site-header, .site-footer, main > *:not(#sheet){ display: none !important; }
  main > #sheet, #sheet{ display: block !important; color: #000; font: 10.5pt/1.45 var(--font-body); }
  #sheet *{ -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #sheet .sh-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 16pt; border-bottom: 3px solid #58838F; padding-bottom: 10pt; margin-bottom: 14pt; }
  #sheet .sh-logo{ height: 26pt; width: auto; }
  #sheet h1{ font-size: 20pt; margin: 0; line-height: 1.15; text-transform: none; }
  #sheet .sh-sub{ color: #6C7079; font-size: 10pt; margin: 3pt 0 0; }
  #sheet h2{ font-size: 12.5pt; color: #3E6270; margin: 16pt 0 6pt; padding-bottom: 3pt; border-bottom: 1px solid #E2E2E1; break-after: avoid; }
  #sheet .row{ margin: 0 0 7pt; break-inside: avoid; }
  #sheet .lab{ font-weight: 700; font-size: 9.5pt; }
  #sheet .val{ white-space: pre-wrap; margin: 1pt 0 0; }
  #sheet .sh-foot{ margin-top: 22pt; padding-top: 8pt; border-top: 1px solid #E2E2E1; color: #6C7079; font-size: 9pt; }
}
