/*
Theme Name: Alpha Distributrices
Author: ESTAB
Author URI: https://estab.ca
Description: Thème bloc sur mesure d'Alpha Distributrices, bilingue. Le design vit dans ces fichiers; le contenu s'édite dans les pages.
Version: 2.3.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alpha-distributrices
Tags: block-theme, full-site-editing, business, one-column
*/

@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/urbanist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/urbanist-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: 'Urbanist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/urbanist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/urbanist-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: 'Urbanist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/urbanist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/urbanist-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: 'Urbanist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/urbanist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/urbanist-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;
}

:root {
  --blanc: #ffffff;
  --noir: #1c1c1c;
  --turquoise: #5ec7d7;
  --turquoise-pale: #dcf4f8;
  --gris-texte: #5b5b5b;
  --gris-champ: #dcdcdc;
  --rayon-panneau: 20px;
  --rayon-carte: 14px;
  --rayon-bouton: 10px;
  --police: 'Urbanist', 'Century Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; } /* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte sur aspect-ratio */
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[id] { scroll-margin-top: 24px; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0px),
   et ici à spécificité nulle pour ne jamais écraser les marges des composants. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }

.enveloppe { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* typographie */
.titre-hero, .titre-section {
  font-weight: 600;
  letter-spacing: -0.01em;
  hyphens: none;
  text-wrap: balance;
}
.titre-hero { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.12; }
.titre-section { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }
.titre-espace {
  position: relative;
  isolation: isolate;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.titre-capitales {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}
/* le mot en italique d'un titre espacé reçoit la lame turquoise du logo */
.titre-espace em { position: relative; display: inline-block; padding: 0 6px; font-style: normal; }
.titre-espace em::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 8% -8px 4%;
  background: var(--turquoise);
  transform: skewX(-24deg);
}
.texte-espace {
  color: var(--gris-texte);
  font-size: 18px;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

/* boutons */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; }
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  height: auto;
  border: 0;
  font-family: inherit;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.wp-block-button.b-noir .wp-block-button__link,
.wp-block-button.b-turquoise .wp-block-button__link {
  gap: 14px;
  padding: 17px 30px;
  border-radius: var(--rayon-bouton);
  background: var(--noir);
  color: var(--blanc);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.wp-block-button.b-noir .wp-block-button__link::after,
.wp-block-button.b-turquoise .wp-block-button__link::after {
  content: '';
  flex: none;
  width: 28px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10h23M17 3l8 7-8 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10h23M17 3l8 7-8 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.wp-block-button.b-noir .wp-block-button__link:hover { background: var(--turquoise); color: var(--noir); }
.wp-block-button.b-turquoise .wp-block-button__link { background: var(--turquoise); color: var(--noir); }
.wp-block-button.b-turquoise .wp-block-button__link:hover { background: var(--blanc); }
.wp-block-button.b-noir .wp-block-button__link:hover::after,
.wp-block-button.b-turquoise .wp-block-button__link:hover::after { transform: translateX(5px); }

/* en-tête */
.entete { padding: 22px 0 18px; }
.entete-rang { display: flex; align-items: center; gap: 32px; }
.wp-block-site-logo.logo { line-height: 0; }
.wp-block-site-logo.logo img { width: auto; height: 74px; }
.wp-block-navigation.nav { gap: 22px; margin-inline: auto; font-size: 15px; font-weight: 400; }
.wp-block-navigation.nav .wp-block-navigation__container { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.wp-block-navigation.nav .wp-block-navigation-item__content { display: block; padding: 6px 0; color: inherit; text-decoration: none; }
.wp-block-navigation.nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 6px; }
.wp-block-navigation.nav .current-menu-item > .wp-block-navigation-item__content { font-weight: 700; }
/* bascule de langue : une petite pastille bordée, à part des sections */
.wp-block-navigation.nav .lang .wp-block-navigation-item__content {
  padding: 4px 10px;
  border: 1px solid var(--noir);
  border-radius: var(--rayon-bouton);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.wp-block-navigation.nav .lang .wp-block-navigation-item__content:hover { background: var(--noir); color: var(--blanc); text-decoration: none; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .lang .wp-block-navigation-item__content { display: inline-block; margin-top: 10px; }
/* Le panneau mobile de core/navigation s'ouvre blanc sur blanc sans ceci. */
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--blanc) !important;
  color: var(--noir) !important;
  padding: 28px 24px;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; gap: 10px; font-size: 22px; }
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open {
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--rayon-bouton);
  background: var(--noir);
  color: var(--blanc);
}
.wp-block-button.appel .wp-block-button__link {
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--rayon-bouton);
  background: var(--turquoise-pale);
  color: var(--noir);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s;
}
.wp-block-button.appel .wp-block-button__link:hover { background: var(--turquoise); }
.wp-block-button.appel .wp-block-button__link::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  background: var(--noir);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate(-1 1)' d='M6.6 2.5 9 2c.6-.1 1.2.2 1.4.8l1.1 3c.2.5 0 1.1-.4 1.5L9.5 8.7a12 12 0 0 0 5.8 5.8l1.4-1.6c.4-.4 1-.6 1.5-.4l3 1.1c.6.2.9.8.8 1.4l-.5 2.4c-.2.9-1 1.6-2 1.6C10.4 19 5 13.6 5 6.5c0-1 .7-1.800 1.6-2z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' d='M15 4.5a5 5 0 0 1 4.5 4.5M15 1.5a8 8 0 0 1 7.5 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate(-1 1)' d='M6.6 2.5 9 2c.6-.1 1.2.2 1.4.8l1.1 3c.2.5 0 1.1-.4 1.5L9.5 8.7a12 12 0 0 0 5.8 5.8l1.4-1.6c.4-.4 1-.6 1.5-.4l3 1.1c.6.2.9.8.8 1.4l-.5 2.4c-.2.9-1 1.6-2 1.6C10.4 19 5 13.6 5 6.5c0-1 .7-1.800 1.6-2z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' d='M15 4.5a5 5 0 0 1 4.5 4.5M15 1.5a8 8 0 0 1 7.5 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* hero */
.hero-panneau {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 56px;
  min-height: 470px;
  padding: 56px 72px 56px 56px;
  border-radius: var(--rayon-panneau);
  background: var(--turquoise-pale);
}
/* la lame du logo balaie lentement le panneau */
.hero-panneau::before,
.avantages-panneau::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -20%;
  bottom: -20%;
  left: -34%;
  width: 26%;
  background: linear-gradient(90deg, rgba(94, 199, 215, 0) 0%, rgba(94, 199, 215, .38) 50%, rgba(94, 199, 215, 0) 100%);
  transform: skewX(-24deg);
  animation: balayage 18s linear infinite;
  pointer-events: none;
}
.avantages-panneau::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 100%);
  animation-duration: 22s;
  animation-delay: -9s;
}
@keyframes balayage {
  from { transform: translateX(0) skewX(-24deg); }
  to { transform: translateX(560%) skewX(-24deg); }
}
.hero-texte { position: relative; }
/* deux photos : la grande (une personne devant la machine) et la petite qui la chevauche */
.hero-visuel { position: relative; padding: 0 56px 40px 0; }
.wp-block-image.hero-grande {
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--rayon-panneau);
  box-shadow: 0 24px 40px -24px rgba(28, 28, 28, .55);
}
.wp-block-image.hero-petite {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 46%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--rayon-carte);
  box-shadow: 0 0 0 8px var(--turquoise-pale), 0 24px 40px -24px rgba(28, 28, 28, .6);
}
.wp-block-image.hero-grande img,
.wp-block-image.hero-petite img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.hero-grande img { object-position: 60% 50%; }
.wp-block-image.mission-photo img,
.wp-block-image.service-photo img,
.wp-block-image.secteur-photo img,
.wp-block-image.bande-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-texte { max-width: 520px; }
.hero-texte .hero-sous { margin-top: 18px; color: var(--gris-texte); font-size: 18px; line-height: 1.5; }
.hero-texte .wp-block-buttons, .bande-texte .wp-block-buttons { margin-top: 26px; }

