/* ------------------------------------------------------------------
   Prodhome — passe unslop + impeccable
   Direction : cabinet d'expertise. Papier, encre, instruments de mesure.
   Caractere : precis, pose, artisanal.
   Accent : vert encre #2a5c46. Signature : le releve en chiffres mono.
   Aucune modification de contenu, de titre ni d'URL.
   ------------------------------------------------------------------ */

:root,
body.home-editorial {
  --paper:        #f4f2ec;
  --paper-raised: #fffefa;
  --ink:          #23251f;   /* texte principal */
  --muted:        #55594f;   /* texte secondaire */
  --soft:         #5f6358;   /* texte tertiaire / releves (contraste AA) */
  --line:         rgba(35, 37, 31, .11);
  --line-strong:  rgba(35, 37, 31, .22);
  --accent:       #2a5c46;
  --accent-wash:  #e3eadb;
  --r-control:  4px;
  --r-card:     8px;
  --r-panel:   12px;
  --ease: cubic-bezier(.2, .6, .3, 1);
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ================================================================
   1. TYPE  — une famille de texte, une d'affichage, un mono pour les releves
   ================================================================ */

body.home-editorial {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.home-editorial h1,
body.home-editorial h2,
body.home-editorial h3,
body.home-editorial .home-subheading {
  font-weight: 400;
}

body.home-editorial h2,
body.home-editorial .home-feature .home-intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.1;
  font-size: clamp(32px, 3.2vw, 44px);
}

/* hero inchange : memes proportions qu'en ligne, juste la nouvelle police */
body.home-editorial .home-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .98;
  font-size: clamp(42px, 5.15vw, 82px);
}

body.home-editorial .home-hero-lead {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-size: clamp(26px, 3.15vw, 43px);
  color: var(--ink);
}

/* plus de graisses 700/800/900 heritees du theme parent */
body.home-editorial :is(h1, h2, h3, h4, strong, b, .home-subheading, .brand, summary) {
  font-weight: 600;
}
body.home-editorial :is(h1, h2) { font-weight: 400; }

