/* ============================================================
   Ohmelec — Système de design
   ------------------------------------------------------------
   Mobile-first, CSS variables, sans framework.
   Sommaire :
     1. Tokens (variables CSS)
     2. Reset & base
     3. Typographie
     4. Utilitaires layout
     5. Header & navigation
     6. Footer
     7. Boutons
     8. Cartes & vignettes
     9. Sections (hero, étude conso, engagements, CTA)
    10. Formulaires
    11. Pages spécifiques (zone, légales, 404)
    12. Responsive (>= 768px, >= 1024px)
    13. Accessibilité (focus, reduced motion)
   ============================================================ */

/* -------------------- 1. Tokens -------------------- */
:root {
  /* Palette */
  --c-blue: #1E3A5F;
  --c-blue-dark: #142A47;
  --c-blue-light: #5B8AB8;
  --c-green: #3D8B5E;
  --c-green-dark: #2F6E4A;
  --c-bg: #F5F7F4;
  --c-bg-alt: #ECEFE9;
  --c-white: #FFFFFF;
  --c-text: #2C3E50;
  --c-text-soft: #5A6B7B;
  --c-border: #D8DEE3;
  --c-error: #B0303C;
  --c-success: #2F6E4A;

  /* Typographie */
  --ff-heading: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-base: 1rem;        /* 16px */
  --lh-base: 1.6;
  --lh-tight: 1.2;

  /* Espace (base 8) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Ombres */
  --sh-sm: 0 2px 6px rgba(30,58,95,.08);
  --sh-md: 0 8px 24px rgba(30,58,95,.10);
  --sh-lg: 0 16px 40px rgba(30,58,95,.14);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --header-h: 72px;

  /* Animation */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-fast: .15s;
  --t-base: .25s;
}

/* -------------------- 2. Reset & base -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  padding-left: 1.2em;
}

a {
  color: var(--c-blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast) var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--c-blue);
}

button {
  font: inherit;
  cursor: pointer;
}

/* -------------------- 3. Typographie -------------------- */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--c-blue);
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-4);
  font-weight: 800;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + .8rem, 1.4rem); }
h4 { font-size: 1.1rem; }

p {
  margin: 0 0 var(--s-4);
}

.lead {
  font-size: 1.15rem;
  color: var(--c-text-soft);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: var(--s-3);
}

/* -------------------- 4. Utilitaires layout -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-4);
  padding-right: var(--s-4);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--s-4);
  padding-right: var(--s-4);
}

.section {
  padding: var(--s-7) 0;
}

.section--alt {
  background: var(--c-bg-alt);
}

.section--dark {
  background: var(--c-blue);
  color: var(--c-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--c-white);
}

.section-head {
  text-align: center;
  margin-bottom: var(--s-7);
}

.grid {
  display: grid;
  gap: var(--s-5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background: var(--c-blue);
  color: var(--c-white);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-3);
  color: var(--c-white);
}

/* -------------------- 5. Header & navigation -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--sh-sm);
  border-bottom-color: var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--s-4);
}

.brand {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--c-blue);
  text-decoration: none;
  letter-spacing: -.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-blue);
}

.brand-omega {
  color: var(--c-green);
  font-weight: 700;
}

.brand__logo {
  height: 36px;
  width: auto;
  display: block;
}

@media (min-width: 1024px) {
  .brand__logo { height: 44px; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0;
}

.nav-toggle__bars {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-blue);
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-blue);
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}

.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--c-bg);
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease);
  overflow-y: auto;
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
}

.primary-nav.is-open {
  transform: translateX(0);
}

.primary-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.primary-nav__link {
  display: block;
  padding: var(--s-3) var(--s-3);
  font-family: var(--ff-heading);
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
  border-radius: var(--r-sm);
  font-size: 1.1rem;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  background: var(--c-bg-alt);
  color: var(--c-blue);
}

.primary-nav__link[aria-current="page"] {
  color: var(--c-green);
}

.primary-nav__cta {
  margin-top: var(--s-5);
}

/* -------------------- 6. Footer -------------------- */
.site-footer {
  background: var(--c-blue);
  color: var(--c-bg);
  padding: var(--s-7) 0 var(--s-5);
  margin-top: var(--s-8);
}

