/* ALC BOIS — theme.css (child override) */

/* === FONTS — self-hostées, latin + latin-ext === */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-700-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-500-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-500-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/jost-700-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/jost-700-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Zalando Sans SemiExpanded — police titre RÉELLE de la maquette (variable, axe wght 400→700),
   self-hostée depuis Google Fonts. Remplace la substitution Barlow → fidélité typo restaurée. */
@font-face {
  font-family: "Zalando Sans SemiExpanded";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/zalando-semiexp-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Zalando Sans SemiExpanded";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/zalando-semiexp-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === TOKENS === */
:root {
  /* Colors */
  --ab-color-primary: #034d7c;
  --ab-color-primary-soft: rgba(3, 77, 124, 0.7);
  --ab-color-primary-hover: #023a5e;
  --ab-color-secondary: #f4c542;
  --ab-color-light: #f4f4f4;
  --ab-color-surface: #dedddd; /* fond gris des sections claires (cartes restent #f4f4f4) */
  --ab-color-dark: #010d15;
  --ab-color-white-netdev: #fbfbfa;
  --ab-color-overlay-hero: rgba(2, 34, 55, 0.4);
  --ab-color-overlay-section: rgba(20, 19, 19, 0.1);
  --ab-color-overlay-strong: rgba(20, 19, 19, 0.6);

  /* Typography — police titre réelle Zalando Sans SemiExpanded (fallback Barlow si non chargée) */
  --ab-font-title:
    "Zalando Sans SemiExpanded", "Barlow", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --ab-font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ab-font-author: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ab-fs-small: 14px;
  --ab-fs-body: 16px;
  --ab-fs-callout: 20px;
  --ab-fs-h3: 32px;
  --ab-fs-h2: 44px;
  --ab-fs-h1: 52px;
  --ab-lh-normal: 1.2;

  /* Spacing */
  --ab-space-xs: 10px;
  --ab-space-s: 20px;
  --ab-space-m: 40px;
  --ab-space-l: 60px;
  --ab-space-xl: 100px;

  /* Radius */
  --ab-radius-s: 4px;
  --ab-radius-m: 6px;
  --ab-radius-l: 10px;

  /* Layout — largeur frame Figma desktop */
  --ab-container-max: 1512px;
  --ab-container-pad-x: clamp(20px, 4vw, 60px);

  /* Header fixe flottant — offset + hauteur de barre (sert au dégagement du contenu) */
  --ab-header-nav-max: 1392px; /* largeur barre nav Figma (1512 - 2*60) */
  --ab-header-offset: 28px; /* respiration entre le haut du viewport et la barre */
  --ab-header-bar-h: 70px; /* hauteur barre Figma */
  --ab-header-h: calc(
    var(--ab-header-offset) + var(--ab-header-bar-h)
  ); /* ≈ 98px */
}

/* === RESET PARENT OVERFLOW (LEARNINGS) ===
   Parent net dev-theme-gutenberg force `html,body { overflow-x: clip !important; }` ET
   `body { overflow: clip !important; }`. La 2e règle empêche document.body.scrollHeight
   de remonter la hauteur réelle → Puppeteer fullPage capture seulement le viewport. */
html,
body {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
body {
  overflow: visible !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* === RESET / BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--ab-font-body);
  font-size: var(--ab-fs-body);
  line-height: var(--ab-lh-normal);
  color: var(--ab-color-primary);
  background: var(--ab-color-surface);
}
img,
svg,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--ab-font-title);
  font-weight: 600;
  color: var(--ab-color-primary);
  line-height: var(--ab-lh-normal);
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
strong {
  font-weight: 700 !important;
}
a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
a:hover,
a:focus-visible {
  color: var(--ab-color-primary-hover);
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ab-color-secondary);
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* === MAIN page wrapper === */
#page-content {
  display: block;
  width: 100%;
}

/* Le header fixe flotte par-dessus le 1er hero (plein écran) : aucune bande blanche en haut.
   Chaque hero (home / page--full / page--short) gère lui-même le dégagement du header. */

/* === CONTAINER ===
   Pas de max-width : la largeur est gérée par le padding latéral (demande client).
   Le contenu occupe toute la largeur du viewport moins les gouttières. */
.ab-container {
  width: 100%;
  padding-inline: var(--ab-container-pad-x);
}
.ab-section {
  width: 100%;
  padding-block: var(--ab-space-xl);
}
.ab-section--tight {
  padding-block: var(--ab-space-m);
}
.ab-section--primary {
  background: var(--ab-color-primary);
  color: var(--ab-color-light);
}
.ab-section--primary h1,
.ab-section--primary h2,
.ab-section--primary h3 {
  color: var(--ab-color-light);
}
.ab-section--dark {
  background: var(--ab-color-dark);
  color: var(--ab-color-light);
}
.ab-section--dark h1,
.ab-section--dark h2,
.ab-section--dark h3 {
  color: var(--ab-color-light);
}

/* === HEADINGS — tailles Figma === */
.ab-h1 {
  font-size: var(--ab-fs-h1);
  font-weight: 600;
}
.ab-h2 {
  font-size: var(--ab-fs-h2);
  font-weight: 600;
}
.ab-h3 {
  font-size: var(--ab-fs-h3);
  font-weight: 500;
}
.ab-callout {
  font-size: var(--ab-fs-callout);
  font-weight: 600;
  font-family: var(--ab-font-title);
}

/* === BUTTON / CTA primary (orange/yellow circle + label) ===
   Hover (Figma 4021-3996 / 4021-4012) : un fond arrondi apparaît, le carré flèche glisse de
   GAUCHE à DROITE pendant que le label glisse en sens inverse. La flèche est en position
   ABSOLUE → sa translation s'anime (un simple swap d'`order` flex ne s'animerait pas) ; le label
   suit via l'animation du padding. Le padding total reste constant → largeur du bouton stable
   (100% fiable), aucun reflow. Les dimensions passent par --ab-btn-arrow/--ab-btn-gap pour que
   la barre compacte (40px) hérite automatiquement de la bonne géométrie. */
.ab-btn {
  --ab-btn-arrow: 50px;
  --ab-btn-gap: var(--ab-space-s);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--ab-btn-arrow);
  width: fit-content;
  padding: 0 var(--ab-btn-gap) 0 calc(var(--ab-btn-arrow) + var(--ab-btn-gap));
  border-radius: var(--ab-radius-m);
  font-family: var(--ab-font-title);
  font-weight: 500;
  font-size: var(--ab-fs-body);
  color: var(--ab-color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    padding 0.4s ease,
    color 0.25s ease;
}
.ab-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  flex: 0 0 var(--ab-btn-arrow);
  width: var(--ab-btn-arrow);
  height: var(--ab-btn-arrow);
  background-image: url("../img/btn-circle-arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: left 0.4s ease;
}
.ab-btn:hover,
.ab-btn:focus-visible {
  background: var(--ab-color-overlay-section); /* rgba(20,19,19,0.1) */
  padding: 0 calc(var(--ab-btn-arrow) + var(--ab-btn-gap)) 0 var(--ab-btn-gap);
}
.ab-btn:hover::before,
.ab-btn:focus-visible::before {
  left: calc(100% - var(--ab-btn-arrow));
}
.ab-btn--light {
  color: var(--ab-color-light);
}
.ab-btn--light:hover,
.ab-btn--light:focus-visible {
  background: var(--ab-color-overlay-strong);
  color: var(--ab-color-light);
}

/* === BUTTON style B (contenu) — label dans un bloc arrondi + carré flèche à DROITE (fixe) ===
   Figma node 2206-360 : clair (fond gris, label bleu) / sombre (fond charbon, label blanc).
   Pas de swap animé : la flèche reste en flux normal à droite (on neutralise l'absolu de base). */
.ab-btn--box {
  gap: 0;
  min-height: 50px;
  padding: 0 0 0 var(--ab-space-s);
  background: #d9d9d9;
  border-radius: var(--ab-radius-m);
  color: var(--ab-color-primary);
  overflow: hidden;
}
.ab-btn--box::before {
  position: static;
  order: 2;
  transform: none;
  margin-left: var(--ab-space-s);
  border-radius: 0;
}
.ab-btn--box:hover,
.ab-btn--box:focus-visible {
  background: #d9d9d9;
  padding: 0 0 0 var(--ab-space-s);
}
.ab-btn--box:hover::before,
.ab-btn--box:focus-visible::before {
  left: auto;
}
.ab-btn--box > span,
.ab-btn--box {
  line-height: 50px;
}
.ab-btn--box.ab-btn--dark {
  background: #5f5f5f;
  color: var(--ab-color-light);
}
.ab-btn--box.ab-btn--dark:hover,
.ab-btn--box.ab-btn--dark:focus-visible {
  background: #5f5f5f;
}

/* === Hover global === */
.ab-link:hover,
.ab-link:focus-visible {
  color: var(--ab-color-secondary);
}

/* === ACCESSIBLE checkmarks for done list === */
.ab-check-list {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}
.ab-check-list__item {
  display: flex;
  gap: var(--ab-space-xs);
  align-items: flex-start;
}
.ab-check-list__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-image: url("../img/icon-check.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 20px;
}

/* === Cards === */
.ab-card {
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-l);
  padding: var(--ab-space-m);
  color: var(--ab-color-primary);
}

/* ===========================================================================
   TOP BAR (logos + contacts + social) — visible only on home (Figma desktop)
   ========================================================================== */
