/* Chantier Rentable — feuille de style commune (direction B « Bandeau marine », validée le 2026-11-17)
   Haut de page bleu marine (le bleu du logo), le fichier en cartes superposées.
   Titres en Source Sans 3 grasse, chiffres en Barlow. Un accent : le bleu vif des actions sur fond clair.
   Les couleurs des onglets du fichier n'apparaissent que dans les écrans du fichier. */

@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --marine: #1F3864;          /* fond du bandeau : le seul fond permis pour le logo clair */
  --marine-clair: #2A4778;
  --sur-marine: #D5DEEE;      /* texte secondaire sur marine : 8,6 */
  --blanc: #FFFFFF;
  --gris: #F3F5F9;            /* sections alternées, froid */
  --filet: #E2E6EE;
  --encre: #0F1B33;           /* titres : 17 sur blanc */
  --texte: #3B4658;           /* texte courant */
  --discret: #5D677A;         /* détails : 5,2 sur gris */
  --vert-nuit: #81C784;       /* accent sur le marine (vert de la marque pour fond sombre) : 5,8 sur marine ; encre sur ce vert : 8,5 */
  --vert-nuit-clair: #9BD49E; /* survol */
  --vert: #2E7D32;            /* vert de la marque sur fond clair : 5,1 sur blanc */
  --accent: #2B5FD9;          /* actions sur fond clair : 5,6 avec le blanc */
  --accent-fonce: #1F4BB5;
  --accent-pale: #E6EDFC;
  --ok-texte: #006100; --ok-fond: #C6EFCE; --ok-plein: #2E7D32;
  --warn-texte: #9C5700; --warn-fond: #FFEB9C;
  --bad-texte: #9C0006; --bad-fond: #FFC7CE;
  --x-bleu: #1F4E79; --x-orange: #B04E0C; --x-violet: #7030A0; --x-sarcelle: #00796B; --x-gris: #595959; --x-vert: #2E7D32; --x-marine: #1F3864;

  --corps: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --chiffres: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gouttiere: clamp(16px, 4vw, 40px);
  --ombre-ecran: 0 1px 2px rgba(5, 12, 30, .18), 0 20px 40px -12px rgba(5, 12, 30, .45), 0 50px 90px -30px rgba(5, 12, 30, .5);
  --ombre-douce: 0 1px 3px rgba(15, 27, 51, .06), 0 16px 36px -14px rgba(15, 27, 51, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--blanc); color: var(--texte); font-family: var(--corps); font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--encre); font-family: var(--corps); font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: from-font; }
