/*
Theme Name: 123 Constructeur
Theme URI: https://123constructeur.fr
Description: Thème enfant Astra pour 123constructeur.fr — magazine construction, rénovation & habitat. Direction « Construction affirmé » : navy + orange, Archivo/Inter.
Author: 123 Constructeur
Template: astra
Version: 1.0.6
Text Domain: constructeur123
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN SYSTEM — variables (à adapter au design de la maquette)
   ============================================================ */
:root {
  /* Surfaces */
  --bg-outer:    #f4f1ec;   /* fond page (ivoire) */
  --bg:          #f4f1ec;
  --surface:     #ffffff;   /* cartes */
  --surface-low: #ece7df;   /* sections alternées */
  --navy:        #1c2733;   /* hero, footer, bandes sombres */
  --navy-deep:   #141c25;
  --navy-soft:   #25333f;   /* cartes sur fond sombre */

  /* Encre / texte */
  --ink:    #1c2733;
  --ink-70: #475563;
  --ink-40: rgba(28, 39, 51, 0.46);
  --on-dark:    #eef1f4;
  --on-dark-70: rgba(238, 241, 244, 0.72);
  --on-dark-40: rgba(238, 241, 244, 0.42);

  /* Lignes */
  --line:        #e5e0d8;
  --line-strong: #d6cfc2;
  --line-dark:   rgba(255, 255, 255, 0.12);

  /* Accent */
  --accent:      #ec6726;
  --accent-dark: #d4541a;
  --accent-soft: rgba(236, 103, 38, 0.12);

  /* Typo */
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --gutter: 24px;
  --maxw:   1200px;
  --radius:    10px;
  --radius-lg: 18px;
  --pill:      9999px;
  --section-gap: 76px;
  --read:    720px;
  --header-h: 72px;

  /* Ombres */
  --shadow-card:       0 4px 14px rgba(20, 28, 37, 0.07);
  --shadow-card-hover: 0 14px 34px rgba(20, 28, 37, 0.16);
}

/* ============================================================
   BASE — reset léger (le design détaillé se colle ici / sous cette ligne)
   ============================================================ */
body.ct {
  margin: 0;
  font-family: var(--body);
}
.ct-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.ct-main { min-height: 60vh; }

/* >>> CSS DE LA MAQUETTE — « Construction affirmé » (navy + orange) <<< */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body.ct {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.ct img { max-width: 100%; display: block; }
body.ct h1, body.ct h2, body.ct h3, body.ct h4 {
  font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800;
}
body.ct p { margin: 0 0 1em; }

/* ---------- Helpers ---------- */
.ct-container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.ct-section { padding-block: var(--section-gap); }
.ct-section--alt { background: var(--surface-low); }
.ct-section--white { background: var(--surface); }

.ct-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.ct-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

.ct-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.ct-section-head__title { font-size: clamp(26px, 3.2vw, 38px); }
.ct-section-head__link {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--ink); display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.15s, gap 0.15s; white-space: nowrap;
}
.ct-section-head__link svg { width: 16px; height: 16px; }
.ct-section-head__link:hover { color: var(--accent); gap: 10px; }

/* ---------- Pills / boutons ---------- */
.ct-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 14px; white-space: nowrap;
  padding: 11px 22px; border-radius: var(--pill); line-height: 1;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink);
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
}
.ct-pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.ct-pill--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ct-pill--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.ct-pill--ghost-dark { border-color: var(--line-dark); color: var(--on-dark); }
.ct-pill--ghost-dark:hover { border-color: var(--on-dark); color: #fff; }
.ct-pill--sm { font-size: 13px; padding: 8px 16px; }

/* Pastille de catégorie */
.ct-tag {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); padding: 0;
}
.ct-tag--solid {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 5px 11px; border-radius: var(--pill);
}