.site-footer h2 {
  color: var(--c-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--s-4);
}

.site-footer a {
  color: var(--c-bg);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--c-white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-brand p {
  color: rgba(245,247,244,.85);
  font-size: .95rem;
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(245,247,244,.7);
}

/* -------------------- 7. Boutons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 24px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  min-height: 48px;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--c-green);
  color: var(--c-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-green-dark);
  color: var(--c-white);
}

.btn--secondary {
  background: transparent;
  color: var(--c-blue);
  border-color: var(--c-blue);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--c-blue);
  color: var(--c-white);
}

.btn--ghost {
  background: var(--c-white);
  color: var(--c-blue);
  border-color: var(--c-white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

/* -------------------- 8. Cartes & vignettes -------------------- */
.card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

a.card,
.card a {
  text-decoration: none;
  color: inherit;
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(61,139,94,.1);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  color: var(--c-green);
  flex-shrink: 0;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: var(--s-2);
}

.card__desc {
  color: var(--c-text-soft);
  font-size: .95rem;
  margin: 0 0 var(--s-4);
  flex: 1;
}

.card__link {
  font-family: var(--ff-heading);
  font-weight: 600;
  color: var(--c-blue-light);
  text-decoration: none;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}

a.card:hover .card__link,
a.card:focus-visible .card__link {
  color: var(--c-blue);
}

.card__link::after {
  content: '→';
  transition: transform var(--t-fast) var(--ease);
}

a.card:hover .card__link::after {
  transform: translateX(4px);
}

/* Grilles cartes */
.cards-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}

/* -------------------- 9. Sections spécifiques -------------------- */

/* Hero */
.hero {
  position: relative;
  padding: var(--s-7) 0 var(--s-8);
  background:
    radial-gradient(circle at 100% 0%, rgba(61,139,94,.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg) 100%);
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(61,139,94,.12);
  color: var(--c-green-dark);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: .85rem;
  margin-bottom: var(--s-4);
}

.hero__title {
  max-width: 18ch;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--c-text-soft);
  max-width: 56ch;
  margin-bottom: var(--s-5);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero__meta {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  color: var(--c-text-soft);
  font-size: .95rem;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.hero__meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--c-green);
}

/* Carte "Étude consommation" mise en avant */
.spotlight {
  background:
    radial-gradient(circle at 0% 100%, rgba(61,139,94,.25) 0%, transparent 60%),
    var(--c-blue);
  color: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-5);
  position: relative;
  overflow: hidden;
}

.spotlight__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: rgba(255,255,255,.12);
  color: var(--c-white);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-weight: 600;
  width: fit-content;
}

.spotlight h2 {
  color: var(--c-white);
  margin-bottom: var(--s-3);
}

.spotlight p {
  color: rgba(245,247,244,.9);
  max-width: 60ch;
}

.spotlight__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: grid;
  gap: var(--s-3);
}

.spotlight__list li {
  position: relative;
  padding-left: 26px;
  color: rgba(245,247,244,.95);
}

.spotlight__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-green);
}

/* Engagements */
.commitments {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}

.commitment {
  text-align: left;
  padding: var(--s-4) 0;
}

.commitment__icon {
  width: 40px;
  height: 40px;
  color: var(--c-green);
  margin-bottom: var(--s-3);
}

.commitment h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s-2);
}

.commitment p {
  color: var(--c-text-soft);
  font-size: .95rem;
  margin: 0;
}

/* =================== SIMULATEUR =================== */
.simulateur {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-md);
  display: grid;
  gap: var(--s-5);
  max-width: 760px;
  margin: 0 auto;
}

.simulateur__row {
  display: grid;
  gap: var(--s-3);
}

.simulateur__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-family: var(--ff-heading);
  font-weight: 600;
  color: var(--c-blue);
  font-size: 1rem;
}

.simulateur__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-green);
  white-space: nowrap;
}

/* Slider custom */
.simulateur__slider {
  --sim-progress: 25%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    to right,
    var(--c-green) 0%,
    var(--c-green) var(--sim-progress),
    var(--c-border) var(--sim-progress),
    var(--c-border) 100%
  );
  border-radius: var(--r-pill);
  outline: none;
  cursor: pointer;
}

