/* New AI Creator : une page de guide imprimé, papier et encre, avec le rouge-orangé du coucher de soleil du phare */
@font-face {
  font-family: "Archivo";
  src: url("/assets/polices/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --papier: #f4f1ea;
  --papier-2: #e9e4d8;
  --encre: #161512;
  --encre-2: #57534b;
  --filet: #d3cdbf;
  --signal: #cf3f17;
  --signal-texte: #a8320f;
  --nuit: #15161d;
  --nuit-texte: #e9e6df;
  --nuit-2: #a3a099;
  --gouttiere: clamp(16px, 4vw, 48px);
  --large: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: var(--signal-texte); text-underline-offset: .16em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-stretch: 118%; font-weight: 800; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }

/* ---- haut et bas de page */
.haut {
  max-width: var(--large);
  margin: 0 auto;
  padding: 18px var(--gouttiere);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.marque, .marque-bas { display: inline-flex; align-items: center; gap: 9px; font-stretch: 112%; font-weight: 800; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.signe { display: inline-block; width: 11px; height: 19px; background: var(--signal); border-radius: 2px; }
.lien-prix { font-weight: 600; font-size: .95rem; color: inherit; text-decoration: none; border-bottom: 2px solid var(--signal); padding-bottom: 1px; white-space: nowrap; }

.bas { background: var(--nuit); color: var(--nuit-2); margin-top: clamp(64px, 10vw, 120px); padding: 44px var(--gouttiere) 36px; font-size: .92rem; }
.bas a { color: var(--nuit-texte); }
.bas-grille { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; }
.bas-grille p + p { margin-top: 4px; }
.marque-bas { color: var(--nuit-texte); font-size: 1.05rem; margin-bottom: 12px; }
.bas nav { display: grid; gap: 6px; align-content: start; }
.bas nav a { text-decoration: none; }
.bas nav a:hover { text-decoration: underline; }
.non-affilie { max-width: var(--large); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid #2c2d36; font-size: .82rem; }

/* ---- la une */
.une {
  max-width: var(--large);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) var(--gouttiere) clamp(24px, 3vw, 36px);
}
.une-suite { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 56px; }
.surtitre { font-stretch: 88%; font-size: .86rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--signal-texte); margin-bottom: 18px; }
h1 { font-size: clamp(2.45rem, 6.1vw, 4.35rem); }
.chapeau { font-size: 1.14rem; color: var(--encre-2); max-width: 42rem; }
.bouton {
  display: inline-block;
  background: var(--signal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 14px 24px;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color .15s ease-out;
}
a.bouton:hover { background: var(--signal-texte); }
.bouton:disabled { background: var(--papier-2); color: var(--encre-2); box-shadow: inset 0 0 0 1px var(--filet); cursor: not-allowed; }

/* ---- la chaîne en quatre cadres verticaux */
.chaine { max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.cadres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.cadre { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 8px; background: var(--nuit); }
.cadre-texte { background: var(--nuit); color: var(--nuit-texte); padding: 15% 11%; display: flex; flex-direction: column; gap: 1em; font-size: clamp(.86rem, 1.75vw, 1.28rem); line-height: 1.32; font-weight: 500; }
.cadre-etiquette { font-stretch: 85%; font-size: .68em; letter-spacing: .05em; color: var(--nuit-2); margin-bottom: auto; }
.cadre-attente { color: #ff9a6b; }
.sous-titre {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 70%;
  text-align: center;
  color: #fff;
  font-size: clamp(1.05rem, 2.6vw, 1.85rem);
  font-stretch: 100%;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .45);
}
.legende { padding-top: 10px; font-size: .95rem; line-height: 1.35; color: var(--encre-2); }
.legende b { display: block; color: var(--encre); font-weight: 700; }
.preuve { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--filet); font-size: .92rem; color: var(--encre-2); }

/* ---- ce qu'il y a dedans */
.contenu, .questions { max-width: var(--large); margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gouttiere) 0; }
.sommaire { counter-reset: partie; margin-top: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.sommaire li { counter-increment: partie; border-top: 2px solid var(--encre); padding: 14px 0 30px; }
.sommaire li::before { content: counter(partie, decimal-leading-zero); display: block; font-stretch: 85%; font-size: .85rem; font-weight: 600; color: var(--signal-texte); margin-bottom: 8px; }
.sommaire p { margin-top: 6px; color: var(--encre-2); }

/* ---- pour qui */
.pour-qui {
  margin-top: clamp(40px, 7vw, 80px);
  padding: clamp(44px, 7vw, 84px) max(var(--gouttiere), calc((100vw - var(--large)) / 2 + var(--gouttiere)));
  background: var(--nuit);
  color: var(--nuit-texte);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px clamp(32px, 6vw, 88px);
}
.pour-qui h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: 18px; }
.pour-qui li { padding: 11px 0; border-top: 1px solid #2c2d36; }

/* ---- l'offre */
.offre {
  max-width: var(--large);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gouttiere) 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 28px clamp(32px, 6vw, 88px);
  scroll-margin-top: 8px;
}
.prix { font-stretch: 118%; font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 18px; }
.taxe { margin-top: 10px; color: var(--encre-2); font-size: .95rem; }
.offre-detail li { padding: 11px 0; border-top: 1px solid var(--filet); }
.offre-detail li:last-child { border-bottom: 1px solid var(--filet); }
.offre-detail .bouton { margin-top: 24px; }
.note { margin-top: 12px; font-size: .92rem; color: var(--encre-2); }

/* ---- questions */
.questions dl { margin-top: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 88px); }
.questions dl > div { border-top: 1px solid var(--filet); padding: 16px 0 26px; }
.questions dt { font-weight: 700; margin-bottom: 6px; }
.questions dd { color: var(--encre-2); }

/* ---- pages légales */
.document { max-width: 46rem; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gouttiere) 0; }
.document h1 { font-size: clamp(2rem, 5vw, 3rem); }
.document h2 { font-size: 1.25rem; font-stretch: 105%; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin-top: 36px; scroll-margin-top: 12px; }
.document p, .document ol, .document ul, .document dl, .document .tableau { margin-top: 12px; }
.document h1 + p { margin-top: 20px; }
.document ol { list-style: decimal; padding-left: 1.3em; }
.document ul { list-style: disc; padding-left: 1.2em; }
.document li + li { margin-top: 4px; }
.version { color: var(--encre-2); font-size: .95rem; }
.fiche > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2px 16px; padding: 8px 0; border-top: 1px solid var(--filet); }
.fiche dt { color: var(--encre-2); }
.encadre { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--encre); border-radius: 4px; font-size: .95rem; }
.encadre p { margin-top: 9px; }
.encadre p:first-child { margin-top: 0; }
.encadre-titre { font-weight: 700; }
.tableau { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .92rem; line-height: 1.4; }
th { text-align: left; font-weight: 700; }
th, td { padding: 9px 12px 9px 0; border-top: 1px solid var(--filet); vertical-align: top; }
.a-remplir { background: #ffdf6b; color: #3f3200; padding: 0 .3em; border-radius: 2px; }

/* ---- téléphone */
@media (max-width: 860px) {
  .offre, .bas-grille { grid-template-columns: minmax(0, 1fr); }
  .sommaire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .questions dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cadres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .cadre-texte { font-size: clamp(.92rem, 4.2vw, 1.1rem); }
  .sous-titre { font-size: clamp(1.1rem, 5.6vw, 1.45rem); }
  .sommaire, .pour-qui { grid-template-columns: minmax(0, 1fr); }
  .fiche > div { grid-template-columns: minmax(0, 1fr); }
  table.empile { min-width: 0; }
  table.empile thead { display: none; }
  table.empile, table.empile tbody, table.empile tr, table.empile td { display: block; width: 100%; }
  table.empile tr { padding: 10px 0 12px; border-top: 1px solid var(--filet); }
  table.empile td { border: 0; padding: 2px 0; }
  table.empile td.quand { font-weight: 700; }
  table.empile td[data-l]::before { content: attr(data-l); display: block; margin-top: 6px; font-size: .8rem; color: var(--encre-2); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