.ab-top-bar {
  background: var(--ab-color-primary);
  color: var(--ab-color-light);
  padding: var(--ab-space-m);
}
.ab-top-bar__inner {
  width: 100%;
  max-width: var(--ab-container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ab-space-m);
}
.ab-top-bar__logo-zone {
  width: 373px;
  flex-shrink: 0;
}
.ab-top-bar__logo {
  display: block;
}
.ab-top-bar__logo img {
  width: 373px;
  height: auto;
  max-height: 139px;
}
.ab-top-bar__contacts,
.ab-top-bar__social {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
  width: 338px;
}
.ab-top-bar__contacts li,
.ab-top-bar__social li {
  display: flex;
  gap: var(--ab-space-s);
  align-items: flex-start;
  font-size: var(--ab-fs-body);
}
.ab-top-bar__contacts li img,
.ab-top-bar__social li img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.ab-top-bar__contacts address {
  font-style: normal;
}
.ab-top-bar__partners {
  display: flex;
  gap: var(--ab-space-m);
  align-items: center;
}
.ab-top-bar__partners img {
  height: 187px;
  width: auto;
}

/* Sur les pages internes, on cache la barre top bar : pas dans Figma */
body:not(.home):not(.page-id-23) .ab-top-bar {
  display: none;
}

/* ===========================================================================
   HEADER / MAIN NAV — barre FIXE flottante (presque pleine largeur) au-dessus du hero
   ========================================================================== */
.ab-header {
  position: fixed;
  top: var(--ab-header-offset);
  left: 0;
  right: 0;
  z-index: 1000;
  padding-inline: clamp(16px, 4vw, 60px);
  pointer-events: none; /* laisse cliquer le hero dans les gouttières ; les enfants réactivent */
}
.ab-header__inner {
  pointer-events: auto;
  width: 100%;
  min-height: var(--ab-header-bar-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ab-space-m);
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-m);
  padding: var(--ab-space-xs) var(--ab-space-s);
  box-shadow: 0 2px 14px rgba(1, 13, 21, 0.08);
  transition: box-shadow 0.3s ease;
}
html[data-scroll="1"] .ab-header__inner {
  box-shadow: 0 8px 28px rgba(1, 13, 21, 0.16);
}
.ab-header__logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
}
.ab-header__logo img {
  width: 134px;
  height: 50px;
}

/* Nav desktop : items alignés à droite, juste avant les actions */
.ab-main-nav {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.ab-main-nav__scroll {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}
.ab-menu {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-evenly;
  gap: clamp(14px, 1.6vw, 28px);
}
.ab-menu__item {
  position: relative;
  display: flex;
}
.ab-menu__link {
  font-family: var(--ab-font-title);
  font-weight: 500;
  font-size: var(--ab-fs-body);
  color: var(--ab-color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.ab-menu__item.is-active > .ab-menu__link {
  color: #5f5f5f;
}
.ab-menu__link:hover,
.ab-menu__link:focus-visible {
  color: #5f5f5f;
}
/* Chevron en masque CSS coloré par background-color:currentColor → il suit exactement la couleur
   du titre (défaut, hover, actif, ouvert) sans règle dédiée. mask alpha (SVG = tracé opaque sur
   fond transparent). aspect-ratio 11/7 = ratio natif du chevron. */
.ab-menu__chevron {
  width: 11px;
  aspect-ratio: 11 / 7;
  background-color: currentColor;
  -webkit-mask: url("../img/icon-chevron-down.svg") center / contain no-repeat;
  mask: url("../img/icon-chevron-down.svg") center / contain no-repeat;
  transition:
    transform 0.25s ease,
    background-color 0.2s ease;
}

.ab-menu__item.has-children
  > .ab-menu__link[aria-expanded="true"]
  .ab-menu__chevron {
  transform: rotate(180deg);
}
.ab-submenu {
  position: absolute;
  top: calc(100% + 34px);
  left: 0;
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-m);
  padding: var(--ab-space-s);
  min-width: 230px;
  box-shadow: 0 10px 30px rgba(1, 13, 21, 0.16);
  z-index: 100;
  /* Animation d'ouverture desktop : fade + glissé vers le bas. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}
.ab-submenu[data-open="1"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.ab-submenu__item + .ab-submenu__item {
  margin-top: 14px;
}
.ab-submenu__link {
  font-family: var(--ab-font-title);
  font-weight: 500;
  font-size: var(--ab-fs-body);
  color: var(--ab-color-primary);
  display: block;
  transition: color 0.2s ease;
}
/* Hover identique aux items de menu : simple changement de couleur, pas de soulignement. */
.ab-submenu__link:hover,
.ab-submenu__link:focus-visible {
  color: #5f5f5f;
}
/* Page courante dans le sous-menu : même style que sur la nav principale → texte gris. */
.ab-submenu__link.is-active {
  color: #5f5f5f;
}

/* Actions : bouton « Menu » (mobile) + CTA « Contact » */
.ab-header__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--ab-space-s);
}
.ab-header__contact {
  white-space: nowrap;
}
.ab-header__toggle {
  display: none;
} /* affiché < 1024px */
/* CTA Contact dans l'overlay : masqué par défaut, affiché seulement < 640px (cf. media query) */
.ab-nav__contact {
  display: none;
}

/* Verrou de scroll (menu ouvert) — overflow:hidden posé en inline !important par theme.js
   (le parent force body{overflow-y:visible!important}). Ici on compense uniquement la largeur
   de la scrollbar pour éviter tout saut de layout. macOS (overlay scrollbars) → --ab-sbw=0px. */
body.ab-scroll-lock {
  padding-right: var(--ab-sbw, 0px);
}
body.ab-scroll-lock .ab-header {
  padding-right: calc(clamp(16px, 4vw, 60px) + var(--ab-sbw, 0px));
}

/* ===========================================================================
   HERO — photo plein écran (cover) + overlay ; flex : contenu gauche / aside droite
   (flex → les deux colonnes ne se chevauchent jamais)
   ========================================================================== */
.ab-hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* fallback navigateurs sans svh */
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  color: var(--ab-color-light);
  overflow: hidden;
}
.ab-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* Overlay sombre du hero (contraste du texte blanc). NB : la div .ab-hero__overlay a été retirée
   du markup home — règle conservée pour un éventuel ré-ajout, sans flou (plus de backdrop-filter). */
.ab-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--ab-color-overlay-hero);
  z-index: 1;
  transition: background 0.4s ease;
}
.ab-hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--ab-space-m);
  padding: calc(var(--ab-header-h) + var(--ab-space-m)) var(--ab-space-l)
    var(--ab-space-l);
  max-width: 1119px;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.ab-hero__title {
  color: var(--ab-color-light);
  max-width: 1039px;
}
.ab-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ab-space-s);
  align-items: center;
}
.ab-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--ab-font-title);
  font-weight: 500;
  font-size: var(--ab-fs-body);
  color: var(--ab-color-light);
}
.ab-chip img {
  width: 50px;
  height: 34px;
  margin-right: -30px;
}
.ab-chip span {
  padding-left: 0;
}
.ab-hero__aside {
  position: relative;
  z-index: 2;
  flex: 0 0 394px;
  background: var(--ab-color-primary-soft);
  color: var(--ab-color-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--ab-space-s);
  padding: calc(var(--ab-header-h) + var(--ab-space-m)) var(--ab-space-m)
    var(--ab-space-m);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.ab-hero__aside p {
  color: var(--ab-color-light);
}

/* Menu mobile ouvert : le contenu du hero s'efface (sinon il passe au-dessus du panneau nav,
   z-index supérieur). Le panneau bleu plein écran sert d'overlay — plus de filtre flou ni de
   div overlay dédiée (retirée du markup). */
body.ab-nav-open .ab-hero__content,
body.ab-nav-open .ab-hero__aside {
  opacity: 0;
  visibility: hidden;
}

/* ===========================================================================
   ABOUT — split layout : title + para + photo / 4 stat cards
   ========================================================================== */
.ab-about {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ab-space-m);
  /* Colonne gauche = titre+sous-titre puis photo ; colonne droite = cartes. align-items:end +
     ratio identique sur les cartes → le haut des cartes s'aligne sur le haut de la photo (cf. Figma). */
  align-items: end;
}
.ab-about__col-left {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-about__head {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-about__photo {
  width: 100%;
  aspect-ratio: 686 / 457;
  max-height: 650px;
  border-radius: var(--ab-radius-l);
  overflow: hidden;
}
.ab-about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--ab-space-s);
  /* Même ratio que la photo (mêmes largeurs de colonne) → cartes de même hauteur, haut aligné. */
  aspect-ratio: 686 / 457;
}
.ab-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--ab-space-s);
  text-align: center;
  min-width: 0;
}
.ab-stat-card .ab-callout {
  color: var(--ab-color-primary);
}

/* H2 with arrow vector behind */
.ab-h2--arrow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.ab-h2__arrow {
  width: 72px;
  height: 48px;
  margin-right: -40px;
  flex-shrink: 0;
}
.ab-h2--light {
  color: var(--ab-color-light);
}

/* ===========================================================================
   CONCEPTION — primary blue section, photo+path on left, checklist on right
   ========================================================================== */
