@import url('/assets/polices/polices.css');

/* Concept : la maison sous la neige au crépuscule. Un cadre photo arrondi porte le grand nom de la marque dans le ciel
   (inspiration Pinterest « energy web design »), puis des bandes neige et nuit alternent, aux couleurs des couvertures. */
:root {
  --nuit: #061224;        /* fond du logo */
  --marine: #0c2240;      /* titres des couvertures */
  --acier: #3a689e;       /* le flocon */
  --or: #e89614;          /* la ligne dorée des couvertures */
  --or-clair: #ffba42;    /* la maison du logo */
  --neige: #f3f6f9;
  --givre: #dce5ee;
  --blanc: #ffffff;
  --texte: #0c2240;
  --texte-doux: #4b5d73;
  --texte-nuit: #c9d6e4;

  --f-titre: 'Barlow Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  --f-ui: 'Barlow Semi Condensed', 'Bahnschrift', 'Segoe UI', sans-serif;
  --f-texte: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --rayon: 28px;
  --rayon-petit: 14px;
  --gouttiere: max(20px, env(safe-area-inset-left, 0px));
  --largeur: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--neige);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 3px; border-radius: 4px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--marine); color: var(--blanc); padding: 10px 16px; border-radius: 10px; font-family: var(--f-ui); text-decoration: none; }
.evitement:focus { top: 12px; }

.contenant { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-left: var(--gouttiere); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--f-titre); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0; }
.surtitre { font-family: var(--f-ui); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acier); display: inline-flex; align-items: center; gap: 10px; }
.surtitre::before { content: ""; width: 28px; height: 3px; background: var(--or); border-radius: 2px; }
.chapeau { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--texte-doux); max-width: 60ch; }
.chiffres { font-variant-numeric: tabular-nums; }

