/* ============================================================
   POUDRE  .  extensions-de-cils.fr
   Feuille unique du site. Theme clair assume.
   Typo Roboto + Lato, reprise de nanolash.fr.
   ============================================================ */

:root {
  --ground:  #FDF8F9;
  --surface: #FFFFFF;
  --sunk:    #FAEFF2;
  --sunk-2:  #F4E2E8;

  --ink:      #2E2028;
  --ink-soft: #5F4C56;
  --muted:    #94818B;

  --line:      #EFDFE4;
  --line-soft: #F6EBEE;
  --line-lit:  #DFC6CE;

  --accent:      #C0506F;
  --accent-deep: #9B3453;
  --accent-wash: #FBEAEF;

  --plum: #7A3B57;
  --sage: #6E8C7D;

  --f-display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --f-accent: "Lato", "Roboto", Arial, sans-serif;

  --wrap: 1080px;
  --read: 64ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.wrap-read { max-width: 800px; margin: 0 auto; padding: 0 26px; }

h1, h2 { font-family: var(--f-display); font-weight: 300; text-wrap: balance; color: var(--ink); }
h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; color: var(--ink); }

p { margin: 0 0 20px; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 500; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- en-tete ---------- */

.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 20px; padding-bottom: 20px;
}
.brand {
  font-family: var(--f-accent); font-size: 1.06rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink);
  text-decoration: none;
}
.brand b { font-weight: 400; color: var(--accent); }
.nav {
  display: flex; gap: 28px; font-family: var(--f-accent);
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a { color: var(--ink-soft); text-decoration: none; padding-bottom: 2px; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom: 1px solid var(--accent); }
@media (max-width: 720px) {
  .nav { gap: 16px; font-size: 0.76rem; letter-spacing: 0.08em; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- fil d'ariane ---------- */

.ariane {
  font-family: var(--f-accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding: 22px 0 0;
}
.ariane a { color: var(--muted); text-decoration: none; }
.ariane a:hover { color: var(--accent); }
.ariane .sep { color: var(--line-lit); padding: 0 8px; }

/* ---------- ouverture d'article ---------- */

.hero { padding: 30px 0 0; }
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 20px; max-width: 18ch;
}
.hero .chapo {
  font-size: 1.2rem; font-weight: 300; line-height: 1.6;
  color: var(--ink-soft); max-width: 58ch;
}

/* ---------- sommaire ---------- */

.sommaire {
  background: var(--sunk); border: 1px solid var(--line);
  padding: 22px 24px 24px; margin: 32px 0 0;
}
.sommaire h2 {
  font-family: var(--f-accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
}
.sommaire ol { margin: 0; padding-left: 20px; }
.sommaire li { margin-bottom: 7px; font-size: 0.98rem; }
.sommaire a { color: var(--ink-soft); text-decoration: none; }
.sommaire a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- corps ---------- */

.corps { padding: 8px 0 0; }
.corps > h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  line-height: 1.14; letter-spacing: -0.02em;
  margin: 52px 0 16px; scroll-margin-top: 20px;
}
.corps > h3 { font-size: 1.2rem; margin: 32px 0 10px; }
.corps > p { max-width: var(--read); }
.corps > ul, .corps > ol { max-width: var(--read); color: var(--ink-soft); padding-left: 22px; }
.corps li { margin-bottom: 9px; }

/* ---------- grille tarifaire ---------- */

.pricing { margin: 26px 0 0; border: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th:first-child, td:first-child { min-width: 252px; }
caption {
  caption-side: top; text-align: left; font-family: var(--f-accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); padding: 22px 24px 6px;
}
th, td { text-align: left; padding: 17px 24px; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--f-accent); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; border-bottom: 1px solid var(--line-lit);
}
tbody tr:last-child td { border-bottom: none; }
td.tech { color: var(--ink); font-weight: 400; font-size: 1.02rem; }
td.tech small {
  display: block; color: var(--muted); font-size: 0.87rem;
  font-weight: 300; margin-top: 4px;
}
td.price, th.price {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--plum); font-size: 0.98rem;
}
td.price b { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; }
tbody tr.spot td { background: var(--accent-wash); }
tbody tr.spot td.tech, tbody tr.spot td.price { color: var(--accent-deep); }

.source {
  font-size: 0.9rem; font-weight: 300; color: var(--muted);
  margin-top: 14px; max-width: var(--read);
}

/* ---------- quiz ---------- */

.quiz { background: var(--surface); border: 1px solid var(--line); padding: 30px 28px 32px; margin: 30px 0 0; }
.quiz-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px;
}
.quiz-head h2 { font-size: 1.5rem; margin: 0; letter-spacing: -0.01em; }
.step {
  font-family: var(--f-accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.q-text { font-size: 1.22rem; font-weight: 300; color: var(--ink); margin: 0 0 22px; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--sunk); border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--f-body); font-size: 1.02rem; font-weight: 400;
  padding: 16px 20px; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.choice:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-wash); }