/* libelles de section : majuscules espacees -> casse normale, en mono */
body.home-editorial .home-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--soft);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* signature : le trait de releve devant chaque libelle */
body.home-editorial .home-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* chiffres : un seul format, chasse fixe */
body.home-editorial :is(.home-reading-time, .article-count, .home-form-note,
  .seo-sheet-label, .seo-priority-list span, .home-feature-steps li::before,
  .home-contact-note, .home-signature a, .footer-inner > p) {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* petit texte : jamais de chasse negative */
body.home-editorial :is(p, li, dd, dt, figcaption, label, small, .home-subheading) {
  letter-spacing: 0;
}

/* ================================================================
   2. COULEUR  — une rampe tiede, trois roles de texte, un accent
   ================================================================ */

body.home-editorial { background: var(--paper); color: var(--ink); }
body.home-editorial .home-editorial p,
body.home-editorial .home-intro > p:not(.home-kicker) { color: var(--muted); }

/* le hero reste celui d'aujourd'hui : courbe et point animes conserves */

/* en-tete : calme. Un seul bouton plein sur la page, c'est celui du hero. */
body.home-editorial .site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
body.home-editorial .main-nav { gap: 24px; font-size: 14px; }
body.home-editorial .main-nav > a { color: var(--muted); text-decoration: none; transition: color .15s var(--ease); }
body.home-editorial .main-nav > a:hover { color: var(--ink); }
body.home-editorial .main-nav > .nav-cta {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  min-height: 40px;
  padding: 8px 16px;
  box-shadow: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
body.home-editorial .main-nav > .nav-cta:hover { border-color: var(--accent); background: var(--accent-wash); }

/* logo : le mot seul, lu une fois (la doublure lecteur d'ecran est remasquee) */
body.home-editorial .brand {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
}
body.home-editorial .brand .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* action principale */
body.home-editorial .home-button,
body.home-editorial .contact-form .button {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-control);
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
  transition: background-color .15s var(--ease);
}
body.home-editorial .home-button:hover,
body.home-editorial .contact-form .button:hover { background: var(--accent); transform: none; }

body.home-editorial .home-text-link {
  font-size: 15px;
  color: var(--muted);
  text-decoration: underline 1px var(--line-strong);
  text-underline-offset: 5px;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
body.home-editorial .home-text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
body.home-editorial .home-text-link span { margin-left: 8px; }

/* filets : partout la meme hairline */
body.home-editorial :is(.home-service-list article, .home-article-list article,
  .home-question-list details) { border-bottom: 1px solid var(--line); }
body.home-editorial .home-feature-points li { border-left: 1px solid var(--line-strong); padding-left: 20px; }

/* focus visible, une seule couleur */
body.home-editorial :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ================================================================
   3. ESPACEMENT  — tout sur la grille de 4
   ================================================================ */

body.home-editorial .home-section { padding-block: 96px; }
body.home-editorial .home-reviews { padding-block: 76px; }
body.home-editorial .home-questions { padding-block: 72px; }
body.home-editorial .header-inner { min-height: 84px; padding-block: 20px; gap: 24px; }
body.home-editorial .home-location { margin-bottom: 32px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
body.home-editorial .home-location span { margin-left: 16px; color: var(--accent); }
body.home-editorial .home-actions { margin-top: 32px; gap: 24px; }
body.home-editorial .home-feature-layout { gap: 64px; }
body.home-editorial .home-feature-points { gap: 24px; margin: 32px 0 32px; }
body.home-editorial .home-feature-points p { margin-top: 4px; font-size: 15px; }
body.home-editorial .home-feature-steps { gap: 20px; }
body.home-editorial .home-feature-steps li { padding-left: 36px; }
body.home-editorial .home-service-list article { padding-block: 24px; }
body.home-editorial .home-service-list p { margin-top: 8px; }
body.home-editorial .home-article-list article { padding-block: 24px; }
body.home-editorial .home-reading-time { margin-bottom: 8px; }
body.home-editorial .home-question-list details { padding: 20px 0; }
body.home-editorial .home-question-list p { margin-top: 16px; }
body.home-editorial .home-quote figcaption { margin-top: 24px; }
body.home-editorial .home-contact-email { margin-top: 32px; }
body.home-editorial .site-footer { padding-block: 32px; border-top: 1px solid var(--line); }

/* ================================================================
   4. DETAILS  — rayons emboites, fiches homogenes, une seule ombre
   ================================================================ */

body.home-editorial .seo-preview-board {
  background: var(--accent-wash);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 32px 28px;
}
body.home-editorial .seo-preview-methode { background: #e7eade; }
body.home-editorial .seo-preview-sheet {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  width: 92%;
  box-shadow: 0 2px 8px rgba(35, 37, 31, .05);
}
body.home-editorial .seo-sheet-front  { margin: 16px 0 0 auto; background: var(--paper-raised); }
body.home-editorial .seo-sheet-bottom { margin: 16px 0 0 16px; }
body.home-editorial .seo-preview-sheet .seo-sheet-label {
  color: var(--soft);
  font-size: 12px;
  margin: 0 0 12px;
}
body.home-editorial .seo-preview-sheet .home-subheading { font-size: 19px; font-weight: 600; letter-spacing: 0; }
body.home-editorial .seo-preview-sheet > a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 16px;
  text-decoration: underline 1px var(--line-strong);
  text-underline-offset: 4px;
}
body.home-editorial .seo-preview-sheet > a:hover { text-decoration-color: var(--accent); }
body.home-editorial :is(.seo-check-list, .seo-priority-list) { gap: 8px; margin-top: 16px; font-size: 14px; color: var(--muted); }
body.home-editorial .seo-check-list li { padding-left: 16px; position: relative; }
body.home-editorial .seo-check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px; background: var(--accent);
}
body.home-editorial .seo-priority-list span { color: var(--accent); font-size: 12px; margin-right: 12px; }
body.home-editorial .seo-brief-list { gap: 8px; margin-top: 16px; font-size: 13px; }
body.home-editorial .seo-brief-list dt { color: var(--soft); }

/* champs de formulaire */
body.home-editorial .contact-form :is(input, select, textarea) {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  padding: 12px;
  font-family: var(--sans);
}
body.home-editorial .contact-form label { font-weight: 500; }

/* ================================================================
   Banniere cookies : barre basse pleine largeur, ne recouvre plus
   le texte, et les deux choix ont le meme poids visuel (CNIL).
   ================================================================ */
.cookieadmin_law_container {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
.cookieadmin_consent_inside {
  width: min(1200px, 100% - 48px) !important;
  max-width: none !important;
  margin: 0 auto 16px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "titre boutons" "texte boutons" "mention mention" !important;
  align-items: center !important;
  gap: 4px 24px !important;
  background: var(--paper-raised) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-card) !important;
  box-shadow: 0 4px 16px rgba(35, 37, 31, .14) !important;
  padding: 16px 20px !important;
  font-family: var(--sans) !important;
}
#cookieadmin_notice_title { grid-area: titre !important; min-width: 0 !important; }
.cookieadmin_notice_con { grid-area: texte !important; min-width: 0 !important; }
.cookieadmin_consent_btns { grid-area: boutons !important; }
.cookieadmin-poweredby { grid-area: mention !important; font-size: 10px !important; color: var(--soft) !important; margin-top: 8px !important; }
.cookieadmin_law_container p#cookieadmin_notice_title {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  margin: 0 0 4px !important;
}
.cookieadmin_law_container p#cookieadmin_notice {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
  margin: 0 !important;
}
.cookieadmin_law_container a,
body.home-editorial .contact-form .consent a,
body.home-editorial .site-footer a { color: var(--accent) !important; }
.cookieadmin_consent_btns {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: auto !important;
}
/* poids identique pour accepter et refuser */
.cookieadmin_law_container button.cookieadmin_btn {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
  border-radius: var(--r-control) !important;
  width: auto !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  transition: border-color .15s var(--ease), background-color .15s var(--ease) !important;
}
.cookieadmin_law_container button.cookieadmin_btn:hover {
  border-color: var(--accent) !important;
  background: var(--accent-wash) !important;
}
@media (max-width: 760px) {
  .cookieadmin_consent_inside { grid-template-columns: 1fr !important; }
  .cookieadmin_law_container button.cookieadmin_btn { flex: 1 1 auto !important; justify-content: center !important; }
}

