/* ==========================================================================
   Beautye — feuille de style
   Identité propre au site : éditorial beauté (titres en serif, corps en sans),
   palette prune / rose poudré. Ne PAS recopier depuis un autre site du
   portefeuille (règle "identité distincte par site").
   Aucune dépendance externe : polices système uniquement (rapide, pas de CDN).
   ========================================================================== */

:root {
  --ink:        #241c22;   /* texte principal, noir chaud pruné */
  --ink-soft:   #6e626a;   /* texte secondaire */
  --ink-faint:  #9a8f95;   /* mentions discrètes */
  --accent:     #a63d62;   /* prune/rose profond — couleur de marque */
  --accent-dark:#87304f;
  --accent-soft:#f7ecf1;   /* fond rosé très pâle */
  --gold:       #b0803f;   /* notes / badges premium */
  --green:      #2f7d5d;   /* "pour qui" */
  --surface:    #fdfafb;   /* fond de page, blanc chaud */
  --card:       #ffffff;
  --line:       #ebdfe4;   /* filets */
  --line-strong:#d9c7cf;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(36,28,34,.05), 0 4px 16px rgba(36,28,34,.05);
  --shadow-lift:0 2px 6px rgba(36,28,34,.07), 0 12px 32px rgba(36,28,34,.09);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --measure: 72ch;
}

*, *::before, *::after { box-sizing: border-box; }

/* Verrou anti-scroll horizontal : aucun element ne doit pouvoir elargir la page
   sur mobile (les tableaux larges scrollent dans leur propre cadre, cf. plus bas). */
