/* Brigade, page « Donnez-nous votre avis ». Charte de la page des pilotes (finale.css). */

@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;

  --titre: 'Fraunces', Georgia, serif;
  --texte: 'Plus Jakarta Sans', system-ui, sans-serif;
  --t-titre: clamp(48px, 6.4vw, 96px);
  --t-corps: clamp(16px, 1.25vw, 18px);
  --t-petit: 14px;
  --rayon: 12px;
  --marge: clamp(20px, 3.4vw, 48px);
  --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%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--creme); color: var(--encre);
  font-family: var(--texte); font-size: var(--t-corps); line-height: 1.55; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, p { margin: 0; }
::selection { background: var(--cuivre-pale); color: var(--encre); }
:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; border-radius: 4px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; 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;
  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); }
}

.barre { padding: 28px var(--marge) 0; }
.marque {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: var(--encre); text-decoration: none; font: 700 var(--t-corps)/1 var(--titre);
}
.marque img { width: 36px; height: 36px; border-radius: 8px; }

/* Le carton : une feuille blanche posée sur la page crème, comme le bon de la page des pilotes */
.scene { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px var(--marge) 72px; }
.carton {
  width: min(720px, 100%); padding: 56px 56px 48px; border-radius: var(--rayon);
  background: var(--blanc); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.carton-logo { width: 148px; border-radius: var(--rayon); }
.carton-titre {
  margin-top: 28px; font-family: var(--titre); font-weight: 700; font-size: var(--t-titre);
  line-height: 1; letter-spacing: -0.035em; text-wrap: balance;
}
.carton-phrase { margin-top: 20px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; max-width: 26ch; text-wrap: balance; }
.carton-phrase + p { margin-top: 12px; }
.carton .bouton { margin-top: 32px; min-width: 240px; }
.carton-mention { margin-top: 20px; font-size: 16px; color: var(--encre-douce); max-width: 44ch; }
.renvoi { text-align: center; }

.pied {
  padding: 28px var(--marge) 36px; background: var(--creme-ton);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.pied-titre { font-family: var(--titre); font-weight: 700; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: var(--t-petit); }
.pied-liens .lien { min-height: 36px; display: inline-flex; align-items: center; }

@media (max-width: 699px) {
  .barre { padding-top: 16px; }
  .scene { padding: 24px 12px 48px; }
  .carton { padding: 36px 22px 28px; }
  .carton-logo { width: 112px; }
  .carton-titre { font-size: 11.5vw; }
  .carton .bouton { width: 100%; min-width: 0; }
  .pied { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .carton { opacity: 0; transform: translateY(24px); animation: monte 820ms var(--revelation) 80ms forwards; }
  .js .carton-logo { transform: rotate(-3deg); animation: pose 900ms var(--sortie) 380ms forwards; }
}
@keyframes monte { to { opacity: 1; transform: none; } }
@keyframes pose { to { transform: none; } }