.simulateur__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: var(--c-white);
  border: 3px solid var(--c-green);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast) var(--ease);
}

.simulateur__slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.simulateur__slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--c-white);
  border: 3px solid var(--c-green);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--sh-sm);
}

.simulateur__slider:focus-visible {
  outline: 3px solid var(--c-blue-light);
  outline-offset: 4px;
}

.simulateur__range {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--c-text-soft);
  margin-top: var(--s-1);
}

/* Boutons de choix (radio-like) */
.simulateur__choices {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .simulateur__choices--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .simulateur__choices { grid-template-columns: repeat(3, 1fr); }
}

.simulateur__choice {
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-text);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.simulateur__choice:hover {
  border-color: var(--c-blue-light);
  color: var(--c-blue);
}

.simulateur__choice.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-white);
}

.simulateur__choice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Résultats */
.simulateur__results {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, rgba(61,139,94,.10) 0%, rgba(91,138,184,.06) 100%);
  border-radius: var(--r-md);
  padding: var(--s-5);
  border: 1px solid rgba(61,139,94,.20);
}

@media (min-width: 600px) {
  .simulateur__results { grid-template-columns: 1fr 1fr; }
}

.simulateur__result {
  text-align: center;
}

.simulateur__result-label {
  font-size: .85rem;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--s-2);
  font-weight: 600;
}

.simulateur__result-value {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--c-blue);
  line-height: 1;
}

.simulateur__result-sub {
  font-size: .9rem;
  color: var(--c-text-soft);
  margin-top: var(--s-2);
}

.simulateur__disclaimer {
  font-size: .85rem;
  color: var(--c-text-soft);
  font-style: italic;
  text-align: center;
  margin: 0;
}

.simulateur__cta {
  text-align: center;
}

/* CTA Final */
.cta-final {
  text-align: center;
  background: var(--c-blue);
  color: var(--c-white);
  padding: var(--s-8) var(--s-4);
  border-radius: var(--r-lg);
  margin: 0 var(--s-4);
}

.cta-final h2 {
  color: var(--c-white);
}

.cta-final p {
  color: rgba(245,247,244,.9);
  max-width: 50ch;
  margin: 0 auto var(--s-5);
}

/* -------------------- 10. Formulaires -------------------- */
.form {
  display: grid;
  gap: var(--s-4);
}

.form-row {
  display: grid;
  gap: var(--s-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.field > label {
  font-family: var(--ff-heading);
  font-weight: 600;
  color: var(--c-blue);
  font-size: .95rem;
}

.field .required {
  color: var(--c-error);
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--c-text);
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(61,139,94,.2);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--c-error);
}

.field__error {
  color: var(--c-error);
  font-size: .85rem;
  min-height: 1em;
}

.field__hint {
  color: var(--c-text-soft);
  font-size: .85rem;
}

.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s-3);
}

.field--checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--c-green);
  flex-shrink: 0;
}

.field--checkbox label {
  font-weight: 400;
  color: var(--c-text);
  font-size: .95rem;
}

.form-note {
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-green);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--c-text-soft);
}

/* -------------------- 11. Pages spécifiques -------------------- */

/* En-tête de page (sous-pages) */
.page-header {
  padding: var(--s-7) 0 var(--s-5);
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
}

.page-header h1 {
  margin-bottom: var(--s-3);
}

.page-header p {
  color: var(--c-text-soft);
  max-width: 60ch;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: .9rem;
  color: var(--c-text-soft);
  margin-bottom: var(--s-3);
}

.breadcrumb a {
  color: var(--c-text-soft);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--c-blue); }

/* Page zone d'intervention */
.zone-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}

.zone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2) var(--s-4);
}

.zone-list li {
  position: relative;
  padding-left: 22px;
  color: var(--c-text);
  font-size: .95rem;
}

.zone-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-green);
}

.map-illustration {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
}

.map-illustration svg {
  width: 100%;
  height: auto;
}

/* Pages légales (prose) */
.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
}

.prose h3 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}