.choice .bullet { flex: 0 0 auto; width: 13px; height: 13px; border: 1px solid var(--line-lit); border-radius: 50%; }
.choice:hover .bullet { border-color: var(--accent); background: var(--accent); }
.progress { display: flex; gap: 5px; margin-top: 22px; }
.progress i { height: 2px; flex: 1; background: var(--line); }
.progress i.on { background: var(--accent); }

.result { display: none; }
.result.show { display: block; }
.result .kicker {
  font-family: var(--f-accent); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px;
}
.result .verdict-name {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.9rem, 4.4vw, 2.6rem); letter-spacing: -0.025em;
  line-height: 1.1; color: var(--accent-deep); margin: 0 0 12px;
}
.result .verdict-why { font-size: 1.05rem; font-weight: 300; max-width: 52ch; margin-bottom: 24px; }
.verdict-figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.verdict-figures div { background: var(--sunk); padding: 18px; }
.verdict-figures dt {
  font-family: var(--f-accent); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.verdict-figures dd {
  margin: 0; font-family: var(--f-display); font-weight: 300; font-size: 1.68rem;
  color: var(--plum); font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -0.02em;
}
.restart {
  margin-top: 20px; background: none; border: none; border-bottom: 1px solid var(--line-lit);
  color: var(--muted); font-family: var(--f-accent); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0 0 3px; cursor: pointer;
}
.restart:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- cartes comparatives ---------- */

.kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; margin: 26px 0 0; }
.kit {
  background: var(--surface); border: 1px solid var(--line);
  padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 12px;
}
.kit.pick { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.kit .flag {
  font-family: var(--f-accent); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); min-height: 1em;
}
.kit h3 { font-size: 1.36rem; margin: 0; line-height: 1.2; }
.kit .who { font-size: 0.92rem; font-weight: 300; color: var(--muted); margin: 0; }
.kit dl { margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.94rem; }
.kit dl > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.kit dt { color: var(--muted); }
.kit dd { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: right; }
.kit .tag-price {
  font-family: var(--f-display); font-weight: 300; font-size: 2.1rem;
  letter-spacing: -0.03em; color: var(--plum); font-variant-numeric: tabular-nums;
  margin: auto 0 0; padding-top: 8px;
}
.cta {
  display: block; text-align: center; padding: 15px 16px;
  border: 1px solid var(--line-lit); color: var(--ink);
  font-family: var(--f-accent); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.cta:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.kit.pick .cta { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.kit.pick .cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.disclose { font-size: 0.9rem; font-weight: 300; color: var(--muted); margin-top: 16px; max-width: var(--read); }

/* ---------- questions ---------- */

.faq { margin: 26px 0 0; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; padding: 22px 0; font-size: 1.12rem; font-weight: 400;
  color: var(--ink); list-style: none; display: flex; align-items: baseline;
  justify-content: space-between; gap: 20px;
}
summary::-webkit-details-marker { display: none; }
summary .sign { flex: 0 0 auto; width: 11px; height: 11px; position: relative; }
summary .sign::before, summary .sign::after { content: ""; position: absolute; background: var(--accent); }
summary .sign::before { inset: 5px 0 5px 0; height: 1px; }
summary .sign::after { inset: 0 5px 0 5px; width: 1px; transition: opacity .18s; }
details[open] summary .sign::after { opacity: 0; }
details > p { padding: 0 0 22px; margin: 0; max-width: 62ch; }

/* ---------- encadres ---------- */

.callout {
  background: var(--sunk); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); padding: 22px 24px; margin: 28px 0 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .titre {
  font-family: var(--f-accent); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 10px;
}

/* ---------- signature ---------- */

.author {
  margin: 44px 0 0; background: var(--sunk); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); padding: 24px 26px;
}
.author h2 { font-size: 1.24rem; margin: 0 0 10px; }
.author p { margin: 0 0 12px; font-size: 0.98rem; font-weight: 300; }
.author p:last-child { margin-bottom: 0; }

/* ---------- maillage ---------- */

.ensuite { margin: 52px 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.ensuite h2 {
  font-family: var(--f-accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.ensuite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ensuite-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  padding: 18px 20px 20px; text-decoration: none;
  transition: border-color .18s, background .18s;
}
.ensuite-card:hover { border-color: var(--accent); background: var(--accent-wash); }
.ensuite-card .t { display: block; color: var(--ink); font-size: 1.04rem; line-height: 1.3; margin-bottom: 6px; }
.ensuite-card .d { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 300; line-height: 1.5; }

/* ---------- pied ---------- */

footer.site {
  border-top: 1px solid var(--line); margin-top: 64px;
  padding: 34px 0 48px; background: var(--surface);
}
footer.site .cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px; margin-bottom: 26px;
}
footer.site h2 {
  font-family: var(--f-accent); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
footer.site a:hover { color: var(--accent); }
footer.site .legal {
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: 0.86rem; font-weight: 300; color: var(--muted); max-width: 80ch;
}
/* Lien vers l'autre site edite. Discret, jamais camoufle : un lien rendu
   illisible (opacite proche de zero, couleur du fond) est du texte cache
   au sens des regles anti-spam de Google. On reste sur --muted, la meme
   couleur que la mention legale au-dessus. */
footer.site .autre-site {
  margin: 14px 0 0; font-size: 0.8rem; font-weight: 300; letter-spacing: 0.02em;
}
footer.site .autre-site a { color: var(--muted); text-decoration: none; }
footer.site .autre-site a:hover { color: var(--accent); }

/* ============================================================
   VISUELS
   Mosaique de tuiles, hero illustre et bloc story. Structure
   reprise du theme Atelier Mistral, transposee en Poudre.
   Toutes les images portent des dimensions explicites : sans
   elles, le texte saute au chargement (decalage cumulatif).
   ============================================================ */

/* ---------- hero illustre ---------- */

.hero-media {
  position: relative;
  margin: 26px 0 0;
  overflow: hidden;
  background: var(--sunk);
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.hero-media__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 32, 40, 0) 45%, rgba(46, 32, 40, 0.55) 100%);
  pointer-events: none;
}
.hero-media__credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-family: var(--f-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.hero-media__credit:hover { color: #fff; }

/* ---------- mosaique de tuiles ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 0;
}
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .mosaic { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 20px;
  text-decoration: none;
  background: var(--sunk-2);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tile:hover img { transform: scale(1.04); }

.tile__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 32, 40, 0.05) 30%, rgba(46, 32, 40, 0.82) 100%);
  transition: background .35s ease;
}
.tile:hover .tile__voile {
  background: linear-gradient(180deg, rgba(155, 52, 83, 0.28) 0%, rgba(46, 32, 40, 0.9) 100%);
}
.tile__label {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(46, 32, 40, 0.6);
}
.tile__label small {
  display: block;
  margin-top: 6px;
  font-family: var(--f-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: none;
}

/* ---------- bloc story, media et texte ---------- */

.story {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 36px 0 0;
}
@media (max-width: 780px) { .story { grid-template-columns: 1fr; gap: 24px; } }
.story__media { margin: 0; }
.story__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--sunk);
}
.story__media figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
}
.story__texte h2 { margin-top: 0; }
.story__texte p:last-child { margin-bottom: 0; }

