/* Studio Cordeau : ardoise, papier, et le trait de craie jaune tendu entre deux piquets. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/assets/polices/BarlowCondensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/assets/polices/BarlowCondensed-800.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(/assets/polices/Figtree-400.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600 700; font-display: swap; src: url(/assets/polices/Figtree-600.woff2) format("woff2"); }

:root {
  --encre: #16202b;
  --encre-2: #1d2a37;
  --encre-3: #2b3b4c;
  --papier: #f4f1ea;
  --papier-2: #ebe6db;
  --blanc: #ffffff;
  --craie: #f5b400;
  --craie-vive: #ffc61a;
  --texte: #16202b;
  --gris: #56616d;
  --gris-nuit: #b9c3cd;
  --trait: #dcd5c6;
  --rouge: #b42318;
  --titre: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --corps: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --large: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--papier); color: var(--texte); font: 400 17px/1.6 var(--corps); }
img, video, svg { max-width: 100%; }
img, video { display: block; }
a { color: inherit; }
p, ul, ol, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: .005em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--craie); outline-offset: 3px; border-radius: 4px; }
.a-completer { background: #ffe08a; color: var(--encre); padding: 0 .3em; border-radius: 3px; font-weight: 600; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bloc {
  max-width: var(--large); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Le trait de cordeau : une ligne tendue entre deux piquets */
.cordeau { position: relative; display: block; width: 180px; height: 21px; margin: 19px 0 0;
  background: linear-gradient(currentColor, currentColor) 0 0 / 4px 100% no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / 4px 100% no-repeat; }
.cordeau::before { content: ""; position: absolute; left: 6px; right: 6px; top: 9px; height: 3px; background: var(--craie); transform-origin: left; }
/* la craie qui s'envole quand on claque la ligne */
.cordeau::after { content: ""; position: absolute; left: 6px; right: 6px; top: -3px; height: 26px; opacity: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(245, 180, 0, .85) 1px, transparent 1.8px), radial-gradient(circle, rgba(255, 255, 255, .55) .8px, transparent 1.5px);
  background-size: 11px 9px, 7px 13px; background-position: 0 0, 4px 5px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 10px; font: 700 16px/1.1 var(--corps); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-craie { background: var(--craie); color: var(--encre); }