.ab-conception {
  color: var(--ab-color-light);
}
/* Titre dans un conteneur séparé, au-dessus de la ligne photo/checklist (cf. about). */
.ab-conception__head {
  margin-top: var(--ab-space-m);
  max-width: 50%; /* le titre ne dépasse pas la moitié de la largeur (100% ≤1024) */
}
.ab-conception__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* colonne gauche = moitié de la largeur du conteneur */
  gap: 145px; /* écart image/texte (desktop), ramené à --ab-space-m ≤1024 */
  align-items: center; /* la colonne texte droite est centrée verticalement par rapport à l'image */
  margin-top: var(--ab-space-m);
}
.ab-conception__col-left {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-conception__photo {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
}
.ab-conception__photo img {
  width: 100%;
  aspect-ratio: 804 / 470;
  max-height: 650px;
  object-fit: cover;
  border-radius: var(--ab-radius-l);
  display: block;
}
/* Bloc d'étapes : ruban jaune DROIT, posé en haut à droite de l'image (repositionnable). */
.ab-conception__steps {
  position: absolute;
  top: 40px;
  right: -20px;
  display: inline-flex;
  align-items: center;
  gap: var(--ab-space-m);
  background: var(--ab-color-secondary);
  border-radius: var(--ab-radius-m);
  padding: 14px 22px;
  box-shadow: 0 6px 18px rgba(1, 13, 21, 0.18);
  max-width: calc(100% - 40px);
  flex-wrap: wrap;
  transform: rotate(16deg);
}
.ab-conception__step {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ab-font-title);
  font-weight: 500;
  font-size: var(--ab-fs-body);
  color: var(--ab-color-primary);
  white-space: nowrap;
}
.ab-conception__step > img {
  position: absolute;
  z-index: -1;
  left: -16px;
  transform: rotate(-14deg);
  width: 38px;
  height: auto;
}
.ab-conception__step > span {
  color: var(--ab-color-primary);
}
.ab-conception__col-right {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
  color: var(--ab-color-light);
}
.ab-conception__col-right p {
  color: var(--ab-color-light);
}
.ab-conception__col-right .ab-check-list {
  gap: var(--ab-space-s);
}

/* ===========================================================================
   ETUDE — bg photo with white card
   ========================================================================== */
.ab-etude {
  position: relative;
  padding: var(--ab-space-xl) 0;
  display: flex;
  align-items: center;
  min-height: 820px;
}
.ab-etude__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* Fond en slider (fondu) : la frame du Swiper remplit la zone de fond, slides en cover. */
.ab-etude__bg--slider .ab-ps-swiper {
  position: absolute;
  inset: 0;
}
.ab-etude__bg--slider .swiper,
.ab-etude__bg--slider .swiper-wrapper,
.ab-etude__bg--slider .swiper-slide {
  height: 100%;
}
.ab-etude__bg--slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ab-etude__inner {
  position: relative;
  z-index: 2;
  display: flex;
}
.ab-etude__inner--left {
  justify-content: flex-start;
}
.ab-etude__inner--right {
  justify-content: flex-end;
}
.ab-etude__card {
  width: var(--ab-etude-card-w, 451px);
  max-width: 100%;
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-l);
  padding: var(--ab-space-m);
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-etude__card--wide {
  --ab-etude-card-w: 804px;
}
.ab-etude__body {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}

/* ===========================================================================
   DUO — 2 colonnes (titre + texte + image en bas), cf. Figma 4021:6272
   ========================================================================== */
.ab-duo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 131px);
  align-items: stretch;
}
.ab-duo__col {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-duo__body {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}
.ab-duo__media {
  margin-top: auto;
  width: 100%;
}
/* Colonne de gauche : la photo suit directement le texte (pas de marge auto qui la pousse en bas). */
.ab-duo__col:first-child .ab-duo__media {
  margin-top: 0;
}
.ab-duo__media img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ab-duo-ratio, auto);
  object-fit: cover;
  border-radius: var(--ab-radius-l);
  display: block;
}
@media (max-width: 1024px) {
  .ab-etude {
    min-height: auto;
  }
  .ab-duo__grid {
    grid-template-columns: 1fr;
  }
  .ab-duo__media {
    margin-top: 0;
  }
}

/* ===========================================================================
   SERVICES — 6 cards 2x3
   ========================================================================== */
.ab-services {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ab-space-m);
  align-items: center;
  margin-bottom: var(--ab-space-m);
}
.ab-services__head .ab-h2 {
  max-width: 683px;
}
.ab-services__lead {
  max-width: 566px;
  justify-self: center;
}
.ab-services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ab-space-s);
}
.ab-service-card {
  display: flex;
  gap: var(--ab-space-m);
  padding: 10px 40px 10px 10px;
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-l);
  min-height: 329px;
}
.ab-service-card__img {
  position: relative; /* ancre le carrousel en position absolue */
  flex: 0 0 43%;
  align-self: stretch;
  min-height: 309px;
  max-height: 650px;
  overflow: hidden;
}
.ab-service-card__img img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 309px;
  max-height: 650px;
  border-radius: var(--ab-radius-l);
}
/* Carrousel d'images (cartes charpente + carport) : remplit la zone image, fondu, flèches site.
   En position absolue (inset:0) → la taille vient du parent, pas du contenu Swiper, ce qui évite
   le blow-up de largeur en colonne flex (mobile). */
.ab-service-card__img .ab-service-swiper {
  position: absolute;
  inset: 0;
}
.ab-service-card__img .swiper,
.ab-service-card__img .swiper-wrapper,
.ab-service-card__img .swiper-slide {
  height: 100%;
}
.ab-service-swiper__nav {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.ab-service-swiper__btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: var(--ab-radius-m);
  background: url("../img/btn-circle-arrow.svg") center / contain no-repeat;
  box-shadow: 0 2px 8px rgba(1, 13, 21, 0.25);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.ab-service-swiper__btn--prev {
  transform: scaleX(-1);
}
.ab-service-swiper__btn:hover,
.ab-service-swiper__btn:focus-visible {
  opacity: 0.82;
}
.ab-service-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
  justify-content: center;
}
.ab-service-card__title {
  color: var(--ab-color-primary);
}

/* ===========================================================================
   CAPABLE — split layout : text + button / big illu
   ========================================================================== */
.ab-capable {
  position: relative;
  color: var(--ab-color-light);
  padding-block: 0; /* l'illustration de droite touche le haut et le bas de la section */
  overflow: hidden;
}
.ab-capable__col-left {
  position: relative;
  z-index: 2;
  max-width: max(685px, 60%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--ab-space-m);
  padding-block: var(
    --ab-space-xl
  ); /* le texte garde sa respiration verticale */
}
.ab-capable__body {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}
.ab-capable__body p {
  color: var(--ab-color-light);
}
.ab-capable__col-right {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}
.ab-capable__col-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

/* ===========================================================================
   INSTAGRAM placeholder
   ========================================================================== */
.ab-instagram {
  background: var(--ab-color-surface);
  padding-bottom: 0;
}
.ab-avis__widget {
  margin-top: var(--ab-space-m);
}

/* ===========================================================================
   AVIS carousel (Swiper)
   ========================================================================== */
.ab-avis {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-avis__carousel {
  margin-top: var(--ab-space-m);
  padding-bottom: 40px;
  position: relative;
}
.ab-avis-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--ab-space-s);
  min-height: 322px;
  height: auto;
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-m);
  color: var(--ab-color-dark);
}
.ab-avis-card__text p {
  color: var(--ab-color-dark);
  margin-bottom: 0.5em;
}
.ab-avis-card__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
}
.ab-avis-card__author {
  font-family: var(--ab-font-author);
  font-weight: 700;
  font-size: var(--ab-fs-body);
  color: var(--ab-color-dark);
}
.ab-avis-card__stars {
  display: flex;
  gap: 3px;
}
.ab-avis-card__stars img {
  width: 16px;
  height: 16px;
}
.ab-sr-only {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ab-avis-nav {
  text-align: center;
}
.ab-avis-nav .swiper-pagination-bullet {
  background: var(--ab-color-primary);
}

/* ===========================================================================
   RECRUTEMENT BAND (footer.php — light gray bg with deco V on each side)
   ========================================================================== */
.ab-recrut-band {
  position: relative;
  /* Fond = overlay 10% noir (Figma 4021-3907 : rgba(20,19,19,0.1)), pas le gris surface plein. */
  background: var(--ab-color-overlay-section);
  padding-inline: clamp(20px, 4vw, 60px);
  overflow: hidden;
}
.ab-recrut-band__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-block: var(--ab-space-m);
}
/* Pictos déco : collés aux bords gauche/droite, MÊME orientation (Figma : pas de miroir). */
.ab-recrut-band__deco {
  position: absolute;
  top: 0;
  z-index: 0;
  width: clamp(110px, 22vw, 319px);
  pointer-events: none;
  height: 100%;
  aspect-ratio: 319/259;
  width: auto;
}
.ab-recrut-band__deco--left {
  left: 0;
}
.ab-recrut-band__deco--right {
  right: 0;
}
.ab-recrut-band__deco img {
  width: 100%;
  height: auto;
}
.ab-recrut-band__content {
  max-width: 684px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ab-space-s);
  text-align: center;
  color: var(--ab-color-dark);
}
.ab-recrut-band__title {
  font-family: var(--ab-font-title);
  font-weight: 600;
  font-size: var(--ab-fs-callout);
  color: var(--ab-color-dark);
}
.ab-recrut-band__text {
  color: var(--ab-color-dark);
}