/* ---------- Boutons : pastille avec flèche dans un rond ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-ui); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 8px 8px 8px 22px; border-radius: 999px; min-height: 52px;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.bouton .rond { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .25s ease; }
.bouton .rond svg { width: 16px; height: 16px; }
.bouton:hover .rond { transform: rotate(-45deg); }
.bouton:active { transform: translateY(1px); }
.bouton-or { background: var(--or-clair); color: var(--marine); }
.bouton-or .rond { background: var(--marine); color: var(--or-clair); }
.bouton-or:hover { background: #ffc85f; }
.bouton-marine { background: var(--marine); color: var(--blanc); }
.bouton-marine .rond { background: var(--or-clair); color: var(--marine); }
.bouton-marine:hover { background: #12305a; }
.bouton-verre { background: rgba(255,255,255,.14); color: var(--blanc); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.bouton-verre .rond { background: rgba(255,255,255,.92); color: var(--marine); }
.bouton-verre:hover { background: rgba(255,255,255,.24); }
.bouton-contour { background: transparent; color: var(--marine); box-shadow: inset 0 0 0 1.5px var(--marine); }
.bouton-contour .rond { background: var(--marine); color: var(--blanc); }
.bouton-contour:hover { background: rgba(12,34,64,.06); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(243,246,249,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.entete .contenant { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 44px; height: 44px; }
.logo span { font-family: var(--f-titre); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--marine); line-height: 1; }
.logo span b { color: var(--acier); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-family: var(--f-ui); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--marine); padding: 10px 14px; border-radius: 999px; transition: background-color .2s ease; }
.nav a:hover { background: var(--givre); }
.nav a.nav-action { background: var(--marine); color: var(--blanc); padding-inline: 18px; margin-left: 6px; }
.nav a.nav-action:hover { background: #12305a; }
.menu-bouton { display: none; }

@media (max-width: 1100px) {
  .menu-bouton { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; background: var(--marine); color: var(--blanc); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: 0.95rem; }
  .nav { position: absolute; left: 12px; right: 12px; top: 72px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--blanc); border-radius: var(--rayon-petit); padding: 10px; box-shadow: 0 20px 50px rgba(6,18,36,.18); }
  .nav[data-ferme="oui"] { display: none; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav a.nav-action { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 1100px) {
  .nav.nav-simple { position: static; flex-direction: row; background: none; box-shadow: none; padding: 0; }
  .nav.nav-simple a:not(.nav-action) { padding: 10px 14px; font-size: 0.98rem; }
  .nav.nav-simple a.nav-action { margin: 0; padding: 10px 16px; font-size: 0.95rem; }
}
@media (max-width: 900px) {
  .nav.nav-simple a:not(.nav-action) { display: none; }
}

/* ---------- Héros ---------- */
.heros { padding-block: 8px 0; }
.cadre {
  position: relative; overflow: hidden; border-radius: var(--rayon);
  aspect-ratio: 16 / 9; min-height: 600px; max-height: 780px; width: 100%;
  background: var(--marine); color: var(--blanc); isolation: isolate;
}
.cadre picture, .cadre picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.cadre::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,18,36,.58) 0%, rgba(6,18,36,.12) 38%, rgba(6,18,36,0) 55%, rgba(6,18,36,.35) 100%); }
.cadre-haut { position: absolute; top: 22px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-ui); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.mot-marque {
  position: absolute; left: 0; right: 0; top: clamp(44px, 6.5vw, 72px);
  margin: 0; padding-inline: 22px; text-align: center; white-space: nowrap;
  font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; line-height: .86;
  font-size: min(13.6vw, 168px); letter-spacing: -0.015em;
  color: var(--blanc); text-shadow: 0 2px 30px rgba(6,18,36,.25);
}
.mot-marque .ligne { display: inline; }
.mot-marque .ligne + .ligne { color: var(--or-clair); }
.cadre-bas { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; }
.verre-sombre { background: rgba(6,18,36,.56); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); border-radius: 22px; }
.accroche { max-width: 560px; padding: 26px 28px; display: grid; gap: 16px; }
.accroche h1 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 800; text-transform: uppercase; line-height: 1; }
.accroche p { color: var(--texte-nuit); font-size: 1.06rem; }
.accroche .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.carte-tome { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; width: 320px; text-decoration: none; color: var(--blanc); transition: transform .25s ease; }
.carte-tome:hover { transform: translateY(-3px); }
.carte-tome img { width: 74px; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.carte-tome .etat { font-family: var(--f-ui); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or-clair); }
.carte-tome strong { display: block; font-family: var(--f-titre); font-size: 1.45rem; font-weight: 600; line-height: 1.05; margin: 4px 0 6px; }
.carte-tome .prix { font-family: var(--f-ui); font-size: 0.95rem; color: var(--texte-nuit); display: flex; align-items: center; gap: 8px; }
.carte-tome .prix svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .cadre { aspect-ratio: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 150px 14px 14px; }
  .cadre picture img { object-position: 60% 60%; }
  .mot-marque { font-size: min(21vw, 132px); top: 56px; }
  .mot-marque .ligne { display: block; }
  .cadre-bas { position: static; flex-direction: column; align-items: stretch; margin-top: 150px; }
  .accroche { max-width: none; padding: 22px; }
  .carte-tome { width: auto; }
  .cadre-haut span:last-child { display: none; }
}
@media (max-width: 420px) { .cadre-haut { left: 18px; } .accroche .actions .bouton { width: 100%; justify-content: space-between; } }