.prose ul {
  margin-bottom: var(--s-4);
}

.prose li {
  margin-bottom: var(--s-2);
}

/* FAQ accordion (réutilisable) */
.faq {
  display: grid;
  gap: var(--s-3);
}
.faq details {
  background: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--c-border);
}
.faq summary {
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  font-family: var(--ff-heading);
  font-weight: 600;
  color: var(--c-blue);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--c-green);
  transition: transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq details > div {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--c-text);
}
.faq details > div p { margin: 0 0 var(--s-3); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Listes 2 colonnes "inclus / exclus" pour pages prestations */
.include-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .include-grid { grid-template-columns: 1fr 1fr; }
}
.include-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--sh-sm);
  border-top: 4px solid var(--c-green);
}
.include-card--exclude {
  border-top-color: var(--c-text-soft);
}
.include-card h3 {
  font-size: 1.15rem;
  margin: 0 0 var(--s-3);
}
.include-card ul {
  margin: 0;
  padding-left: 1.2em;
}
.include-card li {
  margin-bottom: var(--s-2);
  color: var(--c-text);
}

/* Badge logo secondaire dans le header (côté droit, desktop uniquement) */
.brand-mark {
  display: none;
  margin-left: var(--s-4);
  flex-shrink: 0;
  text-decoration: none;
}
.brand-mark img {
  width: 44px;
  height: 44px;
  display: block;
  transition: transform var(--t-fast) var(--ease);
}
.brand-mark:hover img,
.brand-mark:focus-visible img {
  transform: scale(1.05);
}
@media (min-width: 1024px) {
  .brand-mark { display: block; }
}

/* Bouton flottant "Demander un devis" (suit le scroll) */
.floating-cta {
  position: fixed;
  bottom: var(--s-5);
  right: var(--s-5);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--c-green);
  color: var(--c-white);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  text-decoration: none;
  transition: transform var(--t-base) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.floating-cta:hover,
.floating-cta:focus-visible {
  background: var(--c-green-dark);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(30,58,95,.25);
}
.floating-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .floating-cta {
    bottom: var(--s-4);
    right: var(--s-4);
    padding: var(--s-3) var(--s-4);
    font-size: .95rem;
  }
}

/* Cards "Formations & qualifications" */
.qualifications-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .qualifications-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .qualifications-grid { grid-template-columns: repeat(3, 1fr); }
}
.qualification-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
  border-left: 4px solid var(--c-green);
  position: relative;
}
.qualification-card--pending {
  border-left-color: var(--c-blue-light);
  background: var(--c-bg);
}
.qualification-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-green);
  margin-bottom: var(--s-2);
}
.qualification-card--pending .qualification-card__badge {
  color: var(--c-blue-light);
}
.qualification-card__badge svg {
  width: 16px;
  height: 16px;
}
.qualification-card h3 {
  font-size: 1.1rem;
  margin: 0 0 var(--s-2);
}
.qualification-card p {
  color: var(--c-text-soft);
  margin: 0 0 var(--s-3);
  font-size: .95rem;
}
.qualification-card .tag-list {
  margin-top: var(--s-3);
}

/* Section "Qui je suis" — photo (gauche, taille naturelle) + texte (droite) sur fond bleu marine */
.about-banner {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--c-blue);
  box-shadow: var(--sh-md);
}
@media (min-width: 768px) {
  .about-banner {
    grid-template-columns: auto 1fr;
  }
}
.about-banner__photo {
  display: block;
  background: var(--c-blue);
}
.about-banner__photo img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 35%;
}
@media (min-width: 768px) {
  .about-banner__photo img {
    height: 100%;
    width: auto;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
  }
}
.about-banner__inner {
  padding: var(--s-5);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .about-banner__inner {
    padding: var(--s-5) var(--s-6);
  }
}
.about-banner__eyebrow {
  color: var(--c-white);
  opacity: .9;
  margin-bottom: var(--s-2);
}
.about-banner__title {
  color: var(--c-white);
  margin-bottom: var(--s-3);
  font-size: clamp(1.2rem, 1.6vw + .6rem, 1.5rem);
}
.about-banner__text {
  color: rgba(255,255,255,.95);
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: var(--s-3);
}
.about-banner__text:last-child { margin-bottom: 0; }
.about-banner__text strong {
  color: var(--c-white);
  font-weight: 700;
}