/* paiements */
.paiements {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 40px;
  width: min(980px, 100% - 48px);
  margin-top: 76px;
  padding: 0 40px 44px;
  border-bottom: 1px solid var(--noir);
}
.paiements-liste { display: flex; justify-content: space-between; gap: 24px; }
.paiement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 130px;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.paiement::before {
  content: '';
  width: 52px;
  height: 52px;
  background: var(--noir);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.paiement.p-carte::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='38' height='26' rx='5'/%3E%3Cpath d='M5 19h38M12 29h9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='38' height='26' rx='5'/%3E%3Cpath d='M5 19h38M12 29h9'/%3E%3C/svg%3E"); }
.paiement.p-mobile::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='4' width='20' height='40' rx='5'/%3E%3Cpath d='M21 38h6M20 17a6 6 0 0 1 8 0M17.5 13.5a10 10 0 0 1 13 0'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='4' width='20' height='40' rx='5'/%3E%3Cpath d='M21 38h6M20 17a6 6 0 0 1 8 0M17.5 13.5a10 10 0 0 1 13 0'/%3E%3C/svg%3E"); }
.paiement.p-comptant::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='13' width='40' height='22' rx='4'/%3E%3Ccircle cx='24' cy='24' r='5.5'/%3E%3Cpath d='M11 20v8M37 20v8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='13' width='40' height='22' rx='4'/%3E%3Ccircle cx='24' cy='24' r='5.5'/%3E%3Cpath d='M11 20v8M37 20v8'/%3E%3C/svg%3E"); }
.paiement.p-prepayee::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='38' height='26' rx='5'/%3E%3Cpath d='M13 30h8M30 19l2 4 4 .5-3 3 .8 4.5-3.8-2-3.8 2 .8-4.5-3-3 4-.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='38' height='26' rx='5'/%3E%3Cpath d='M13 30h8M30 19l2 4 4 .5-3 3 .8 4.5-3.8-2-3.8 2 .8-4.5-3-3 4-.5z'/%3E%3C/svg%3E"); }

/* mission */
.mission { position: relative; padding: 110px 0 120px; }
.mission-rang { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.wp-block-image.mission-photo { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--rayon-panneau); }
.mission-texte .texte-espace { margin-top: 34px; }
/* le triangle du logo, en décor : un pseudo-élément, jamais un bloc vide */
.mission::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 40px;
  z-index: 2;
  width: min(24vw, 330px);
  aspect-ratio: 640 / 600;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 600'%3E%3Cdefs%3E%3ClinearGradient id='t' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%237fd6e3'/%3E%3Cstop offset='1' stop-color='%2346b3c5'/%3E%3C/linearGradient%3E%3Cfilter id='o' x='-10%25' y='-30%25' width='120%25' height='170%25'%3E%3CfeDropShadow dx='0' dy='14' stdDeviation='12' flood-color='%231c1c1c' flood-opacity='.22'/%3E%3C/filter%3E%3C/defs%3E%3Cpath fill='url(%23t)' fill-rule='evenodd' d='M150 580 400 60 650 580zM318 500h164L400 322z'/%3E%3Cpath fill='%231c1c1c' opacity='.92' d='M352 430h96l-48-104z'/%3E%3Cpath fill='%235ec7d7' filter='url(%23o)' d='M20 452 640 150v96L236 408z'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  animation: flotte 7s ease-in-out infinite;
}
@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* services */
.services { padding-top: 40px; }
.services-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.services-tete .texte-espace { position: relative; z-index: 3; max-width: 420px; }
.services-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.wp-block-image.service-photo { overflow: hidden; aspect-ratio: 4 / 4.6; border-radius: var(--rayon-carte); background: var(--turquoise-pale); }
.wp-block-image.service-photo img { transition: transform .5s; }
.service:nth-child(1) .wp-block-image.service-photo img { object-position: 28% 50%; }
.service:nth-child(2) .wp-block-image.service-photo img { object-position: 22% 50%; }
.service:nth-child(4) .wp-block-image.service-photo img { object-position: 30% 50%; }
.service:hover .wp-block-image.service-photo img { transform: scale(1.04); }
.service:nth-child(even) { margin-top: 44px; }
.service h3 { margin-top: 20px; font-size: 22px; font-weight: 600; line-height: 1.2; }
.service .service-texte { margin-top: 10px; color: var(--gris-texte); font-size: 16px; }