/* ===========================================================================
   FOOTER (main)
   ========================================================================== */
.ab-footer {
  background: var(--ab-color-primary);
  color: var(--ab-color-light);
  padding: var(--ab-space-m);
  border-bottom: 1px solid var(--ab-color-light);
}
.ab-footer__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ab-space-m);
}
/* Hover sur les logos cliquables uniquement (logo du site + partenaires avec lien). */
.ab-footer__logo,
.ab-footer__partners a,
.ab-header__logo {
  display: inline-flex;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.ab-footer__logo:hover,
.ab-footer__logo:focus-visible,
.ab-footer__partners a:hover,
.ab-footer__partners a:focus-visible,
.ab-header__logo:hover,
.ab-header__logo:focus-visible {
  opacity: 0.82;
  transform: translateY(-2px);
}
.ab-footer__logo img {
  width: 373px;
  height: auto;
  max-height: 139px;
}
.ab-footer__contacts,
.ab-footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}
.ab-footer__contacts li,
.ab-footer__social li {
  display: flex;
  gap: var(--ab-space-s);
  align-items: flex-start;
}
.ab-footer__contacts li img,
.ab-footer__social li img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.ab-footer__contacts address {
  font-style: normal;
}
.ab-footer__partners {
  display: flex;
  gap: var(--ab-space-m);
  align-items: center;
}
.ab-footer__partners img,
.ab-footer__partners a {
  width: 100%;
  max-width: 153px;
}

/* ===========================================================================
   PAGE HERO (secondary pages)
   ========================================================================== */
.ab-page-hero {
  position: relative;
  padding-block: var(--ab-space-xl);
  color: var(--ab-color-light);
  overflow: hidden;
}
.ab-page-hero--short {
  background: var(--ab-color-primary);
  color: var(--ab-color-light);
  padding-block: calc(var(--ab-header-h) + var(--ab-space-xl))
    var(--ab-space-xl);
}
.ab-page-hero--full {
  min-height: 100vh;
  min-height: 100svh;
  /* Pas de padding vertical de section : l'aside bleu prend toute la hauteur du hero
     (le contenu et l'aside gèrent leur propre padding interne). */
  padding-block: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
/* Variante full : titre à gauche + aside bleu transparent à droite (corps en bas) — comme l'accueil. */
.ab-page-hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--ab-space-m);
  padding: calc(var(--ab-header-h) + var(--ab-space-m)) var(--ab-space-l)
    var(--ab-space-l);
  max-width: 1119px;
}
.ab-page-hero__aside {
  position: relative;
  z-index: 2;
  flex: 0 0 394px;
  background: var(--ab-color-primary-soft);
  color: var(--ab-color-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--ab-space-s);
  padding: calc(var(--ab-header-h) + var(--ab-space-m)) var(--ab-space-m)
    var(--ab-space-m);
}
.ab-page-hero__aside p {
  color: var(--ab-color-light);
}
.ab-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.ab-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--ab-color-overlay-hero);
  z-index: 1;
  transition: background 0.4s ease;
}
/* Menu mobile ouvert : contenu du page-hero estompé (il passerait au-dessus du panneau nav).
   Le panneau bleu plein écran sert d'overlay → plus de filtre flou sur le hero. */
body.ab-nav-open .ab-page-hero__inner,
body.ab-nav-open .ab-page-hero__content,
body.ab-nav-open .ab-page-hero__aside {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.ab-page-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
  max-width: 1039px;
}
.ab-page-hero__title {
  color: var(--ab-color-light);
}
.ab-page-hero__subtitle {
  font-family: var(--ab-font-title);
  font-size: var(--ab-fs-callout);
  font-weight: 600;
  color: var(--ab-color-light);
  margin: 0;
}
.ab-page-hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}
.ab-page-hero__body p {
  color: var(--ab-color-light);
}
/* Hero contact : bloc coordonnées (icônes jaunes + texte) dans le panneau bleu */
.ab-hero-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}
.ab-hero-contacts li {
  display: flex;
  align-items: flex-start;
  gap: var(--ab-space-s);
}
.ab-hero-contacts img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.ab-hero-contacts a,
.ab-hero-contacts address,
.ab-hero-contacts span {
  color: var(--ab-color-light);
  font-style: normal;
}
.ab-hero-contacts a:hover {
  text-decoration: underline;
}
.ab-page-hero--short .ab-page-hero__inner {
  max-width: 1100px;
}
.ab-page-hero--short .ab-page-hero__title,
.ab-page-hero--short .ab-page-hero__subtitle,
.ab-page-hero--short .ab-page-hero__body p {
  color: var(--ab-color-light);
}

/* ===========================================================================
   PAGE SECTION (texte + photo split)
   ========================================================================== */
.ab-page-section {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-page-section.ab-section--primary {
  background: var(--ab-color-primary);
  color: var(--ab-color-light);
}
.ab-page-section.ab-section--dark {
  background: var(--ab-color-dark);
  color: var(--ab-color-light);
}
/* Disposition flex — proportions pilotées par --ab-text-fr / --ab-photo-fr (défaut 1/1). */
.ab-page-section__head {
  margin-bottom: var(--ab-space-m);
}
.ab-page-section__inner {
  display: flex;
  gap: var(--ab-section-gap, var(--ab-space-m));
  align-items: center;
}
.ab-page-section--has-panel {
  align-items: stretch;
}
.ab-page-section--no-photo {
  max-width: 900px;
  margin-inline: auto;
}
.ab-page-section__text {
  flex: var(--ab-text-fr, 1) 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}
.ab-page-section__photo {
  flex: var(--ab-photo-fr, 1) 1 0;
  min-width: 0;
  border-radius: var(--ab-radius-l);
  overflow: hidden;
}
/* Colonne média avec titre au-dessus (même largeur que le média). */
.ab-page-section__media-col {
  flex: var(--ab-photo-fr, 1) 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-page-section__media-col .ab-page-section__photo {
  flex: none;
}
.ab-page-section--left .ab-page-section__photo,
.ab-page-section--left .ab-page-section__media-col {
  order: 0;
}
.ab-page-section--left .ab-page-section__text {
  order: 1;
}
.ab-page-section--right .ab-page-section__photo,
.ab-page-section--right .ab-page-section__media-col {
  order: 1;
}
.ab-page-section--right .ab-page-section__text {
  order: 0;
}
/* Attribut réutilisable « flush_bottom » : supprime le padding bas de la section
   (ex. Études techniques → pas d'espace doublé avec la section suivante). */
.ab-page-section--flush-bottom {
  padding-bottom: 0;
}
/* Titre dans le média (grille) : titre rangée 1 (au-dessus du média, même colonne), média rangée 2,
   texte rangée 2 CENTRÉ verticalement par rapport au média (= comportement « De la conception »).
   Style global pour toutes les sections title_in_media (Entreprise, Ossatures…). */
.ab-page-section--titlemedia {
  display: grid;
  /* Colonnes posées en inline par le helper (ex. « 2.8fr 1fr ») ; fallback 50/50 ici.
     On n'utilise PAS calc(var()*1fr) : le `fr` dans calc() n'est pas supporté par Chrome/Safari. */
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: var(--ab-section-gap, var(--ab-space-m));
  row-gap: var(--ab-space-m);
  align-items: center;
}
.ab-page-section--titlemedia.ab-page-section--left > .ab-h2 {
  grid-column: 1;
  grid-row: 1;
}
.ab-page-section--titlemedia.ab-page-section--left > .ab-page-section__photo {
  grid-column: 1;
  grid-row: 2;
}
.ab-page-section--titlemedia.ab-page-section--left > .ab-page-section__text {
  grid-column: 2;
  grid-row: 2;
}
.ab-page-section--titlemedia.ab-page-section--right > .ab-h2 {
  grid-column: 2;
  grid-row: 1;
}
.ab-page-section--titlemedia.ab-page-section--right > .ab-page-section__photo {
  grid-column: 2;
  grid-row: 2;
}
.ab-page-section--titlemedia.ab-page-section--right > .ab-page-section__text {
  grid-column: 1;
  grid-row: 2;
}
/* Carte blanche autour de toute la ligne (texte + média) — savoir-faire. */
.ab-page-section--card {
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-m);
  padding: var(--ab-space-s);
  gap: var(--ab-space-l);
  align-items: stretch;
}
.ab-page-section--card .ab-page-section__photo {
  border-radius: var(--ab-radius-m);
}
.ab-page-section--card .ab-page-section__text {
  padding: var(--ab-space-m) 0 var(--ab-space-m) var(--ab-space-m);
  color: var(--ab-color-primary);
}
/* Texte sombre dans la carte blanche (spécificité > règle --primary .body p). */
.ab-page-section--card .ab-page-section__text .ab-h2,
.ab-page-section.ab-section--primary
  .ab-page-section--card
  .ab-page-section__body
  p,
.ab-page-section.ab-section--dark
  .ab-page-section--card
  .ab-page-section__body
  p,
.ab-page-section--card .ab-check-list__item {
  color: var(--ab-color-primary);
}
.ab-page-section__body p {
  margin: 0 0 var(--ab-space-s) 0;
}
.ab-page-section.ab-section--primary .ab-page-section__body p,
.ab-page-section.ab-section--dark .ab-page-section__body p {
  color: var(--ab-color-light);
}
.ab-page-section__photo img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: cover;
  display: block;
}
/* Sections à panneau (ex. Études techniques) : la colonne s'étire (align-items:stretch) → l'image
   doit pouvoir suivre la hauteur du texte, sans plafond 650px. */