/* Galerie photo "ruban" (3 photos, slide scroll-snap) */
.gallery {
  position: relative;
}
.gallery__track {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--s-3);
  scroll-behavior: smooth;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .gallery__card { flex: 0 0 calc(50% - var(--s-3)); }
}
@media (min-width: 1024px) {
  .gallery__card { flex: 0 0 calc(33.333% - (var(--s-4) * 2 / 3)); }
}
.gallery__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__placeholder {
  text-align: center;
  color: var(--c-text-soft);
  padding: var(--s-5);
}
.gallery__placeholder svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--s-3);
  color: var(--c-blue-light);
  opacity: .6;
}
.gallery__placeholder p {
  margin: 0;
  font-size: .9rem;
  font-style: italic;
}
.gallery__caption {
  padding: var(--s-3) var(--s-4);
  font-size: .95rem;
  color: var(--c-text);
  font-family: var(--ff-heading);
  font-weight: 600;
}
.gallery__caption:empty { display: none; }
.gallery__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-4);
  gap: var(--s-4);
}
.gallery__nav[hidden] { display: none; }
.gallery__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.gallery__btn:hover:not([disabled]),
.gallery__btn:focus-visible:not([disabled]) {
  background: var(--c-blue);
  color: var(--c-white);
}
.gallery__btn[disabled] {
  opacity: .35;
  cursor: not-allowed;
}
.gallery__btn svg {
  width: 22px;
  height: 22px;
}
.gallery__dots {
  display: flex;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gallery__dot[aria-current="true"] {
  background: var(--c-green);
  transform: scale(1.2);
}
.gallery__dot:focus-visible {
  outline: 3px solid var(--c-blue-light);
  outline-offset: 2px;
}

/* Lightbox photo (ouverture au clic sur une image de galerie) */
.gallery__card img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 42, 71, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  z-index: 1000;
}
.lightbox[hidden] { display: none; }
.lightbox__inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  background: var(--c-white);
}
.lightbox__caption {
  color: var(--c-white);
  text-align: center;
  margin-top: var(--s-4);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1rem;
}
.lightbox__caption:empty { display: none; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--c-white);
  color: var(--c-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: var(--sh-md);
}
.lightbox__close { top: -56px; right: 0; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: -64px; }
.lightbox__nav--next { right: -64px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--c-blue); color: var(--c-white); }
@media (max-width: 900px) {
  .lightbox__nav--prev { left: var(--s-3); }
  .lightbox__nav--next { right: var(--s-3); }
  .lightbox__close { top: var(--s-3); right: var(--s-3); }
}

/* Liste de normes / mentions à puces nettes */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
}
.tag-list li {
  background: var(--c-bg-alt);
  color: var(--c-blue);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
}

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-8) var(--s-4);
}

.error-page__code {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 6rem;
  color: var(--c-blue);
  line-height: 1;
  margin-bottom: var(--s-3);
}

/* -------------------- 12. Responsive -------------------- */

/* Tablette */
@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .commitments {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }

  .zone-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --header-h: 80px;
  }

  .section { padding: var(--s-8) 0; }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .commitments {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    padding: 0;
    overflow: visible;
    flex-direction: row;
    align-items: center;
  }

  .primary-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--s-1);
  }

  .primary-nav__link {
    padding: var(--s-2) var(--s-3);
    font-size: 1rem;
  }

  .primary-nav__cta {
    margin-top: 0;
    margin-left: var(--s-4);
  }

  .spotlight {
    grid-template-columns: 1.2fr 1fr;
    padding: var(--s-8);
    gap: var(--s-7);
    align-items: center;
  }

  .zone-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .hero {
    padding: var(--s-8) 0 var(--s-9);
  }
}

/* -------------------- 13. Accessibilité -------------------- */
:focus-visible {
  outline: 3px solid var(--c-blue-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline-offset: 3px;
}

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

/* Prévenir scroll quand menu mobile ouvert */
body.nav-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  body.nav-open { overflow: auto; }
}
