/* =========================================================
   Reflet Éternel — feuille de style
   Design épuré, apaisant. Tons doux, beaucoup de blanc.
   Typographie lisible, responsive mobile-first.
   ========================================================= */

:root {
  /* Palette douce */
  --vert-sauge: #7c9a8e;
  --vert-sauge-fonce: #5f7c70;
  --lavande: #8b85b8;
  --lavande-clair: #efedf6;
  --sable: #f6f1e9;
  --blanc-chaud: #fdfcfa;
  --blanc-pur: #ffffff;
  --encre: #353b39;
  --encre-douce: #5a615e;
  --gris-ligne: #e9e6e0;
  --gris-clair: #f3f1ec;

  /* Typo */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur-contenu: 720px;
  --largeur-large: 1180px;
  --radius: 14px;
  --ombre-douce: 0 8px 30px rgba(53, 59, 57, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--encre);
  background: var(--blanc-chaud);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--vert-sauge-fonce); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gris-ligne);
}
.nav-wrap {
  max-width: var(--largeur-large);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--encre);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo:hover { text-decoration: none; }
.logo .point { width: 11px; height: 11px; border-radius: 50%; background: var(--vert-sauge); display: inline-block; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--encre-douce); font-size: 0.97rem; font-weight: 500; }
.nav-links a:hover { color: var(--vert-sauge-fonce); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--encre); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Conteneurs ---------- */
.contenu { max-width: var(--largeur-contenu); margin: 0 auto; padding: 0 22px; }
.contenu-large { max-width: var(--largeur-large); margin: 0 auto; padding: 0 22px; }

/* ---------- Héros ---------- */
.hero {
  background: linear-gradient(180deg, var(--lavande-clair) 0%, var(--blanc-chaud) 100%);
  padding: 86px 0 70px;
  text-align: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--encre);
}
.hero p { font-size: 1.18rem; color: var(--encre-douce); max-width: 600px; margin: 0 auto 30px; }

.bouton {
  display: inline-block;
  background: var(--vert-sauge);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, transform .2s;
}
.bouton:hover { background: var(--vert-sauge-fonce); text-decoration: none; transform: translateY(-1px); }
.bouton-ligne { background: transparent; color: var(--vert-sauge-fonce); border: 1.5px solid var(--vert-sauge); }
.bouton-ligne:hover { background: var(--vert-sauge); color: #fff; }

/* ---------- Titres de section ---------- */
.section { padding: 60px 0; }
.section-titre { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; text-align: center; margin: 0 0 8px; }
.section-soustitre { text-align: center; color: var(--encre-douce); max-width: 560px; margin: 0 auto 42px; }

/* ---------- Grille de catégories / cartes ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.carte {
  background: var(--blanc-pur);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-douce); }
.carte .vignette { aspect-ratio: 16 / 9; background: var(--gris-clair); display: block; }
.carte .corps { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.carte .etiquette { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--vert-sauge-fonce); font-weight: 700; }
.carte h3 { font-family: var(--serif); font-size: 1.22rem; margin: 0; line-height: 1.3; }
.carte h3 a { color: var(--encre); }
.carte p { margin: 0; color: var(--encre-douce); font-size: 0.97rem; }
.carte .lien-lire { margin-top: auto; color: var(--vert-sauge-fonce); font-weight: 600; font-size: 0.95rem; }

/* Cartes catégorie (page d'accueil) */
.cat-carte { text-align: center; padding: 34px 24px; }
.cat-carte .ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--lavande-clair); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.cat-carte h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 8px; }
.cat-carte h3 a { color: var(--encre); }
.cat-carte p { color: var(--encre-douce); font-size: 0.95rem; margin: 0; }

/* ---------- Article ---------- */
.article-entete { background: linear-gradient(180deg, var(--sable) 0%, var(--blanc-chaud) 100%); padding: 54px 0 36px; }
.fil { font-size: 0.85rem; color: var(--encre-douce); margin-bottom: 16px; }
.fil a { color: var(--encre-douce); }
.article-entete h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.2; margin: 0 0 18px; max-width: 760px; }
.meta-auteur { display: flex; align-items: center; gap: 13px; font-size: 0.92rem; color: var(--encre-douce); }
.meta-auteur .rond { width: 46px; height: 46px; border-radius: 50%; background: var(--vert-sauge); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); }