.ct-meta {
  font-size: 13px; color: var(--ink-40); display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap; margin: 0;
}
.ct-meta__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* ---------- HEADER ---------- */
.ct-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.2s;
}
.ct-header.is-scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); }
.ct-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.ct-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--on-dark); }
.ct-brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.ct-brand__mark svg { width: 20px; height: 20px; }
.ct-brand__name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.ct-brand__name b { color: var(--accent); font-weight: 800; }
.ct-header .ct-brand img, .ct-header .custom-logo { max-height: 38px; width: auto; }

.ct-nav-wrap { margin-left: 0; min-width: 0; }
.ct-nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ct-nav li { display: flex; }
.ct-nav a {
  font-family: var(--display); font-weight: 600; font-size: 13.5px;
  color: var(--on-dark-70); padding: 8px 10px; border-radius: 8px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.ct-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.ct-nav .current-menu-item > a,
.ct-nav .current-menu-ancestor > a,
.ct-nav a.is-active { color: #fff; }

.ct-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ct-icon-btn {
  width: 40px; height: 40px; min-width: 40px; flex: none; padding: 0;
  border-radius: 10px; border: none;
  background: rgba(255, 255, 255, 0.06); color: var(--on-dark-70);
  display: grid; place-items: center; transition: background 0.15s, color 0.15s;
}
.ct-icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.ct-icon-btn svg { width: 18px; height: 18px; }
.ct-hamburger { display: none; }

/* ---------- MOBILE DRAWER ---------- */
.ct-drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-deep);
  padding: 22px var(--gutter) 40px; color: var(--on-dark);
  transform: translateX(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
body.ct-nav-open { overflow: hidden; }
body.ct-nav-open .ct-drawer { transform: translateX(0); }
.ct-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.ct-drawer__close {
  width: 40px; height: 40px; min-width: 40px; flex: none; padding: 0;
  border-radius: 10px; border: 1px solid var(--line-dark);
  background: transparent; color: var(--on-dark); font-size: 24px; line-height: 1;
  display: grid; place-items: center;
}
.ct-drawer__nav { list-style: none; margin: 0; padding: 0; }
.ct-drawer__nav li { border-bottom: 1px solid var(--line-dark); }
.ct-drawer__nav a {
  display: block; padding: 16px 2px; font-family: var(--display);
  font-weight: 700; font-size: 21px; color: var(--on-dark);
}
.ct-drawer__nav a:hover { color: var(--accent); }
.ct-drawer__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- SEARCH OVERLAY ---------- */
.ct-search {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 28, 37, 0.96);
  display: flex; align-items: flex-start; justify-content: center; color: #fff;
  padding-top: 18vh; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
body.ct-search-open .ct-search { opacity: 1; visibility: visible; }
.ct-search__box { width: min(640px, 90vw); }
.ct-search__label { color: var(--accent); font-family: var(--display); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; margin-bottom: 14px; display: block; }
body.ct .ct-search__field {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--line-dark);
  color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 5vw, 40px);
  padding: 10px 0; outline: none; border-radius: 0;
}
.ct-search__field::placeholder { color: var(--on-dark-40); }
.ct-search__field:focus { border-color: var(--accent); }
.ct-search__close {
  position: absolute; top: 26px; right: 26px; width: 46px; height: 46px;
  min-width: 46px; flex: none; padding: 0;
  border-radius: 12px; border: 1px solid var(--line-dark); background: transparent;
  color: #fff; font-size: 26px; line-height: 1;
  display: grid; place-items: center;
}

/* Formulaire de recherche compact (404 / aucun résultat) */
.ct-searchform { display: flex; gap: 8px; max-width: 420px; }
body.ct .ct-searchform__input {
  flex: 1; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--pill);
  padding: 11px 18px; font-family: var(--body); font-size: 15px; color: var(--ink); outline: none;
}
.ct-searchform__input:focus { border-color: var(--accent); }
.ct-searchform__submit {
  background: var(--accent); color: #fff; border: none; border-radius: var(--pill);
  padding: 11px 22px; font-family: var(--display); font-weight: 700; font-size: 14px; cursor: pointer;
}