.ab-page-section--has-panel .ab-page-section__photo img {
  max-height: none;
}
/* Ligne CTA + logo (certifications : bouton à gauche, logo Qualibat cliquable à droite). */
.ab-page-section__cta-row {
  display: flex;
  align-items: center;
  gap: var(--ab-space-m);
  flex-wrap: wrap;
}
.ab-page-section__cta-row--logo {
  justify-content: space-between;
}
.ab-page-section__cta-logo {
  display: inline-flex;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.ab-page-section__cta-logo:hover,
.ab-page-section__cta-logo:focus-visible {
  opacity: 0.82;
  transform: translateY(-2px);
}
.ab-page-section__cta-logo-img {
  height: 96px;
  width: auto;
  display: block;
}
/* Texte dans un panneau coloré (section claire, panneau bleu/sombre — rigoureuse, atelier). */
.ab-page-section__text--panel {
  padding: var(--ab-space-l);
  border-radius: var(--ab-radius-l);
  justify-content: center;
  color: var(--ab-color-light);
}
.ab-page-section__text--primary {
  background: var(--ab-color-primary);
}
.ab-page-section__text--dark {
  background: var(--ab-color-dark);
}
/* Panneau blanc (texte sombre) — études. */
.ab-page-section__text--white {
  background: var(--ab-color-light);
  color: var(--ab-color-primary);
}
.ab-page-section__text--primary .ab-page-section__body p,
.ab-page-section__text--dark .ab-page-section__body p {
  color: var(--ab-color-light);
}
.ab-page-section__text--white .ab-page-section__body p,
.ab-page-section__text--white .ab-check-list__item {
  color: var(--ab-color-primary);
}
/* Logo affiché en "contain" sur une carte claire (certifications). */
.ab-page-section__photo--contain {
  background: var(--ab-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ab-space-l);
}
.ab-page-section__photo--contain img {
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
}
/* Vidéo YouTube auto (cover 16:9) + bouton son (style site : carré jaune, icône bleue). */
.ab-page-section__photo--video {
  border-radius: var(--ab-radius-l);
  overflow: hidden;
}
/* Slider photo (fondu) d'une section : conteneur au ratio maquette (917×574), slides en cover. */
.ab-page-section__photo--slider {
  position: relative;
  aspect-ratio: 917 / 574;
}
.ab-page-section__photo--slider .ab-ps-swiper {
  position: absolute;
  inset: 0;
}
.ab-page-section__photo--slider .swiper,
.ab-page-section__photo--slider .swiper-wrapper,
.ab-page-section__photo--slider .swiper-slide {
  height: 100%;
}
.ab-page-section__photo--slider .swiper-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}
.ab-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--ab-radius-l);
  background: var(
    --ab-color-dark
  ); /* fond avant chargement de l'iframe construite par l'API */
}
/* Placeholder div ET iframe générée par l'API YouTube (qui ne conserve pas la classe). */
.ab-video__frame,
.ab-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ab-video__sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: var(--ab-radius-m);
  background: var(--ab-color-secondary);
  color: var(--ab-color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(1, 13, 21, 0.3);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.ab-video__sound:hover,
.ab-video__sound:focus-visible {
  opacity: 0.85;
  transform: translateY(-1px);
}
.ab-video__ico--on {
  display: none;
}
.ab-video__sound.is-on .ab-video__ico--off {
  display: none;
}
.ab-video__sound.is-on .ab-video__ico--on {
  display: inline-flex;
}
/* Bouclier transparent : bloque les clics/survols sur l'iframe → aucun contrôle YouTube.
   Seul le bouton son (z-index supérieur) reste interactif. */
.ab-video__shield {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Vidéo « pleine hauteur » : hauteur substantielle (16:9 de sa largeur, sinon le cadre absolu
   collapse à 0 et la vidéo se calque sur la hauteur — courte — du panneau). min-height:100% →
   si le panneau voisin est plus haut, la vidéo remplit toute la hauteur de la colonne en
   débordant horizontalement (iframe centrée en cover). */
.ab-page-section__photo--fill {
  align-self: stretch;
}
.ab-video--fill {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 100%;
}
.ab-video--fill iframe {
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
}

/* ===========================================================================
   ENTREPRISE — Rigoureuse : image plein fond + 2 panneaux empilés à droite
   ========================================================================== */
.ab-rigoureuse {
  position: relative;
  overflow: hidden;
  color: var(--ab-color-light);
}
.ab-rigoureuse__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.ab-rigoureuse__overlay {
  position: absolute;
  inset: 0;
  background: var(--ab-color-overlay-section);
  z-index: 1;
}
.ab-rigoureuse__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}
.ab-rigoureuse__col {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
  width: min(568px, 100%);
}
.ab-rigoureuse__panel {
  border-radius: var(--ab-radius-l);
  padding: var(--ab-space-l);
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-rigoureuse__panel--white,
.ab-rigoureuse__panel--white p,
.ab-rigoureuse__panel--white .ab-check-list__item,
.ab-rigoureuse__title {
  color: var(--ab-color-primary);
}
.ab-rigoureuse__panel--white {
  background: var(--ab-color-light);
}
.ab-rigoureuse__title {
  font-size: var(--ab-fs-h3);
}
.ab-rigoureuse__panel--primary {
  background: var(--ab-color-primary);
}
.ab-rigoureuse__panel--primary p {
  color: var(--ab-color-light);
}

/* ===========================================================================
   ENTREPRISE — Certifications : panneau bleu (titre+image) gauche, texte droite
   ========================================================================== */
.ab-certifs__inner {
  display: flex;
  gap: var(--ab-space-m);
  align-items: stretch;
}
.ab-certifs__left {
  flex: 1 1 0;
  min-width: 0;
  background: var(--ab-color-primary);
  color: var(--ab-color-light);
  border-radius: var(--ab-radius-l);
  padding: var(--ab-space-l);
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-certifs__title {
  color: var(--ab-color-light);
}
.ab-certifs__photo {
  flex: 1;
  border-radius: var(--ab-radius-m);
  overflow: hidden;
}
.ab-certifs__photo img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.ab-certifs__right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
  justify-content: center;
}
.ab-certifs__actions {
  display: flex;
  align-items: center;
  gap: var(--ab-space-m);
  flex-wrap: wrap;
  margin-top: var(--ab-space-s);
}
.ab-certifs__logo {
  display: inline-flex;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.ab-certifs__logo:hover,
.ab-certifs__logo:focus-visible {
  opacity: 0.82;
  transform: translateY(-2px);
}
.ab-certifs__logo img {
  height: 96px;
  width: auto;
}

/* ===========================================================================
   CONTACT — split layout (left: infos, right: form)
   ========================================================================== */
.ab-contact {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); /* ~40% / 60% (Figma) */
  gap: clamp(40px, 6vw, 120px);
  align-items: flex-start;
}
.ab-contact__intro p {
  margin: 0 0 var(--ab-space-s) 0;
}
/* Réseaux sociaux contact : icônes noires (svg dédiés) + lien souligné. */
.ab-contact__social-link {
  color: var(--ab-color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.ab-contact__social li:hover .ab-contact__social-link,
.ab-contact__social-link:hover,
.ab-contact__social-link:focus-visible {
  color: var(--ab-color-secondary);
}
/* Icônes réseaux : masque SVG recoloré en CSS (primary → jaune au survol/focus du <li>). */
.ab-contact__social-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background-color: var(--ab-color-primary);
  -webkit-mask: var(--ab-icon) center / contain no-repeat;
  mask: var(--ab-icon) center / contain no-repeat;
  transition: background-color 0.2s ease;
}
.ab-contact__social-icon--instagram {
  --ab-icon: url("../img/icon-instagram.svg");
}
.ab-contact__social-icon--facebook {
  --ab-icon: url("../img/icon-facebook.svg");
}
.ab-contact__social li:hover .ab-contact__social-icon,
.ab-contact__social
  li:has(.ab-contact__social-link:focus-visible)
  .ab-contact__social-icon {
  background-color: var(--ab-color-secondary);
}
.ab-contact__infos,
.ab-contact__social {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
  margin-top: var(--ab-space-m);
}
.ab-contact__infos li,
.ab-contact__social li {
  display: flex;
  gap: var(--ab-space-s);
  align-items: flex-start;
}
.ab-contact__infos li img,
.ab-contact__social li img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.ab-contact__infos address {
  font-style: normal;
}
.ab-form-host {
  background: transparent;
}

/* ===========================================================================
   RECRUTEMENT — form section
   ========================================================================== */
.ab-recrut-form {
  color: var(--ab-color-primary);
}
.ab-recrut-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}
.ab-recrut-form__col {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-recrut-form__intro {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
}
/* Lien e-mail de l'intro : souligné, survol en jaune (cohérent avec les autres liens du site). */
.ab-recrut-form__intro a {
  color: var(--ab-color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.ab-recrut-form__intro a:hover,
.ab-recrut-form__intro a:focus-visible {
  color: var(--ab-color-secondary);
}
.ab-recrut-form__note {
  font-family: var(--ab-font-title);
  font-weight: 600;
  font-size: var(--ab-fs-callout);
  line-height: 1.2;
  color: var(--ab-color-primary);
}
.ab-recrut-form__media {
  border-radius: var(--ab-radius-l);
  overflow: hidden;
  min-height: 420px;
}
@media (max-width: 1024px) {
  .ab-recrut-form__media {
    max-height: 550px; /* plafond hauteur photo (desktop ≥1024) — cf. demande client */
  }
}
.ab-recrut-form__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 1024px) {
  .ab-recrut-form__media {
    min-height: 280px;
    order: -1;
  }
}

/* ===========================================================================
   GALERIE — filters + grid
   ========================================================================== */
.ab-galerie {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-galerie__filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 34px);
  justify-content: center;
  margin: 0 0 var(--ab-space-l);
  padding: 0;
  list-style: none;
}
/* Boutons filtres (Figma 4123-3567) : contour foncé inactif, fond jaune actif, radius 6px, transition. */
.ab-galerie__filter {
  font-family: var(--ab-font-title);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: var(--ab-color-primary);
  background: transparent;
  border: 1px solid var(--ab-color-dark);
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.ab-galerie__filter:hover,
.ab-galerie__filter:focus-visible {
  background: var(--ab-color-primary);
  border-color: var(--ab-color-primary);
  color: var(--ab-color-light);
}
.ab-galerie__filter.is-active {
  background: var(--ab-color-secondary);
  border-color: var(--ab-color-secondary);
  color: var(--ab-color-primary);
}
.ab-galerie__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ab-galerie__item {
  aspect-ratio: 450 / 328;
  overflow: hidden;
}
.ab-galerie__open {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.ab-galerie__item img,
.ab-galerie__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ab-galerie__open:hover .ab-galerie__img,
.ab-galerie__open:focus-visible .ab-galerie__img {
  transform: scale(1.04);
}
/* Pagination — boutons style site (actif jaune). */
.ab-galerie__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--ab-space-l);
}
.ab-galerie__pagination:empty {
  display: none;
}
.ab-pagination__btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ab-font-title);
  font-weight: 500;
  font-size: var(--ab-fs-body);
  color: var(--ab-color-primary);
  background: var(--ab-color-light);
  border: 1px solid var(--ab-color-primary);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.ab-pagination__btn:hover:not([disabled]):not(.is-active),
.ab-pagination__btn:focus-visible:not(.is-active) {
  background: var(--ab-color-primary);
  color: var(--ab-color-light);
}
.ab-pagination__btn.is-active {
  background: var(--ab-color-secondary);
  border-color: var(--ab-color-secondary);
  color: var(--ab-color-primary);
}
.ab-pagination__btn[disabled] {
  opacity: 0.4;
  cursor: default;
}
/* Visionneuse (lightbox) — fondu d'opacité. */
.ab-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 64px);
  background: rgba(1, 13, 21, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.ab-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ab-lightbox__overlay {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}
.ab-lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}
.ab-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--ab-radius-l);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ab-lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 32px);
  right: clamp(12px, 3vw, 32px);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  color: var(--ab-color-light);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.ab-lightbox__close:hover,
