  /* ============================================================
     SAFEX — Maquette homepage haute fidélité
     Charte v3 « clair & simple » : Poppins, neutres gris francs,
     bleu profond (confiance) + vert SAFEX en accent des actions.
     ============================================================ */
  :root {
    --ink: #0F2D4A;        /* bleu profond — confiance, fonds sombres */
    --slate: #16406A;      /* bleu ardoise — surfaces sombres secondaires */
    --slate-line: #2E5680; /* traits sur fond sombre */
    --paper: #F4F5F6;      /* gris clair neutre — clarté */
    --card: #FFFFFF;
    --line: #E4E6E8;       /* bordures sur fond clair */
    --text: #242A31;
    --muted: #626D77;      /* texte secondaire — gris */
    --safety: #009245;     /* vert SAFEX (logo) — accent chaud, actions */
    --safety-deep: #007236;
    --ok: #1F8A5B;         /* vert conforme (sémantique, pas accent) */
    --radius: 4px;
    --radius-sm: 2px;      /* badges, tags, puces */
    --shadow-sm: 0 6px 16px rgba(22, 33, 43, 0.07);
    --shadow-md: 0 10px 26px rgba(22, 33, 43, 0.10);
    --shadow-lg: 0 16px 40px rgba(22, 33, 43, 0.06);
    --focus-ring: 0 0 0 4px rgba(0, 146, 69, 0.12);
    --gap: 22px;           /* écart de grille dominant (cards, pistes, listes) */
    --side-w: clamp(240px, 17vw, 280px); /* largeur fluide de la sidebar */
    --side-bg: #E7EAED;    /* gris moyen — fond sidebar/topbar (plus prononcé que --paper) */
    --side-line: #D4D9DE;  /* bordures sur fond sidebar */
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; scroll-padding-top: 24px; }

  body {
    background: var(--paper);
    color: var(--text);
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 16.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, .display {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.18;
    text-wrap: balance;
  }

  a { color: inherit; }

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

  button, input, select, textarea { font: inherit; color: inherit; }

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

  /* ---------- Utilitaires ---------- */
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 3.5vw, 40px); }

  /* Les enfants de grilles peuvent rétrécir sous leur min-content (tables larges…) */
  .detail-grid > *, .contact-grid > *, .safety-grid > *, .hero-split-grid > *,
  .grid-2 > *, .grid-3 > *, .process-steps > *, .projects > *, .bento > * { min-width: 0; }

  /* Lien d'évitement (accessibilité) — visible à la prise de focus */
  .skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--safety-deep);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: top 0.15s var(--ease-out);
  }
  .skip-link:focus-visible { top: 12px; }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .eyebrow::before {
    content: "";
    width: 26px;
    height: 4px;
    background: var(--safety);
    flex: none;
  }

  .section { padding: clamp(60px, 8vw, 96px) 0; }
  /* Utilités d'espacement — remplacent les styles inline des templates. */
  .section-flush { padding-top: 0; }
  .section-cta { margin-top: 32px; }
  .section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 52px); }
  .section-head h2 { font-size: clamp(28px, 3.4vw, 36px); margin-top: 14px; }
  .section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

  /* Bande de balisage chantier — signature graphique */
  .hazard {
    height: 8px;
    background: repeating-linear-gradient(
      -45deg,
      var(--safety) 0 14px,
      var(--ink) 14px 28px
    );
  }

  /* ---------- Boutons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--safety); color: #fff; }
  .btn-primary:hover { background: var(--safety-deep); }
  .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
  .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
  .btn-dark { background: var(--ink); color: #fff; }
  .btn-dark:hover { background: var(--slate); }

  .btn svg { width: 15px; height: 15px; }

  /* ---------- Sidebar SaaS : nav latérale fixe (gris clair) ---------- */
  header.side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--side-w);
    z-index: 60;
    background: var(--side-bg);
    border-right: 1px solid var(--side-line);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 18px 20px;
    overflow-y: auto;
  }
  .side-brand { padding: 0 6px; }
  .side-brand .logo-img { height: 68px; width: auto; display: block; }
  .side-tagline {
    display: block;
    margin-top: 10px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .side-menu { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .side-gap { margin-top: 14px; }
  /* marge négative latérale : le TEXTE des liens s'aligne sur l'axe du logo (18px),
     la boîte de hover/current déborde symétriquement de chaque côté */
  .side-menu a {
    display: block;
    margin: 0 -12px;
    padding: 11px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.15s, color 0.15s;
  }
  .side-menu a:hover { color: var(--ink); background: rgba(15, 45, 74, 0.08); }
  .side-menu a[aria-current="page"] {
    color: var(--safety-deep);
    background: rgba(0, 146, 69, 0.10);
    box-shadow: inset 3px 0 0 var(--safety);
  }
  .side-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px; }
  .side-sub a {
    margin: 0 -12px;
    padding: 8px 12px 8px 42px; /* 42 - 12 = retrait effectif de 30px sous le parent */
    font-size: 15.5px;
    color: var(--muted);
  }
  .side-sub a:hover { color: var(--ink); background: rgba(15, 45, 74, 0.07); }
  .side-sub a[aria-current="page"] {
    color: var(--safety-deep);
    background: transparent;
    box-shadow: none;
  }
  .side-foot {
    border-top: 1px solid var(--side-line);
    padding-top: 16px;
    display: grid;
    gap: 12px;
  }
  .side-foot .btn { width: 100%; }

  /* Le contenu et le footer s'alignent à droite de la sidebar */
  @media (min-width: 1021px) {
    body { padding-left: var(--side-w); }
    html { scroll-padding-top: 24px; }
  }

  /* Topbar mobile + drawer */
  .topbar { display: none; }
  .side-backdrop { display: none; }
  @media (max-width: 1020px) {
    body { padding-left: 0; padding-top: 64px; }
    .topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 64px;
      z-index: 55;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 0 16px;
      background: var(--side-bg);
      border-bottom: 1px solid var(--side-line);
    }
    .topbar .logo-img { height: 46px; width: auto; display: block; }
    .nav-toggle {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      background: none;
      border: 1px solid var(--side-line);
      border-radius: var(--radius);
      color: var(--ink);
      cursor: pointer;
    }
    header.side {
      width: min(300px, 84vw);
      transform: translateX(-102%);
      transition: transform 0.25s var(--ease-out);
      box-shadow: none;
    }
    header.side.open { transform: none; box-shadow: 24px 0 48px rgba(15, 23, 42, 0.4); }
    .side-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 58;
      background: rgba(15, 23, 42, 0.55);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s var(--ease-out);
    }
    .side-backdrop.visible { opacity: 1; pointer-events: auto; }
    html { scroll-padding-top: 84px; }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    /* Placeholder photo chantier — remplacer par image réelle */
    background:
      linear-gradient(115deg, rgba(15,45,74,0.55) 0%, rgba(15,45,74,0.25) 55%, rgba(15,45,74,0.75) 100%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 56px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 56px),
      linear-gradient(140deg, #1B4066 0%, #0F2D4A 60%, #16406A 100%);
  }
  .hero-bg .ph {
    position: absolute;
    right: 40px;
    bottom: 28px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
  }
  .hero-content {
    position: relative;
    padding: clamp(80px, 10vw, 128px) 0;
    max-width: 768px;
  }
  .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--safety);
  }
  .hero-kicker::before {
    content: "";
    width: 30px;
    height: 3px;
    background: var(--safety);
  }
  .hero h1 {
    font-size: clamp(34px, 4.8vw, 52px);
    margin-top: 20px;
    text-wrap: balance;
  }
  .hero h1 em { font-style: normal; color: var(--safety); }
  .hero-sub {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: #D7E0E8;
    max-width: 58ch;
  }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

  /* ---------- Bande réassurance ---------- */
  .trust {
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .trust-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    padding: 30px 0;
  }
  .trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 32px;
    border-left: 1px solid var(--line);
  }
  .trust-item:first-child { border-left: none; padding-left: 0; }
  .trust-badge {
    width: 52px;
    height: 52px;
    flex: none;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.15;
    color: var(--ink);
  }
  .trust-badge.ok { border-color: var(--ok); color: var(--ok); }
  .trust-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .trust-sub { font-size: 15px; color: var(--muted); line-height: 1.45; }

  /* ---------- Expertises ---------- */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 22px;
  }
  /* (bloc .expertise-card retiré — composant mort, remplacé par .bento) */

  /* ---------- Processus (clair, minimal) ---------- */
  .process { background: var(--paper); color: var(--ink); }
  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 22px;
    position: relative;
  }
  .process-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .process-step-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
  }
  .process-num {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #fff;
    background: var(--safety);
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
  }
  .process-step-top h3 { font-size: 20px; letter-spacing: 0; color: var(--ink); }
  .process-step p { font-size: 15.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
  .process-step .livrable {
    display: block;
    margin-top: auto; /* cale le bloc « Livrable » au bas de chaque étape */
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 13px;
    color: var(--muted);
  }
  .process-step .livrable strong {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--safety);
  }
  .process-arrow {
    position: absolute;
    top: 46px;
    right: -19px;
    color: var(--safety);
    width: 16px;
    height: 16px;
    z-index: 2;
  }

  /* ---------- Réalisations ---------- */
  .projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 22px; }
  .project-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  }
  .project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  /* Carte cliquable : le lien du titre couvre toute la carte ;
     le bouton « En savoir plus » passe au-dessus (z-index 2). */
  .project-link { color: inherit; text-decoration: none; }
  .project-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .project-card:has(.project-link) .project-photo img { transition: transform 0.5s var(--ease-out); }
  .project-card:hover .project-photo img,
  .project-card:focus-within .project-photo img { transform: scale(1.04); }
  .project-card:focus-within { border-color: var(--safety); }
  .project-body h3 a:not(.project-link) { color: inherit; text-decoration: none; }
  .project-photo {
    aspect-ratio: 16 / 9;
    position: relative;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 40px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 40px),
      linear-gradient(140deg, #1B4066 0%, #0F2D4A 70%);
  }
  .project-card:first-child .project-photo {
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 40px),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 40px),
      linear-gradient(140deg, #24507C 0%, #10304F 70%);
  }
  .project-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--safety);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
  }
  .project-body { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .project-body h3 { font-size: 24px; line-height: 1.3; }
  .project-meta { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
  .project-meta span { display: inline-flex; align-items: center; gap: 6px; }
  .project-meta svg { width: 14px; height: 14px; color: var(--safety-deep); }
  /* Bornage : le champ ACF realisation_texte est illimité — 4 lignes, le
     bouton « En savoir plus » donne l'accès au reste. */
  .projects .project-body p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ---------- Engagement sécurité (clair, minimal) ---------- */
  .safety-sec { background: var(--paper); color: var(--ink); }
  .safety-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .safety-sec .section-head { margin-bottom: 0; }
  /* Trois cadres alignés sur une même rangée (Sécurité, Transparence, métrique). */
  .safety-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  @media (max-width: 900px) {
    .safety-list { grid-template-columns: 1fr; }
  }
  .safety-item {
    display: flex;
    gap: 18px;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .safety-item svg { width: 34px; height: 34px; color: var(--safety); flex: none; margin-top: 2px; }
  .safety-item h3 { font-size: 20px; margin-bottom: 6px; color: var(--ink); }
  .safety-item p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }

  .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 22px; margin-top: 30px; }
  .metric {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .metric .val {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1;
    color: var(--safety);
    font-variant-numeric: tabular-nums;
  }
  .metric .lbl { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

  /* ---------- Contact ---------- */
  .contact-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; align-items: start; }
  .contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(26px, 3.5vw, 36px);
    box-shadow: var(--shadow-lg);
  }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .field { display: flex; flex-direction: column; gap: 7px; }
  .field.full { grid-column: 1 / -1; }
  .field label {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
  }
  .field label .req { color: var(--safety-deep); }
  .field input, .field select, .field textarea {
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 12px 14px;
    font-size: 15.5px;
    transition: border-color 0.15s;
    width: 100%;
  }
  .field textarea { min-height: 120px; resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
  }
  .field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6B7C' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
  }

  .upload-zone {
    grid-column: 1 / -1;
    border: 2px dashed #C4CFD9;
    border-radius: var(--radius);
    background: var(--paper);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }
  .upload-zone:hover, .upload-zone.dragover { border-color: var(--safety-deep); background: #FFF9EE; }
  .upload-zone svg { width: 34px; height: 34px; color: var(--muted); flex: none; }
  .upload-title { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
  .upload-sub { font-size: 13.5px; color: var(--muted); }

  .form-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .rgpd { font-size: 12.5px; color: var(--muted); max-width: 46ch; }
  .rgpd a { color: var(--ink); }

  .form-status {
    margin-top: 16px;
    border-radius: var(--radius);
    background: #EAF5EF;
    border: 1px solid #BFE0CE;
    color: var(--ok);
    padding: 14px 16px;
    font-size: 14.5px;
    display: none;
  }
  .form-status.show { display: block; }

  /* Coordonnées */
  .contact-aside {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .contact-aside h3 {
    font-size: 21px;
    color: #fff;
  }
  .aside-item { display: flex; gap: 14px; align-items: flex-start; }
  .aside-item svg { width: 20px; height: 20px; color: var(--safety); flex: none; margin-top: 3px; }
  .aside-item .k {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93A5B5;
  }
  .aside-item .v { font-size: 15px; color: #E7EDF2; line-height: 1.5; }
  .aside-guarantee {
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid var(--slate-line);
    font-size: 14px;
    color: #BCC9D4;
  }
  .aside-guarantee strong { color: var(--safety); font-weight: 600; }

  /* ---------- Footer ---------- */
  footer { background: var(--ink); color: #9FB0C0; }
  /* Logo footer : version blanche, petit format (le PNG couleur reste utilisé partout ailleurs) */
  .footer-brand .logo-img { height: 72px; width: auto; display: block; filter: brightness(0) invert(1); }
  .footer-top {
    display: grid;
    grid-template-columns: 2fr;
    gap: clamp(32px, 4vw, 44px);
    padding: clamp(48px, 6vw, 64px) 0 clamp(36px, 5vw, 48px);
  }
  @media (min-width: 640px) {
    .footer-top { grid-template-columns: 2fr 1fr 1fr; }
  }
  .footer-brand p { font-size: 15.5px; max-width: 38ch; margin-top: 16px; line-height: 1.65; }
  .footer-col h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-col a { text-decoration: none; font-size: 15.5px; color: #9FB0C0; transition: color 0.15s; }
  .footer-col a:hover { color: var(--safety); }
  .footer-bottom {
    border-top: 1px solid var(--slate-line);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14.5px;
  }
  .footer-bottom ul { display: flex; gap: 22px; list-style: none; }
  .footer-bottom a { text-decoration: none; color: #9FB0C0; }
  .footer-bottom a:hover { color: #fff; }

  /* ---------- Hero photo réelle ---------- */
  /* Option initiale : dégradé sombre posé SUR la photo (côté texte surtout),
     le texte reste directement sur l'image. Une ombre portée douce renforce
     la séparation texte/photo. */
  .page-hero-bg.photo {
    background:
      linear-gradient(100deg, rgba(15,45,74,0.80) 0%, rgba(15,45,74,0.50) 45%, rgba(15,45,74,0.28) 100%),
      url("photos/poste-controle-mesure.jpg") center 35% / cover no-repeat;
  }
  .page-hero-bg.photo ~ .page-hero-content {
    text-shadow: 0 1px 4px rgba(15, 45, 74, 0.85), 0 2px 18px rgba(15, 45, 74, 0.65);
  }
  /* Filtre allégé : le vert #009245 manque de contraste sur photo claire —
     vert clair réservé au contenu des hero de page (le reste du site ne bouge pas). */
  .page-hero .hero-kicker { color: #7FE3A1; }
  .page-hero h1 em { color: #7FE3A1; }

  /* ---------- Lien vers les autres expertises ---------- */
  .xp-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; margin-top: 24px; }
  .xp-link {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0 0 26px; text-decoration: none; overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }
  /* Photo du métier en tête de carte (même grammaire que .bento-card). */
  .xp-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate); }
  .xp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .xp-link h3, .xp-link p, .xp-go { margin-left: 24px; margin-right: 24px; }
  .xp-link h3 { margin-top: 18px; }
  .xp-link:hover { border-color: var(--safety); transform: translateY(-2px); }
  .xp-link h3 { font-size: 20px; line-height: 1.35; color: var(--ink); }
  .xp-link p { font-size: 15.5px; color: var(--muted); line-height: 1.6; flex: 1; }
  .xp-link .xp-go {
    font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14px;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--safety-deep);
  }

  /* ---------- Photos réelles dans les cartes projets ---------- */
  .project-photo { padding: 0; }
  .project-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---------- Grille 2 colonnes (4 expertises) ---------- */
  .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 22px; }

  /* ---------- Bande clients ---------- */
  .logos-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .logos-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 34px;
  }
  .logos-head h2 { font-size: clamp(24px, 3vw, 32px); }
  .logos-head p { color: var(--muted); font-size: 15px; }
  .logos-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
  }
  .logo-cell {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 88px;
    display: grid;
    place-items: center;
    padding: 14px 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .logo-cell:hover { border-color: #C4CFD9; box-shadow: var(--shadow-sm); }
  .logo-cell img {
    max-height: 48px;
    max-width: 100%;
    width: auto;
  }
  .logo-cell:hover img { transform: scale(1.04); transition: transform 0.2s var(--ease-out); }

  /* ---------- Tableau réglementaire / références ---------- */
  .reg-table {
    display: block;           /* scroll horizontal sur mobile au lieu de déborder */
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .reg-table th, .reg-table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px; /* aligné sur l'override expertise.css — un seul style */
    vertical-align: top;
  }
  .reg-table th {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--paper);
    color: var(--slate);
  }
  .reg-table tr:last-child td { border-bottom: none; }
  .reg-table td:first-child { font-weight: 600; color: var(--ink); }
  .reg-table .yes { color: var(--ok); font-weight: 600; }

  /* ---------- Responsive additions ---------- */
  @media (max-width: 1020px) {
    .logos-grid { grid-template-columns: repeat(4, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-split-grid { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 72px; }
    .hero-frame { aspect-ratio: 16 / 10; max-height: none; }
    .bento { gap: 18px; }
    .bento-main, .bento-wide { grid-column: 1 / -1; }
  }
  @media (max-width: 768px) {
    .logos-grid { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: 1fr; }
  }

  /* ============================================================
     MOTION SYSTEM — tokens, hero split, bento, marquee
     ============================================================ */
  :root {
    --dur-instant: 150ms;
    --dur-fast: 300ms;
    --dur-reveal: 650ms;
    --dur-hero: 1100ms;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-work: cubic-bezier(0.65, 0, 0.35, 1);
    --stagger: 70ms;
  }

  /* Bande hazard défilante — signature cinétique (hero/footer uniquement) */
  .hazard-marquee { animation: hazardSlide 14s linear infinite; }
  @keyframes hazardSlide {
    to { background-position: 39.6px 0; }
  }

  /* ---------- Hero « Confinement » (split asymétrique) ---------- */
  .hero-split-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: clamp(36px, 5vw, 56px);
    align-items: center;
    padding: clamp(64px, 8vw, 96px) 24px clamp(56px, 7vw, 88px);
  }
  .hero-copy .hero-sub { margin-top: 22px; }
  .hero-proof {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--slate-line);
  }
  .hero-proof .proof-val {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 44px;
    line-height: 1;
    color: var(--safety);
    font-variant-numeric: tabular-nums;
  }
  .hero-proof .proof-lbl { font-size: 14px; color: #9FB0C0; max-width: 34ch; line-height: 1.45; }

  .hero-visual { position: relative; }
  .hero-mask { clip-path: inset(0 0 0 0); } /* animé par GSAP (rideau), état final par défaut */
  .hero-frame {
    position: relative;
    aspect-ratio: 5 / 5.4;
    max-height: 560px;
    width: 100%;
    overflow: hidden;
    background: var(--slate);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), calc(100% - 56px) 100%, 0 100%);
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.9s var(--ease-out), transform 6s var(--ease-out);
  }
  .hero-slide.is-active { opacity: 1; transform: scale(1); }
  .hero-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--ink);
    color: #fff;
    padding: 16px 22px 18px;
    max-width: 85%;
    border-top: 3px solid var(--safety);
  }
  .hero-caption .cap-ref {
    display: block;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--safety);
  }
  .hero-caption .cap-title {
    display: block;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 3px;
  }
  .hero-caption .cap-owner { display: block; font-size: 12.5px; color: #9FB0C0; margin-top: 2px; }
  /* Lignes de titre masquées (reveal rideau) */
  .hero .line { display: block; overflow: hidden; }
  .hero .line-in { display: block; }

  /* ---------- Bento Expertises ---------- */
  /* Grille uniforme 2×2 : chaque carte a le même gabarit (photo 16/10 + texte),
     quel que soit le ratio source de la photo — cadrage homogène, lignes alignées. */
  .bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  /* Carte moderne « photo d'abord » : image pleine et nette dans son cadre,
     texte en dessous sur une surface claire (même grammaire que .news-card). */
  .bento-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  }
  .bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--safety);
    box-shadow: 0 16px 34px rgba(22, 33, 43, 0.09);
  }
  .bento-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate);
  }
  .bento-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
  }
  .bento-card:hover .bento-photo,
  .bento-card:focus-within .bento-photo { transform: scale(1.05); }
  .bento-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 26px;
    flex: 1;
  }
  .bento-tag {
    align-self: flex-start;
    background: var(--safety);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
  }
  .bento-card h3 { font-size: 24px; color: var(--ink); }
  .bento-card p { font-size: 15px; color: var(--muted); flex: 1; }
  .bento-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .bento-link::after { content: "→"; color: var(--safety); font-family: "Poppins", sans-serif; transition: transform 0.2s var(--ease-out); }
  .bento-card:hover .bento-link::after { transform: translateX(5px); }
  /* Cartes pleine largeur du bento (la première reçoit le tag AFNOR) :
     même ratio photo que les autres, simplement plus large. */
  .bento-main .bento-media, .bento-wide .bento-media { aspect-ratio: 16 / 10; }

  /* Mobile : photo entière (ratio naturel, aucun recadrage) */
  @media (max-width: 640px) {
    .bento { gap: 18px; }
    .bento-media { aspect-ratio: auto; }
    .bento-photo { position: static; width: 100%; height: auto; }
    .bento-card h3 { font-size: 21px; }
    .bento-body { padding: 18px 18px 22px; }
  }

  /* ============================================================
     PHASE 5 — Rail processus, marquee logos, slider avant/après,
     cartouches dépliables, transition de page
     ============================================================ */

  /* ---------- Rail de progression du processus ---------- */
  .process-rail {
    position: relative;
    height: 3px;
    background: var(--slate-line);
    margin-bottom: 44px;
    overflow: hidden;
  }
  .process-rail-in {
    position: absolute;
    inset: 0;
    background: var(--safety);
    transform-origin: left center;
    display: block;
  }

  /* ---------- Marquee logos clients ---------- */
  .logos-marquee {
    overflow: hidden;
    display: grid;
    gap: 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
  .logos-row {
    display: flex;
    width: max-content;
    animation: logosSlide 56s linear infinite;
  }
  .logos-row.rev { animation-duration: 64s; animation-direction: reverse; }
  .logos-marquee:hover .logos-row { animation-play-state: paused; }
  .logos-track {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0 12px 0 0;
  }
  .logos-track .logo-cell { flex: 0 0 auto; width: 200px; }
  @keyframes logosSlide { to { transform: translateX(-50%); } }

  /* ---------- Slider avant / après ---------- */
  .ba {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--slate);
    aspect-ratio: 16 / 7;
    max-height: 520px;
    width: 100%;
  }
  .ba:focus-within { outline: 3px solid var(--safety); outline-offset: -3px; }
  .ba img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .ba-top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
  .ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 2px;
    background: var(--safety);
    transform: translateX(-1px);
    pointer-events: none;
  }
  .ba-handle::after {
    content: "◂ ▸";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--safety);
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 9px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
  }
  .ba-label {
    position: absolute;
    bottom: 14px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(22, 33, 43, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    pointer-events: none;
  }
  .ba-label.left { left: 14px; }
  .ba-label.right { right: 14px; }

  /* ---------- Bouton « En savoir plus » des cartes réalisation ---------- */
  .project-more-btn {
    position: relative;
    z-index: 2; /* au-dessus de l'overlay project-link */
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 9px 16px;
    border: 1px solid var(--safety-deep);
    border-radius: var(--radius);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--safety-deep);
    text-decoration: none;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
  }
  .project-more-btn svg { transition: transform 0.2s var(--ease-out); }
  .project-more-btn:hover,
  .project-more-btn:focus-visible { background: var(--safety-deep); color: #fff; }
  .project-more-btn:hover svg,
  .project-more-btn:focus-visible svg { transform: translateX(3px); }

  /* ---------- Ruban crédibilité Monuments Historiques ---------- */
  .mh-ribbon {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 20px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--safety);
    border-radius: var(--radius);
  }
  .mh-ribbon svg { width: 34px; height: 34px; flex: none; color: var(--safety-deep); }
  .mh-ribbon p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 96ch; }
  .mh-ribbon strong { color: var(--ink); font-weight: 700; }
  @media (max-width: 768px) {
    .mh-ribbon { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 18px; }
    .mh-ribbon svg { width: 26px; height: 26px; }
    .mh-ribbon p { font-size: 14.5px; }
  }

  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion: reduce) {
    .hazard-marquee { animation: none; }
    .hero-slide { transition: none; transform: none; }
    .bento-photo { transition: none; }
    .logos-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .logos-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .logos-track { flex-wrap: wrap; justify-content: center; padding: 0; }
    .logos-track[aria-hidden="true"] { display: none; }
    .project-more-btn svg { transition: none; }
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
    .project-card:hover { transform: none; }
    a.mode-card:hover { transform: none; }
    .faq summary::after { transition: none; }
    .reg-table tbody tr { transition: none; }
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1020px) {
    .process-arrow { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    .hero-content { padding: 64px 0 72px; }
    .trust-inner { gap: 8px; }
    .trust-item { border-left: none; padding: 12px 0; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 26px 20px; }
    .ba { aspect-ratio: 4 / 3; }
    .logos-track .logo-cell { width: 168px; }
  }
  /* ---------- Responsive motion-system (réaffirmé après le bloc motion) ---------- */
  @media (max-width: 1020px) {
    .hero-split-grid { grid-template-columns: 1fr; gap: 40px; padding: 72px 24px; }
    .hero-frame { aspect-ratio: 16 / 10; max-height: none; }
    .bento { gap: 18px; }
    .bento-main, .bento-wide { grid-column: 1 / -1; }
  }
  @media (max-width: 768px) {
    .logo-sub { display: none; }
    .bento { grid-template-columns: 1fr; }
    .hero-caption { max-width: 100%; padding: 14px 16px 16px; }
  }

  /* ---------- Bandeau cookies (RGPD) ---------- */
  .cookie-banner {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 60;
    max-width: 620px;
    margin: 0 auto;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 18px 44px rgba(22, 33, 43, 0.35);
    border-radius: var(--radius);
    overflow: hidden;
    transform: translateY(0);
    transition: transform .35s ease, opacity .35s ease;
  }
  @media (min-width: 680px) { .cookie-banner { inset: auto 24px 24px; } }
  .cookie-banner[hidden] { display: none !important; }
  .cookie-hazard { height: 6px; background: repeating-linear-gradient(-45deg, var(--safety) 0 14px, var(--ink) 14px 28px); }
  .cookie-body { padding: 20px 22px 22px; }
  .cookie-body h2 { font-size: 20px; margin-bottom: 8px; }
  .cookie-body h2:focus { outline: none; } /* focus programmatique du bandeau */
  .cookie-body p { font-size: 14px; color: rgba(255,255,255,.78); max-width: 52ch; }
  .cookie-body a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
  .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
  .cookie-note { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.55); }
  @media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

  /* ---------- Icônes vectorielles animées (jeu SAFEX — safex_icon_svg) ----------
     Chaque tracé porte pathLength="1" : dasharray 1 = tracé complet au repos.
     Le tracé se dessine à l'apparition (motion.js ajoute .icons-in au reveal)
     puis se redessine au survol de la carte qui l'héberge. */
  .safex-icon path, .safex-icon rect, .safex-icon circle {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
  [data-reveal-group].icons-in .safex-icon path,
  [data-reveal-group].icons-in .safex-icon rect,
  [data-reveal].icons-in .safex-icon path,
  [data-reveal].icons-in .safex-icon rect,
  .mode-card:hover .safex-icon path,
  .mode-card:hover .safex-icon rect,
  .safety-item:hover .safex-icon path,
  .safety-item:hover .safex-icon rect,
  .safety-item:hover .safex-icon circle,
  .mh-ribbon:hover .safex-icon path {
    animation: safex-draw 0.9s var(--ease-out) both;
  }
  .safex-icon :nth-child(2) { animation-delay: 0.16s; }
  .safex-icon :nth-child(3) { animation-delay: 0.3s; }
  .safex-icon :nth-child(4) { animation-delay: 0.44s; }
  @keyframes safex-draw {
    from { stroke-dashoffset: 1; }
    to   { stroke-dashoffset: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .safex-icon path, .safex-icon rect, .safex-icon circle { animation: none !important; }
  }

/* ==== Carrousel continu des réalisations (accueil) ==== */
/* 4 cartes compactes façon « post LinkedIn » sur 6, défilement continu
   géré par assets/js/carousel.js : la 1re carte est repositionnée en fin
   de piste quand elle sort à gauche. */
.projects.car-viewport { display: block; overflow: hidden; padding: 4px 0; }
.projects.car-viewport .car-track { display: flex; gap: 22px; width: 100%; align-items: stretch; will-change: transform; }
/* 3 cartes par vue (2 interstices de 22px). */
.projects.car-viewport .car-track > .project-card { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.projects.car-viewport .project-photo { aspect-ratio: 16 / 10; }
/* Gabarit commun carrousel accueil / grille archive : cartes compactes
   façon « post LinkedIn ». */
.projects.car-viewport .project-body, .projects.projects-grid-3 .project-body { padding: 16px 18px 18px; gap: 7px; }
.projects.car-viewport .project-body h3, .projects.projects-grid-3 .project-body h3 { font-size: 17px; line-height: 1.4; }
.projects.car-viewport .project-meta, .projects.projects-grid-3 .project-meta { font-size: 13px; gap: 12px; }
.projects.car-viewport .project-body p, .projects.projects-grid-3 .project-body p {
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.projects.car-viewport .project-more-btn, .projects.projects-grid-3 .project-more-btn { font-size: 12px; padding: 7px 12px; gap: 6px; }
.projects.car-viewport .project-tag, .projects.projects-grid-3 .project-tag { top: 10px; left: 10px; font-size: 11px; padding: 3px 8px; }
.projects.projects-grid-3 .project-photo { aspect-ratio: 16 / 10; }
/* Archive /realisations/ : 3 cartes compactes par rangée, même gabarit
   que le carrousel de l'accueil. */
.projects.projects-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .projects.projects-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .projects.projects-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .projects.car-viewport .car-track > .project-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 640px) {
  .projects.car-viewport .car-track > .project-card { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  /* Pas d'animation : la piste devient un rail scrollable à la main. */
  .projects.car-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
  .projects.car-viewport .car-track { transform: none !important; }
  .projects.car-viewport .car-track > .project-card { scroll-snap-align: start; }
}

/* ================= Actualité (accueil — miroir LinkedIn) ================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(22, 33, 43, 0.09); border-color: var(--safety); }
.news-photo { display: block; }
/* height:auto neutralise l'attribut height du thumbnail WP qui écraserait le ratio. */
.news-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.news-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-date { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--safety); font-weight: 600; }
.news-card h3 { font-size: 20px; line-height: 1.35; margin: 0; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--ink); }
/* Bornage : l'extrait d'actualité est borné à 3 lignes — le lien donne l'accès au post complet. */
.news-card p {
  color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink); font-weight: 600; font-size: 14px;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none;
}
.news-more:hover { color: var(--primary); text-decoration: none; }
@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* Hero de page : hauteur minimale 600 px (toutes les pages sauf l'accueil) */
.page-hero {
  min-height: 600px;
}