/* ---------- HERO (home) ---------- */
.ct-hero { background: var(--navy); color: var(--on-dark); padding-block: 56px 72px; position: relative; }
.ct-hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 30px; align-items: stretch;
}
.ct-hero__head { grid-column: 1 / -1; margin-bottom: 6px; }
.ct-feature { display: flex; flex-direction: column; }
.ct-feature__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 10; margin-bottom: 22px; display: block;
}
.ct-feature__media .ct-photo { position: absolute; inset: 0; }
.ct-feature__media .ct-tag--solid { position: absolute; top: 16px; left: 16px; z-index: 2; }
/* color explicite : Astra force une couleur sombre sur tous les h1–h6, qui
   l'emporte sur le `color` clair hérité de .ct-hero → titre sombre sur navy. */
.ct-feature__title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; margin-bottom: 14px; color: var(--on-dark); }
.ct-feature__title a { transition: color 0.15s; }
.ct-feature__title a:hover { color: var(--accent); }
.ct-feature__excerpt { color: var(--on-dark-70); font-size: 17px; max-width: 56ch; margin-bottom: 16px; }
.ct-feature .ct-meta { color: var(--on-dark-40); }

.ct-hero__side { display: flex; flex-direction: column; gap: 18px; }
.ct-sidecard {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center;
  background: var(--navy-soft); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 14px; transition: border-color 0.16s, transform 0.16s;
}
.ct-sidecard:hover { border-color: rgba(236, 103, 38, 0.5); transform: translateY(-2px); }
.ct-sidecard__media { border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; position: relative; display: block; }
.ct-sidecard__media .ct-photo { position: absolute; inset: 0; }
.ct-sidecard__title { font-size: 16px; line-height: 1.2; margin: 7px 0 8px; color: #fff; }
.ct-sidecard__title a:hover { color: var(--accent); }
.ct-sidecard .ct-meta { color: var(--on-dark-40); font-size: 12px; }

/* ---------- RUBRIQUES ---------- */
.ct-rubriques { background: var(--navy-deep); border-top: 1px solid var(--line-dark); }
.ct-rubriques__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; gap: 10px; align-items: center; overflow-x: auto;
}
.ct-rubriques__label { font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-40); white-space: nowrap; margin-right: 4px; }
.ct-rubriques a {
  white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 13.5px;
  color: var(--on-dark-70); padding: 7px 14px; border-radius: var(--pill);
  border: 1px solid var(--line-dark); transition: all 0.15s;
}
.ct-rubriques a:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }

/* ---------- CARTE D'ARTICLE + GRILLE ---------- */
.ct-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.ct-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ct-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.ct-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.ct-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.ct-card__media .ct-photo { position: absolute; inset: 0; transition: transform 0.4s ease; }
.ct-card:hover .ct-card__media .ct-photo { transform: scale(1.05); }
.ct-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ct-card__title { font-size: 19px; line-height: 1.18; }
.ct-card__title a { transition: color 0.15s; }
.ct-card__title a:hover { color: var(--accent); }
.ct-card__excerpt { color: var(--ink-70); font-size: 14.5px; margin: 0; }
.ct-card__foot { margin-top: auto; padding-top: 4px; }

.ct-minicard { display: flex; flex-direction: column; gap: 10px; }
.ct-minicard__media { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; display: block; }
.ct-minicard__media .ct-photo { position: absolute; inset: 0; transition: transform 0.4s ease; }
.ct-minicard:hover .ct-minicard__media .ct-photo { transform: scale(1.05); }
.ct-minicard__title { font-size: 17px; line-height: 1.2; }
.ct-minicard__title a:hover { color: var(--accent); }

/* Couleur de base des liens de titre = héritée du titre (et non le bleu Astra).
   Spéc. (0,1,1) : bat Astra `a` (0,0,1) mais perd face aux `:hover` (0,2,1). */
.ct-feature__title a,
.ct-sidecard__title a,
.ct-card__title a,
.ct-minicard__title a { color: inherit; }