html, body { overflow-x: hidden; max-width: 100%; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.page-wrapper {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;           /* jamais de scroll horizontal de page */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- Bandeau cookies ---------------------------------------------- */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .75rem 1.25rem;
  padding: .9rem 1.25rem;
  background: var(--ink); color: #fff;
  font-size: .92rem; line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(36,28,34,.18);
}
.cookie-banner p { margin: 0; max-width: 70ch; }
.cookie-banner a { color: #f2c9d8; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.btn-cookie {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.btn-accept { background: var(--accent); color: #fff; }
.btn-accept:hover { background: #b8496f; }
.btn-refuse { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-refuse:hover { border-color: #fff; }

/* ---------- En-tête ------------------------------------------------------ */
.site-header {
  background: rgba(253,250,251,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.site-logo { text-decoration: none; flex-shrink: 0; }
.logo-text {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink);
}
.logo-accent { color: var(--accent); }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-weight: 600; font-size: .95rem;
  padding: .25rem 0; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Contenu principal -------------------------------------------- */
.page-main {
  max-width: var(--wrap); margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

.breadcrumb {
  font-size: .86rem; color: var(--ink-faint);
  margin: .5rem 0 1.75rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Hero --------------------------------------------------------- */
.hero { max-width: var(--measure); margin: 0 0 2rem; }
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .3rem .7rem; border-radius: 999px;
  margin-bottom: .9rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 .85rem; color: var(--ink);
}
.hero-intro { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }
.a-byline {
  margin: 1.1rem 0 0; font-size: .88rem; color: var(--ink-faint);
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}
.a-byline a { color: var(--ink-soft); }
.verified {
  color: var(--green); font-weight: 600;
  background: #eaf5f0; padding: .18rem .55rem; border-radius: 999px; font-size: .8rem;
}

/* ---------- Encadré verdict ---------------------------------------------- */
.verdict-box {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.4rem;
  margin: 0 0 2.5rem;
  max-width: var(--measure);
}
.verdict-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: .4rem;
}
.verdict-text { margin: 0; font-size: 1.03rem; }

/* ---------- Sélection produits ------------------------------------------- */
.picks { margin: 0 0 3rem; }
.section-title {
  font-family: var(--serif);
  font-size: 1.6rem; line-height: 1.25; letter-spacing: -.01em;
  margin: 0 0 1.25rem; color: var(--ink);
}
.card-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.p-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.p-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.p-card--top { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.p-badge {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: .28rem .6rem; border-radius: 999px; margin-bottom: .8rem;
}
.p-card--top .p-badge { background: var(--accent); color: #fff; }
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.p-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.p-score {
  flex-shrink: 0; font-weight: 700; font-size: .9rem; color: var(--gold);
  background: #fbf4e9; padding: .18rem .5rem; border-radius: var(--radius-sm);
}
/* Pages "prix bloqué" sans note vérifiée : pas de pastille vide. */
.p-score:empty { display: none; }
.p-price:empty { display: none; }
.p-sub { margin: 0 0 .8rem; font-size: .95rem; color: var(--ink-soft); flex-grow: 1; }
.p-price {
  margin: 0 0 1rem; font-size: .84rem; font-weight: 600;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em;
}
.p-ctas { margin-top: auto; }
.p-buy {
  display: block; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .95rem;
  padding: .7rem 1rem; border-radius: 999px;
  transition: background .15s ease, transform .12s ease;
}
.p-buy:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

/* ---------- Corps d'article ---------------------------------------------- */
.page-content { max-width: var(--measure); }
.page-content h2 {
  font-family: var(--serif);
  font-size: 1.55rem; line-height: 1.25; letter-spacing: -.01em;
  margin: 2.6rem 0 .9rem; color: var(--ink);
}
.page-content h3 {
  font-family: var(--serif);
  font-size: 1.22rem; line-height: 1.3;
  margin: 1.9rem 0 .6rem; color: var(--ink);
}
.page-content p { margin: 0 0 1.15rem; }
.page-content ul, .page-content ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.page-content li { margin-bottom: .5rem; }
.page-content strong { font-weight: 700; color: var(--ink); }
.a-ctx-link { font-weight: 600; }
.charte-list li { margin-bottom: .75rem; }

/* Tableaux comparatifs : scrollables sur mobile (jamais de débordement de page) */
.page-content table,
.compare-table {
  display: block;              /* rend le tableau scrollable horizontalement */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.8rem;
  font-size: .93rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.compare-table thead { background: var(--accent-soft); }
.compare-table th {
  text-align: left; font-weight: 700; color: var(--accent-dark);
  padding: .7rem .85rem; white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}
.compare-table td {
  padding: .7rem .85rem; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: #fdf9fa; }

/* ---------- Pour qui / pas pour qui --------------------------------------- */
.pour-qui-section {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 3rem 0;
}
.pour-qui-bloc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; background: var(--card);
}
.pour-qui-bloc.pour { border-left: 4px solid var(--green); }
.pour-qui-bloc.pas-pour { border-left: 4px solid var(--ink-faint); }
.pour-qui-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .7rem; color: var(--ink); }
.pour-qui-list { margin: 0; padding-left: 1.2rem; }
.pour-qui-list li { margin-bottom: .55rem; color: var(--ink-soft); }

/* ---------- À lire aussi -------------------------------------------------- */
.related-section { margin: 3rem 0; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.related-list li {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .15s ease, box-shadow .15s ease;
}
.related-list li:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.related-list a {
  display: block; padding: .85rem 1.1rem;
  text-decoration: none; font-weight: 600; color: var(--ink);
}
.related-list a:hover { color: var(--accent); }
.link-desc { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); margin-top: .2rem; }

/* ---------- FAQ ----------------------------------------------------------- */
.faq-section { margin: 3rem 0 0; max-width: var(--measure); }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); margin-bottom: .7rem; overflow: hidden;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq-question {
  cursor: pointer; list-style: none;
  padding: .95rem 2.6rem .95rem 1.1rem;
  font-weight: 600; color: var(--ink); position: relative;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: ""; position: absolute; right: 1.15rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] .faq-question::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-question:hover { color: var(--accent); }
.faq-answer { padding: 0 1.1rem 1.1rem; color: var(--ink-soft); }

/* ---------- Grille de rayons / hub ---------------------------------------- */
.a-hub-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 2rem 0 3rem;
}
.hub-card {
  display: flex; flex-direction: column; gap: .35rem;
  text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.hc-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.hub-card:hover .hc-name { color: var(--accent); }
.hc-desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Pied de page -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 2.25rem 1.25rem 2.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.footer-brand { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--ink-faint); max-width: 90ch; }
.footer-legal a { color: var(--ink-soft); }

/* ---------- Mobile -------------------------------------------------------- */
@media (max-width: 720px) {
  body.page-wrapper { font-size: 16px; }
  .header-inner { padding: .75rem 1rem; gap: .75rem; }
  .site-nav { gap: 1rem; width: 100%; margin-left: 0; }
  .site-nav a { font-size: .9rem; }
  .page-main { padding: 1rem 1rem 3rem; }
  .hero-title { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  .verdict-box { padding: 1rem 1.1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .pour-qui-section { grid-template-columns: 1fr; }
  .page-content h2 { font-size: 1.35rem; margin-top: 2.1rem; }
  .compare-table { font-size: .88rem; }
  .cookie-banner { font-size: .86rem; padding: .8rem 1rem; }
  .footer-inner { padding: 1.75rem 1rem 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