.btn-craie:hover { background: var(--craie-vive); }
.btn-encre { background: var(--encre); color: var(--blanc); }
.btn-encre:hover { background: var(--encre-3); }
.btn-contour { border-color: rgba(255, 255, 255, .35); color: var(--blanc); }
.btn-contour:hover { border-color: var(--blanc); }
.btn-contour-encre { border-color: var(--encre); color: var(--encre); }
.btn-contour-encre:hover { background: var(--encre); color: var(--blanc); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: var(--encre); color: var(--blanc); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.entete .bloc { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--blanc); text-decoration: none; font: 800 23px/1 var(--titre); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.logo svg { flex: none; width: 38px; height: 22px; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: #d4dce4; font-size: 15px; font-weight: 600; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--blanc); border-bottom-color: var(--craie); }
.entete .btn { min-height: 42px; padding: 9px 16px; font-size: 15px; }

/* Haut de page de l'accueil */
.heros { position: relative; overflow: hidden; background: var(--encre); color: var(--blanc); padding-block: 76px 92px; }
.heros::after { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: repeating-linear-gradient(90deg, var(--craie) 0 42px, transparent 42px 84px); opacity: .9; }
.heros .bloc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .92fr); gap: 60px; align-items: center; }
.surtitre { color: var(--craie); font: 700 14px/1.35 var(--corps); letter-spacing: .09em; text-transform: uppercase; }
.heros h1 { margin-top: 18px; font-size: clamp(50px, 7.4vw, 96px); }
.heros .chapeau { max-width: 33em; margin-top: 28px; color: #cbd4dd; font-size: 19px; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* La carte du code */
.carte-code { background: var(--blanc); color: var(--texte); border-radius: 20px; padding: 30px; box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .7); }
.carte-code .etiquette { display: inline-flex; align-items: center; gap: 8px; color: var(--gris); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.carte-code .etiquette::before { content: ""; width: 22px; height: 3px; background: var(--craie); }
.carte-code h2 { margin-top: 12px; font-size: 36px; }
.carte-code > p { margin-top: 10px; color: var(--gris); font-size: 16px; }
.form-code { margin-top: 22px; }
.form-code label { display: block; font-size: 14px; font-weight: 700; }
.champ-code { display: flex; gap: 10px; margin-top: 8px; }
.champ-code input { flex: 1 1 auto; min-width: 0; padding: 12px 16px; border: 2px solid var(--trait); border-radius: 12px; background: var(--papier); color: var(--encre); font: 800 30px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; }
.champ-code input::placeholder { color: #b9b2a3; }
.champ-code input:focus { outline: none; border-color: var(--encre); background: var(--blanc); }
.champ-code .btn { flex: none; }
.message-code { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: var(--gris); }
.message-code.erreur { color: var(--rouge); font-weight: 600; }
.carte-code .discret { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--trait); color: var(--gris); font-size: 14px; }
.carte-code .lien-exemple { display: inline-block; margin-top: 12px; color: var(--encre); font-size: 15px; font-weight: 700; text-underline-offset: 3px; }
.carte-code .lien-exemple span { display: inline-block; margin-left: 4px; transition: translate .25s; }
.carte-code .lien-exemple:hover span { translate: 4px 0; }

/* Sections */
.section { padding-block: 92px; }
.section-papier2 { background: var(--papier-2); }
.section-nuit { background: var(--encre); color: var(--blanc); }
.tete { max-width: 46em; }
.tete .surtitre { color: #9a6d00; }
.section-nuit .tete .surtitre { color: var(--craie); }
.tete h2 { margin-top: 12px; font-size: clamp(38px, 5.2vw, 62px); }
.tete p { margin-top: 18px; color: var(--gris); font-size: 18px; }
.section-nuit .tete p { color: #cbd4dd; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.point { min-width: 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: 16px; padding: 26px 24px; }
.point h3 { font-size: 25px; }
.point p { margin-top: 10px; color: var(--gris); font-size: 16px; }
.point .num { display: block; margin-bottom: 14px; color: #9a6d00; font: 800 15px/1 var(--titre); letter-spacing: .1em; }

/* Les étapes, alignées sur un cordeau */
.etapes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 54px; list-style: none; padding: 0; }
.etapes::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 3px; background: var(--craie); }
.etapes li { position: relative; min-width: 0; }
.etapes .pastille { position: relative; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--encre); color: var(--craie); font: 800 22px/1 var(--titre); box-shadow: 0 0 0 6px var(--papier); }
.etapes h3 { margin-top: 22px; font-size: 25px; }
.etapes p { margin-top: 8px; color: var(--gris); font-size: 16px; }

/* Le suivi */
.video { margin-top: 46px; border-radius: 16px; overflow: hidden; background: #0d141c; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); aspect-ratio: 16 / 9; max-width: 100%; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.legende { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.legende p { color: var(--gris-nuit); font-size: 15px; }
.fonctions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 46px; list-style: none; padding: 0; }
.fonctions li { position: relative; min-width: 0; padding-top: 18px; }
.fonctions li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--craie); transform-origin: left; }
.fonctions b { display: block; font: 800 22px/1.05 var(--titre); text-transform: uppercase; }
.fonctions span { display: block; margin-top: 8px; color: #cbd4dd; font-size: 15px; }

/* Prix */
.prix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; align-items: stretch; }
.offre { display: flex; flex-direction: column; min-width: 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; padding: 28px 26px; }
.offre.forte { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.offre h3 { font-size: 28px; }
.offre .depuis { margin-top: 18px; color: var(--gris); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.offre.forte .depuis { color: var(--gris-nuit); }
.offre .montant { margin-top: 2px; font: 800 58px/1 var(--titre); letter-spacing: -.01em; white-space: nowrap; }
.offre .montant small { font-size: 22px; letter-spacing: .02em; }
.offre .precision { margin-top: 8px; color: var(--gris); font-size: 15px; }
.offre.forte .precision { color: var(--gris-nuit); }
.offre ul { margin-top: 20px; padding: 18px 0 0; border-top: 1px solid var(--trait); list-style: none; display: grid; gap: 9px; font-size: 16px; }
.offre.forte ul { border-top-color: rgba(255, 255, 255, .16); }
.offre li { position: relative; padding-left: 26px; }
.offre li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; background: var(--craie); }
.note-prix { margin-top: 22px; color: var(--gris); font-size: 15px; }

/* Questions */
.questions { display: grid; gap: 12px; margin-top: 40px; max-width: 820px; }
.questions details { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--papier); font: 800 22px/1 var(--titre); }
.questions details[open] summary::after { content: "–"; }
.questions details p { padding: 0 22px 22px; color: var(--gris); }