/* avantages */
.avantages { margin-top: 110px; }
.avantages-panneau {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding: 72px 72px 80px 64px;
  border-radius: var(--rayon-panneau);
  background: var(--turquoise);
}
.avantages-tete .texte-espace { margin-top: 24px; color: var(--noir); }
.avantages-tete::after {
  content: '';
  display: block;
  width: 130px;
  height: 97.5px;
  margin: 36px 0 0 120px;
  background: var(--noir);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 84C18 52 52 26 104 22M84 8l22 14-18 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 84C18 52 52 26 104 22M84 8l22 14-18 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.avantages-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; align-items: start; }
.atout {
  display: flex;
  align-items: center;
  min-height: 104px;
  padding: 22px 30px;
  background: var(--noir);
  color: var(--blanc);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.22;
  transform: translateY(var(--decale, 0px));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.atout:nth-child(even) {
  --decale: 46px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

/* étapes */
.etapes { margin-top: 120px; }
.etapes-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-top: 56px; }
.etape { position: relative; padding-top: 34px; border-top: 1px solid var(--noir); }
.etape-no {
  display: grid;
  place-items: center;
  width: 72px;
  height: 56px;
  background: var(--turquoise);
  font-size: 26px;
  font-weight: 700;
  clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
}
.etape h3 { margin-top: 22px; font-size: 24px; font-weight: 600; line-height: 1.5; }
.etape .etape-texte { margin-top: 12px; color: var(--gris-texte); font-size: 16px; }

/* secteurs */
.secteurs { margin-top: 120px; }
.secteurs-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.secteur { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; border-radius: var(--rayon-carte); background: var(--noir); }
.wp-block-image.secteur-photo { height: 100%; }
.wp-block-image.secteur-photo img { transition: transform .5s; }
.secteur:hover .wp-block-image.secteur-photo img { transform: scale(1.05); }
.secteur .secteur-nom {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 18px 16px;
  background: linear-gradient(rgba(28, 28, 28, 0), rgba(28, 28, 28, .85));
  color: var(--blanc);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.secteur.secteur-zone { background: var(--turquoise); }
.secteur.secteur-zone .secteur-nom { inset: 0; display: flex; align-items: flex-end; padding: 20px; background: none; color: var(--noir); font-size: 24px; }

/* bande d'appel */
.appel-bande { margin-top: 120px; }
.bande { position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: center; border-radius: var(--rayon-panneau); background: var(--noir); }
.wp-block-image.bande-photo { position: absolute; inset: 0; }
.wp-block-image.bande-photo img { object-position: 50% 42%; opacity: .45; animation: zoom-lent 24s ease-in-out infinite alternate; }
@keyframes zoom-lent {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.bande-texte { position: relative; max-width: 620px; padding: 56px 64px; color: var(--blanc); }

/* faq */
.faq { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; margin-top: 120px; }
.question { border-bottom: 1px solid var(--noir); }
.question:first-child { border-top: 1px solid var(--noir); }
.question summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.question summary::-webkit-details-marker { display: none; }
/* le carré turquoise reste en place ; seules les deux barres pivotent (+ devient ×) */
.question summary::after {
  content: '';
  flex: none;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  background-color: var(--turquoise);
  transition: background-color .2s;
}
.question summary::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: 34px;
  height: 34px;
  background-image: linear-gradient(var(--noir), var(--noir)), linear-gradient(var(--noir), var(--noir));
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.question[open] summary::before { transform: translateY(-50%) rotate(45deg); }
.question summary:hover::after { background-color: var(--noir); }
.question summary:hover::before { background-image: linear-gradient(var(--blanc), var(--blanc)), linear-gradient(var(--blanc), var(--blanc)); }
.question.est-anime { overflow: hidden; }
.question p { max-width: 640px; padding: 0 0 24px; color: var(--gris-texte); }

/* page intérieure */
.page-panneau {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding: 56px 56px 56px 64px;
  border-radius: var(--rayon-panneau);
  background: var(--turquoise-pale);
}
.page-texte .texte-espace { max-width: 520px; margin-top: 18px; color: var(--noir); }
.page-texte .wp-block-buttons { margin-top: 30px; }
.wp-block-image.page-photo { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--rayon-carte); box-shadow: 0 18px 30px -18px rgba(28, 28, 28, .55); }
.wp-block-image.page-photo img { width: 100%; height: 100%; object-fit: cover; }

/* coordonnées */
.coordonnees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.coordonnee { padding: 34px 32px 36px; border: 1px solid var(--noir); border-radius: var(--rayon-panneau); }
.coordonnee::before {
  content: '';
  display: block;
  width: 72px;
  height: 56px;
  margin-bottom: 26px;
  background-color: var(--turquoise);
  background-position: center;
  background-size: 28px;
  background-repeat: no-repeat;
  clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
}
.coordonnee.c-telephone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate(-1 1)' d='M6.6 2.5 9 2c.6-.1 1.2.2 1.4.8l1.1 3c.2.5 0 1.1-.4 1.5L9.5 8.7a12 12 0 0 0 5.8 5.8l1.4-1.6c.4-.4 1-.6 1.5-.4l3 1.1c.6.2.9.8.8 1.4l-.5 2.4c-.2.9-1 1.6-2 1.6C10.4 19 5 13.6 5 6.5c0-1 .7-1.800 1.6-2z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' d='M15 4.5a5 5 0 0 1 4.5 4.5M15 1.5a8 8 0 0 1 7.5 7.5'/%3E%3C/svg%3E"); }
.coordonnee.c-courriel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='38' height='28' rx='5'/%3E%3Cpath d='M6 13l18 14 18-14'/%3E%3C/svg%3E"); }
.coordonnee.c-lieu::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 43s14-11.500 14-23a14 14 0 1 0-28 0c0 11.500 14 23 14 23z'/%3E%3Ccircle cx='24' cy='20' r='5'/%3E%3C/svg%3E"); }
.coordonnee .coordonnee-titre { font-size: 15px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.coordonnee .coordonnee-valeur { margin-top: 10px; font-size: 22px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.coordonnee .coordonnee-valeur a:hover { text-decoration: underline; text-underline-offset: 5px; }
.coordonnee .coordonnee-note { margin-top: 10px; color: var(--gris-texte); font-size: 16px; }
.coordonnee.c-telephone { border-color: var(--noir); background: var(--noir); color: var(--blanc); }
.coordonnee.c-telephone .coordonnee-note { color: #c9c9c9; }

/* soumission */
.soumission { margin-top: 120px; }
.soumission-cadre {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  padding: 60px 64px 64px;
  border: 1px solid var(--noir);
  border-radius: var(--rayon-panneau);
}
.soumission-tete .texte-espace { margin-top: 18px; }
.soumission-tete .soumission-direct { margin-top: 36px; font-size: 20px; font-weight: 600; line-height: 1.6; }
.soumission-direct a:hover, .pied-liens a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* formulaire (Contact Form 7) */
.wpcf7 form { margin: 0; }
.formulaire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.champ { display: block; }
.champ.large { grid-column: 1 / -1; }
.champ-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wpcf7-form-control-wrap { display: block; }
/* spécificité (0,4,1) : au-dessus des styles de champs injectés par l'hébergeur */
.wpcf7 form .champ input.wpcf7-form-control, .wpcf7 form .champ select.wpcf7-form-control, .wpcf7 form .champ textarea.wpcf7-form-control {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 17px 22px;
  border: 0;
  border-radius: 8px;
  /* !important : l'hébergeur (GoDaddy) impose un fond transparent aux champs avec un sélecteur à huit :not(), impossible à dépasser autrement */
  background-color: var(--gris-champ) !important;
  color: var(--noir) !important;
  color: var(--noir);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  appearance: none;
}
.wpcf7 form .champ select.wpcf7-form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c1c1c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 22px center;
  background-size: 12px;
  background-repeat: no-repeat;
}
.wpcf7 form .champ textarea.wpcf7-form-control { resize: vertical; height: auto; }
.champ ::placeholder { color: #4d4d4d; opacity: 1; }
.wpcf7 form .champ .wpcf7-form-control:focus { outline: 2px solid var(--noir); outline-offset: 2px; }
/* spécificité (0,4,1) : au-dessus des styles que l'hébergeur (GoDaddy « site designer ») injecte sur input[type=submit] */
.wpcf7 form .formulaire .envoyer.wpcf7-submit {
  justify-self: start;
  width: auto;
  margin: 0;
  padding: 17px 32px;
  border: 0;
  border-radius: var(--rayon-bouton);
  background: var(--turquoise);
  color: var(--noir);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  transition: background .2s, color .2s;
}
.wpcf7 form .formulaire .envoyer.wpcf7-submit:hover { background: var(--noir); color: var(--blanc); }
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #b3261e; font-size: 14px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--noir); border-radius: 8px; font-size: 16px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--turquoise); background: var(--turquoise-pale); }

/* Turnstile (anti-robot Cloudflare) : l'extension insère le widget et un <br> juste avant le bouton */
.formulaire .cf7-cf-turnstile { grid-column: 1 / -1; margin: 4px 0 0 !important; line-height: 0; }
.formulaire > br { display: none; }
.formulaire .cf-turnstile { display: block; }

/* politique de confidentialité et note du formulaire */
.formulaire-note { grid-column: 1 / -1; margin-top: 18px; color: var(--gris-texte); font-size: 14px; line-height: 1.5; }
.formulaire-note a { text-decoration: underline; text-underline-offset: 3px; }
.page-panneau-simple { grid-template-columns: 1fr; padding: 48px 64px; }
.politique-corps { max-width: 760px; margin-top: 48px; }
.politique-corps .politique-maj { color: var(--gris-texte); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.politique-corps .politique-intro { margin-top: 14px; font-size: 19px; line-height: 1.55; }
.politique-corps h2 { margin-top: 40px; font-size: 22px; font-weight: 600; line-height: 1.25; }
.politique-corps p { margin-top: 14px; color: var(--gris-texte); }
.politique-corps p a { color: var(--noir); text-decoration: underline; text-underline-offset: 3px; }
.pied .pied-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* pied */
.pied { margin-top: 120px; padding: 56px 0 28px; background: var(--turquoise-pale); }
.pied-rang { display: grid; grid-template-columns: 1.4fr 0.6fr 1fr; gap: 56px; }
.pied-marque .wp-block-site-logo { line-height: 0; }
.pied-marque .wp-block-site-logo img { width: auto; height: 96px; mix-blend-mode: multiply; }
.pied-marque .pied-texte { max-width: 320px; margin-top: 16px; font-size: 16px; }
.pied-col .pied-titre { margin-bottom: 12px; font-size: 15px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase; }
.pied-col .pied-liens { font-size: 18px; line-height: 1.95; }
.pied .pied-legal { margin-top: 48px; font-size: 14px; letter-spacing: 0.06em; }

/* gabarits 404 et liste */
.page-simple { padding-block: 40px 0; }
.page-simple > * + * { margin-top: 18px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--noir); outline-offset: 3px; }

/* adaptatif */
@media (max-width: 1040px) {
  .wp-block-navigation.nav, .wp-block-navigation.nav .wp-block-navigation__container { gap: 16px; }
  .wp-block-navigation.nav { font-size: 14px; }
  .hero-panneau { padding: 44px 40px; }
  .services-grille { grid-template-columns: 1fr 1fr; }
  .avantages-panneau { grid-template-columns: 1fr; padding: 56px 40px 96px; }
  .avantages-tete::after { display: none; }
  .faq { grid-template-columns: 1fr; gap: 36px; }
  .secteurs-grille { grid-template-columns: repeat(3, 1fr); }
  .page-panneau { gap: 36px; padding: 44px 40px; }
  .coordonnee { padding: 28px 22px 30px; }
  .coordonnee .coordonnee-valeur { font-size: 19px; }
  .mission-rang { gap: 36px; }
  .soumission-cadre { grid-template-columns: 1fr; padding: 48px 40px; }
}
@media (max-width: 820px) {
  .enveloppe, .paiements { width: min(1180px, 100% - 32px); }
  .entete-rang { flex-wrap: wrap; gap: 12px; }
  .wp-block-site-logo.logo img { height: 58px; }
  .entete-appel { margin-left: auto; }
  .wp-block-button.appel .wp-block-button__link { padding: 10px 14px; font-size: 16px; }
  .wp-block-navigation.nav { order: 4; width: 100%; margin: 0; }
  .wp-block-navigation.nav .wp-block-navigation__container { flex-wrap: wrap; gap: 4px 16px; }
  .hero-panneau { grid-template-columns: 1fr; gap: 30px; padding: 32px 24px 36px; }
  .hero-visuel { padding: 0 32px 28px 0; }
  .wp-block-image.hero-petite { width: 44%; box-shadow: 0 0 0 6px var(--turquoise-pale); }
  .hero-texte .hero-sous { font-size: 16px; }
  .wp-block-button.b-noir .wp-block-button__link,
  .wp-block-button.b-turquoise .wp-block-button__link { padding: 16px 20px; font-size: 14px; letter-spacing: 0.1em; }
  .paiements { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; padding: 0 0 36px; }
  .paiements-liste { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
  .mission { padding: 72px 0 40px; }
  .mission-rang { grid-template-columns: 1fr; }
  .mission::after { bottom: -30px; width: 42%; }
  .secteurs-grille { grid-template-columns: 1fr 1fr; gap: 12px; }
  .secteur .secteur-nom { padding: 36px 12px 12px; font-size: 15px; }
  .secteur.secteur-zone .secteur-nom { padding: 14px; font-size: 18px; }
  .bande { min-height: 320px; }
  .bande-texte { padding: 36px 24px; }
  .services { padding-top: 96px; }
  .services-tete { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-grille { gap: 16px; }
  .service:nth-child(even) { margin-top: 28px; }
  .service h3 { font-size: 19px; }
  .avantages, .etapes, .secteurs, .appel-bande, .faq, .soumission, .pied { margin-top: 84px; }
  .avantages-panneau { padding: 40px 24px 48px; }
  .avantages-liste { grid-template-columns: 1fr; gap: 22px; }
  .atout:nth-child(even) { --decale: 0px; margin-left: 28px; }
  .atout:nth-child(odd) { margin-right: 28px; }
  .etapes-liste { grid-template-columns: 1fr; margin-top: 40px; }
  .page-panneau { grid-template-columns: 1fr; gap: 30px; padding: 32px 24px; }
  .page-panneau-simple { padding: 28px 24px; }
  .politique-corps { margin-top: 32px; }
  .coordonnees { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .coordonnee { padding: 26px 24px 28px; }
  .soumission-cadre { padding: 36px 22px; }
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .pied-rang { grid-template-columns: 1fr; gap: 36px; }
  .texte-espace { font-size: 16px; letter-spacing: 0.08em; }
  .question summary { font-size: 18px; }
}
@media (max-width: 599px) {
  .wp-block-navigation.nav { order: 3; width: auto; }
}
/* apparition au défilement — active seulement quand app.js a posé html.js-anime,
   donc jamais dans l'éditeur ni sans JavaScript */
html.js-anime .anime {
  opacity: 0;
  transform: translateY(calc(var(--decale, 0px) + 24px));
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--rang, 0) * 80ms);
}
html.js-anime .anime.est-visible {
  opacity: 1;
  transform: translateY(var(--decale, 0px));
}
html.js-anime .anime.est-visible:where(.service, .secteur) { transform: none; }
/* la lame des titres se trace de gauche à droite */
html.js-anime .titre-espace.anime em::before {
  transform: skewX(-24deg) scaleX(0);
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1) .45s;
}
html.js-anime .titre-espace.anime.est-visible em::before { transform: skewX(-24deg) scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  html.js-anime .anime { opacity: 1; transform: translateY(var(--decale, 0px)); }
  html.js-anime .titre-espace.anime em::before { transform: skewX(-24deg) scaleX(1); }
}