/* ---------- PILIERS — grilles à compte variable ---------- */
.ct-pillar-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.ct-pillar-grid--1 { grid-template-columns: minmax(0, 360px); }
.ct-pillar-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.ct-pillar-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- NEWSLETTER (bande navy) ---------- */
.ct-newsletter { background: var(--navy); color: var(--on-dark); }
.ct-newsletter__inner { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter); text-align: center; }
.ct-newsletter__icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin: 0 auto 20px;
}
.ct-newsletter__icon svg { width: 26px; height: 26px; }
.ct-newsletter__title { font-size: clamp(26px, 3.4vw, 38px); color: #fff; margin-bottom: 12px; }
.ct-newsletter__text { color: var(--on-dark-70); font-size: 16px; margin-bottom: 26px; }
.ct-newsletter__note { color: var(--on-dark-40); font-size: 12.5px; margin: 16px 0 0; }

/* Formulaire newsletter : fallback .ct-news-form OU markup Brevo, mêmes styles */
.ct-news-form,
.ct-newsletter .sib_signup_form [class*="sib_signup_box_inside_"] {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; align-items: stretch;
}
body.ct .ct-news-form__input,
.ct-newsletter .sib_signup_form p.sib-email-area input[type="email"] {
  flex: 1; min-width: 220px; background: var(--navy-soft); border: 1px solid var(--line-dark);
  border-radius: var(--pill); color: #fff; padding: 13px 20px; font-family: var(--body);
  font-size: 15px; outline: none;
}
.ct-news-form__input::placeholder { color: var(--on-dark-40); }
.ct-news-form__input:focus,
.ct-newsletter .sib_signup_form p.sib-email-area input[type="email"]:focus { border-color: var(--accent); }
.ct-newsletter .sib_signup_form input.sib-default-btn,
.ct-newsletter .sib_signup_form input[type="submit"] {
  background: var(--accent); color: #fff; border: none; border-radius: var(--pill);
  padding: 13px 26px; font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0; text-transform: none; cursor: pointer;
}

/* ---------- BREVO réel sur la bande navy (markup variable selon version) ----------
   Le champ Brevo garde son fond blanc, mais notre reset (color:inherit) lui donne un
   texte clair → clair-sur-blanc = INVISIBLE. On force donc un champ sombre + texte
   clair, on neutralise les conteneurs blancs de Brevo, et on style le bouton en
   orange. !important : indispensable pour battre le CSS embarqué de Brevo. */
.ct-newsletter .sib-form,
.ct-newsletter .sib-form-container,
.ct-newsletter [id*="sib-container"],
.ct-newsletter [class*="sib-container"],
.ct-newsletter .sib-form-block,
.ct-newsletter .sib-input,
.ct-newsletter .form__entry,
.ct-newsletter .entry__field,
.ct-newsletter .sib_signup_form,
.ct-newsletter [class*="sib_signup_box_inside_"] {
  background: transparent !important;
  border: none !important;
  max-width: 100% !important;
  box-shadow: none !important;
  padding: 0 !important; margin: 0 !important;
}
.ct-newsletter .sib-form form,
.ct-newsletter form[id*="sib"] {
  display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 480px; margin: 0 auto;
}
.ct-newsletter .entry__field { flex: 1 1 220px; }
/* Tout champ texte de la bande (Brevo ou fallback) → champ sombre, texte clair. */
.ct-newsletter input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  width: 100% !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
  background-color: var(--navy-soft) !important;
  border: 1px solid var(--line-dark) !important; border-radius: var(--pill) !important;
  padding: 13px 20px !important; font-family: var(--body) !important; font-size: 15px !important;
  box-shadow: none !important; outline: none !important;
}
.ct-newsletter input::placeholder {
  color: var(--on-dark-40) !important; -webkit-text-fill-color: var(--on-dark-40) !important; opacity: 1;
}
.ct-newsletter input:focus { border-color: var(--accent) !important; }
.ct-newsletter .sib-form-block__button,
.ct-newsletter .sib_signup_form input[type="submit"],
.ct-newsletter .sib_signup_form input.sib-default-btn {
  background-color: var(--accent) !important; color: #fff !important;
  border: none !important; border-radius: var(--pill) !important;
  font-family: var(--display) !important; font-weight: 700 !important; font-size: 14px !important;
  letter-spacing: 0 !important; text-transform: none !important;
  padding: 13px 26px !important; cursor: pointer; width: auto !important; min-width: 0 !important;
}
.ct-newsletter .sib-form-block__button:hover { background-color: var(--accent-dark) !important; }
.ct-newsletter .sib-form-message-panel { color: var(--on-dark) !important; }