/* ---------- figure dans le corps ---------- */

figure.illus { margin: 30px 0 0; }
figure.illus img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--sunk);
}
figure.illus figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--muted);
  max-width: var(--read);
}

/* ---------- vague 4 : tableaux de donnees ---------- */

.pricing td { color: var(--ink-soft); vertical-align: top; font-size: 0.97rem; }
.pricing td strong { font-weight: 500; color: var(--accent-deep); }

/* ---------- vague 4 : fiche d'entretien imprimable ---------- */

.fiche {
  margin: 30px 0 0; background: var(--surface);
  border: 1px solid var(--line-lit); border-top: 3px solid var(--accent);
  padding: 30px 30px 24px;
}
.fiche__marque {
  font-family: var(--f-accent); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px;
}
.fiche__titre { font-size: 1.6rem; margin: 0 0 22px; }
.fiche__grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 34px; }
@media (max-width: 640px) { .fiche__grille { grid-template-columns: 1fr; } }
.fiche__bloc h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--accent-deep); }
.fiche__bloc ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.fiche__bloc li { margin-bottom: 6px; }
.fiche__pied {
  margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 300; color: var(--muted);
}
.imprimer { margin: 16px 0 0; }
.imprimer button {
  font-family: var(--f-accent); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  color: #FFFFFF; background: var(--accent-deep); border: 1px solid var(--accent-deep);
  padding: 13px 22px;
}
.imprimer button:hover { background: var(--accent); border-color: var(--accent); }

/* A l'impression, une page qui porte une fiche n'imprime qu'elle. Le :has() limite
   la regle a cette page : imprimer n'importe quel autre article reste possible. */
@media print {
  @page { size: A4; margin: 14mm; }
  body:has(.fiche) { background: #FFFFFF; }
  body:has(.fiche) .topbar, body:has(.fiche) .ariane, body:has(.fiche) .hero,
  body:has(.fiche) .sommaire, body:has(.fiche) .author, body:has(.fiche) .ensuite,
  body:has(.fiche) footer.site, body:has(.fiche) .imprimer,
  body:has(.fiche) .corps > *:not(.fiche) { display: none !important; }
  body:has(.fiche) .wrap-read { max-width: none; padding: 0; }
  .fiche { margin: 0; border: 1px solid #B9A9AF; border-top: 3px solid #9B3453; break-inside: avoid; }
}

/* Tableaux compacts : quatre colonnes et plus doivent tenir dans la colonne de lecture. */
.pricing.compact table { min-width: 0; }
.pricing.compact th:first-child, .pricing.compact td:first-child { min-width: 128px; }
.pricing.compact th, .pricing.compact td { padding: 12px 14px; }
.pricing.compact td { font-size: 0.9rem; }
@media (max-width: 640px) { .pricing.compact table { min-width: 560px; } }
.pricing.compact thead th { white-space: normal; letter-spacing: 0.08em; line-height: 1.35; vertical-align: bottom; }
