/*
Theme Name: AEPRO
Theme URI: https://aepro.cm
Author: AFRIQUE ENERGIE PRO SARL
Description: Thème bloc sur mesure d'AEPRO, Afrique Énergie Pro SARL. À l'activation, il installe les pages, les images, les produits, les réalisations et les publications. Tout le contenu se modifie dans l'éditeur de blocs.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aepro
Tags: block-theme, full-site-editing, business
*/

/* =========================================================
   AEPRO, Afrique Énergie Pro SARL
   Feuille de style commune à toutes les pages.
   Direction artistique : sable vert-de-gris / blanc / vert forêt, Vollkorn (titres) + Commissioner (texte),
   grandes cartes photo arrondies, accent vert feuille (couleurs du logo).
   ========================================================= */

:root {
  --sand: #E3EAD3;
  --sand-2: #D3DEBE;
  --paper: #F5F8EE;
  --white: #FFFFFF;
  --ink: #111A0E;
  --ink-2: #1A2615;
  --ink-3: #26341F;
  --text: #262B22;
  --muted: #5A6150;
  --muted-light: #AEB7A2;
  --line: #D5DFC3;
  --line-dark: #FFFFFF1F;
  --accent: #A6CF63;
  --accent-deep: #4E7C17;
  /* Vert du logo (#57891A), couleur dominante */
  --on-white: #111A0E;
  --brand-ink: #4E7C17;   /* vert utilisé comme couleur de texte */
  --header-bg: #F5F8EEE8;
  --media-bg: #EEF0E6;
  --tint-ok: #F2F7E8;
  --tint-error: #FBF1EF;
  --brand: #4E7C17;
  --brand-hover: #3E6512;
  --brand-deep: #2D4A0F;
  --brand-deep-2: #375A13;
  --teal: #12946F;
  --wa: #25D366;
  --wa-ink: #073B1F;
  --tg: #229ED9;
  --danger: #B8402F;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1240px;
  --gutter: 24px;
  --header-h: 76px;

  --font: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Vollkorn', Georgia, 'Times New Roman', serif;
  --mono: 'Commissioner', system-ui, sans-serif; /* petits repères (étiquettes, méta) */
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.1; letter-spacing: -0.005em; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--brand-deep); color: #E6EBDD; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Typo helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px;
  color: var(--ink);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section--dark .eyebrow { color: #E6EBDD; }
.mono { font-family: var(--mono); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); line-height: 1.65; max-width: 640px; }
.section--dark .lead { color: var(--muted-light); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head__text { max-width: 680px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section--dark .section-head p { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-hover); }
.btn--light { background: #fff; color: var(--on-white); }
.btn--outline { border-color: var(--brand); color: var(--brand-ink); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--outline-light { border-color: #FFFFFF66; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--on-white); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--tg { background: var(--tg); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; color: var(--brand-ink); white-space: nowrap; }
.link-arrow .arrow-circle { width: 44px; height: 44px; }
.link-arrow:hover .arrow-circle { transform: rotate(45deg); }
.section--dark .link-arrow { color: #fff; }

.arrow-circle {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
  transition: transform .35s var(--ease), background-color .25s;
}
.arrow-circle svg { width: 18px; height: 18px; }
.arrow-circle--light { background: #fff; color: var(--on-white); }
.section--dark .link-arrow .arrow-circle { background: #fff; color: var(--on-white); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill--dark { background: var(--brand); color: #fff; border-color: var(--brand); }
.pill--glass { background: #2D4A0FE6; color: #fff; border-color: transparent; font-weight: 500; backdrop-filter: blur(6px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px #0000004d; }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: -.01em; position: relative;
}
.logo__mark::after { content: ""; position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.logo__name { font-family: var(--serif); display: block; font-weight: 700; font-size: 22px; letter-spacing: -.015em; line-height: 1; }
.logo__sub { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted); margin-top: 4px; }
.logo--light { color: #fff; }
.logo--light .logo__mark { background: #fff; color: var(--on-white); }
.logo--light .logo__sub { color: var(--muted-light); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; font-size: 15px; font-weight: 400; color: var(--text);
  padding: 8px 12px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--sand); color: var(--brand-ink); }
.main-nav a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.burger {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  align-items: center; justify-content: center; flex-direction: column; gap: 7px;
  background: transparent;
}
.burger span { display: block; width: 28px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 85;
  background: var(--brand-deep); color: #fff;
  padding: 28px var(--gutter) 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: clamp(26px, 7vw, 34px); font-weight: 500; letter-spacing: -.01em;
  padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: #D3DACA;
}
.mobile-menu nav a[aria-current="page"] { color: #fff; }
.mobile-menu nav a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mobile-menu__ctas { display: grid; gap: 10px; }
.mobile-menu__meta { font-family: var(--mono); font-size: 12px; color: var(--muted-light); line-height: 1.8; }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-actions .btn--wa .btn-label { display: none; }
  .header-actions .btn--wa { width: 48px; padding: 0; }
  .logo__sub { display: none; }
}

/* =========================================================
   HERO (accueil)
   ========================================================= */
.hero { padding: 24px 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; }
.hero__card {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 24px; justify-content: space-between;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 86px); line-height: .96; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.hero__pillars { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__media { display: grid; grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; min-height: 620px; }
.hero__media-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

.hero__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--white); border-radius: var(--radius-lg); margin-top: 20px; }
.stat { padding: 32px clamp(20px, 3vw, 40px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -.015em; line-height: 1; color: var(--ink); }
.stat__num sup { font-size: .45em; vertical-align: super; color: var(--brand-ink); }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 8px; }
.section--dark .stats { background: var(--brand-deep-2); }
.section--dark .stat { border-color: var(--line-dark); }
.section--dark .stat__num { color: #fff; }
.section--dark .stat__label { color: var(--muted-light); }

/* Marquee */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.marquee__track { display: flex; width: max-content; gap: 56px; animation: marquee 34s linear infinite; }
.marquee__track > span { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.01em; color: #7E9A5C; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track > span::after { content: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   PHOTO CARDS
   ========================================================= */
.photo-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-3); color: #fff;
  min-height: 260px; isolation: isolate;
}
.photo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.photo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #00000000 35%, #000000B3 100%); }
.photo-card:hover > img { transform: scale(1.05); }
.photo-card__top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.photo-card__body { padding: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.photo-card__title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; color: #fff; }
.photo-card__sub { font-size: 14px; color: #E6DFD5; margin-top: 6px; }
.photo-card .arrow-circle { background: #fff; color: var(--on-white); width: 44px; height: 44px; }
.photo-card:hover .arrow-circle { transform: rotate(45deg); }

/* =========================================================
   GENERIC CARDS / GRIDS
   ========================================================= */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; border: 1px solid transparent; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.card--sand { background: var(--sand); }
.card--dark { background: var(--brand-deep); color: #D3DACA; }
.card--dark h2, .card--dark h3, .card--dark h4 { color: #fff; }
.card--hover:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px #0000004d; }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); }
.card--dark p { color: #C6CEBC; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.card__icon svg { width: 24px; height: 24px; }
.card--dark .card__icon { background: #FFFFFF14; color: var(--accent); }
.card__index { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Values */
.value { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--white); }
.value__n { font-family: var(--mono); font-size: 12px; color: var(--brand-ink); }
.value h3 { font-size: 26px; }
.value p { color: var(--muted); font-size: 15px; }

/* Split block (texte + image) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--sand-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.quote { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
.section--dark .quote { color: #fff; }

.prose p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.prose p:last-child { margin-bottom: 0; }

/* =========================================================
   PAGE HERO (pages internes)
   ========================================================= */
.page-hero { padding: 24px 0 0; }
.page-hero__box { background: var(--white); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.015em; }
.page-hero__intro { display: flex; flex-direction: column; gap: 20px; }
.page-hero__intro p { color: var(--muted); font-size: 17px; }
.page-hero__media { margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; height: clamp(240px, 38vw, 460px); background: var(--sand-2); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* =========================================================
   EXPERTISE (page détaillée)
   ========================================================= */
.domain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; scroll-margin-top: calc(var(--header-h) + 20px); }
.domain + .domain { margin-top: 20px; }
.domain:nth-child(even) .domain__media { order: 2; }
.domain__media { border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; position: relative; background: var(--sand-2); }
.domain__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.domain__media .pill { position: absolute; top: 18px; left: 18px; }
.domain__body { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.domain__body h2 { font-size: clamp(32px, 4vw, 48px); }
.domain__body p { color: var(--muted); font-size: 17px; }
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.card--dark .checklist li { color: #E6EBDD; }
.card--dark .checklist li::before { background-color: var(--accent); }

/* =========================================================
   SERVICES
   ========================================================= */
.service { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: calc(var(--header-h) + 20px); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__n { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 10px; }
.service h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.service__lead { color: var(--muted); font-size: 17px; margin-bottom: 20px; }
.service__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--sand-2); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }

.service-tile { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.service-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px #0000004d; }
.service-tile__img { aspect-ratio: 16/10; overflow: hidden; background: var(--sand-2); }
.service-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-tile:hover .service-tile__img img { transform: scale(1.05); }
.service-tile__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-tile__body h3 { font-size: 22px; }
.service-tile__body p { color: var(--muted); font-size: 15px; flex: 1; }
.service-tile__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.service-tile__foot .arrow-circle { width: 40px; height: 40px; }
.service-tile:hover .arrow-circle { transform: rotate(45deg); }

/* =========================================================
   PRODUITS
   ========================================================= */
.catalog-tools { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.search { position: relative; max-width: 520px; }
.search input { width: 100%; height: 54px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); padding: 0 22px 0 52px; font-size: 16px; }
.search input:focus { outline: none; border-color: var(--brand); }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filter {
  flex: none; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 14px; color: var(--text); transition: all .2s; white-space: nowrap;
}
.filter:hover { border-color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter .count { font-family: var(--mono); font-size: 11px; opacity: .6; margin-left: 4px; }
.catalog-count { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.cat-block { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 20px); }
.cat-block__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cat-block__head h2 { font-size: clamp(24px, 3vw, 34px); }
.cat-block__head p { color: var(--muted); font-size: 15px; max-width: 620px; margin-top: 6px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -26px #0000004d; border-color: var(--sand-2); }
.product-card__img { position: relative; aspect-ratio: 4/3; background: var(--media-bg); overflow: hidden; display: block; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__img .pill { position: absolute; left: 12px; top: 12px; background: #FFFFFFE6; }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__body h3 { font-size: 18px; letter-spacing: -.015em; }
.product-card__body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card__spec { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.product-card__brands { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.product-card__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px dashed var(--line); }
.price { font-family: var(--mono); font-size: 12px; color: var(--brand-ink); }
.empty-state { padding: 48px; text-align: center; background: var(--white); border-radius: var(--radius-lg); color: var(--muted); }

/* Fiche produit */
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; }
.detail__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--media-bg); min-height: 420px; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__body { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.detail__body h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.015em; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.spec-table th { width: 38%; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .04em; padding-right: 16px; }
.detail__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.note { font-size: 14px; color: var(--muted); background: var(--paper); border-radius: var(--radius-sm); padding: 14px 16px; }

/* =========================================================
   RÉALISATIONS
   ========================================================= */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px #0000004d; }
.project-card__img { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--sand-2); }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover .project-card__img img { transform: scale(1.05); }
.project-card__img .pill { position: absolute; top: 14px; left: 14px; }
.project-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card__body h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.project-card__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.project-card__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 500; }
.project-card__foot .arrow-circle { width: 38px; height: 38px; }
.project-card:hover .project-card__foot .arrow-circle { transform: rotate(45deg); }

.featured-projects { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-auto-rows: minmax(260px, auto); gap: 20px; }
.featured-projects .photo-card:first-child { grid-row: span 2; min-height: 540px; }

.ref-card { background: var(--brand-deep-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.ref-card h3 { color: #fff; font-size: 22px; }
.ref-card p { color: var(--muted-light); font-size: 15px; }
.partners { display: flex; flex-wrap: wrap; gap: 10px; }
.partners span { font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }

/* =========================================================
   PUBLICATIONS
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px #0000004d; }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--sand-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-card__body h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; }
.post-card__body p { color: var(--muted); }
.post-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.post-card__foot .arrow-circle { width: 38px; height: 38px; }
.post-card:hover .post-card__foot .arrow-circle { transform: rotate(45deg); }

/* Article */
.article-hero { padding: 24px 0 0; }
.article-hero__box { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); }
.article-hero h1 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.015em; max-width: 980px; margin: 18px 0 22px; }
.article-cover { margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; background: var(--sand-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 16px; }
.article-body p { font-size: 18px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.article-body ul { margin: 0 0 22px 22px; }
.article-body li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; color: var(--text); }
.article-body .callout { background: var(--brand-deep); color: #E6EBDD; border-radius: var(--radius); padding: 28px; margin: 36px 0; }
.article-body .callout p { color: #E6EBDD; margin-bottom: 16px; font-size: 17px; }
.article-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 20px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.form-card h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.form-intro { color: var(--muted); margin-bottom: 28px; }
.fieldset { border: none; margin-bottom: 30px; }
.fieldset legend { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--danger); }
.field .opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  padding: 12px 16px; font-size: 16px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F0F0E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background-color: var(--white); box-shadow: 0 0 0 4px #57891A33; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background-color: var(--tint-error); }
.field__error { font-size: 13px; color: var(--danger); min-height: 0; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.field input.is-prefilled { border-color: var(--accent); background-color: var(--tint-ok); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; cursor: pointer; transition: all .2s; }
.choice input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prefill-banner { display: none; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--tint-ok); border: 1px solid #C9DDA8; margin-bottom: 24px; font-size: 15px; }
.prefill-banner.is-visible { display: flex; }
.prefill-banner svg { width: 22px; height: 22px; color: var(--brand-ink); flex: none; }
.form-error-summary { display: none; padding: 14px 18px; border-radius: 14px; background: var(--tint-error); border: 1px solid #E8B8AF; color: var(--danger); margin-bottom: 20px; font-size: 15px; }
.form-error-summary.is-visible { display: block; }

.send-panel { display: none; margin-top: 8px; }
.send-panel.is-visible { display: block; animation: rise .5s var(--ease); }
.send-panel__box { background: var(--brand-deep); color: #E6EBDD; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.send-panel__box h3 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.send-panel__box > p { color: var(--muted-light); margin-bottom: 24px; }
.send-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.send-option { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--brand-deep-2); border: 1px solid var(--line-dark); color: #fff; text-align: left; transition: transform .3s var(--ease), border-color .25s, background-color .25s; }
.send-option:hover { transform: translateY(-3px); border-color: #FFFFFF55; }
.send-option__icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.send-option__icon svg { width: 24px; height: 24px; }
.send-option strong { font-size: 19px; font-weight: 600; }
.send-option small { font-size: 13.5px; color: var(--muted-light); line-height: 1.45; }
.send-option--wa .send-option__icon { background: var(--wa); color: var(--wa-ink); }
.send-option--mail .send-option__icon { background: #fff; color: var(--on-white); }
.send-option--tg .send-option__icon { background: var(--tg); color: #fff; }
.send-preview { margin-top: 20px; }
.send-preview summary { cursor: pointer; font-size: 14px; color: var(--muted-light); }
.send-preview pre { margin-top: 12px; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 12.5px; background: #FFFFFF0D; padding: 16px; border-radius: 12px; color: #E6EBDD; max-height: 320px; overflow: auto; }
.send-panel__back { margin-top: 18px; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.contact-line { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.contact-line:last-child { border-bottom: none; }
.contact-line small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.contact-line a, .contact-line span { color: #fff; font-size: 16px; }
.contact-line a:hover { color: var(--accent); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--brand-deep); color: #fff; padding: 14px 20px; border-radius: 14px; font-size: 15px; max-width: calc(100% - 32px); box-shadow: 0 16px 40px -16px #00000080; transition: opacity .3s, transform .35s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* CTA band */
.cta-band { background: var(--brand-deep); color: #E6EBDD; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.cta-band h2 { color: #fff; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.015em; }
.cta-band p { color: var(--muted-light); margin-top: 16px; font-size: 17px; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--brand-deep); color: #C6CEBC; padding: 80px 0 28px; margin-top: 96px; overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer p { font-size: 15px; color: #AEB7A2; }
.site-footer h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #B4C49C; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links span { color: #E6EBDD; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-quote { margin-top: 20px; font-style: italic; color: var(--accent); font-size: 15px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; color: #fff; transition: background-color .2s, color .2s; }
.footer-social a:hover { background: #fff; color: var(--on-white); }
.footer-social svg { width: 18px; height: 18px; }
.footer-wordmark { font-family: var(--serif); font-size: clamp(88px, 24vw, 340px); font-weight: 700; letter-spacing: -.015em; line-height: .78; color: #fff; margin: 64px 0 28px; white-space: nowrap; user-select: none; }
.footer-wordmark span { color: var(--accent); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 12px; color: #B4C49C; }
.site-footer__bottom a:hover { color: #fff; }

/* =========================================================
   BOUTON WHATSAPP FLOTTANT (apparaît au scroll)
   ========================================================= */
.fab-wa {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: var(--wa-ink);
  font-weight: 600; font-size: 15px; box-shadow: 0 14px 30px -10px #0000006b;
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.85);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.fab-wa svg { width: 26px; height: 26px; }
.fab-wa.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.fab-wa:hover { transform: translateY(-3px); }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 #25D36699; animation: fabRing 2.8s ease-out infinite; pointer-events: none; }
@keyframes fabRing { 0% { box-shadow: 0 0 0 0 #25D36688; } 70%, 100% { box-shadow: 0 0 0 16px #25D36600; } }
body.menu-open .fab-wa { opacity: 0; visibility: hidden; }
@media (max-width: 640px) {
  .fab-wa { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; padding: 0; justify-content: center; }
  .fab-wa .fab-label { display: none; }
}

/* =========================================================
   ANIMATIONS D'APPARITION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
}
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero__grid, .split, .domain, .detail, .page-hero__box, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .hero__media { min-height: 0; grid-template-rows: auto auto; }
  .hero__media > .photo-card { min-height: 340px; }
  .hero__media-row .photo-card { min-height: 220px; }
  .domain:nth-child(even) .domain__media { order: 0; }
  .domain__media { min-height: 300px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section--dark .stat:nth-child(-n+2) { border-bottom-color: var(--line-dark); }
  .service { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service__n { padding: 0; }
  .featured-projects { grid-template-columns: minmax(0, 1fr); }
  .featured-projects .photo-card:first-child { grid-row: auto; min-height: 380px; }
  .cta-band__btns { justify-content: flex-start; }
  .send-options { grid-template-columns: minmax(0, 1fr); }
  .send-option { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .send-option small { flex-basis: 100%; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .project-grid, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card__body { padding: 14px; }
  .product-card__body h3 { font-size: 16px; }
  .product-card__foot { flex-direction: column; align-items: stretch; }
  .product-card__foot .btn { width: 100%; }
  .form-grid, .checklist { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-footer { margin-top: 64px; padding-top: 56px; }
  .card { padding: 24px; }
  .hero__ctas .btn, .cta-band__btns .btn { flex: 1 1 auto; }
  .hero__media-row { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 24px 18px; }
  .section-head { margin-bottom: 32px; }
  .article-cover { aspect-ratio: 16/10; }
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Contraste des éléments sur fonds sombres */
.card--dark .eyebrow, .cta-band .eyebrow { color: #E6EBDD; }
.card--dark .quote { color: #fff; }
.card--dark .link-arrow, .cta-band .link-arrow { color: #fff; }
.card--dark .link-arrow .arrow-circle, .cta-band .link-arrow .arrow-circle { background: #fff; color: var(--on-white); }
.card--dark .pill { background: #FFFFFF14; color: #E6EBDD; border-color: #FFFFFF33; }

/* Logo officiel (image transparente) */
.logo__img { display: block; height: 54px; width: auto; }
.site-footer .logo__img { height: 96px; }
@media (max-width: 720px) { .logo__img { height: 46px; } }

/* Dominante verte : accents de titres et chiffres */
.hero h1 em, .stat__num sup { color: var(--brand-ink); }
.eyebrow { border-color: var(--brand); color: var(--brand-ink); }
.eyebrow .dot { background: var(--brand); }
.section--dark .eyebrow, .card--dark .eyebrow, .cta-band .eyebrow { border-color: #FFFFFF66; }
.section--dark .eyebrow .dot, .card--dark .eyebrow .dot, .cta-band .eyebrow .dot { background: var(--accent); }
.value__n, .card__index, .service__n { color: var(--brand-ink); }
.footer-wordmark span, .footer-quote { color: var(--accent); }

/* Logos des références */
.marquee__item { display: inline-flex; align-items: center; gap: 56px; }
.marquee__track .marquee__item::after { content: none; }
.marquee__track span.marquee__item { color: inherit; }
.marquee__logo { height: 48px; width: auto; max-width: 160px; object-fit: contain; }
.brand-text.marquee__logo { height: auto; max-width: none; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: #7E9A5C; }
.ref-card__logos { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-card__tile { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; height: 76px; padding: 12px 18px; min-width: 96px; }
.ref-card__tile .brand-logo { max-height: 52px; max-width: 170px; width: auto; height: auto; }
.brand-logo--inline { display: inline-block; height: 26px; width: auto; vertical-align: middle; }
.brand-logo--table { display: inline-block; height: 44px; width: auto; vertical-align: middle; }
.pill--logo { background: #fff; border-color: transparent; padding: 3px 10px; }
.brand-logo--pill { display: block; height: 28px; width: auto; }
/* LEC : logo carré et fin, affiché plus grand */
.ref-card__tile .brand-logo[src*="lec-cameroon"] { max-height: 64px; }
.marquee__logo[src*="lec-cameroon"] { height: 58px; }

/* Partenaires : logo + nom */
.partners .partner { display: inline-flex; align-items: center; gap: 10px; }
.partners .partner--logo { padding: 6px 18px 6px 8px; }
.partners .partner .brand-logo { height: 36px; width: auto; max-width: 70px; object-fit: contain; }
/* Références : nom sous les logos */
.ref-card__name { color: #fff !important; font-family: var(--serif); font-size: 20px; font-weight: 600; margin-top: -2px; }

/* Formulaire : moyen de contact en logos */
.choice--icon span { width: 64px; height: 56px; justify-content: center; padding: 0; }
.choice--icon svg { width: 26px; height: 26px; }
.choice--wa span { color: #1DA851; }
.choice--tg span { color: var(--tg); }
.choice--mail span { color: var(--brand-ink); }
.choice--wa input:checked + span { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.choice--tg input:checked + span { background: var(--tg); border-color: var(--tg); color: #fff; }
.choice--mail input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.field select.is-prefilled { border-color: var(--brand-ink); background-color: var(--tint-ok); }
@media (max-width: 720px) { .hero__eyebrow { display: none; } }


/* =========================================================
   MODE SOMBRE
   Activé par <html data-theme="dark"> (bouton du header,
   mémorisé ; par défaut : réglage du système).
   ========================================================= */
.theme-toggle, .lang-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink); background: transparent; transition: background-color .2s, border-color .2s;
}
.lang-toggle { width: auto; min-width: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 13px; letter-spacing: .06em; }
.theme-toggle:hover, .lang-toggle:hover { border-color: var(--brand-ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.mobile-menu__prefs { display: flex; gap: 10px; }
.mobile-menu__prefs .theme-toggle, .mobile-menu__prefs .lang-toggle { color: #fff; border-color: var(--line-dark); }
@media (max-width: 560px) { .header-actions .theme-toggle, .header-actions .lang-toggle { display: none; } }

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E160B;
  --sand: #15200F;
  --sand-2: #22301A;
  --white: #1A2614;
  --ink: #EEF3E6;
  --text: #D9E2CE;
  --muted: #A7B398;
  --line: #2E3D24;
  --brand-ink: #A6CF63;
  --brand-deep: #1F3A0B;
  --brand-deep-2: #2A4A12;
  --header-bg: #0E160BE6;
  --media-bg: #22301A;
  --tint-ok: #1F3312;
  --tint-error: #3A1A14;
}
[data-theme="dark"] .burger span { background: var(--ink); }
[data-theme="dark"] .site-header .logo__img { filter: brightness(1.7) saturate(1.1); }
[data-theme="dark"] .marquee__logo:not(.brand-text) { background: #fff; padding: 6px 12px; border-radius: 12px; box-sizing: content-box; }
[data-theme="dark"] .partners .partner .brand-logo { background: #fff; border-radius: 8px; padding: 3px; }
[data-theme="dark"] .product-card__img .pill { background: #0E160BE6; }
[data-theme="dark"] .hero h1 em { color: var(--brand-ink); }
[data-theme="dark"] .marquee__track > span, [data-theme="dark"] .brand-text.marquee__logo { color: #8FAE6B; }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEF3E6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[data-theme="dark"] .choice--mail span { color: var(--brand-ink); }
[data-theme="dark"] .prefill-banner { border-color: #3D5A22; }
[data-theme="dark"] .form-error-summary { border-color: #6B2F25; color: #F0A99C; }
[data-theme="dark"] .field__error, [data-theme="dark"] .field .req { color: #F0A99C; }
[data-theme="dark"] img:not(.logo__img):not(.brand-logo) { filter: brightness(.92); }

/* Traduction en attente : évite l'affichage du français avant bascule en anglais */
html.i18n-pending body { visibility: hidden; }


/* =========================================================
   ADAPTATIONS WORDPRESS (thème bloc)
   Le CSS ci-dessus est celui du site HTML, inchangé. Cette partie
   l'adapte au balisage des blocs Gutenberg (classes posées via
   className sur les blocs natifs).
   ========================================================= */

/* ---------- Espacement automatique de Gutenberg : neutralisé à spécificité nulle ---------- */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons), :where(.wp-block-post-content) > :where(*) { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
figure.wp-block-image, figure.wp-block-post-featured-image { margin: 0; }
img { height: auto; }
.wp-block-image.cover, .wp-block-image.cover img { width: 100%; height: 100%; }
.wp-block-image.cover img { object-fit: cover; }
.wp-block-post-template { list-style: none; margin: 0; padding: 0; max-width: none; }
.wp-block-post-template > li { margin: 0; }
p:empty { display: none; }
.wp-block-post-featured-image img { width: 100%; height: 100% !important; object-fit: cover; }
.wp-block-post-featured-image a { display: block; height: 100%; }

/* Animations : le contenu n'est masqué que si le script est actif (classe posée dans le <head>). */
.reveal { opacity: 1; transform: none; }
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }

/* ---------- En-tête ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 90; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.site-header { position: relative; }
.site-header .wp-block-site-logo img { height: 54px; width: auto; }
.site-header .wp-block-site-logo a { display: block; }
.site-header .main-nav .wp-block-navigation__container { gap: 4px; }
.site-header .main-nav .wp-block-navigation-item__content {
  font-size: 15px; color: var(--text); padding: 8px 12px; border-radius: 999px; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.site-header .main-nav .wp-block-navigation-item__content:hover { background: var(--sand); color: var(--brand-ink); }
.site-header .main-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--brand); color: #fff; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.header-prefs { display: flex; gap: 8px; }
.site-header__inner > .burger { margin-left: -4px; }
@media (max-width: 1180px) { .site-header .main-nav { display: none; } }
@media (max-width: 560px) {
  .header-prefs { display: none; }
  .header-wa > .wp-block-button__link { font-size: 0; width: 48px; padding: 0; gap: 0; }
  .site-header .wp-block-site-logo img { height: 46px; }
}

/* ---------- Boutons (core/button) : les styles .btn passent sur le lien ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wp-block-button.btn, .wp-block-button.social, .wp-block-button.fab-wa {
  display: inline-flex; min-height: 0; padding: 0; border: 0; background: none; border-radius: 0; transform: none; box-shadow: none;
}
.wp-block-button.btn > .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; background: var(--brand); color: #fff;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.wp-block-button.btn > .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.btn--sm > .wp-block-button__link { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.wp-block-button.btn--dark > .wp-block-button__link { background: var(--brand); color: #fff; }
.wp-block-button.btn--dark > .wp-block-button__link:hover { background: var(--brand-hover); }
.wp-block-button.btn--light > .wp-block-button__link { background: #fff; color: var(--on-white); }
.wp-block-button.btn--outline > .wp-block-button__link { background: transparent; border-color: var(--brand-ink); color: var(--brand-ink); }
.wp-block-button.btn--outline > .wp-block-button__link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.wp-block-button.btn--outline-light > .wp-block-button__link { background: transparent; border-color: #FFFFFF66; color: #fff; }
.wp-block-button.btn--outline-light > .wp-block-button__link:hover { background: #fff; color: var(--on-white); }
.wp-block-button.btn--wa > .wp-block-button__link { background: var(--wa); color: var(--wa-ink); }
.wp-block-button.btn--tg > .wp-block-button__link { background: var(--tg); color: #fff; }
.wp-block-button.btn--block, .wp-block-button.btn--block > .wp-block-button__link { width: 100%; }

/* Icônes par masque CSS (un SVG n'est pas un bloc natif) */
.btn-icon--wa > .wp-block-button__link::before, .btn-icon--tg > .wp-block-button__link::before, .btn-icon--mail > .wp-block-button__link::before,
.ico { content: ""; display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.btn-icon--wa, .ico--wa { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.4A10 10 0 1 0 12 2Zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 1 1 12 20Zm4.4-5.9c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.5.1-.2.2-.6.8-.8 1-.1.1-.3.2-.5.1-.2-.1-1-.4-1.9-1.2-.7-.6-1.2-1.4-1.3-1.6-.1-.2 0-.4.1-.5l.4-.4c.1-.1.2-.3.2-.4.1-.1 0-.3 0-.4l-.7-1.7c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 1.9 0 1.1.8 2.2.9 2.4.1.1 1.6 2.5 3.9 3.5.5.2 1 .4 1.3.5.5.2 1 .1 1.4.1.4-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1-.1-.1-.2-.2-.4-.3Z'/%3E%3C/svg%3E"); }
.btn-icon--tg, .ico--tg { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.9 4.3 18.7 20c-.2 1-.9 1.2-1.7.8l-4.8-3.5-2.3 2.2c-.3.3-.5.5-1 .5l.3-4.9L18 8.2c.4-.4-.1-.6-.6-.2L7.5 14.2 2.9 12.7c-1-.3-1-1 .2-1.4L20.6 3.6c.8-.3 1.5.2 1.3.7Z'/%3E%3C/svg%3E"); }
.btn-icon--mail, .ico--mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.choice--icon .ico, .send-option__icon .ico { width: 24px; height: 24px; }

/* ---------- Petits libellés ---------- */
p.eyebrow { align-self: flex-start; width: fit-content; }
.eyebrow--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.section--dark .eyebrow--dot::before, .card--dark .eyebrow--dot::before { background: var(--accent); }
p.pill { width: fit-content; }
.breadcrumb a { color: inherit; text-decoration: none; }
.lead { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.small { font-size: 14px; color: var(--muted); }
.small-title { font-size: 18px; }
.card-title { font-size: 24px; }
.title-xl { font-size: clamp(32px, 4.4vw, 56px); }
.card--big { padding: clamp(28px, 4vw, 48px); }
.card--big h3 { font-size: clamp(26px, 3vw, 34px); }
.card--big p { font-size: 17px; }
.about-card { padding: clamp(28px, 4vw, 52px); gap: 22px; justify-content: space-between; }
.about-card .tags { margin-top: 4px; }
.form-intro { margin-bottom: 28px; }

/* Lien « En savoir plus » avec pastille flèche */
.link-arrow a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.link-arrow a::after {
  content: ""; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .35s var(--ease);
}
.link-arrow a:hover::after { transform: rotate(45deg); }
.section--dark .link-arrow a, .card--dark .link-arrow a, .cta-band .link-arrow a { color: #fff; }
.section--dark .link-arrow a::after, .card--dark .link-arrow a::after {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111A0E' stroke-width='2'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Héros ---------- */
.hero__main { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__legal p { margin: 0; }
.photo-card--big { min-height: 360px; }

/* ---------- Cartes photo (lien étiré sur toute la carte) ---------- */
.photo-card { position: relative; }
.photo-card > .photo-card__img { position: absolute; inset: 0; z-index: -2; margin: 0; }
.photo-card > .photo-card__img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1s var(--ease); }
.photo-card:hover > .photo-card__img img { transform: scale(1.05); }
.photo-card__body::after {
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111A0E' stroke-width='2'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .35s var(--ease);
}
.photo-card:hover .photo-card__body::after { transform: rotate(45deg); }
.photo-card__text { display: flex; flex-direction: column; }
.photo-card__title, .photo-card__title a { color: #fff; text-decoration: none; }
.photo-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
h3.photo-card__title { font-family: var(--serif); }
.photo-card--tall { min-height: 380px; }
.photo-card__top { z-index: 2; }
.photo-card__top .pill { margin: 0; }

/* ---------- Grilles des boucles de requête ---------- */
.product-grid > li, .project-grid > li, .post-grid > li, .featured-projects > li { display: flex; }
.product-grid > li > *, .project-grid > li > *, .post-grid > li > *, .featured-projects > li > * { flex: 1; min-width: 0; }
.featured-projects > li:first-child { grid-row: span 2; }
.featured-projects > li:first-child .photo-card { min-height: 540px; }
@media (max-width: 960px) { .featured-projects > li:first-child { grid-row: auto; } .featured-projects > li:first-child .photo-card { min-height: 380px; } }
.featured-projects .photo-card { min-height: 260px; height: 100%; }
.featured-projects .client-name img { height: 24px; }

/* Carte produit */
.product-card__media { position: absolute; inset: 0; }
.product-card__cat { position: absolute; left: 12px; top: 12px; z-index: 1; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #FFFFFFE6; }
.product-card__cat a { color: inherit; text-decoration: none; }
.product-card__body .wp-block-post-title { font-size: 18px; letter-spacing: -.015em; }
.product-card__body .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.product-card__body .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card__foot .wp-block-buttons { gap: 0; }
@media (max-width: 720px) { .product-card__foot .wp-block-buttons, .product-card__foot .wp-block-button, .product-card__foot .wp-block-button__link { width: 100%; } }

/* Carte réalisation */
.project-card { position: relative; }
.project-card__img .wp-block-post-featured-image { position: absolute; inset: 0; }
.project-card__year { position: absolute; top: 14px; left: 14px; z-index: 1; margin: 0; }
.project-card__type { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card__type a { color: inherit; text-decoration: none; }
.project-card__body .wp-block-post-title { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.project-card__body .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.project-card__body .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-card__client { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.project-card__meta p { margin: 0; }
.project-card__more { color: var(--ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; width: 100%; justify-content: space-between; }
.project-card__more::after {
  content: ""; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s var(--ease);
}
.project-card:hover .project-card__more::after { transform: rotate(45deg); }
.client-name.has-logo { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.brand-logo--inline { display: inline-block; height: 26px; width: auto; vertical-align: middle; }

/* Carte publication */
.post-card { position: relative; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.post-card__meta .wp-block-post-terms a { color: inherit; text-decoration: none; }
.post-card__body .wp-block-post-title { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; }
.post-card__body .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.post-card__body .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__excerpt p { color: var(--muted); margin: 0; }
.post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.post-card__more { color: var(--ink); text-decoration: none; font-weight: 500; }

/* Tuile service */
.service-tile { position: relative; }
.service-tile__img { margin: 0; }
.service-tile__img img { width: 100%; aspect-ratio: 16/10; height: auto !important; object-fit: cover; }
.service-tile__more { margin-top: auto; }
.service-tile__more a { color: var(--muted); font-size: 13px; text-decoration: none; }
.service-tile__more a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Médias plein cadre ---------- */
.split__media .wp-block-image, .page-hero__media .wp-block-image, .service__media .wp-block-image,
.detail__media .wp-block-post-featured-image, .article-cover .wp-block-post-featured-image { height: 100%; }
.domain__media .wp-block-image { position: absolute; inset: 0; }
.domain__media .pill { position: absolute; top: 18px; left: 18px; z-index: 1; margin: 0; }
.checklist--1 { grid-template-columns: 1fr; margin-bottom: 24px; }
.service__text .checklist { margin-bottom: 24px; }

/* ---------- Logos (défilement, références, partenaires) ---------- */
.marquee__track { align-items: center; }
.marquee__track > figure { flex: none; }
.marquee__logo img { height: 48px; width: auto; max-width: 170px; object-fit: contain; }
.ref-card__logos { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-card__tile { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; height: 76px; padding: 12px 18px; }
.ref-card__tile img { max-height: 52px; width: auto; max-width: 170px; }
.ref-card__name { color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.partners-title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.partners .partner { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 15px; }
.partners .partner--logo { padding: 6px 18px 6px 8px; }
.partner__logo img { height: 36px; width: auto; max-width: 70px; object-fit: contain; }
[data-theme="dark"] .marquee__logo img { background: #fff; padding: 6px 12px; border-radius: 12px; }
[data-theme="dark"] .partner__logo img { background: #fff; border-radius: 8px; padding: 3px; }

/* ---------- Bandeau d'appel ---------- */
.cta-band__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-band__text p { margin: 0; }
.cta-band__btns { justify-content: flex-end; }
.cta-band--spaced { margin-top: 24px; }
@media (max-width: 960px) { .cta-band__btns { justify-content: flex-start; } }

/* ---------- Catalogue ---------- */
.empty-state__title { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.product-grid > li[hidden], .project-grid > li[hidden] { display: none; }
.catalog-tools .catalog-count { margin: 0; }

/* ---------- Fiches (produit, réalisation, article) ---------- */
.spec-rows { display: flex; flex-direction: column; }
.spec-row { display: grid; grid-template-columns: 38% 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-row__label { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.spec-row:has(.spec-row__value:empty) { display: none; }
.detail__body .wp-block-post-title { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; }
.detail__desc:empty, .detail__desc .wp-block-post-content:empty { display: none; }
.detail--project { margin-top: 20px; }
.project-tech h3 { color: #fff; font-size: 26px; margin-bottom: 14px; }
.project-tech p { color: #C6CEBC; margin-bottom: 14px; }
.article-hero .wp-block-post-title { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.02em; max-width: 980px; margin: 18px 0 22px; }
.article-hero .tags { margin-top: 6px; }
.article-cover img { width: 100%; height: 100% !important; object-fit: cover; }
.article-nav { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-body .wp-block-post-content > * + * { margin-top: 0; }
.wp-block-query-pagination { margin-top: 32px; gap: 12px; }

/* ---------- Contact ---------- */
.contact-line__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); }
.contact-line p { margin: 0; color: #fff; }
.contact-line a { color: #fff; text-decoration: none; }
.contact-line a:hover { color: var(--accent); }
.form-submit { width: 100%; min-height: 56px; font-size: 16px; border: 0; cursor: pointer; }
.form-privacy { margin-top: 12px; text-align: center; }
.choice--icon span { width: 64px; height: 56px; justify-content: center; padding: 0; }

/* ---------- Pied de page ---------- */
footer.wp-block-template-part { margin-top: 0; }
.site-footer .logo--footer img { filter: brightness(0) invert(1); height: 96px; width: auto; }
.footer-desc { margin-top: 18px; max-width: 340px; }
.footer-nav .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-nav .wp-block-navigation-item__content, .footer-links a { color: #E6EBDD; font-size: 15px; text-decoration: none; }
.footer-nav .wp-block-navigation-item__content:hover, .footer-links a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links .footer-title { margin-bottom: 8px; }
.footer-links p { color: #E6EBDD; }
.footer-wordmark::after { content: "."; color: var(--accent); }
.site-footer__bottom p { margin: 0; color: inherit; font-size: 12px; }
.footer-social { margin-top: 18px; gap: 10px; }
.wp-block-button.social > .wp-block-button__link {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent;
  color: #fff; font-size: 0; display: flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s;
}
.wp-block-button.social > .wp-block-button__link:hover { background: #fff; color: var(--on-white); }

/* Bouton WhatsApp flottant : caché au chargement, apparaît au défilement */
.fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.85);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.fab.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.wp-block-button.fab-wa > .wp-block-button__link {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink); font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 14px 30px -10px #0000006b;
}
.wp-block-button.fab-wa > .wp-block-button__link::before { width: 26px; height: 26px; }
.wp-block-button.fab-wa > .wp-block-button__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: fabRing 2.8s ease-out infinite; pointer-events: none; }
body.menu-open .fab { opacity: 0; visibility: hidden; }
@media (max-width: 640px) {
  .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wp-block-button.fab-wa > .wp-block-button__link { width: 56px; height: 56px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
}