.ab-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

/* ===========================================================================
   ACTUALITES — cards grid
   ========================================================================== */
.ab-actus {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-actus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Carte article (Figma 4021:7886) : fond clair, radius 10, image + titre 32px + lien flèche. */
.ab-actus__card {
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-l);
  padding: 10px 10px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.ab-actus__media {
  display: block;
  aspect-ratio: 666 / 397;
  border-radius: var(--ab-radius-l);
  overflow: hidden;
}
.ab-actus__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ab-actus__body {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
  padding: 0 40px;
}
.ab-actus__title {
  font-family: var(--ab-font-title);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  color: var(--ab-color-primary);
}
.ab-actus__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--ab-space-l);
}
.ab-actus__pagination:empty {
  display: none;
}
/* Loader AJAX (galerie + actualités) — anneau jaune sur bleu, items estompés pendant le chargement. */
.ab-galerie__grid,
.ab-actus__grid {
  position: relative;
}
.ab-galerie__grid.is-loading,
.ab-actus__grid.is-loading {
  pointer-events: none;
}
.ab-galerie__grid.is-loading > li,
.ab-actus__grid.is-loading > li {
  opacity: 0.35;
  transition: opacity 0.2s ease;
}
.ab-galerie__grid.is-loading::after,
.ab-actus__grid.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border: 4px solid rgba(3, 77, 124, 0.25);
  border-top-color: var(--ab-color-secondary);
  border-radius: 50%;
  animation: ab-spin 0.8s linear infinite;
  z-index: 3;
}
@keyframes ab-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Pendant une requête AJAX (galerie/actus) : filtres + pagination neutralisés → pas de
   seconde requête concurrente, et le bouton actif ne peut pas changer en plein chargement. */
.ab-galerie.is-busy .ab-galerie__filter,
.ab-galerie.is-busy .ab-pagination__btn,
.ab-actus.is-busy .ab-pagination__btn {
  pointer-events: none;
  opacity: 0.55;
  cursor: default;
}
.ab-actus__instagram {
  margin-top: var(--ab-space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ab-space-m);
  text-align: center;
}
.ab-actus__instagram-text {
  font-family: var(--ab-font-title);
  font-weight: 600;
  font-size: var(--ab-fs-callout);
  color: var(--ab-color-primary);
  max-width: 900px;
}
.ab-actus__instagram-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* ===========================================================================
   SINGLE ARTICLE (Figma 4021:7999) — contenu + colonne « retour »
   ========================================================================== */
.ab-article {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 333px;
  gap: clamp(40px, 6vw, 139px);
  align-items: start;
}
.ab-article__content {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-s);
  color: var(--ab-color-primary);
}
.ab-article__content > * {
  margin: 0;
}
.ab-article__content p {
  line-height: 1.6;
}
.ab-article__content :is(h2, h3, h4) {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: var(--ab-space-s);
  font-family: var(--ab-font-title);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  color: var(--ab-color-primary);
}
.ab-article__content :is(h2, h3, h4)::before {
  content: "";
  flex: 0 0 72px;
  width: 72px;
  height: 48px;
  margin-right: -40px;
  background: url("../img/vector-h2-arrow.svg") left top / contain no-repeat;
}
.ab-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ab-radius-l);
}
.ab-article__content a {
  color: var(--ab-color-primary);
  text-decoration: underline;
}
.ab-article__content ul,
.ab-article__content ol {
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-xs);
}
.ab-article__aside {
  position: sticky;
  top: calc(var(--ab-header-h, 80px) + 20px);
  background: var(--ab-color-light);
  border-radius: var(--ab-radius-l);
  padding: var(--ab-space-m);
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
}
.ab-article__aside-text {
  font-family: var(--ab-font-title);
  font-weight: 500;
  color: var(--ab-color-primary);
}
@media (max-width: 1024px) {
  .ab-article__grid {
    grid-template-columns: 1fr;
  }
  .ab-article__aside {
    position: static;
  }
}

/* ===========================================================================
   404 + Mentions légales
   ========================================================================== */
.ab-404,
.ab-mentions {
  background: var(--ab-color-surface);
  color: var(--ab-color-primary);
}
.ab-404__inner {
  display: flex;
  flex-direction: column;
  gap: var(--ab-space-m);
  align-items: center;
  text-align: center;
}
.ab-404__actions {
  display: flex;
  gap: var(--ab-space-s);
  flex-wrap: wrap;
  justify-content: center;
}
.ab-mentions h1,
.ab-mentions h2,
.ab-mentions h3 {
  color: var(--ab-color-primary);
  margin-block: var(--ab-space-s);
}
.ab-mentions p {
  margin-block: var(--ab-space-s);
}

.netdev-mentions-legales a {
  font-weight: 600 !important;
  color: var(--ab-color-primary);
  transition: color 0.2s ease;
}
.netdev-mentions-legales a:hover {
  color: var(--ab-color-secondary);
}

/* ===========================================================================
   POPUP (WPForms success modal — cf. WPFORMS.md §5)
   ========================================================================== */
.ab-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-popup[hidden] {
  display: none;
}
.ab-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.ab-popup__inner {
  position: relative;
  background: var(--ab-color-primary);
  color: var(--ab-color-light);
  padding: clamp(32px, 6vw, 100px);
  border-radius: var(--ab-radius-l);
  max-width: 1024px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
  box-shadow: -4px 4px 32px rgba(0, 0, 0, 0.16);
}
.ab-popup__title {
  font-family: var(--ab-font-title);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: var(--ab-color-light);
}
.ab-popup__text {
  font-family: var(--ab-font-title);
  font-weight: 600;
  font-size: var(--ab-fs-callout);
  color: var(--ab-color-light);
}
.wpforms-container .wpforms-field,
.wp-core-ui div.wpforms-container .wpforms-field {
  padding: 0 !important;
}
div.wpforms-container-full button[type="submit"]:focus::after {
  border: 0 !important;
}

/* ===========================================================================
   WPFORMS — styling (cf. WPFORMS.md §4)
   ========================================================================== */