/* ---------- FOOTER ---------- */
.ct-footer { background: var(--navy-deep); color: var(--on-dark); padding-top: 60px; }
.ct-footer__top {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px;
}
.ct-footer__tagline { color: var(--on-dark-70); font-size: 14.5px; margin: 16px 0 20px; max-width: 32ch; }
.ct-footer__col h4 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-40); margin-bottom: 16px; font-weight: 700; font-family: var(--display);
}
.ct-footer__col ul, .ct-footer__nav {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px;
}
.ct-footer__col a, .ct-footer__nav a { color: var(--on-dark-70); font-size: 14.5px; transition: color 0.15s; }
.ct-footer__col a:hover, .ct-footer__nav a:hover { color: var(--accent); }
.ct-footer__social { display: flex; gap: 10px; margin-top: 4px; }
.ct-footer__social a {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-dark);
  display: grid; place-items: center; color: var(--on-dark-70); transition: all 0.15s;
}
.ct-footer__social a:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.ct-footer__social svg { width: 17px; height: 17px; }
.ct-footer__bottom { border-top: 1px solid var(--line-dark); }
.ct-footer__bottom-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--on-dark-40);
}
.ct-footer__bottom-inner a { color: var(--on-dark-40); }
.ct-footer__bottom-inner a:hover { color: var(--on-dark); }

/* ---------- ARTICLE (single) ---------- */
.ct-article { padding-block: 48px var(--section-gap); }
.ct-article__head { max-width: var(--read); margin: 0 auto 28px; padding-inline: var(--gutter); }
.ct-article__title { font-size: clamp(30px, 4.4vw, 52px); margin: 14px 0 18px; }
.ct-article__head .ct-meta { font-size: 14px; color: var(--ink-70); }
.ct-article__hero { max-width: 1040px; margin: 0 auto 36px; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.ct-article__hero img, .ct-article__hero .ct-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-article__body { max-width: var(--read); margin: 0 auto; padding-inline: var(--gutter); font-size: 18px; line-height: 1.78; color: #2b3742; }
.ct-article__body h2 { font-size: 28px; margin: 36px 0 14px; }
.ct-article__body h3 { font-size: 22px; margin: 28px 0 10px; }
.ct-article__body a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.ct-article__body img { border-radius: var(--radius); margin: 24px 0; height: auto; }
.ct-article__body blockquote {
  border-left: 3px solid var(--accent); margin: 26px 0; padding: 4px 0 4px 22px;
  font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink); font-style: normal;
}
.ct-callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px; margin: 30px 0;
}
.ct-callout h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-family: var(--display); }
.ct-callout p { font-size: 16px; color: var(--ink-70); margin: 0; }
.ct-article__foot { max-width: var(--read); margin: 40px auto 0; padding: 24px var(--gutter) 0; border-top: 1px solid var(--line); }
.ct-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-share span { font-family: var(--display); font-weight: 700; font-size: 14px; }
.ct-related { background: var(--surface-low); }
.ct-single__comments { max-width: var(--read); margin: 40px auto 0; padding-inline: var(--gutter); }
.ct-single__comments input[type="submit"],
.ct-single__comments .submit {
  background: var(--accent); color: #fff; border: none; border-radius: var(--pill);
  padding: 11px 24px; font-family: var(--display); font-weight: 700; font-size: 14px; cursor: pointer;
}
.ct-single__comments input[type="submit"]:hover,
.ct-single__comments .submit:hover { background: var(--accent-dark); }
.ct-contact__info a { color: var(--accent-dark); }