/* ---------- Chiffres clés ---------- */
.repere { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 34px 10px; }
.repere > div { padding: 6px 26px; display: grid; gap: 4px; align-content: start; }
.repere > div + div { border-left: 1px solid var(--givre); }
.repere strong { font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--marine); }
.repere span { font-family: var(--f-ui); font-size: 1.02rem; color: var(--texte-doux); max-width: 30ch; }
@media (max-width: 700px) {
  .repere { grid-template-columns: 1fr; gap: 0; }
  .repere > div { padding: 18px 4px; }
  .repere > div + div { border-left: 0; border-top: 1px solid var(--givre); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.entete-section { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }

.methode .grille { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.methode .grille > * { min-width: 0; }
.methode .points { display: grid; gap: 0; margin-top: 34px; }
.point { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding-block: 24px; border-top: 1px solid var(--givre); }
.point:last-child { border-bottom: 1px solid var(--givre); }
.point h3 { font-size: 1.5rem; color: var(--marine); text-transform: uppercase; }
.point p { color: var(--texte-doux); }
@media (max-width: 900px) { .methode .grille { grid-template-columns: 1fr; } .point { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- La collection (bande nuit) ---------- */
.nuit { background: var(--nuit); color: var(--blanc); border-radius: var(--rayon) var(--rayon) 0 0; }
.nuit .surtitre { color: var(--or-clair); }
.nuit .chapeau { color: var(--texte-nuit); }
.rangee-tomes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.tome { display: grid; gap: 12px; align-content: start; }
.tome .numero { font-family: var(--f-ui); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-clair); }
.tome .couv { border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: transform .3s ease; aspect-ratio: 5 / 8; background: var(--marine); }
.tome .couv img { width: 100%; height: 100%; object-fit: cover; }
.tome:hover .couv { transform: translateY(-6px); }
.tome h3 { font-size: 1.45rem; color: var(--blanc); }
.tome p { font-size: 0.98rem; color: var(--texte-nuit); line-height: 1.5; }
.pastille { justify-self: start; font-family: var(--f-ui); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.pastille-vente { background: var(--or-clair); color: var(--marine); text-decoration: none; }
.pastille-vente:hover { background: #ffc85f; }
.pastille-bientot { box-shadow: inset 0 0 0 1px rgba(201,214,228,.45); color: var(--texte-nuit); }
.sous-collection { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 28px; border-top: 1px solid rgba(201,214,228,.18); }
.sous-collection p { color: var(--texte-nuit); max-width: 62ch; }
@media (max-width: 1000px) {
  .rangee-tomes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding-bottom: 14px; margin-right: calc(-1 * var(--gouttiere)); padding-right: var(--gouttiere); }
  .tome { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; }
}

/* ---------- Tome 1 ---------- */
.vedette { background: linear-gradient(var(--nuit) 0 58%, var(--neige) 58%); }
.vedette-carte { background: var(--neige); border-radius: var(--rayon); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.vedette-carte .grande-couv { border-radius: 10px; box-shadow: 0 30px 60px rgba(6,18,36,.28); transform: rotate(-2deg); max-width: 380px; justify-self: center; }
.vedette-carte .texte { display: grid; gap: 20px; }
.vedette-carte .sous-titre { font-family: var(--f-ui); font-size: 1.2rem; font-weight: 500; color: var(--acier); }
.liste-livre { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.liste-livre li { position: relative; padding-left: 30px; color: var(--texte); }
.liste-livre li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 3px; background: var(--or); border-radius: 2px; }
.vedette-carte .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-family: var(--f-ui); font-size: 0.95rem; color: var(--texte-doux); }
.aide-achat { font-family: var(--f-ui); font-size: 0.98rem; line-height: 1.5; color: var(--texte); background: var(--givre); border-radius: 12px; padding: 12px 16px; }
.aide-achat a { color: var(--acier); font-weight: 600; }
.argument-prix { font-family: var(--f-ui); font-size: 1.02rem; line-height: 1.5; color: var(--texte); background: #fff6e3; border-left: 4px solid var(--or); border-radius: 12px; padding: 12px 16px; }
.argument-prix strong { display: block; color: var(--marine); font-size: 1.08rem; margin-bottom: 2px; }
.lien-quiz { font-family: var(--f-ui); font-size: 1.02rem; line-height: 1.45; }
.lien-quiz a { color: var(--acier); font-weight: 600; }
.rangee-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#lien-amazon { user-select: all; word-break: break-all; }
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.etapes li { counter-increment: etape; position: relative; padding-left: 44px; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--marine); color: var(--blanc); font-family: var(--f-ui); font-weight: 600; display: grid; place-items: center; font-size: 0.95rem; }
.appareils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.appareil { background: var(--neige); border-radius: var(--rayon-petit); padding: 22px; display: grid; gap: 12px; align-content: start; }
.appareil h2 { margin-top: 0; font-size: 1.5rem; }
@media (max-width: 760px) { .appareils { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .vedette-carte { grid-template-columns: 1fr; } .vedette-carte .grande-couv { max-width: 240px; } }

/* ---------- Vidéo ---------- */
.video-carte { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.video-carte .texte { display: grid; gap: 18px; }
.vignette { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; box-shadow: 0 24px 50px rgba(6,18,36,.2); }
.vignette img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.vignette:hover img { transform: scale(1.03); }
.vignette .lecture { position: absolute; right: 22px; bottom: 22px; width: 78px; height: 78px; border-radius: 50%; background: var(--or-clair); color: var(--marine); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.vignette .lecture svg { width: 30px; height: 30px; margin-left: 5px; }
.vignette .duree { position: absolute; right: 16px; bottom: 14px; font-family: var(--f-ui); font-weight: 600; font-size: 0.9rem; background: rgba(6,18,36,.75); color: var(--blanc); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) { .video-carte { grid-template-columns: 1fr; } }

/* ---------- Infolettre (bande or) ---------- */
.bande-or { background: var(--or-clair); color: var(--marine); border-radius: var(--rayon); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.bande-or .pile { display: grid; gap: 14px; }
.bande-or .surtitre { color: var(--marine); }
.bande-or .surtitre::before { background: var(--marine); }
.bande-or h2 { font-size: clamp(2rem, 4vw, 3rem); }
.bande-or p { color: #3d3420; }
.formulaire-ligne { display: grid; gap: 14px; }
.champ-ligne { display: flex; gap: 10px; background: var(--blanc); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(12,34,64,.12); }
.champ-ligne input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-family: var(--f-ui); font-size: 1.05rem; padding: 0 18px; color: var(--marine); }
.champ-ligne input:focus { outline: none; }
.champ-ligne:focus-within { box-shadow: 0 0 0 3px var(--marine), 0 10px 30px rgba(12,34,64,.12); }
.case { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-family: var(--f-ui); font-size: 0.98rem; line-height: 1.45; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--marine); }
.sondage { margin-top: 16px; background: var(--blanc); border-radius: var(--rayon); padding: clamp(20px, 3vw, 30px) clamp(24px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; box-shadow: inset 0 0 0 1.5px var(--givre); }
.sondage .pile { display: grid; gap: 6px; flex: 1 1 320px; }
.sondage-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--marine); }
.sondage p { font-family: var(--f-ui); font-size: 1.02rem; line-height: 1.45; color: var(--texte-doux); }
@media (max-width: 860px) { .bande-or { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .champ-ligne { flex-direction: column; border-radius: 22px; } .champ-ligne input { padding: 14px 16px; } .champ-ligne .bouton { justify-content: space-between; } }

/* ---------- Contact ---------- */
.contact .grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact .intro { display: grid; gap: 20px; }
.adresse-courriel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--f-ui); font-weight: 600; font-size: 1.2rem; color: var(--marine); user-select: all; }
.copier { font-family: var(--f-ui); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; border: 0; background: var(--givre); color: var(--marine); border-radius: 999px; padding: 6px 12px; cursor: pointer; user-select: none; }
.copier:hover { background: #cfdae6; }
.formulaire { background: var(--blanc); border-radius: var(--rayon); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; box-shadow: 0 20px 50px rgba(12,34,64,.08); }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formulaire .deux > * { min-width: 0; }
.etiquette { display: grid; gap: 8px; font-family: var(--f-ui); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em; color: var(--marine); }
.etiquette small { font-weight: 500; color: var(--texte-doux); letter-spacing: 0; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire select, .formulaire textarea {
  width: 100%; font: inherit; font-family: var(--f-ui); font-size: 1.05rem; font-weight: 500; color: var(--marine);
  background: var(--neige); border: 1.5px solid var(--givre); border-radius: 12px; padding: 13px 14px;
}
.formulaire textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--acier); background: var(--blanc); box-shadow: 0 0 0 3px rgba(58,104,158,.18); }
.formulaire .bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.formulaire .bas p { font-family: var(--f-ui); font-size: 0.92rem; color: var(--texte-doux); max-width: 42ch; }
.pot-de-miel { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-etat { font-family: var(--f-ui); font-weight: 500; font-size: 1rem; border-radius: 12px; padding: 12px 16px; }
.message-etat[data-type="ok"] { background: #e3f1e6; color: #1d5130; }
.message-etat[data-type="erreur"] { background: #fbe7e4; color: #8a2a1c; }
.bande-or .message-etat[data-type="ok"] { background: var(--marine); color: var(--blanc); }
@media (max-width: 860px) { .contact .grille { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .formulaire .deux { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: var(--texte-nuit); padding-block: 64px 32px; margin-top: clamp(64px, 9vw, 120px); }
.pied .haut { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.pied .logo span { color: var(--blanc); }
.pied .logo span b { color: var(--or-clair); }
.pied .devise { margin-top: 16px; max-width: 36ch; }
.pied h3 { font-family: var(--f-ui); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--f-ui); }
.pied a { text-decoration: none; color: var(--texte-nuit); }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied .bas { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(201,214,228,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-ui); font-size: 0.9rem; }
.pied .grand-nom { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; line-height: .85; font-size: min(15.5vw, 210px); color: rgba(201,214,228,.07); text-align: center; margin-top: 40px; white-space: nowrap; overflow: hidden; user-select: none; }
@media (max-width: 860px) { .pied .haut { grid-template-columns: 1fr 1fr; } .pied .haut > :first-child { grid-column: 1 / -1; } }

/* ---------- Pages de texte (confidentialité, 404, confirmation) ---------- */
.page-texte { padding-block: clamp(48px, 7vw, 96px) 0; }
.page-texte .feuille { background: var(--blanc); border-radius: var(--rayon); padding: clamp(24px, 5vw, 64px); max-width: 860px; margin-inline: auto; display: grid; gap: 18px; }
.page-texte h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; color: var(--marine); }
.page-texte h2 { font-size: 1.7rem; margin-top: 18px; color: var(--marine); }
.page-texte p, .page-texte li { color: var(--texte); max-width: 68ch; }
.page-texte ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.page-texte .maj { font-family: var(--f-ui); color: var(--texte-doux); }
.page-centre { min-height: 56vh; display: grid; place-items: center; text-align: center; }
.page-centre .feuille { justify-items: center; }

/* ---------- Calculateurs (section de l'accueil, remplie par outils/assembler.py entre les marqueurs CALCULATEURS) ---------- */
.calcs-accueil { padding-top: 0; }
.calcs-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.calcs-cartes a { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; height: 100%; padding: 24px 26px; border-radius: var(--rayon); background: var(--marine); color: var(--blanc); text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.calcs-cartes a:hover { transform: translateY(-3px); background: #12305a; }
.calcs-cartes .tome { grid-column: 1 / -1; font-family: var(--f-ui); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-clair); }
.calcs-cartes strong { font-family: var(--f-titre); font-weight: 800; font-size: 1.7rem; line-height: 1.05; text-transform: uppercase; }
.calcs-cartes p { grid-column: 1 / 2; color: var(--texte-nuit); font-size: 1rem; }
.calcs-cartes .rond { grid-column: 2; grid-row: 2 / 4; width: 44px; height: 44px; border-radius: 50%; background: var(--or-clair); color: var(--marine); display: grid; place-items: center; }
.calcs-cartes .rond svg { width: 18px; height: 18px; }
.calcs-cartes .apercu { font-family: var(--f-ui); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--or-clair); color: var(--marine); padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