.ab-form-host .wpforms-form {
  width: 100%;
}
.ab-form-host .wpforms-field {
  width: 100% !important;
}
.ab-form-host .wpforms-field-medium,
.ab-form-host .wpforms-field-small,
.ab-form-host .wpforms-field-large {
  max-width: 100% !important;
}
.ab-form-host .wpforms-field-container input[type="text"],
.ab-form-host .wpforms-field-container input[type="email"],
.ab-form-host .wpforms-field-container input[type="tel"],
.ab-form-host .wpforms-field-container input[type="file"],
.ab-form-host .wpforms-field-container textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--ab-radius-s);
  border: 1px solid var(--ab-color-primary);
  background: transparent;
  color: var(--ab-color-primary);
  font-family: var(--ab-font-body);
  font-size: var(--ab-fs-body);
}
.ab-form-host .wpforms-field-label,
.ab-form-host .wpforms-field-name label,
.ab-form-host label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ab-font-body) !important;
  font-weight: 400 !important;
  color: var(--ab-color-primary) !important;
}
.wpforms-required-label {
  display: none !important;
}
.ab-form-host .wpforms-field {
  margin-bottom: var(--ab-space-s);
}
/* Bouton submit = EXACTEMENT le bouton .ab-btn (la balise <a> remplacée par le <button> WPForms).
   !important : le CSS « modern » de WPForms (sélecteurs .wpforms-container-full …, haute
   spécificité) primerait sinon sur nos règles → on force la priorité. */
.ab-form-host .wpforms-submit {
  --ab-btn-arrow: 50px;
  --ab-btn-gap: var(--ab-space-s);
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: var(--ab-btn-arrow) !important;
  height: auto !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 var(--ab-btn-gap) 0 calc(var(--ab-btn-arrow) + var(--ab-btn-gap)) !important;
  margin: 0 !important;
  border-radius: var(--ab-radius-m) !important;
  font-family: var(--ab-font-title) !important;
  font-weight: 500 !important;
  font-size: var(--ab-fs-body) !important;
  line-height: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  color: var(--ab-color-primary) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition:
    background 0.3s ease,
    padding 0.4s ease,
    color 0.25s ease !important;
}
.ab-form-host .wpforms-submit::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  transform: translateY(-50%) !important;
  width: var(--ab-btn-arrow) !important;
  height: var(--ab-btn-arrow) !important;
  background-image: url("../img/btn-circle-arrow.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  transition: left 0.4s ease !important;
}
.ab-form-host .wpforms-submit:hover,
.ab-form-host .wpforms-submit:focus-visible {
  background: var(--ab-color-overlay-section) !important;
  background-color: var(--ab-color-overlay-section) !important;
  color: var(--ab-color-primary) !important;
  padding: 0 calc(var(--ab-btn-arrow) + var(--ab-btn-gap)) 0 var(--ab-btn-gap) !important;
}
.ab-form-host .wpforms-submit:hover::before,
.ab-form-host .wpforms-submit:focus-visible::before {
  left: calc(100% - var(--ab-btn-arrow)) !important;
}
/* Verrou de défilement quand une popup est ouverte. */
body.ab-popup-open {
  overflow: hidden;
}
/* Champ de téléversement — style maquette 4021:7581 : boîte bordée bleu primaire,
   radius 6px, padding 10/15, fond transparent, libellé Jost 16px bleu. */
.ab-form-host .wpforms-uploader {
  display: block;
  border-radius: var(--ab-radius-m);
  cursor: pointer;
  padding: 15px 10px !important;
  border: solid 1px var(--ab-color-primary) !important;
  background: transparent !important;
  transition: background-color 0.2s ease;
}
.ab-form-host .wpforms-uploader:hover {
  background-color: rgba(3, 77, 124, 0.04) !important;
}
.ab-form-host .wpforms-uploader .dz-message {
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  align-self: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100% !important;
  min-height: 0 !important;
}
.ab-form-host .wpforms-uploader .modern-title {
  font-family: var(--ab-font-body) !important;
  font-size: var(--ab-fs-body) !important;
  font-weight: 400 !important;
  line-height: normal !important;
  color: var(--ab-color-primary) !important;
  margin: 0 !important;
}
/* Case de consentement RGPD : fond transparent. La boîte est dessinée par
   input[type=checkbox]::before (background-color = --wpforms-field-background-color) ;
   la coche reste visible car c'est un ::after séparé (bordures couleur accent). */
.ab-form-host .wpforms-field-gdpr-checkbox input[type="checkbox"]::before {
  background-color: transparent !important;
}

/* ===========================================================================
   REVEAL helper — armé seulement quand JS l'autorise. Sans JS / sans IO :
   default = visible.
   ========================================================================== */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.ab-reveal-armed {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===========================================================================
   RESPONSIVE — 1er point de rupture 1024px (header compact + menu overlay),
                2e point de rupture 640px (mobile fin)
   ========================================================================== */

/* ====== ≤ 1024px : header compact + nav en overlay plein écran ====== */
@media (max-width: 1024px) {
  :root {
    --ab-fs-h1: 48px;
    --ab-fs-h2: 40px;
    --ab-fs-h3: 28px;
    --ab-fs-callout: 18px;
  }

  /* Header : bouton « Menu » visible, nav inline → overlay */
  .ab-header__toggle {
    display: inline-flex;
  }
  .ab-header__actions {
    gap: var(--ab-space-xs);
  }

  .ab-main-nav {
    position: fixed;
    /* Fond bleu plein écran : il monte jusqu'en haut de l'écran et recouvre la barre header
       (seuls logo + bouton Fermer restent au-dessus). Opaque (0.92) → texte blanc lisible. */
    inset: 0;
    z-index: -1;
    display: block;
    /* Conteneur de scroll simple : le centrage est géré par .ab-main-nav__scroll (min-height:100%
       + justify-content). Surtout PAS de flex+margin:auto/justify-content ici → ça tronque le
       débordement haut/bas (le contenu ne devient pas scrollable). */
    /* Padding vertical symétrique = dégagement du header → centrage réel au milieu du viewport. */
    padding-block: calc(
      var(--ab-header-offset) + var(--ab-header-bar-h) + var(--ab-space-l)
    );
    padding-inline: clamp(20px, 7vw, 80px);
    background: rgba(2, 34, 55, 0.55);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0.35s ease;
    /* Ascenseur stylisé (si le menu dépasse la hauteur dispo) */
    scrollbar-width: thin;
    scrollbar-color: var(--ab-color-light) rgba(255, 255, 255, 0.18);
  }
  body.ab-nav-open .ab-main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .ab-main-nav::-webkit-scrollbar {
    width: 8px;
  }
  .ab-main-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
  }
  .ab-main-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
  }
  .ab-main-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
  }
  .ab-menu__item.has-children {
    min-width: 250px;
  }
  .ab-main-nav__scroll {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* min-height:100% → occupe au moins toute la hauteur dispo (menu centré quand il tient) ;
       quand le contenu dépasse, ce bloc GRANDIT au-delà de 100% donc .ab-main-nav scrolle. */
    min-height: 100%;
    width: 100%;
  }

  /* Liste verticale, gros items */
  .ab-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ab-space-s);
  }
  .ab-menu__item {
    width: fit-content;
    display: block;
  }
  .ab-menu__link {
    font-size: 24px;
    padding: 6px 0;
    width: 100%;
    justify-content: space-between;
    color: var(--ab-color-light); /* texte blanc sur le fond bleu plein écran */
  }
  /* Item actif : on écrase le #5f5f5f desktop (illisible sur bleu foncé). */
  .ab-menu__item.is-active > .ab-menu__link {
    color: rgba(255, 255, 255, 0.72);
  }
  .ab-menu__chevron {
    width: 16px; /* la couleur suit currentColor → blanche comme le titre */
  }

  /* Sous-menu = accordéon déroulant (statique, animé en hauteur).
     On neutralise l'anim desktop (opacity/visibility/transform) → visibilité pilotée par max-height. */
  .ab-submenu {
    position: static;
    display: block;
    box-shadow: none;
    min-width: 0;
    border-radius: var(--ab-radius-m);
    padding: 0 0 0 var(--ab-space-s);
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease,
      margin 0.3s ease;
  }
  .ab-submenu[data-open="1"] {
    max-height: 70vh;
    padding: var(--ab-space-s);
    margin-top: var(--ab-space-xs);
  }
  .ab-submenu__link {
    font-size: 18px;
  }
  .ab-submenu__link:hover,
  .ab-submenu__link:focus-visible {
    color: rgba(255, 255, 255, 0.75);
  }

  /* Hero : empilé, contenu poussé en bas (la « partie du bas » alignée au bas de la section) */
  .ab-hero {
    flex-direction: column;
  }
  .ab-hero__content {
    flex: 1 0 auto;
    justify-content: center;
    max-width: 100%;
    padding: calc(var(--ab-header-h) + var(--ab-space-l))
      var(--ab-container-pad-x) var(--ab-space-l);
  }
  .ab-hero__aside {
    flex: 0 0 auto;
    width: 100%;
    padding: var(--ab-space-l) var(--ab-container-pad-x);
  }
  /* Hero des pages (full) : empilé comme l'accueil — contenu puis aside bleu pleine largeur. */
  .ab-page-hero--full {
    flex-direction: column;
  }
  .ab-page-hero__content {
    flex: 1 0 auto;
    max-width: 100%;
    padding: calc(var(--ab-header-h) + var(--ab-space-l))
      var(--ab-container-pad-x) var(--ab-space-l);
  }
  .ab-page-hero__aside {
    flex: 0 0 auto;
    width: 100%;
    padding: var(--ab-space-l) var(--ab-container-pad-x);
  }

  .ab-capable__col-right {
    right: -30%;
  }

  /* Grilles tablet */
  .ab-about__grid,
  .ab-conception__grid,
  .ab-capable__grid,
  .ab-services__head {
    grid-template-columns: 1fr;
  }
  .ab-about__grid {
    align-items: stretch; /* empilé : on annule l'alignement bas desktop */
  }
  .ab-about__cards {
    grid-template-columns: 1fr 1fr;
    height: auto;
    aspect-ratio: auto; /* empilé : hauteur naturelle, plus calée sur la photo */
  }
  .ab-conception__grid {
    gap: var(--ab-space-m);
  }
  .ab-conception__head {
    max-width: 100%; /* ≤1024 : le titre reprend toute la largeur */
  }
  .ab-conception__steps {
    gap: var(--ab-space-s);
  }
  .ab-services__grid {
    grid-template-columns: 1fr 1fr;
    max-width: 756px;
    margin-inline: auto; /* grille centrée (≤1024) */
  }
  .ab-services__lead {
    justify-self: start;
  }
  /* ≤1024 : la photo des cartes passe AU-DESSUS du texte + CTA. */
  .ab-service-card {
    flex-direction: column;
    padding: 10px;
  }
  .ab-service-card__img {
    width: 100%;
    flex: none;
    align-self: stretch;
    aspect-ratio: 1 / 1; /* image carrée (au maximum) quand elle est empilée */
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .ab-page-section__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--ab-space-s) !important;
  }
  /* « Une entreprise spécialisée » : écart plus grand entre la vidéo et le texte (≤1024). */
  .ab-ps-spec .ab-page-section__inner {
    gap: var(--ab-space-m) !important;
  }
  /* « Un savoir-faire » : la carte blanche perd son padding gauche/haut/bas une fois empilée. */
  .ab-page-section--card .ab-page-section__text {
    padding: 0;
  }
  .ab-page-section__text,
  .ab-page-section__photo,
  .ab-page-section__media-col {
    flex: 0 0 auto;
  }
  /* title_in_media ≤1024 : grille ramenée à une seule colonne (titre, média, texte empilés). */
  .ab-page-section--titlemedia {
    grid-template-columns: 1fr !important;
  }
  .ab-page-section--titlemedia > .ab-h2,
  .ab-page-section--titlemedia > .ab-page-section__photo,
  .ab-page-section--titlemedia > .ab-page-section__text {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  /* Image de ces sections : rectangle horizontal 3:2 (≤1024) — pas les vidéos. */
  .ab-page-section--titlemedia
    .ab-page-section__photo:not(.ab-page-section__photo--video) {
    aspect-ratio: 3 / 2;
  }
  /* Entreprise — empilement des sections custom. */
  .ab-rigoureuse__inner {
    justify-content: stretch;
  }
  .ab-rigoureuse__col {
    width: 100%;
  }
  .ab-certifs__inner {
    flex-direction: column;
  }
  .ab-video--fill {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  .ab-video--fill iframe {
    inset: 0;
    transform: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
  }
  .ab-contact__grid,
  .ab-recrut-form__grid {
    grid-template-columns: 1fr;
  }
  .ab-galerie__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ab-actus__grid {
    grid-template-columns: 1fr 1fr;
  }
  /* ≤1024 : on retire les paddings latéraux du corps de carte (gain de place). */
  .ab-actus__body {
    padding-inline: 0;
  }
  /* ≤1024 : logo en haut, contacts + réseaux à gauche, partenaires à droite (Figma 4183-8682). */
  .ab-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo     logo"
      "contacts partners"
      "social   partners";
    align-items: start;
    column-gap: var(--ab-space-l);
    row-gap: var(--ab-space-m);
  }
  .ab-footer__logo {
    grid-area: logo;
    justify-self: start;
  }
  .ab-footer__contacts {
    grid-area: contacts;
  }
  .ab-footer__social {
    grid-area: social;
  }
  .ab-footer__partners {
    grid-area: partners;
    justify-self: end;
    align-self: flex-end;
  }
  .ab-footer__partners img {
    height: 130px;
  }
  .ab-recrut-band__inner {
    flex-direction: column;
    align-items: center; /* empilé ≤1024 : on recentre le contenu horizontalement */
  }
}