/* ---------- ARCHIVE / RECHERCHE ---------- */
.ct-pagehead { background: var(--navy); color: var(--on-dark); padding-block: 48px; }
.ct-pagehead__inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.ct-pagehead__title { font-size: clamp(30px, 4.4vw, 50px); color: #fff; margin: 12px 0 10px; }
.ct-pagehead__title span { color: var(--accent); }
.ct-pagehead__desc { color: var(--on-dark-70); font-size: 16px; max-width: 60ch; }
.ct-pagehead__count { color: var(--on-dark-40); font-size: 14px; margin-top: 6px; }

.ct-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.ct-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line-strong); font-family: var(--display);
  font-weight: 700; font-size: 14px; color: var(--ink); transition: all 0.15s;
}
.ct-pagination a.page-numbers:hover { border-color: var(--ink); }
.ct-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- PAGE statique + CONTACT ---------- */
.ct-page { padding-block: 48px var(--section-gap); }
.ct-page__head { max-width: var(--read); margin: 0 auto 28px; padding-inline: var(--gutter); }
.ct-page__title { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 12px; }
.ct-page__lead { font-size: 19px; color: var(--ink-70); }
.ct-page__body { max-width: var(--read); margin: 0 auto; padding-inline: var(--gutter); font-size: 17px; line-height: 1.75; color: #2b3742; }
.ct-page__body h2 { font-size: 26px; margin: 32px 0 12px; }
.ct-page__body img { border-radius: var(--radius); height: auto; }

.ct-contact { max-width: 960px; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ct-contact__aside h3 { font-size: 24px; margin-bottom: 14px; }
.ct-contact__aside p { color: var(--ink-70); }
.ct-contact__info { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ct-contact__info li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ct-contact__info svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

/* Formulaire (CF7/WPForms ou fallback statique) — underline-only */
.ct-form { display: flex; flex-direction: column; gap: 18px; }
.ct-form label { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink-70); display: block; margin-bottom: 4px; }
body.ct .ct-form input[type="text"],
body.ct .ct-form input[type="email"],
body.ct .ct-form input[type="tel"],
body.ct .ct-form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0; padding: 10px 0; font-family: var(--body); font-size: 16px; color: var(--ink); outline: none;
  transition: border-color 0.15s;
}
.ct-form input:focus, .ct-form textarea:focus { border-color: var(--accent); }

/* Supprime le halo de focus pointillé par défaut (la bordure accent sert d'indicateur).
   Scopé body.ct pour battre un éventuel outline de focus d'Astra. */
body.ct .ct-search__field:focus,
body.ct .ct-news-form__input:focus,
body.ct .ct-searchform__input:focus,
body.ct .ct-form input:focus,
body.ct .ct-form textarea:focus,
body.ct .sib_signup_form input:focus { outline: none; box-shadow: none; }
.ct-form textarea { resize: vertical; min-height: 120px; }
.ct-form button, .ct-form input[type="submit"] { align-self: flex-start; }

/* ---------- 404 ---------- */
.ct-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }
.ct-404__code { font-family: var(--display); font-weight: 900; font-size: clamp(96px, 18vw, 200px); line-height: 0.9; color: var(--navy); letter-spacing: -0.04em; }
.ct-404__code span { color: var(--accent); }
.ct-404__title { font-size: clamp(24px, 3.4vw, 36px); margin: 8px 0 12px; }
.ct-404__text { color: var(--ink-70); max-width: 44ch; margin: 0 auto 26px; }
.ct-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- PHOTO — placeholders dégradés (seed 1-6) ---------- */
.ct-photo { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.ct-photo .ct-photo__img, .ct-photo img { width: 100%; height: 100%; object-fit: cover; }
.ct-photo--seed-1 { background: linear-gradient(135deg, #2c3e50, #1c2733); }
.ct-photo--seed-2 { background: linear-gradient(135deg, #ec6726, #b8431a); }
.ct-photo--seed-3 { background: linear-gradient(135deg, #3a5a40, #1c2e22); }
.ct-photo--seed-4 { background: linear-gradient(135deg, #4a6178, #25333f); }
.ct-photo--seed-5 { background: linear-gradient(135deg, #c98a3c, #8a5a1f); }
.ct-photo--seed-6 { background: linear-gradient(135deg, #5a6b7a, #2c3a47); }

/* ---------- SCROLL REVEAL (gated .ct-js → contenu visible sans JS) ---------- */
.ct-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ct-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root { --section-gap: 60px; }
  .ct-hero__inner { grid-template-columns: 1fr; }
  .ct-hero__side { flex-direction: row; }
  .ct-hero__side .ct-sidecard { flex: 1; }
  .ct-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-pillar-grid, .ct-pillar-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ct-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
/* Les 4 libellés de rubrique FR sont longs : bascule en hamburger dès 1080px
   pour ne jamais comprimer/déborder la nav desktop. */
@media (max-width: 1080px) {
  .ct-nav-wrap { display: none; }
  .ct-hamburger { display: grid; }
}

@media (max-width: 760px) {
  .ct-header__actions .ct-pill { display: none; }
  .ct-hamburger { display: grid; }
  .ct-hero__side { flex-direction: column; }
  .ct-sidecard { grid-template-columns: 88px minmax(0, 1fr); }
  .ct-grid, .ct-grid--2,
  .ct-pillar-grid, .ct-pillar-grid--2, .ct-pillar-grid--3 { grid-template-columns: 1fr; }
  .ct-contact { grid-template-columns: 1fr; gap: 32px; }
  .ct-news-form { flex-direction: column; }
  .ct-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .ct-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}



/* ============================================================
   ASTRA OVERRIDES — neutralise le chrome du parent et ses contraintes.
   Tout est scopé sous body.ct pour ne rien fuir si on désactive le thème.
   ⚠ Ne PAS réutiliser les classes Astra (.site-header, .entry-content, #page…)
     dans le markup du thème : elles sont masquées ci-dessous.
   ============================================================ */

body.ct {
  background: var(--bg-outer) !important;
  color: var(--ink) !important;
}

/* Force le full-width sur tous les conteneurs Astra qui résistent */
body.ct #page,
body.ct #content,
body.ct .site-content,
body.ct .ast-container,
body.ct #primary,
body.ct .content-area,
body.ct .site-main,
body.ct .site-main > article,
body.ct .entry-content,
body.ct .ast-article-single,
body.ct .ast-article-post {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
  background: transparent !important;
}

/* Masque le header Astra + TOUTES les bandes "above-content" (mieux vaut trop que pas assez) */
body.ct .site-header,
body.ct #masthead,
body.ct #ast-desktop-header,
body.ct #ast-mobile-header,
body.ct .ast-above-header-wrap,
body.ct .ast-below-header-wrap,
body.ct .main-header-bar-wrap,
body.ct .main-header-bar,
body.ct .ast-mobile-header-wrap,
body.ct .ast-main-header-wrap,
body.ct .ast-primary-header-bar,
body.ct .ast-secondary-header-bar,
body.ct .ast-header-breadcrumb,
body.ct .ast-breadcrumbs-wrapper,
body.ct .ast-breadcrumbs-inner,
body.ct .ast-page-header,
body.ct .ast-page-title-bar,
body.ct .entry-banner,
body.ct .ast-archive-title-wrap {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Masque le footer Astra + ses wraps internes */
body.ct .site-footer,
body.ct #colophon,
body.ct .ast-footer-overlay,
body.ct .ast-small-footer,
body.ct .site-below-footer-wrap,
body.ct .ast-above-footer,
body.ct .ast-below-footer,
body.ct .ast-footer-copyright,
body.ct .footer-widget-area {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Le titre d'entrée n'est masqué QUE sur la home (les pages internes ont besoin du leur) */
body.ct.home .entry-header,
body.ct.home .ast-archive-description {
  display: none !important;
}

/* IMPORTANT : pas de blanket `body.ct a { color: inherit }`.
   Sa spécificité (0,1,2) battait nos règles de composants (.ct-nav a = 0,1,1,
   .ct-brand = 0,1,0…) → liens de nav et nom de marque héritaient de --ink
   (navy) → invisibles sur le header navy. Chaque composant .ct-* fixe sa propre
   couleur (qui bat déjà le bleu d'Astra, spéc. 0,0,1). On ne colore explicitement
   que les liens « nus » des zones de contenu (the_content / commentaires). */
body.ct .ct-page__body a,
body.ct .ct-single__comments a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Reset Astra pour les champs de formulaire qu'on re-style */
body.ct input[type="text"],
body.ct input[type="email"],
body.ct input[type="search"],
body.ct input[type="tel"],
body.ct input[type="url"],
body.ct textarea {
  /* Neutralisation Astra MINIMALE. On NE met PAS background/border/border-radius
     ici : avec une spéc. (0,2,2) ils écraseraient les styles propres à chaque
     champ. `color: inherit` fait suivre la couleur du conteneur (ink sur clair,
     #fff sur sombre) → jamais de texte sombre-sur-sombre invisible. Les champs
     fixent eux-mêmes fond/bordure via `body.ct .ct-…` (0,2,1) qui bat le
     `input[type=…]` d'Astra (0,1,1). */
  color: inherit;
  box-shadow: none;
}

/* Admin bar : pousse le header custom (en position fixe/absolue) sous la barre WP */
body.ct.admin-bar .ct-header { top: 32px; }
@media (max-width: 782px) {
  body.ct.admin-bar .ct-header { top: 46px; }
}

/* ============================================================
   BREVO / SENDINBLUE — intégration du formulaire newsletter
   Le plugin émet .sib_signup_form > .sib_signup_box_inside_X
   Cibler le conteneur intérieur (PAS le <form>) pour le flex.
   ============================================================ */
body.ct .sib_signup_form { margin: 0; padding: 0; background: transparent; border: none; }
body.ct .sib_signup_form [class*="sib_signup_box_inside_"] {
  display: flex; gap: 8px; padding: 0; background: transparent; border: none;
  align-items: stretch; flex-wrap: wrap;
}
/* Masque UNIQUEMENT le label email (pas tous les <p> : sib_msg_disp y vit aussi) */
body.ct .sib_signup_form p.sib-email-area { font-size: 0; margin: 0; padding: 0; flex: 1; min-width: 200px; }
body.ct .sib_signup_form p.sib-email-area input[type="email"] {
  width: 100%; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 13px 22px; font-family: var(--body); font-size: 14px; color: var(--ink); outline: none;
}
body.ct .sib_signup_form input.sib-default-btn,
body.ct .sib_signup_form input[type="submit"] {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 13px 24px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; cursor: pointer;
}
body.ct .sib_msg_disp:empty { display: none; }
body.ct .sib-alert-message-success { color: #2e7d32; }
body.ct .sib-alert-message-error { color: #c0392b; }

/* ============================================================
   CONTACT FORM 7 / WPForms — champs "underline-only"
   ============================================================ */
body.ct .wpcf7-form p, body.ct .wpforms-field { margin: 0 0 24px; }
body.ct .wpcf7-form input[type="text"],
body.ct .wpcf7-form input[type="email"],
body.ct .wpcf7-form input[type="tel"],
body.ct .wpcf7-form textarea,
body.ct .wpforms-field input,
body.ct .wpforms-field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  border-radius: 0; padding: 10px 0; font-family: var(--body); font-size: 15px; color: var(--ink);
  outline: none; box-shadow: none;
}
body.ct .wpcf7-form input:focus,
body.ct .wpcf7-form textarea:focus,
body.ct .wpforms-field input:focus,
body.ct .wpforms-field textarea:focus { border-bottom-color: var(--accent); }
body.ct .wpcf7-form input[type="submit"],
body.ct .wpforms-submit {
  background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 11px 24px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer;
}