.article-corps { font-size: 1.07rem; }
.article-corps h2 { font-family: var(--serif); font-size: 1.6rem; margin: 46px 0 14px; line-height: 1.3; }
.article-corps h3 { font-family: var(--serif); font-size: 1.27rem; margin: 32px 0 10px; }
.article-corps p { margin: 0 0 20px; }
.article-corps ul, .article-corps ol { margin: 0 0 24px; padding-left: 1.3em; }
.article-corps li { margin-bottom: 10px; }
.article-corps .chapo { font-size: 1.16rem; color: var(--encre-douce); }
.article-corps figure { margin: 36px 0; }
.article-corps figure img { border-radius: var(--radius); }
.article-corps figcaption { font-size: 0.85rem; color: var(--encre-douce); text-align: center; margin-top: 10px; }
.article-corps a { text-decoration: underline; text-underline-offset: 3px; }

.encadre {
  background: var(--lavande-clair);
  border-left: 4px solid var(--lavande);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
}
.encadre p { margin: 0; }
.encadre strong { color: var(--encre); }

.note-prudence {
  background: #fbf6ee;
  border: 1px solid #ecdcc2;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 36px 0;
  font-size: 0.98rem;
  color: var(--encre-douce);
}

/* Bloc FAQ */
.faq { margin: 46px 0; }
.faq h2 { margin-bottom: 22px; }
.faq-item { border-bottom: 1px solid var(--gris-ligne); padding: 6px 0 14px; }
.faq-item h3 { font-size: 1.13rem; margin: 18px 0 8px; }

/* Pub AdSense */
.bloc-pub { margin: 38px 0; text-align: center; }
.bloc-pub .placeholder {
  background: var(--gris-clair);
  border: 1px dashed #d8d3c8;
  border-radius: 10px;
  padding: 26px;
  color: #a39d90;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

/* Bio auteur E-E-A-T */
.bio-auteur {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--blanc-pur);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 30px 0 10px;
  box-shadow: var(--ombre-douce);
}
.bio-auteur .portrait { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%; background: var(--vert-sauge); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.8rem; font-weight: 700; }
.bio-auteur .nom { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 4px; }
.bio-auteur .role { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--vert-sauge-fonce); font-weight: 700; margin-bottom: 10px; }
.bio-auteur p { margin: 0 0 8px; font-size: 0.96rem; color: var(--encre-douce); }

/* Articles liés */
.lies { margin: 50px 0; padding-top: 30px; border-top: 1px solid var(--gris-ligne); }
.lies h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 22px; }

/* ---------- Catégorie / listes ---------- */
.cat-entete { text-align: center; padding: 64px 0 30px; background: linear-gradient(180deg, var(--lavande-clair) 0%, var(--blanc-chaud) 100%); }
.cat-entete h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 14px; }
.cat-entete p { color: var(--encre-douce); max-width: 580px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Pages contenu (à propos, légal) ---------- */
.page-contenu { padding: 56px 0 40px; }
.page-contenu h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.6rem); margin: 0 0 24px; }
.page-contenu h2 { font-family: var(--serif); font-size: 1.5rem; margin: 40px 0 12px; }
.page-contenu h3 { font-family: var(--serif); font-size: 1.2rem; margin: 28px 0 10px; }
.page-contenu p { margin: 0 0 18px; }
.page-contenu ul { margin: 0 0 20px; padding-left: 1.3em; }
.page-contenu li { margin-bottom: 8px; }