/* ================================================================
   5. LAYOUT — le hero devient un dyptique : le propos a gauche,
      le livrable a droite. Plus de bloc centre flottant dans le vide.
   ================================================================ */

body.home-editorial .home-hero {
  display: grid;
  place-items: center;
  min-height: 740px;
  padding: 100px 32px 130px;
  position: relative;
  overflow: hidden;
}
body.home-editorial .home-hero-content {
  text-align: center;
  width: min(100%, 1060px);
}
body.home-editorial .home-hero-lead { margin: 42px auto 0; max-width: 940px; }
body.home-editorial .home-actions { justify-content: center; align-items: center; }

/* ================================================================
   6. MOTION — rien ne boucle, une seule courbe, pas de transition-all
   ================================================================ */

body.home-editorial *:not(.home-curve):not(.home-curve *) { animation: none !important; }
body.home-editorial :is(a, button, summary, .nav-cta, .home-button) {
  transition-timing-function: var(--ease);
  transition-duration: .15s;
}
body.home-editorial :is(.home-button, .contact-form .button):active { transform: scale(.985); }

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

/* ================================================================
   7. RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  body.home-editorial .home-hero { min-height: 640px; padding: 90px 24px 110px; }
  body.home-editorial .home-section { padding-block: 64px; }
  body.home-editorial .home-feature-layout { gap: 40px; }
}
@media (max-width: 640px) {
  body.home-editorial .home-hero { min-height: 580px; padding: 72px 20px 90px; }
  body.home-editorial .home-hero h1 { font-size: clamp(38px, 9.6vw, 58px); }
  body.home-editorial .home-hero h1 br { display: none; }
  body.home-editorial .home-hero-lead { font-size: 25px; line-height: 1.2; margin-top: 28px; }
  body.home-editorial .home-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  body.home-editorial .home-actions .home-text-link { text-align: center; }
  body.home-editorial .home-location { margin-bottom: 24px; }
  body.home-editorial .home-location span { display: block; margin: 4px 0 0; }
  body.home-editorial .home-section { padding-block: 56px; }
}