::selection { background: var(--accent-pale); color: var(--encre); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gouttiere); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blanc); color: var(--marine); padding: 10px 16px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- En-tête, sur le bandeau marine ---------- */
.entete { background: var(--marine); }
.entete-rang { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: 160px; }
.menu { display: flex; gap: 4px; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--blanc); font-weight: 600; font-size: 1.0625rem; text-decoration: none; transition: background-color .15s ease;
}
.menu a:hover { background: rgba(255, 255, 255, .1); }
.menu a:focus-visible { outline-color: var(--blanc); }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions-centre { justify-content: center; margin-top: 28px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--corps); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton-vert { background: var(--vert-nuit); color: var(--encre); box-shadow: 0 0 0 1px rgba(129, 199, 132, .35), 0 12px 28px -10px rgba(129, 199, 132, .55); }
.bouton-vert:hover { background: var(--vert-nuit-clair); }
.bouton-blanc { background: var(--blanc); color: var(--marine); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.bouton-blanc:hover { background: #E9EEF7; }
.bouton-contour { color: var(--blanc); border-color: rgba(255, 255, 255, .45); }
.bouton-contour:hover { border-color: var(--blanc); background: rgba(255, 255, 255, .08); }
.bouton-contour-bleu { color: var(--accent); border-color: #BFCDF1; }
.bouton-contour-bleu:hover { border-color: var(--accent); }
.bouton:focus-visible { outline-color: var(--blanc); }
.bouton-contour-bleu:focus-visible { outline-color: var(--accent); }

/* ---------- Ouverture ---------- */
.ouverture {
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(255, 255, 255, .09), transparent 70%),
    var(--marine);
  color: var(--sur-marine); overflow: hidden;
  /* Bas allongé (Deniz, 2026-11-17) : la carte de devant reste entière dans le bleu */
  padding: clamp(28px, 3vw, 40px) 0 clamp(88px, 8vw, 128px);
}
.ouverture-grille { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 3vw, 48px); align-items: center; }
.pour { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; color: var(--blanc); }
.pour::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #81C784; }
.ouverture h1 {
  margin-top: 12px; color: var(--blanc);
  font-size: clamp(2.25rem, 1.5rem + 1.7vw, 2.875rem); line-height: 1.06; text-wrap: pretty; letter-spacing: -0.03em;
}
.chapeau { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.5; max-width: 38em; }
.mot-vert { color: var(--vert-nuit); }
.ouverture .chapeau { margin-top: 16px; color: var(--sur-marine); }
.ouverture .actions { margin-top: 24px; }
.prix {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px;
  font-size: 1.0625rem; font-weight: 600; color: var(--blanc);
}
.prix strong {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 9px;
  background: var(--vert-nuit); color: var(--encre);
  font-family: var(--chiffres); font-weight: 700; font-size: 1.4375rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}

/* La pile : trois écrans du fichier, posés en perspective */
.pile-cartes { container-type: inline-size; position: relative; aspect-ratio: 1 / .76; width: 100%; max-width: 640px; justify-self: end; }
.ecran {
  position: absolute; background: var(--blanc); color: #1B2536; border-radius: 14px; overflow: hidden;
  box-shadow: var(--ombre-ecran); font-size: 1.95cqi; line-height: 1.35;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  transform: perspective(1800px) rotateY(-14deg) rotateX(7deg); transform-origin: 50% 50%;
}
.ecran-heures { z-index: 1; top: 0; left: 12%; width: 62%; padding: 1.4em 1.4em 1.6em; opacity: .97; }
.ecran-resultats { z-index: 2; top: 13%; right: 0; width: 58%; padding: 1.4em 1.4em 1.2em; }
.ecran-fiche { z-index: 3; top: 35%; left: 0; width: 56%; padding: 1.5em 1.6em 1.6em; }

.e-titre { font-weight: 700; font-size: 1.35em; }
.e-orange { color: var(--x-orange); } .e-vert { color: var(--x-vert); } .e-sarcelle { color: var(--x-sarcelle); }
.e-table { width: 100%; border-collapse: collapse; margin-top: .8em; font-variant-numeric: tabular-nums; }
.e-table th { background: var(--x-orange); color: #fff; text-align: left; padding: .45em .5em; font-weight: 700; }
.e-table td { padding: .45em .5em; border-bottom: 1px solid #EEEAE2; white-space: nowrap; }
.e-table .n { text-align: right; }
.e-liste { list-style: none; margin: .8em 0 0; padding: 0; }
.e-liste li { display: grid; grid-template-columns: 1fr auto 8.6em; gap: .8em; align-items: center; padding: .55em 0; border-bottom: 1px solid #F0EEE8; }
.e-liste b { font-variant-numeric: tabular-nums; text-align: right; }
.e-liste em { justify-self: start; }
.e-liste .chip { font-size: .88em; padding: .2em .6em; }
.e-perte { color: var(--bad-texte); }
.e-total { font-weight: 700; border-bottom: 0 !important; }
.e-entete { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.exemple { font-size: .82em; font-weight: 600; color: #5B6577; border: 1px solid #E2E4EA; border-radius: 999px; padding: .15em .7em; white-space: nowrap; font-family: var(--corps); }
.e-chantier { margin-top: .6em; padding: .45em .7em; border: 1px solid #D9D4C7; border-radius: 6px; background: #FBFAF6; font-weight: 700; }
.e-verdict { margin-top: .8em; padding: .55em; text-align: center; border-radius: 8px; background: var(--ok-fond); color: var(--ok-texte); font-weight: 700; font-size: 1.5em; }
.e-gain { display: flex; align-items: baseline; justify-content: center; gap: .5em; margin-top: .8em; font-weight: 600; }
.e-gain b { font-size: 1.6em; }
.e-barres { list-style: none; margin: .9em 0 0; padding: .6em 0 0; border-top: 1px solid #EEF0F4; }
.e-barres li { display: grid; grid-template-columns: 12em 5.6em 1fr; align-items: center; gap: .7em; padding: .26em 0; }
.e-barres em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.e-barres i { display: block; height: .9em; width: var(--w); min-width: 2px; border-radius: 2px; }
.e-fort, .e-reste { font-weight: 700; }
.e-reste em { color: var(--ok-texte); }
.b-marine { background: var(--x-marine); } .b-orange { background: var(--x-orange); } .b-violet { background: var(--x-violet); }
.b-gris { background: var(--x-gris); } .b-vert { background: var(--x-vert); }

/* Puces de verdict */
.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em .3em .55em; border-radius: 10px;
  font-weight: 700; font-style: normal; font-size: 1.0625rem; line-height: 1.25; white-space: nowrap; font-family: var(--corps);
}
.chip svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.chip-ok { background: var(--ok-fond); color: var(--ok-texte); }
.chip-warn { background: var(--warn-fond); color: var(--warn-texte); }
.chip-bad { background: var(--bad-fond); color: var(--bad-texte); }
.chip-grand { font-size: 1.125rem; padding: .4em .9em .4em .7em; }

/* ---------- Sections ---------- */
.bloc { padding: clamp(48px, 4.6vw, 68px) 0; }
.bloc-gris { background: var(--gris); }
.tete { text-align: center; max-width: 920px; margin: 0 auto clamp(28px, 3vw, 40px); }
.tete h2 { font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.625rem); line-height: 1.08; letter-spacing: -0.028em; }
.tete .chapeau { margin: 12px auto 0; color: var(--texte); }

/* Étapes : le texte, puis la vraie ligne à remplir */
.etapes { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; gap: 0; }
.etapes > li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 48px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--filet);
}
.etapes > li:last-child { border-bottom: 1px solid var(--filet); }
.etape-texte { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.etape-num {
  grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--blanc); font-family: var(--chiffres); font-weight: 700; font-size: 1.375rem;
  box-shadow: 0 6px 14px -6px rgba(43, 95, 217, .6);
}
.etapes .etape-texte strong { color: var(--accent-fonce); font-weight: 700; }
.etapes h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; align-self: center; }
.etapes .etape-texte p { margin-top: 4px; color: var(--texte); }
.ligne {
  container-type: inline-size; border-radius: 12px; overflow: hidden; background: var(--blanc); box-shadow: var(--ombre-douce);
  border: 1px solid var(--filet); font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: #1B2536;
  transform: perspective(1600px) rotateY(-8deg); transform-origin: 0 50%;
}
.ligne-tete, .ligne-corps { display: grid; grid-template-columns: 1.05fr 1.55fr 1.2fr .85fr; gap: 1em; padding: .85em 1.2em; font-size: max(13px, 2.35cqi); }
.ligne-tete { color: #fff; font-weight: 700; }
.ligne-corps { font-variant-numeric: tabular-nums; }
.ligne .n { text-align: right; }
.etapes li:first-child .ligne-tete, .etapes li:first-child .ligne-corps { grid-template-columns: 1.9fr 1fr 1fr 1fr; }
.l-bleu { background: var(--x-bleu); } .l-orange { background: var(--x-orange); } .l-violet { background: var(--x-violet); }

/* Verdicts : trois lignes larges, chacune avec son exemple chiffré */
.verdicts { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; gap: 12px; }
.verdicts li {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 32px; align-items: center;
  background: var(--blanc); border-radius: 14px; padding: 14px 28px; box-shadow: var(--ombre-douce);
}
.verdicts .chip { justify-self: start; }
.verdict-sens { color: var(--texte); }
.verdict-exemple { display: grid; justify-items: end; text-align: right; }
.verdict-exemple span { font-size: 1.0625rem; color: var(--discret); }
.verdict-exemple b { font-family: var(--chiffres); font-size: 1.75rem; line-height: 1.15; color: var(--encre); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.verdict-exemple .perte { color: var(--bad-texte); }
.verdict-exemple .gain-ok { color: var(--ok-texte); }
.verdict-exemple .gain-warn { color: var(--warn-texte); }
.verdict-exemple small { font-size: 1.0625rem; color: var(--discret); }
.mention { text-align: center; margin-top: 18px; font-size: 1.0625rem; color: var(--discret); }

/* Section marine */
.bloc-marine { background: var(--marine); color: var(--sur-marine); }
.bloc-marine h2, .bloc-marine h3 { color: var(--blanc); }
.bloc-marine .tete .chapeau { color: var(--sur-marine); }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; max-width: 1080px; margin: 0 auto; }
.ecran-accueil { position: relative; container-type: inline-size; transform: perspective(2000px) rotateY(10deg) rotateX(4deg); }
.accueil { padding: 3.4cqi 4cqi 4cqi; font-size: 2.2cqi; line-height: 1.3; }
.a-nom { font-weight: 700; font-size: 1.9em; color: var(--x-marine); }
.a-question { color: #5B6577; margin-top: .2em; }
.a-groupe { font-weight: 700; margin: 1.1em 0 .45em; }
.a-tuiles, .a-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; }
.a-tuiles span { display: flex; flex-direction: column; justify-content: center; text-align: center; gap: .5em; min-height: 4.6em; padding: .6em; color: #fff; font-size: .85em; border-radius: 6px; }
.a-tuiles b { font-size: 1.4em; }
.t-bleu { background: var(--x-bleu); } .t-orange { background: var(--x-orange); } .t-violet { background: var(--x-violet); }
.t-vert { background: var(--x-vert); } .t-sarcelle { background: var(--x-sarcelle); } .t-gris { background: var(--x-gris); }
.a-chiffres span { display: flex; flex-direction: column; align-items: center; gap: .3em; padding: .9em .5em; background: #F3F3F3; border-radius: 6px; text-align: center; }
.a-chiffres small { font-size: .82em; font-weight: 600; }
.a-chiffres small:last-child { font-weight: 400; color: #5B6577; }
.a-chiffres b { font-size: 2em; line-height: 1.1; }
.a-vert { color: var(--x-vert); } .a-rouge { color: var(--bad-texte); }
.a-chiffres .a-ambre { color: var(--warn-texte); }

.raisons { display: grid; gap: 22px; }
.raisons h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.015em; }
.coches { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.coches li { position: relative; padding-left: 34px; white-space: nowrap; color: var(--sur-marine); }
.coches li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--vert-nuit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.achat { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.achat .prix { margin: 0; }

/* Articles : les uns sous les autres, comme dans la direction A */
.articles { max-width: 1040px; margin: 0 auto; border-top: 1px solid var(--filet); }
.articles .card {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 8px 32px; align-items: baseline;
  padding: 16px 8px; border-bottom: 1px solid var(--filet); text-decoration: none; color: inherit;
  transition: background-color .15s ease;
}
.articles .card:hover { background: var(--gris); }
.articles .card:hover h2, .articles .card:hover h3 { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px; }
.card-date { grid-column: 1; grid-row: 1 / span 2; font-size: 1.0625rem; color: var(--accent-fonce); font-weight: 600; }
.articles h2, .articles h3 { grid-column: 2; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.articles .card p { grid-column: 2; color: var(--texte); }
.card-more { grid-column: 3; grid-row: 1; white-space: nowrap; font-weight: 700; color: var(--accent); font-size: 1.0625rem; }

/* Pied de page */
.pied { background: var(--marine); color: var(--sur-marine); padding: 44px 0 32px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pied-contenu { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pied img { width: 160px; margin-bottom: 6px; }
.pied p { max-width: 40em; }
.pied .petit { font-size: 1.0625rem; }
.pied-liens { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.pied a { color: var(--blanc); display: inline-flex; align-items: center; min-height: 44px; }
.pied a:focus-visible { outline-color: var(--blanc); }


/* =====================================================================
   Autres pages (produit, calculateur, conseils, articles, mentions)
   ===================================================================== */

/* Menu : page en cours */
.menu a[aria-current="page"] { background: rgba(255, 255, 255, .12); box-shadow: inset 0 -2px 0 var(--vert-nuit); }

/* Boutons produits par build.js (achat, appel à l'action des articles) */
.btn, .btn-buy {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--vert-nuit); color: var(--encre); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-align: center; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(129, 199, 132, .35), 0 12px 28px -10px rgba(129, 199, 132, .55);
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover, .btn-buy:hover { background: var(--vert-nuit-clair); }
.btn:active, .btn-buy:active { transform: translateY(1px); }
/* Tant que le lien Payhip est vide : lisible, mais visiblement pas un bouton actif */
.btn-soon {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 2px dashed rgba(255, 255, 255, .45); color: var(--blanc); font-weight: 700; cursor: default;
}

/* Haut de page compact et centré (calculateur, conseils) */
.page-tete { background: radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, .08), transparent 70%), var(--marine); color: var(--sur-marine); padding: clamp(28px, 3vw, 44px) 0 clamp(32px, 3.4vw, 48px); text-align: center; }
.page-tete .wrap { display: flex; flex-direction: column; align-items: center; }
.page-tete h1 { margin-top: 10px; color: var(--blanc); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.625rem); line-height: 1.08; letter-spacing: -0.028em; max-width: 28ch; }
.page-tete .chapeau { margin-top: 12px; color: var(--sur-marine); max-width: 44em; }

/* ---------- Page produit ---------- */
.pile-cartes.pile-produit { aspect-ratio: 1 / .74; }
.pile-produit .ecran-accueil-mini { z-index: 1; top: 0; right: 0; width: 64%; padding: 0; }
.pile-produit .ecran-accueil-mini .accueil { font-size: 1.5cqi; padding: 1.6em 1.8em 1.8em; }
.pile-produit .ecran-fiche { top: 20%; left: 0; width: 54%; }
.e-ambre { background: var(--warn-fond); color: var(--warn-texte); }

.captures { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3.6fr) minmax(0, 3fr); gap: 28px; align-items: start; max-width: 1080px; margin: 0 auto; }
.capture { margin: 0; }
.capture img { width: 100%; border-radius: 12px; border: 1px solid var(--filet); box-shadow: var(--ombre-douce); background: var(--blanc); }
.capture-lien { display: block; border-radius: 12px; }
.capture-lien:hover img { box-shadow: 0 2px 4px rgba(15, 27, 51, .08), 0 22px 44px -16px rgba(15, 27, 51, .3); }
.capture figcaption { margin-top: 12px; font-size: 1.0625rem; line-height: 1.45; color: var(--texte); }
.capture figcaption b { color: var(--accent-fonce); }

.deux-listes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); max-width: 1080px; margin: 0 auto; }
.deux-listes h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.015em; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.deux-listes > div + div h3 { border-bottom-color: var(--vert); }
.lignes { list-style: none; margin: 4px 0 0; padding: 0; }
.lignes li { padding: 10px 0; border-bottom: 1px solid var(--filet); color: var(--texte); line-height: 1.45; }
.lignes b { display: block; color: var(--encre); font-weight: 700; }

.recevez { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; max-width: 1000px; margin: 0 auto; }
.recevez h3 { font-size: 1.3125rem; margin-top: 22px; }
.recevez p { margin-top: 8px; }
.coches-claires { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.coches-claires li { position: relative; padding-left: 34px; color: var(--encre); }
.coches-claires li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.encadre-achat {
  background: var(--marine); color: var(--sur-marine); border-radius: 18px; padding: 28px 32px; box-shadow: var(--ombre-douce);
  display: grid; gap: 14px; justify-items: start;
}
.encadre-achat .prix-grand { font-family: var(--chiffres); font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--vert-nuit); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.encadre-achat p { color: var(--blanc); font-weight: 600; }

.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 4px;
  cursor: pointer; list-style: none; font-weight: 700; color: var(--encre); font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-pale)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B5FD9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-fonce); }
.faq details p { padding: 0 4px 16px; max-width: 64ch; color: var(--texte); }

/* ---------- Calculateur ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; max-width: 1120px; margin: 0 auto; }
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.field label { display: block; font-weight: 700; color: var(--encre); line-height: 1.3; }
.input-unit {
  display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 0 14px; min-height: 48px;
  border: 2px solid #C9D3E6; border-radius: 10px; background: var(--blanc); transition: border-color .15s ease;
}
.input-unit:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.input-unit input {
  width: 6.5em; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; padding: 0;
  font: 700 1.125rem/1.2 var(--chiffres); color: var(--encre); font-variant-numeric: tabular-nums;
}
.input-unit span { color: var(--discret); font-size: 1.0625rem; }
.hint { margin-top: 6px; font-size: 1.0625rem; line-height: 1.4; color: var(--discret); }
.result { background: var(--marine); color: var(--sur-marine); border-radius: 18px; padding: 26px 28px; box-shadow: var(--ombre-ecran); }
.result h2 { color: var(--blanc); font-size: 1.25rem; letter-spacing: -0.01em; }
.result .big { margin-top: 8px; font-family: var(--chiffres); font-weight: 700; font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem); line-height: 1; color: var(--vert-nuit); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result .unite { margin-top: 6px; color: var(--sur-marine); }
.result dl { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 8px; }
.result dl div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.result dt { color: var(--sur-marine); }
.result dd { margin: 0; color: var(--blanc); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.methode { max-width: 760px; margin: 0 auto; }
.methode ol { margin: 0; padding: 0; list-style: none; counter-reset: etape; display: grid; gap: 12px; }
.methode ol li { counter-increment: etape; position: relative; padding-left: 48px; color: var(--texte); }
.methode ol li::before {
  content: counter(etape); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--blanc); font: 700 1.0625rem/1 var(--chiffres);
}
.methode b, .prose b { color: var(--encre); }
.methode > p { margin-top: 16px; }

.note { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: var(--accent-pale); color: #1E2E57; border: 1px solid #CFDCF8; }
.note p { margin: 0; }

/* Bande d'appel à l'action (calculateur) */
.bande-cta { text-align: center; }
.bande-cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bande-cta h2 { color: var(--blanc); font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem); letter-spacing: -0.02em; }
.bande-cta p { color: var(--sur-marine); max-width: 40em; }
.bande-cta .btn { margin-top: 8px; }

/* ---------- Conseils ---------- */
.articles-page { padding-top: clamp(32px, 3.4vw, 48px); }

/* ---------- Articles et mentions légales ---------- */
.prose { max-width: 70ch; margin: 0 auto; padding: clamp(32px, 4vw, 56px) var(--gouttiere) clamp(48px, 5vw, 72px); box-sizing: content-box; }
.prose .crumb a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--accent); }
.prose .crumb a::before { content: "\2190"; margin-right: 8px; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.625rem); line-height: 1.1; letter-spacing: -0.028em; margin-top: 4px; }
.prose .meta { margin-top: 10px; color: var(--accent-fonce); font-weight: 600; }
.prose h2 { font-size: clamp(1.4375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; margin-top: 40px; }
.prose h3 { font-size: 1.25rem; margin-top: 28px; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.prose a { font-weight: 600; }
mark { background: var(--warn-fond); color: var(--warn-texte); padding: 0 .25em; border-radius: 4px; }
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--filet); border-radius: 12px; background: var(--blanc); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.prose th { text-align: left; background: var(--gris); color: var(--encre); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--filet); white-space: nowrap; }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose .num { text-align: right; white-space: nowrap; }
.prose tr.total td { font-weight: 700; color: var(--encre); background: #F7F9FD; }
.cta-box { margin-top: 44px; padding: 26px 28px; border-radius: 18px; background: var(--marine); color: var(--sur-marine); display: grid; gap: 10px; justify-items: start; }
.prose .cta-box h2 { margin-top: 0; color: var(--blanc); font-size: 1.5rem; }
.prose .cta-box p { margin: 0; color: var(--sur-marine); }
.cta-box .btn { margin-top: 6px; }
.prose .cta-box a.btn { font-weight: 700; color: var(--encre); }

/* ---------- Autres pages : tablette et téléphone ---------- */
@media (max-width: 1080px) {
  .captures { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .captures .capture:nth-child(2) { grid-column: 1 / -1; grid-row: 1; max-width: 560px; justify-self: center; }
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .deux-listes, .recevez { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .captures { grid-template-columns: minmax(0, 1fr); }
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .result { padding: 22px 20px; }
  .calc .result { order: -1; }
  .encadre-achat { padding: 24px 20px; justify-items: stretch; }
  .btn, .btn-buy, .btn-soon { width: 100%; justify-content: center; text-align: center; }
  .prose table { font-size: 1.0625rem; }
  .pile-cartes.pile-produit { aspect-ratio: 1 / 1.32; }
  .pile-produit .ecran.ecran-accueil-mini { width: 92%; }
  .pile-produit .ecran-accueil-mini .accueil { font-size: 2.4cqi; }
  .pile-produit .ecran.ecran-fiche { top: 34%; width: 86%; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .ouverture-grille { grid-template-columns: minmax(0, 1fr); }
  .ouverture-texte { max-width: 680px; }
  .pile-cartes { max-width: 760px; width: 100%; justify-self: center; }
  .verdicts li { grid-template-columns: 200px minmax(0, 1fr); }
  .verdict-exemple { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; text-align: left; }
  .verdict-exemple span { flex-basis: 100%; }
}

@media (max-width: 900px) {
  .etapes > li { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ligne { transform: none; }
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
  .ecran-accueil { transform: none; }
  .raisons { max-width: 640px; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .entete-rang { flex-direction: column; gap: 0; padding-top: 10px; padding-bottom: 6px; }
  .menu { gap: 0; }
  .menu a { padding: 0 10px; }
  .actions { flex-direction: column; align-items: stretch; }
  .bouton { width: 100%; padding: 0 20px; }
  .pile-cartes { aspect-ratio: 1 / 1.1; }
  .ecran { font-size: 3cqi; transform: perspective(1400px) rotateY(-8deg) rotateX(5deg); }
  .ecran-heures { display: none; }
  .ecran-resultats { top: 0; right: 0; width: 88%; }
  .ecran-fiche { top: 30%; left: 0; width: 88%; }
  .e-liste li { grid-template-columns: 1fr auto 8.2em; }
  .verdicts li { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 20px; }
  .verdict-exemple { grid-column: 1; }
  .ligne-tete, .ligne-corps { font-size: 13px; padding: .8em .9em; gap: .7em; }
  .ligne-tete span:nth-child(3), .ligne-corps span:nth-child(3) { display: none; }
  .ligne-tete, .ligne-corps, .etapes li:first-child .ligne-tete, .etapes li:first-child .ligne-corps { grid-template-columns: 1fr 1.6fr 1fr; }
  .etapes li:first-child .ligne-tete, .etapes li:first-child .ligne-corps { grid-template-columns: 1.8fr 1fr 1fr; }
  .accueil { font-size: 3cqi; }
  .coches li { white-space: normal; }
  .achat { flex-direction: column; align-items: stretch; }
  .achat .prix { align-self: flex-start; }
  .articles .card { grid-template-columns: 1fr; padding: 24px 4px; }
  .card-date, .articles h2, .articles h3, .articles .card p, .card-more { grid-column: 1; grid-row: auto; }
  .card-more { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