/* Bandeau d'appel */
.bandeau { background: var(--craie); color: var(--encre); }
.bandeau .bloc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: 44px; }
.bandeau h2 { font-size: clamp(32px, 4.4vw, 50px); }
.bandeau p { margin-top: 8px; font-size: 17px; }

/* Pied de page */
.pied { background: var(--encre); color: var(--gris-nuit); font-size: 15px; }
.pied .bloc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; padding-block: 52px 36px; }
.pied .logo { font-size: 21px; }
.pied p { margin-top: 14px; max-width: 30em; }
.pied nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 32px; align-content: start; justify-content: end; }
.pied nav a { color: #e1e7ed; text-decoration: none; font-weight: 600; }
.pied nav a:hover { color: var(--craie); }
.pied .bas { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* Pages intérieures */
.page-tete { background: var(--encre); color: var(--blanc); padding-block: 64px 70px; }
.page-tete h1 { margin-top: 14px; font-size: clamp(46px, 6.4vw, 80px); }
.page-tete .chapeau { max-width: 36em; margin-top: 22px; color: #cbd4dd; font-size: 19px; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-corps { padding-block: 64px 92px; }
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.carte { min-width: 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: 18px; padding: 28px; }
.carte h2 { font-size: 30px; }
.carte > p { margin-top: 10px; color: var(--gris); }
.liste-sure { display: grid; gap: 14px; list-style: none; padding: 0; margin-top: 18px; }
.liste-sure li { position: relative; padding-left: 30px; color: var(--gris); }
.liste-sure li::before { content: ""; position: absolute; left: 0; top: .7em; width: 16px; height: 3px; background: var(--craie); }
.liste-sure b { color: var(--texte); }

.coordonnees { display: grid; gap: 14px; margin-top: 20px; }
.coordonnee { display: grid; gap: 2px; padding: 16px 18px; border-radius: 12px; background: var(--papier); text-decoration: none; }
.coordonnee small { color: var(--gris); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.coordonnee b { font: 800 30px/1.05 var(--titre); letter-spacing: .02em; overflow-wrap: anywhere; }
a.coordonnee:hover { background: var(--papier-2); }

.formulaire { display: grid; gap: 16px; margin-top: 20px; }
.formulaire .rang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.formulaire label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.formulaire input, .formulaire textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--trait); border-radius: 10px; background: var(--papier); color: var(--texte); font: 400 16px/1.4 var(--corps); }
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--encre); background: var(--blanc); }
.formulaire textarea { min-height: 130px; resize: vertical; }
.formulaire .aide { color: var(--gris); font-size: 14px; }
.formulaire label > span small { margin-left: 4px; color: var(--gris); font-size: 13px; font-weight: 400; }
.formulaire input[aria-invalid="true"], .formulaire textarea[aria-invalid="true"] { border-color: var(--rouge); background: #fff7f6; }
.formulaire .aide.erreur { color: var(--rouge); font-weight: 600; }
.formulaire .btn:disabled { opacity: .7; cursor: progress; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.envoye, .secours { display: grid; gap: 10px; justify-items: start; margin-top: 20px; padding: 24px; border-radius: 14px; outline: none; }
.envoye { background: var(--papier); border: 1px solid var(--trait); }
.secours { background: #fffaf0; border: 2px solid var(--craie); }
.envoye h3, .secours h3 { font-size: 26px; }
.envoye p, .secours p { color: var(--gris); }
.coche { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--craie); }
.coche::after { content: ""; position: absolute; left: 17px; top: 10px; width: 11px; height: 21px; border: solid var(--encre); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.secours-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lien-bouton { padding: 0; border: 0; background: none; color: var(--encre); font: 700 15px/1.4 var(--corps); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.formulaire[hidden], .envoye[hidden], .secours[hidden], .secours-actions [hidden] { display: none; }

.texte-legal { max-width: 760px; display: grid; gap: 34px; }
.texte-legal section { display: grid; gap: 10px; }
.texte-legal h2 { font-size: 30px; }
.texte-legal p, .texte-legal li { color: #3d4752; }
.texte-legal ul { padding-left: 20px; display: grid; gap: 6px; }

/* Téléphone et petites tablettes */
@media (max-width: 980px) {
  .heros .bloc { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .points, .prix { grid-template-columns: minmax(0, 1fr); }
  .etapes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
  .etapes::before { display: none; }
  .fonctions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .deux { grid-template-columns: minmax(0, 1fr); }
  .pied .bloc { grid-template-columns: minmax(0, 1fr); }
  .pied nav { justify-content: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .entete { position: static; }
  .entete .bloc { flex-wrap: wrap; gap: 6px 16px; padding-block: 14px 8px; }
  .entete .btn { margin-left: auto; }
  .menu { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding-bottom: 4px; }
  .menu a { white-space: nowrap; font-size: 14px; }
  .heros { padding-block: 48px 64px; }
  .heros .chapeau { font-size: 17px; }
  .heros .actions { display: none; }   /* sur téléphone, la carte du code vient tout de suite après le texte */
  .carte-code { padding: 22px 20px; }
  .champ-code { flex-direction: column; }
  .section { padding-block: 64px; }
  .etapes { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .etapes li { display: grid; grid-template-columns: 45px minmax(0, 1fr); column-gap: 18px; }
  .etapes h3 { margin-top: 8px; }
  .etapes p { grid-column: 2; }
  .fonctions { grid-template-columns: minmax(0, 1fr); }
  .offre .montant { font-size: 50px; }
  .formulaire .rang { grid-template-columns: minmax(0, 1fr); }
  .carte { padding: 22px 20px; }
  .coordonnee b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Animations ----------
   Sans JavaScript, rien n'est caché. Si l'appareil demande moins d'animations, tout reste immobile. */
@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 78%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: 22%; }

/* Le haut des pages : un quadrillage de plan et une lueur de craie qui suit la souris */
.heros, .page-tete { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(620px circle at var(--mx) var(--my), rgba(245, 180, 0, .13), transparent 65%), var(--encre);
  transition: --mx .9s cubic-bezier(.16, 1, .3, 1), --my .9s cubic-bezier(.16, 1, .3, 1); }
.heros::before, .page-tete::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 85% 95% at 72% 18%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 95% at 72% 18%, #000 15%, transparent 78%); }

/* Le titre de l'accueil monte mot par mot */
.mots .mot { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .05em .07em; margin: -.16em -.05em -.07em; }
.mots .mot > span { display: inline-block; }
.heros h1 .craie { color: var(--craie); }

/* Le cordeau qui se tend en haut de l'écran pendant qu'on descend */
.tension { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 3px; background: var(--craie); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.entete { transition: box-shadow .3s; }
.entete.defile { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .7); }

/* Les boutons : un reflet passe au survol */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .5) 50%, transparent 68%); transform: translateX(-115%); }

/* Le logo : la ligne vibre comme un cordeau qu'on pince */
.logo svg path:last-child { transform-box: fill-box; transform-origin: center; }

/* Cartes et prix */
.point, .offre { transition: translate .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, border-color .4s; }
.point { position: relative; overflow: hidden; }
.point::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--craie); transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.offre .montant { font-variant-numeric: tabular-nums; }
.tete .surtitre { display: inline-flex; align-items: center; gap: 10px; }
.tete .surtitre::before { content: ""; flex: none; width: 26px; height: 3px; background: currentColor; transform-origin: left; }

/* Questions */
.questions details { transition: border-color .3s, box-shadow .3s; }
.questions details[open] { border-color: #cfc6b3; box-shadow: 0 18px 36px -28px rgba(22, 32, 43, .5); }
.questions summary::after { transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .3s; }
.questions details[open] summary::after { transform: rotate(180deg); background: var(--craie); }

/* Le champ du code : il tremble si le code est faux, il s'allume s'il est bon */
.champ-code input { transition: border-color .2s, background .2s, box-shadow .35s; }
.champ-code input.trouve { border-color: var(--craie); background: var(--blanc); box-shadow: 0 0 0 5px rgba(245, 180, 0, .3); }

@media (hover: hover) {
  .point:hover, .offre:hover { translate: 0 -6px; box-shadow: 0 28px 48px -30px rgba(22, 32, 43, .55); border-color: #cfc6b3; }
  .offre.forte:hover { border-color: var(--craie); }
  .point:hover::before { transform: none; }
  .questions summary:hover::after { background: var(--craie); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrée du haut de page */
  .heros .surtitre, .page-tete .surtitre { animation: monter .8s .05s cubic-bezier(.16, 1, .3, 1) both; }
  .mots .mot > span { animation: lever 1s calc(.15s + var(--i, 0) * 75ms) cubic-bezier(.16, 1, .3, 1) both; }
  .page-tete h1 { animation: devoiler 1s .12s cubic-bezier(.16, 1, .3, 1) both; }
  .heros .chapeau, .page-tete .chapeau { animation: monter .9s .85s cubic-bezier(.16, 1, .3, 1) both; }
  .heros .actions > *, .heros-actions > * { animation: monter .9s 1s cubic-bezier(.16, 1, .3, 1) both; }
  .heros .actions > :nth-child(2), .heros-actions > :nth-child(2) { animation-delay: 1.1s; }
  .heros .carte-code { animation: arriver 1.2s .5s cubic-bezier(.16, 1, .3, 1) both; }
  .heros::after { animation: marcher 2.4s linear infinite; }

  /* Le cordeau : on plante les piquets, on tend la ligne, on la claque */
  .cordeau { animation: planter .5s .4s cubic-bezier(.16, 1, .3, 1) both; }
  .cordeau::before { animation: tendre 1.3s .65s cubic-bezier(.7, 0, .2, 1) both; }
  .cordeau::after { animation: poussiere 1.2s 1.32s ease-out both; }

  .btn:hover::after { transform: translateX(115%); transition: transform .75s cubic-bezier(.16, 1, .3, 1); }
  .logo:hover svg path:last-child { animation: pincer .75s cubic-bezier(.3, .7, .4, 1); }
  .questions details[open] > p { animation: deplier .5s cubic-bezier(.16, 1, .3, 1) both; }
  .champ-code.secoue { animation: secouer .5s cubic-bezier(.36, .07, .19, .97); }
  .envoye:not([hidden]) { animation: monter .6s cubic-bezier(.16, 1, .3, 1) both; }
  .envoye:not([hidden]) .coche { animation: tamponner .55s .1s cubic-bezier(.2, 1.5, .4, 1) both; }
  .secours:not([hidden]) { animation: deplier .45s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes monter { from { opacity: 0; transform: translateY(24px); } }
@keyframes lever { from { transform: translateY(112%); } }
@keyframes devoiler { from { clip-path: inset(0 0 100% 0); transform: translateY(40px); } to { clip-path: inset(-30% -5% -30% -5%); transform: none; } }
@keyframes arriver { from { opacity: 0; transform: translate(46px, 26px) rotate(3deg) scale(.96); } }
@keyframes marcher { to { background-position: 84px 0; } }
@keyframes planter { from { opacity: 0; transform: translateY(-12px); } }
@keyframes tendre {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  60% { transform: translateY(-5px); }
  70% { transform: translateY(3.5px); }
  80% { transform: translateY(-1.8px); }
  90% { transform: translateY(.7px); }
  100% { transform: none; }
}
@keyframes poussiere { 0% { opacity: 0; transform: translateY(4px) scaleY(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scaleY(1.6); filter: blur(1.5px); } }
@keyframes pincer { 15% { transform: translateY(3px); } 35% { transform: translateY(-2.2px); } 55% { transform: translateY(1.3px); } 75% { transform: translateY(-.6px); } }
@keyframes deplier { from { opacity: 0; transform: translateY(-8px); } }
@keyframes tamponner { from { opacity: 0; transform: scale(.3) rotate(-25deg); } }
@keyframes secouer { 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* Apparitions au défilement : la classe .anime n'est posée que par anim.js, et jamais si l'appareil demande moins d'animations */
.anime .revele { opacity: 0; transform: translateY(30px); }
.anime .revele.vu { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms), transform 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms); }
.anime .video.revele { transform: translateY(46px) scale(.93); }
.anime .video.revele.vu { transform: none; transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1.3s cubic-bezier(.16, 1, .3, 1); }
.anime .tete.revele .surtitre::before { transform: scaleX(0); }
.anime .tete.revele.vu .surtitre::before { transform: none; transition: transform .8s .3s cubic-bezier(.65, 0, .35, 1); }
.anime .etapes::before { transform: scaleX(0); transform-origin: left; }
.anime .etapes.trace::before { transform: none; transition: transform 1.7s .1s cubic-bezier(.65, 0, .35, 1); }
.anime .etapes li.revele .pastille { transform: scale(.2); }
.anime .etapes li.revele.vu .pastille { transform: none; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0ms); }
.anime .fonctions li.revele::before { transform: scaleX(0); }
.anime .fonctions li.revele.vu::before { transform: none; transition: transform 1s cubic-bezier(.65, 0, .35, 1) calc(var(--d, 0ms) + 150ms); }