/* ====== ≤ 640px : mobile fin ====== */
@media (max-width: 640px) {
  :root {
    --ab-fs-h1: 40px;
    --ab-fs-h2: 36px;
    --ab-fs-h3: 26px;
    --ab-fs-callout: 18px;
    --ab-space-xl: 60px;
    --ab-space-l: 24px;
    --ab-space-m: 24px;
  }
  .ab-container {
    padding-inline: 20px;
  }

  /* < 640px : le CTA Contact quitte le header et rejoint le menu, sous les autres liens. */
  .ab-header__contact {
    display: none;
  }
  .ab-nav__contact {
    display: inline-flex;
    margin-top: var(--ab-space-m);
    color: var(--ab-color-light); /* CTA dans le menu bleu plein écran */
  }

  /* Barre compacte : carrés flèche + libellés réduits pour tenir sur petit écran */
  .ab-header {
    padding-inline: 12px;
  }
  .ab-header__inner {
    gap: var(--ab-space-xs);
    padding: 8px 10px;
  }
  .ab-header__logo img {
    width: 104px;
    height: auto;
  }
  /* Barre compacte : flèche 40px + gap réduit. Padding/min-height/translation dérivent des vars. */
  .ab-header__actions .ab-btn {
    --ab-btn-arrow: 40px;
    --ab-btn-gap: 10px;
    font-size: 14px;
  }
  .ab-menu__link {
    font-size: 22px;
  }
  .ab-submenu__link {
    font-size: 16px;
  }

  .ab-hero__chips {
    gap: 12px;
  }
  /* Section « Une entreprise locale » : gaps 40px titre/texte/image. Les cartes restent
     en 2 colonnes jusqu'à 390px (passage 1 colonne + max 266px centré dans le bloc 390). */
  .ab-about__col-left,
  .ab-about__head {
    gap: 40px;
  }
  /* « Une entreprise capable » ≤640 : padding vertical porté à 90px, gap des éléments à 40px. */
  .ab-capable__col-left {
    padding-block: 90px;
    gap: 40px;
  }
  .ab-conception__steps {
    gap: 8px;
    position: relative;
    transform: none;
    width: 100%;
    inset: unset;
    max-width: 100%;
    justify-content: space-evenly;
  }
  .ab-conception__step > img {
    z-index: 0;
  }
  .ab-conception__step > span {
    position: relative;
  }
  .ab-services__grid {
    grid-template-columns: 1fr;
  }
  /* ≤640 : la photo revient À GAUCHE (carte horizontale pleine largeur). */
  .ab-service-card {
    flex-direction: row;
    padding: 10px 40px 10px 10px;
  }
  .ab-service-card__img {
    flex: 0 0 43%;
    width: auto;
    align-self: stretch;
    aspect-ratio: auto;
    height: auto;
    min-height: 240px;
  }
  .ab-galerie__grid {
    grid-template-columns: 1fr;
  }
  .ab-actus__grid {
    grid-template-columns: 1fr;
  }
  .ab-h2--arrow {
    gap: 8px;
  }
  .ab-h2__arrow {
    width: 48px;
    height: 32px;
    margin-right: -24px;
  }
  .ab-recrut-band__title {
    font-size: 18px;
  }
  .ab-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .ab-footer__partners img {
    height: 100px;
  }
  .ab-conception__col-right {
    padding-top: 0;
  }
  .ab-capable__col-right {
    right: -50%;
  }
  .ab-instagram {
    padding: 60px 0;
    min-height: 0;
  }
  .ab-page-section__inner {
    grid-template-columns: 1fr;
  }
  .ab-recrut-band__deco--right {
    right: -25%;
  }
  .ab-recrut-band__deco--left {
    left: -25%;
  }
}

@media (max-width: 390px) {
  /* Cartes actus : plus de plancher min-content (minmax 0) + contenu rétractable → plus de
     débordement horizontal sous ~350px (le bouton/titre imposaient une largeur minimale). */
  .ab-actus__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ab-actus__card {
    min-width: 0;
  }
  .ab-actus__title {
    overflow-wrap: break-word;
  }
  /* « Une entreprise locale » : cartes stats en 1 colonne, largeur max 266px, centrées. */
  .ab-about__cards {
    grid-template-columns: 1fr;
    max-width: 266px;
    margin-inline: auto;
  }
  /* Services ≤390 : photo de nouveau AU-DESSUS, cartes 1 colonne, largeur max 295px centrées. */
  .ab-service-card {
    flex-direction: column;
    padding: 10px;
    max-width: 295px;
    margin-inline: auto;
  }
  .ab-service-card__img {
    flex: none;
    width: 100%;
    align-self: stretch;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
  }
  .ab-recrut-band__deco--right {
    right: -65%;
  }
  .ab-recrut-band__deco--left {
    left: -65%;
  }
}

/* === netdev-footer plugin overrides (a11y contrast WCAG AA) === */
.netdev-footer .netdev-footer-text,
.netdev-footer .netdev-footer-text a,
.netdev-footer .netdev-footer-text .copyright {
  color: #ffffff !important;
}
.netdev-footer .netdev-footer-text a {
  text-decoration: underline;
  color: #ffffff !important;
}

/* === Prefers reduced motion (WCAG 2.3.3) === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