/* Formulaire contact */
.form-contact { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.form-contact label { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; display: block; }
.form-contact input, .form-contact textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gris-ligne); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; background: var(--blanc-pur); color: var(--encre);
}
.form-contact textarea { min-height: 150px; resize: vertical; }
.form-contact button { align-self: flex-start; cursor: pointer; border: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: #2f3633; color: #cdd4d0; padding: 56px 0 30px; margin-top: 70px; }
.footer-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grille h4 { font-family: var(--serif); color: #fff; font-size: 1.1rem; margin: 0 0 14px; }
.footer-grille ul { list-style: none; padding: 0; margin: 0; }
.footer-grille li { margin-bottom: 9px; }
.footer-grille a { color: #cdd4d0; font-size: 0.93rem; }
.footer-grille a:hover { color: #fff; }
.footer-grille p { font-size: 0.93rem; color: #aab2ae; margin: 0 0 12px; }
.footer-bas { border-top: 1px solid #444b47; margin-top: 40px; padding-top: 22px; text-align: center; font-size: 0.85rem; color: #9aa29e; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--vert-sauge); color: #fff; border-radius: var(--radius); padding: 44px 36px; text-align: center; }
.newsletter h2 { font-family: var(--serif); color: #fff; margin: 0 0 10px; font-size: 1.7rem; }
.newsletter p { color: #eaf1ee; margin: 0 auto 22px; max-width: 480px; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter input { flex: 1; min-width: 220px; padding: 13px 16px; border: 0; border-radius: 999px; font-size: 1rem; }
.newsletter button { background: var(--encre); color: #fff; border: 0; padding: 13px 26px; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--blanc-chaud); border-bottom: 1px solid var(--gris-ligne);
    padding: 8px 22px 18px; display: none;
  }
  .nav-links.ouvert { display: flex; }
  .nav-links li { width: 100%; padding: 8px 0; border-bottom: 1px solid var(--gris-clair); }
  .footer-grille { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bio-auteur { flex-direction: column; }
  .hero { padding: 60px 0 50px; }
}
@media (max-width: 520px) {
  .footer-grille { grid-template-columns: 1fr; }
  .article-corps { font-size: 1.02rem; }
}

/* ---------- CMP : bandeau de consentement cookies ---------- */
#cmp-root { font-family: var(--sans); }
.cmp-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 1180px; margin: 0 auto;
  background: var(--blanc-pur); color: var(--encre);
  border: 1px solid var(--gris-ligne); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(53,59,57,.18);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cmp-banner-txt { flex: 1; min-width: 240px; font-size: .92rem; line-height: 1.6; color: var(--encre-douce); }
.cmp-banner-txt strong { color: var(--encre); }
.cmp-banner-txt a { color: var(--vert-sauge-fonce); text-decoration: underline; }
.cmp-banner-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cmp-btn {
  cursor: pointer; border-radius: 999px; padding: 11px 20px;
  font-size: .92rem; font-weight: 600; border: 1.5px solid var(--vert-sauge); font-family: var(--sans);
}
.cmp-accept { background: var(--vert-sauge); color: #fff; border-color: var(--vert-sauge); }
.cmp-accept:hover { background: var(--vert-sauge-fonce); border-color: var(--vert-sauge-fonce); }
.cmp-refuse { background: transparent; color: var(--encre-douce); border-color: var(--gris-ligne); }
.cmp-refuse:hover { background: var(--gris-clair); }
.cmp-custom { background: transparent; color: var(--vert-sauge-fonce); }
.cmp-custom:hover { background: var(--lavande-clair); }

.cmp-modal {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(47,54,51,.5); display: flex; align-items: center; justify-content: center; padding: 18px;
}
.cmp-modal-box {
  background: var(--blanc-pur); border-radius: var(--radius); max-width: 520px; width: 100%;
  padding: 28px 28px 24px; box-shadow: var(--ombre-douce); max-height: 90vh; overflow: auto;
}
.cmp-modal-box h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 8px; }
.cmp-modal-box > p { color: var(--encre-douce); font-size: .94rem; margin: 0 0 18px; }
.cmp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--gris-ligne); font-size: .92rem;
}
.cmp-row small { color: var(--encre-douce); }
.cmp-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--vert-sauge); flex: 0 0 auto; }
.cmp-row-locked input { opacity: .6; }
.cmp-modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .cmp-banner { padding: 16px; gap: 14px; }
  .cmp-banner-btns { width: 100%; }
  .cmp-banner-btns .cmp-btn { flex: 1; text-align: center; }
}

/* Images de vignettes (cartes) et bannières */
.carte .vignette { overflow: hidden; }
.carte .vignette img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.carte:hover .vignette img { transform: scale(1.04); }
.accueil-banniere img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--ombre-douce); }
.cat-hero { max-width: var(--largeur-large); margin: 0 auto 8px; padding: 0 22px; }
.cat-hero img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--ombre-douce); }

/* Label "Publicité" au-dessus des blocs AdSense */
.bloc-pub .pub-label {
  display: block; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase;
  color: #b7b1a4; margin-bottom: 6px; text-align: center;
}
