/**
 * main.css — éCauxLogique
 * Mobile-first, sobre, autonome.
 * Palette stricte du projet.
 * Pas de framework externe.
 */

/* === Variables === */

:root {
  /* Palette principale */
  --color-brand: #657b69;
  --color-brand-dark: #516254;
  --color-brand-soft: #dfe8e1;
  --color-brand-pale: #f2f6f3;
  --color-text: #56565b;
  --color-title: #3f4442;
  --color-muted: #76777d;
  --color-border: #d9ded9;
  --color-background: #ffffff;
  --color-background-soft: #f7f8f6;
  --color-warning-soft: #fff7e8;
  --color-success-soft: #edf7ee;

  /* Tokens sémantiques (alertes, états, typo marque) */
  --color-on-brand: #ffffff;
  --color-success-border: #a3d9a8;
  --color-success-text: #2f5c32;
  --color-warning-border: #e8c89a;
  --color-warning-text: #5c3f1f;
  --color-warning-accent: #f0c36b;
  --color-error-soft: #f5d0d0;
  --color-error-border: #e8a0a0;
  --color-error-text: #7a3a3a;
  --color-accent-warm: #b35c3a;
  --color-brand-typo: #627261;
  --color-counter-low-text: #8c6f3a;
  --color-counter-low-fill: #c9a46a;
  --color-counter-high-text: #b36b2e;
  --color-counter-high-fill: #c17a3f;
  --color-media-overlay: rgba(0, 0, 0, 0.15);
  --color-print-text: #000000;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-toggle: 0 3px 10px rgba(0, 0, 0, 0.18);

  /* Espacements et rayons (sobre) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --radius: 0.75rem;
  --radius-lg: 1.25rem;

  --max-width: 1080px;
  --container-padding: 1rem;
}

/* Mode sombre « Nuit sage » — préférence système (sauf forçage clair) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-brand: #8fa899;
    --color-brand-dark: #a8bdb0;
    --color-brand-soft: #2f3a35;
    --color-brand-pale: #28322d;
    --color-text: #d0d4d1;
    --color-title: #e8ebe9;
    --color-muted: #9aa39e;
    --color-border: #3a4540;
    --color-background: #1c211e;
    --color-background-soft: #252a27;
    --color-warning-soft: #2e2618;
    --color-success-soft: #1e2e22;
    --color-on-brand: #ffffff;
    --color-success-border: #4a7a52;
    --color-success-text: #a8d4ac;
    --color-warning-border: #7a6040;
    --color-warning-text: #e8c89a;
    --color-warning-accent: #9a7848;
    --color-error-soft: #3a2222;
    --color-error-border: #8a5050;
    --color-error-text: #e8b0b0;
    --color-accent-warm: #d4845c;
    --color-brand-typo: #a8b8aa;
    --color-counter-low-text: #c9a46a;
    --color-counter-low-fill: #8c6f3a;
    --color-counter-high-text: #d4845c;
    --color-counter-high-fill: #b36b2e;
  
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-toggle: 0 3px 10px rgba(0, 0, 0, 0.45);
  }
}

/* Mode sombre — choix manuel */
:root[data-theme="dark"] {
  --color-brand: #8fa899;
  --color-brand-dark: #a8bdb0;
  --color-brand-soft: #2f3a35;
  --color-brand-pale: #28322d;
  --color-text: #d0d4d1;
  --color-title: #e8ebe9;
  --color-muted: #9aa39e;
  --color-border: #3a4540;
  --color-background: #1c211e;
  --color-background-soft: #252a27;
  --color-warning-soft: #2e2618;
  --color-success-soft: #1e2e22;
  --color-on-brand: #ffffff;
  --color-success-border: #4a7a52;
  --color-success-text: #a8d4ac;
  --color-warning-border: #7a6040;
  --color-warning-text: #e8c89a;
  --color-warning-accent: #9a7848;
  --color-error-soft: #3a2222;
  --color-error-border: #8a5050;
  --color-error-text: #e8b0b0;
  --color-accent-warm: #d4845c;
  --color-brand-typo: #a8b8aa;
  --color-counter-low-text: #c9a46a;
  --color-counter-low-fill: #8c6f3a;
  --color-counter-high-text: #d4845c;
  --color-counter-high-fill: #b36b2e;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-toggle: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Forçage clair sur système sombre */
:root[data-theme="light"] {
  --color-brand: #657b69;
  --color-brand-dark: #516254;
  --color-brand-soft: #dfe8e1;
  --color-brand-pale: #f2f6f3;
  --color-text: #56565b;
  --color-title: #3f4442;
  --color-muted: #76777d;
  --color-border: #d9ded9;
  --color-background: #ffffff;
  --color-background-soft: #f7f8f6;
  --color-warning-soft: #fff7e8;
  --color-success-soft: #edf7ee;
  --color-on-brand: #ffffff;
  --color-success-border: #a3d9a8;
  --color-success-text: #2f5c32;
  --color-warning-border: #e8c89a;
  --color-warning-text: #5c3f1f;
  --color-warning-accent: #f0c36b;
  --color-error-soft: #f5d0d0;
  --color-error-border: #e8a0a0;
  --color-error-text: #7a3a3a;
  --color-accent-warm: #b35c3a;
  --color-brand-typo: #627261;
  --color-counter-low-text: #8c6f3a;
  --color-counter-low-fill: #c9a46a;
  --color-counter-high-text: #b36b2e;
  --color-counter-high-fill: #c17a3f;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-toggle: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* === Base === */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-background);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Skip link pour accessibilité (conforme référentiel Accessibilité) - visible uniquement au focus clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--color-brand);
  color: var(--color-on-brand);
  text-decoration: none;
  left: 0;
  top: 0;
}

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

a {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-brand);
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  color: var(--color-title);
  line-height: 1.25;
  margin: 0 0 var(--space-md) 0;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; margin-top: 1.25rem; } /* 20px : aération entre blocs, sans double avec le padding de section */
h3 { font-size: 1.1rem; }

p {
  margin: 0 0 var(--space-md) 0;
}

ul, ol {
  margin: 0 0 var(--space-md) var(--space-lg);
  padding-left: 1.25rem;
}

/* === Layout === */

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

.narrow {
  max-width: 720px;
}

/* === Header et navigation === */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-md);
}

.site-logo img {
  width: auto;
  max-width: 200px;
  height: 52px;
  display: block;
}

.main-nav {
  display: none; /* caché par défaut sur mobile */
}

.main-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) var(--container-padding);
  box-shadow: var(--shadow-sm);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-list a,
.nav-list .nav-link {
  display: block;
  padding: 0.35rem 0.4rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border-radius: 4px;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active,
.nav-list .nav-link:hover,
.nav-list .nav-link:focus-visible,
.nav-list .nav-link.active {
  color: var(--color-brand-dark);
  background: var(--color-brand-pale);
}

/* Sous-menus (optionnels) — mobile : accordéon */
.nav-item-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item-row .nav-link {
  flex: 1;
  min-width: 0;
}

.submenu-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: var(--color-title);
}

.submenu-toggle__icon {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}

.nav-item.is-open > .nav-item-row .submenu-toggle__icon,
.nav-item.has-submenu.is-open .submenu-toggle__icon {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-submenu {
  list-style: none;
  margin: 0.15rem 0 0.35rem 0.75rem;
  padding: 0 0 0 0.5rem;
  border-left: 2px solid var(--color-brand-soft);
  display: none;
}

.nav-item.is-open > .nav-submenu {
  display: block;
}

.nav-submenu a {
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.4rem 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn.header-cta {
  display: inline-flex;
  white-space: nowrap;
}

/* Bascule thème clair / sombre */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

/* Icône lune (mode clair effectif → inviter au sombre) */
.theme-toggle__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset -5px -2px 0 0 var(--color-title);
}

/* Icône soleil (mode sombre effectif → inviter au clair) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__icon::before {
    box-shadow: none;
    background: transparent;
    border: 2px solid var(--color-title);
    border-radius: 50%;
  }
  :root:not([data-theme="light"]) .theme-toggle__icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    background:
      linear-gradient(var(--color-title), var(--color-title)) center top / 2px 4px no-repeat,
      linear-gradient(var(--color-title), var(--color-title)) center bottom / 2px 4px no-repeat,
      linear-gradient(var(--color-title), var(--color-title)) left center / 4px 2px no-repeat,
      linear-gradient(var(--color-title), var(--color-title)) right center / 4px 2px no-repeat,
      linear-gradient(var(--color-title), var(--color-title)) 3px 3px / 3px 2px no-repeat,
      linear-gradient(var(--color-title), var(--color-title)) calc(100% - 3px) 3px / 3px 2px no-repeat,
      linear-gradient(var(--color-title), var(--color-title)) 3px calc(100% - 3px) / 3px 2px no-repeat,
      linear-gradient(var(--color-title), var(--color-title)) calc(100% - 3px) calc(100% - 3px) / 3px 2px no-repeat;
  }
}

:root[data-theme="dark"] .theme-toggle__icon::before {
  box-shadow: none;
  background: transparent;
  border: 2px solid var(--color-title);
  border-radius: 50%;
}

:root[data-theme="dark"] .theme-toggle__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  background:
    linear-gradient(var(--color-title), var(--color-title)) center top / 2px 4px no-repeat,
    linear-gradient(var(--color-title), var(--color-title)) center bottom / 2px 4px no-repeat,
    linear-gradient(var(--color-title), var(--color-title)) left center / 4px 2px no-repeat,
    linear-gradient(var(--color-title), var(--color-title)) right center / 4px 2px no-repeat,
    linear-gradient(var(--color-title), var(--color-title)) 3px 3px / 3px 2px no-repeat,
    linear-gradient(var(--color-title), var(--color-title)) calc(100% - 3px) 3px / 3px 2px no-repeat,
    linear-gradient(var(--color-title), var(--color-title)) 3px calc(100% - 3px) / 3px 2px no-repeat,
    linear-gradient(var(--color-title), var(--color-title)) calc(100% - 3px) calc(100% - 3px) / 3px 2px no-repeat;
}

:root[data-theme="light"] .theme-toggle__icon::after {
  content: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--color-title);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Smartphone : libellé court CTA (un seul texte HTML, pas de doublon si cache périmé) */
@media (max-width: 767.98px) {
  .btn.header-cta {
    font-size: 0;
  }

  .btn.header-cta::after {
    content: "Contact";
    font-size: 0.95rem;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem 0.65rem;
  }

  .site-logo img {
    max-width: 240px;
    height: 62px;
  }

  /* Sous-menus desktop : déroulant au survol / focus / ouverture JS */
  .nav-item.has-submenu {
    position: relative;
  }

  .nav-item-row {
    gap: 0;
  }

  .submenu-toggle {
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
  }

  .submenu-toggle__icon {
    width: 0.4rem;
    height: 0.4rem;
  }

  .nav-submenu {
    display: none;
    position: absolute;
    /* Légère séparation visuelle ; le ::before comble la zone morte
       pour que le :hover tienne au passage lent de la souris. */
    top: calc(100% + 0.2rem);
    left: 0;
    min-width: 14rem;
    margin: 0;
    padding: 0.4rem 0;
    border: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-background);
    box-shadow: var(--shadow-md);
    z-index: 40;
  }

  /* Pont de survol invisible entre le libellé et le panneau */
  .nav-submenu::before {
    content: "";
    position: absolute;
    top: -0.35rem;
    left: 0;
    right: 0;
    height: 0.35rem;
  }

  .nav-item.has-submenu:hover > .nav-submenu,
  .nav-item.has-submenu:focus-within > .nav-submenu,
  .nav-item.has-submenu.is-open > .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
  }
}

@media (max-width: 360px) {
  .site-logo img {
    max-width: 160px;
    height: 42px;
  }
}

/* Sticky en fin de section header (spécificité) */
.site-header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

/* === Composants (boutons, alertes, cartes) === */

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 44px; /* tactile friendly */
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-color: var(--color-brand);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: var(--color-on-brand);
}

/* État désactivé du bouton (activé dynamiquement par JS quand le formulaire est prêt) */
.btn:disabled,
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-border);
  border-color: var(--color-border);
  color: var(--color-muted);
}

.btn-secondary {
  background: var(--color-background);
  color: var(--color-brand-dark);
  border-color: var(--color-brand);
}

.btn-secondary:hover {
  background: var(--color-brand-pale);
}

.btn-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-block {
  width: 100%;
}

@media (max-width: 360px) {
  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 0.95rem;
  }

  .btn.header-cta::after {
    font-size: 0.9rem;
  }
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.alert-success {
  background: var(--color-success-soft);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
}
.alert-error {
  background: var(--color-warning-soft);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-text);
}
.alert-error ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* === Hero et illustrations === */

/* Sections & hero */
.hero {
  padding: var(--space-xl) 0;
  background: var(--color-background-soft);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-text h1 {
  font-size: 1.65rem;
  margin-bottom: var(--space-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .hero-text {
    flex: 1 1 52%;
  }

  .hero-illustration {
    flex: 1 1 42%;
    max-width: 520px;
  }
}

/* Illustrations éditoriales (accueil, pages, couvertures blog) */
.hero-illustration picture,
.hero-illustration img,
.illustration-container picture,
.illustration-container img,
.illustration img {
  border-radius: var(--radius-lg);
}

.hero-illustration picture,
.illustration-container picture,
.illustration {
  overflow: hidden;
}

.hero-illustration picture,
.hero-illustration img,
.illustration-container picture,
.illustration-container img {
  box-shadow: var(--shadow-sm);
  outline: 1px solid var(--color-border);
}

/* Hero illustration */
.hero-illustration {
  margin-top: var(--space-lg);
}

.hero-illustration picture,
.hero-illustration img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-illustration {
    margin-top: 0;
  }
}

.illustration {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.illustration--hero {
  width: 100%;
}

.illustration--page {
  width: min(100%, 620px);
  margin: 0 auto var(--space-xl);
}

.illustration-container {
  padding: 0 var(--container-padding) var(--space-lg);
}

.illustration-container picture {
  display: block;
}

.illustration-container img {
  display: block;
  width: 100%;
  height: auto;
}

/*
 * Surfaces de section : fond + surface complémentaire pour cartes / blocs flottants.
 * L’alternance est automatique via :nth-of-type (indépendante du nombre de sections).
 * --surface-on-section = inverse du fond pour garantir le contraste des .card.
 * Hero (div) et page-header ne comptent pas dans l’alternance.
 * .section--alt et .section--soft permettent de forcer manuellement un fond soft.
 */
.section {
  --section-bg: var(--color-background);
  --surface-on-section: var(--color-background-soft);
  /* Padding (pas margin) pour éviter le collapse hors du fond de section */
  padding: 1.25rem 0 0.625rem; /* 20px haut / 10px bas */
  background: var(--section-bg);
}

.section:nth-of-type(even),
.section--alt,
.section--soft {
  --section-bg: var(--color-background-soft);
  --surface-on-section: var(--color-background);
}

.section--center {
  text-align: center;
  padding-top: 0.625rem; /* 10px : CTA final plus compact */
  padding-bottom: 0.625rem;
}

/* Premier titre de section : le padding-top de .section suffit (évite 20+20) */
.section > .container > h2:first-child {
  margin-top: 0;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

/* === Accueil — réassurance, présentation et réalisations ===
 * Mobile-first : empilé par défaut, mise en page enrichie à partir de 768px.
 * Les couleurs, ombres, espacements et rayons proviennent uniquement des tokens :root.
 */

.section-intro {
  max-width: 48rem;
  margin: 0 0 var(--space-lg);
  color: var(--color-muted);
  line-height: 1.7;
}

.section-action {
  margin: var(--space-lg) 0 0;
  text-align: center;
}

.section-action .btn {
  width: 100%;
  max-width: 20rem;
}

.eyebrow {
    margin: 0 0 var(--space-sm);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-dark);
}

/* La typographie de marque conserve sa casse et son espacement */
.eyebrow .ecauxlogique {
    text-transform: none;
    letter-spacing: normal;
}

.about-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.about-home__photo {
  width: min(100%, 13rem);
  margin: 0 auto;
}

.about-home__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-home__content {
  min-width: 0;
}

.about-home__content .section-title {
  margin-top: 0;
}

.about-home__content p {
  line-height: 1.75;
}

.about-home__content .card-link {
  margin-top: var(--space-xs);
}

@media (min-width: 480px) {
  .section-action .btn {
    width: auto;
    max-width: none;
  }

  .about-home__photo {
    width: min(100%, 15rem);
  }
}

@media (min-width: 768px) {
  .section-intro {
    margin-bottom: var(--space-xl);
  }

  .section-action {
    margin-top: var(--space-xl);
  }

  .eyebrow {
    font-size: 0.82rem;
  }

  .about-home {
    grid-template-columns: minmax(12rem, 17.5rem) minmax(0, 1fr);
    gap: var(--space-2xl);
  }

  .about-home__photo {
    width: 100%;
    margin: 0;
  }
}

.lead {
  font-size: 1.05rem;
  color: var(--color-text);
}

@media (min-width: 1024px) {
  h1 { font-size: 2rem; }
  .hero-text h1 { font-size: 2.1rem; }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Cards — fond complémentaire à la section parente (auto via --surface-on-section) */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

.cards-grid > .card {
  height: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-on-section, var(--color-background));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-brand-soft);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

.card h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--space-sm);
  font-weight: 500;
  text-decoration: none;
}

.card .price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-brand);
  margin: 0.25rem 0 0.5rem 0;
}

.section-cta-inline {
  margin: var(--space-lg) 0 0;
}

/* === Page Tarifs — vue d’ensemble d’abord === */

.pricing-page .btn[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.pricing-banner-exchange {
  margin: 0 0 var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-title);
  background: var(--color-brand-pale);
  border: 1px solid var(--color-brand-soft);
  border-radius: var(--radius);
}

.pricing-banner-exchange__link {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-spot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-on-section, var(--color-background));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.pricing-spot__icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-spot__icon img {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
}

.pricing-spot__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.pricing-spot__price {
  margin: 0.2rem 0 0;
  color: var(--color-title);
}

.pricing-spot__price strong {
  color: var(--color-brand);
  font-size: 1.15rem;
}

.pricing-spot__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  font-weight: 400;
}

.pricing-spot__cta {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: var(--space-xs);
}

@media (min-width: 640px) {
  .pricing-spot {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md) var(--space-lg);
  }

  .pricing-spot__icon {
    grid-row: auto;
  }

  .pricing-spot__cta {
    grid-column: auto;
    margin-top: 0;
    justify-self: end;
  }
}

.pricing-legend {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
}

/* Liste d’orientation — compacte mobile, grille desktop */
.pricing-path__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--surface-on-section, var(--color-background));
  overflow: hidden;
}

.pricing-path__item + .pricing-path__item {
  border-top: 1px solid var(--color-border);
}

.pricing-path__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-sm) var(--space-md);
  align-items: center;
  min-height: 4.25rem;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pricing-path__link:hover {
  background: var(--color-brand-pale);
}

.pricing-path__link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.pricing-path__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-path__icon img {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
}

.pricing-path__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.pricing-path__need {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-title);
  line-height: 1.25;
}

.pricing-path__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.pricing-path__name {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.pricing-path__price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-brand);
  margin-left: auto;
}

.pricing-path__summary {
  display: none;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.35;
}

.pricing-path__badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-warning-text);
  background: var(--color-warning-soft);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius);
  line-height: 1.3;
}

.pricing-path__chevron {
  color: var(--color-brand);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.pricing-path__item--custom .pricing-path__link {
  background: var(--color-background-soft);
}

.pricing-path__item--soon {
  opacity: 0.97;
}

@media (min-width: 768px) {
  .pricing-path__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .pricing-path__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--surface-on-section, var(--color-background));
    overflow: hidden;
  }

  .pricing-path__item + .pricing-path__item {
    border-top: 1px solid var(--color-border); /* même bordure que les côtés (grille) */
  }

  .pricing-path__item--custom {
    grid-column: 1 / -1;
  }

  .pricing-path__link {
    min-height: 7.5rem;
    align-items: flex-start;
    padding: var(--space-lg);
    height: 100%;
  }

  .pricing-path__icon img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .pricing-path__need {
    font-size: 1.08rem;
  }

  .pricing-path__summary {
    display: block;
    margin-top: 0.35rem;
  }

  .pricing-path__price {
    margin-left: 0;
  }

  .pricing-path__chevron {
    align-self: center;
  }
}

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

  .pricing-path__item--custom {
    grid-column: 1 / -1;
  }
}

/* Tableau comparatif : desktop only (évite double lecture sur mobile) */
.pricing-compare {
  display: none;
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .pricing-compare {
    display: block;
  }
}

.pricing-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--surface-on-section, var(--color-background));
}

.pricing-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 36rem;
}

.pricing-compare__table th,
.pricing-compare__table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.pricing-compare__table thead th {
  background: var(--color-background-soft);
  color: var(--color-title);
  font-weight: 600;
  text-align: center;
}

.pricing-compare__table thead th:first-child {
  text-align: left;
}

.pricing-compare__table tbody th {
  font-weight: 500;
  color: var(--color-title);
  background: transparent;
  width: 11rem;
}

.pricing-compare__table tbody td {
  text-align: center;
  color: var(--color-text);
}

.pricing-compare__table tbody tr:last-child th,
.pricing-compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-compare__table strong {
  color: var(--color-brand-dark);
}

.pricing-progression {
  margin: var(--space-md) 0 0;
  font-size: 0.92rem;
}

/* Service web commun */
.pricing-common {
  margin-top: var(--space-2xl);
}

.pricing-common__list {
  list-style: none;
  margin: var(--space-lg) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .pricing-common__list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .pricing-common__list {
    grid-template-columns: repeat(7, 1fr);
  }
}

.pricing-common__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--surface-on-section, var(--color-background));
}

.pricing-common__item img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  display: block;
}

.pricing-common__item span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-title);
  line-height: 1.25;
}

/* Détails repliables */
.pricing-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.pricing-details__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--surface-on-section, var(--color-background));
  padding: 0 var(--space-lg);
}

.pricing-details__item--custom {
  border-color: var(--color-brand-soft);
  background: var(--color-brand-pale);
}

.pricing-details__item summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-title);
  padding: var(--space-md) 0;
  list-style: none;
}

.pricing-details__item summary::-webkit-details-marker {
  display: none;
}

.pricing-details__item summary::before {
  content: "▸";
  color: var(--color-brand);
  margin-right: 0.45rem;
  font-weight: 400;
}

.pricing-details__item[open] summary::before {
  content: "▾";
}

.pricing-details__summary-main {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pricing-details__summary-price {
  font-weight: 700;
  color: var(--color-brand);
  font-size: 0.95rem;
}

.pricing-details__body {
  padding: 0 0 var(--space-md);
  border-top: 1px solid var(--color-border);
}

.pricing-details__body > *:first-child {
  margin-top: var(--space-md);
}

.pricing-details__figure {
  margin: 0 0 var(--space-md);
  max-width: 12rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-background-soft);
}

.pricing-details__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pricing-details__figure--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(145deg, var(--color-brand-pale), var(--color-background-soft));
}

.pricing-details__figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
  max-width: 28rem;
}

.pricing-details__figure--inline {
  max-width: none;
  margin: 0;
}

.pricing-details__figure--inline figcaption {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.pricing-details__diff {
  font-weight: 500;
  color: var(--color-title);
}

.pricing-details__body .btn + .btn {
  margin-left: 0.5rem;
}

@media (max-width: 430px) {
  .pricing-details__body .btn + .btn {
    margin-left: 0;
    margin-top: 0.5rem;
    display: inline-block;
  }
}

.pricing-compare-models {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

@media (min-width: 768px) {
  .pricing-compare-models {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-compare-models__col {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
}

.pricing-compare-models__col h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.pricing-compare-models__col ul {
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.pricing-compare-models__col li {
  margin-bottom: 0.4rem;
}

/* Autres prestations */
.pricing-other {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

.pricing-other__card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--surface-on-section, var(--color-background));
}

.pricing-other__cover {
  background: var(--color-background-soft);
}

.pricing-other__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pricing-other__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
}

.pricing-other__card h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.pricing-other__price {
  margin: 0 0 var(--space-sm);
  color: var(--color-brand);
}

.pricing-other__card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.pricing-practical {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pricing-final-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-path__link {
    transition: none;
  }
}

.page-next {
  background: var(--color-brand-pale);
  border: 1px solid var(--color-brand-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: 0 auto;
  max-width: 720px;
}

.page-next h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.page-next p:last-of-type {
  margin-bottom: var(--space-md);
}

/* === Pages éditoriales === */

/* Alignement de blocs édités via l’admin (classes — pas de style="" / CSP) */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  background: var(--color-background-soft);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

/* Portrait personnel (page À propos)
   Flotté dans la 1re section : retour à la ligne naturel (shape-outside)
   uniquement à hauteur de l'image ; pleine largeur ensuite.
   margin-top négatif : effet visuel à cheval sur le header (sans absolute).
   H1 protégé via padding-right ciblé sur .title-edit-wrapper.
*/
.page-header--with-portrait,
.page-header--with-portrait + .section {
  --portrait-size: 150px;
  --portrait-pull-up: -8rem;
  --portrait-gap-inline: 0.75rem;
  --portrait-gap-bottom: 1rem;
}

.page-header--with-portrait .title-edit-wrapper {
  padding-right: calc(var(--portrait-size) + var(--portrait-gap-inline));
}

.page-portrait {
  float: right;
  width: var(--portrait-size);
  height: var(--portrait-size);
  margin: var(--portrait-pull-up) 0 var(--portrait-gap-bottom) var(--portrait-gap-inline);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--color-background);
}

@media (max-width: 479px) {
  .page-header--with-portrait .title-edit-wrapper {
    padding-right: 0;
  }

  .page-portrait {
    float: none;
    display: block;
    margin: 0 auto var(--portrait-gap-bottom);
  }
}

@supports (shape-outside: circle()) {
  .page-portrait {
    shape-outside: circle(50%);
    shape-margin: 0.75rem;
  }
}

.page-portrait picture,
.page-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.page-header--with-portrait {
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .page-header--with-portrait,
  .page-header--with-portrait + .section {
    --portrait-size: 168px;
    --portrait-pull-up: -6.5rem;
    --portrait-gap-inline: 1rem;
    --portrait-gap-bottom: 1.25rem;
  }

  .page-header--with-portrait {
    padding-bottom: 3.75rem;
  }

  .page-portrait {
    border-width: 4px;
    box-shadow: var(--shadow-md);
  }
}

@media (min-width: 1024px) {
  .page-header--with-portrait,
  .page-header--with-portrait + .section {
    --portrait-size: 200px;
    --portrait-pull-up: -8rem;
    --portrait-gap-inline: 1.25rem;
  }

  .page-header--with-portrait {
    padding-bottom: 5rem;
  }
}

.page-header--with-portrait + .section {
  padding-top: 1.25rem;
}

.page-header--with-portrait + .section .container {
  display: flow-root;
}

@media (min-width: 768px) {
  .page-header--with-portrait + .section {
    padding-top: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .page-header--with-portrait + .section {
    padding-top: 0.5rem;
  }
}

.legal h2 {
  font-size: 1.1rem;
  margin-top: var(--space-xl);
}

.legal p {
  margin-bottom: var(--space-md);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: var(--space-md);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--color-brand-pale);
  color: var(--color-brand-dark);
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.muted, .note {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.required {
  color: var(--color-accent-warm);
}

/* === Formulaire contact === */

/* Formulaire contact (mobile comfortable) */
.contact-form {
  margin: var(--space-xl) 0;
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

/* Case à cocher / radio : case à côté du texte (pas pleine largeur) */
.form-row label.checkbox-label,
.form-row label.admin-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}

.form-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-background-soft);
  color: var(--color-text);
}

.form-row input[type="checkbox"],
.form-row input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  border: none;
  background: transparent;
  accent-color: var(--color-brand);
}

.form-row input:not([type="checkbox"]):not([type="radio"]):focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--color-brand);
  outline: none;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--color-brand);
}

.form-hint {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Compteur esthétique de caractères pour le message du formulaire de contact */
.char-counter {
  margin-top: 0.25rem;
}
.char-counter .counter-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}
.char-counter .counter-count {
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}
.char-counter .counter-min {
  font-size: 0.72rem;
  color: var(--color-muted);
}
.char-counter .counter-bar {
  height: 3px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.char-counter .counter-fill {
  height: 100%;
  background: var(--color-brand);
  transition: width 120ms ease;
  width: 0;
}
.char-counter .counter-fill.counter-fill-p0 { width: 0%; }
.char-counter .counter-fill.counter-fill-p5 { width: 5%; }
.char-counter .counter-fill.counter-fill-p10 { width: 10%; }
.char-counter .counter-fill.counter-fill-p15 { width: 15%; }
.char-counter .counter-fill.counter-fill-p20 { width: 20%; }
.char-counter .counter-fill.counter-fill-p25 { width: 25%; }
.char-counter .counter-fill.counter-fill-p30 { width: 30%; }
.char-counter .counter-fill.counter-fill-p35 { width: 35%; }
.char-counter .counter-fill.counter-fill-p40 { width: 40%; }
.char-counter .counter-fill.counter-fill-p45 { width: 45%; }
.char-counter .counter-fill.counter-fill-p50 { width: 50%; }
.char-counter .counter-fill.counter-fill-p55 { width: 55%; }
.char-counter .counter-fill.counter-fill-p60 { width: 60%; }
.char-counter .counter-fill.counter-fill-p65 { width: 65%; }
.char-counter .counter-fill.counter-fill-p70 { width: 70%; }
.char-counter .counter-fill.counter-fill-p75 { width: 75%; }
.char-counter .counter-fill.counter-fill-p80 { width: 80%; }
.char-counter .counter-fill.counter-fill-p85 { width: 85%; }
.char-counter .counter-fill.counter-fill-p90 { width: 90%; }
.char-counter .counter-fill.counter-fill-p95 { width: 95%; }
.char-counter .counter-fill.counter-fill-p100 { width: 100%; }

/* États visuels */
.char-counter.is-below-min .counter-count {
  color: var(--color-counter-low-text);
}
.char-counter.is-below-min .counter-fill {
  background: var(--color-counter-low-fill);
}
.char-counter.is-near-max .counter-count {
  color: var(--color-counter-high-text);
}
.char-counter.is-near-max .counter-fill {
  background: var(--color-counter-high-fill);
}

@media (prefers-reduced-motion: reduce) {
  .char-counter .counter-fill {
    transition: none;
  }
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: var(--space-md);
}

.contact-direct {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.contact-direct h2 {
  font-size: 1.1rem;
}

/* === Pied de page ===
 * Fond soft par défaut (après une dernière section blanche).
 * Si la dernière section de main est soft (paire, .section--alt ou .section--soft), bascule en blanc
 * pour éviter le fondu section / footer — indépendant du nombre de sections.
 */
.site-footer {
  background: var(--color-background-soft);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0 var(--space-lg);
  font-size: 0.9rem;
}

.swipe-page:has(#main-content > .section:last-of-type:nth-of-type(even)) .site-footer,
.swipe-page:has(#main-content > .section.section--alt:last-of-type) .site-footer,
.swipe-page:has(#main-content > .section.section--soft:last-of-type) .site-footer {
  background: var(--color-background);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-tagline {
  color: var(--color-muted);
  margin: 0;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 var(--space-md) 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-text);
}

.footer-nav a:hover {
  color: var(--color-brand-dark);
}

.footer-legal {
  margin-top: var(--space-sm);
  opacity: 0.85;
}

.footer-contact p {
  margin: 0.35rem 0;
}

.footer-zone {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-small {
  margin-top: 0.25rem;
}

/* === Blog === */

/* Blog filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.blog-filters-label {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-right: 0.35rem;
    white-space: nowrap;
    font-weight: 500;
}

.blog-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    min-height: 32px; /* taille tactile correcte */
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-background);
    transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
    white-space: nowrap;
}

.blog-filter:hover {
    border-color: var(--color-brand);
    color: var(--color-title);
    background: var(--color-brand-pale);
}

.blog-filter.is-active {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-on-brand);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.blog-filter-note {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: 0.3rem 0 0;
}

/* Cartes d’articles, page article, sources (CSP : pas de style inline) */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--color-background);
}
.blog-card__cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card__body { padding: 1rem 1.25rem 1.5rem; }
.blog-card__meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.blog-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.blog-card h2 a {
  text-decoration: none;
  color: var(--color-title);
}
.blog-excerpt { font-size: 0.9rem; margin-bottom: 0.75rem; }

.blog-sentinel { height: 1px; margin: 1rem 0; }

.noscript-fallback {
  text-align: center;
  margin-top: 1rem;
}

/* === Portfolio (page Exemples) === */
.portfolio-intro {
  color: var(--color-muted);
  margin-bottom: var(--space-md);
  max-width: 52rem;
}

.media-showcase {
  margin-top: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-background);
}

.media-showcase__cover {
  display: block;
  position: relative;
  width: 50%;
  max-width: 640px;
  margin: 0 auto;
  text-decoration: none;
}

.media-showcase__cover img {
  margin-top: 1.5rem;
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-showcase__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-media-overlay);
  pointer-events: none;
}

.media-showcase__play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: var(--shadow-lg);
}

.media-showcase__body {
  padding: 1rem 1.25rem 1.5rem;
}

.media-showcase__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.media-showcase h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-title);
}

.media-showcase__role {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.media-showcase__desc {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portfolio-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-background);
}

.portfolio-card__cover {
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--color-background-soft);
}

.portfolio-card__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-card__body {
  padding: 1rem 1.25rem 1.5rem;
}

.portfolio-card__badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.portfolio-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  color: var(--color-title);
}

.portfolio-card__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

@media (max-width: 767.98px) {
  .portfolio-card__cover {
    max-height: calc(100dvh - 5.5rem);
  }

  .media-showcase__cover {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .portfolio-card__cover {
    max-height: 32rem;
  }

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

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

/* Article de blog */
.breadcrumb {
  font-size: 0.85rem;
  padding: 0.5rem 0;
  color: var(--color-muted);
}
.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}
.blog-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
}
.blog-article .narrow { max-width: 720px; }

.blog-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--color-brand-pale);
  border-radius: 0.75rem;
  text-align: center;
}

/* Sources et notes éditoriales en fin d’article */
.sources-list {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.25rem;
  line-height: 1.4;
}
.sources-list li { margin-bottom: 0.3rem; }
.sources-list a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sources-list a:hover { color: var(--color-brand); }

.editorial-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 1rem;
  font-style: italic;
  line-height: 1.35;
}

/* === Branding typographique === */

/* Police Indie Flower (local) */
@font-face {
  font-family: 'IndieFlower';
  src: url('/assets/fonts/IndieFlower-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.ecauxlogique {
  font-family: 'IndieFlower', cursive;   /* fallback cursive si la police ne charge pas */
  color: var(--color-brand-typo);
  font-size: 1.15em;
  font-weight: bold;
  line-height: 1.4;
  white-space: nowrap;
}

/* Héritage pour toutes les parties internes (sup, sub, span) */
.eca-first,
.eca-mid,
.eca-end {
  font-family: inherit;
  color: inherit;
}

.eca-first {
  position: relative;
  top: -0.15em;
}

.eca-mid {
  position: relative;
  bottom: -0.15em;
}

/* === Utilitaires === */

/*
  On évite le overflow-x global car cela peut casser position: sticky sur certains navigateurs.
  Si un débordement horizontal apparaît, on le corrigera sur l'élément fautif (ex: menu mobile).
*/

body.nav-open {
  overflow: hidden;
}

/* Navigation par balayage (mobile) */
@media (max-width: 767.98px) {
  :root {
    --swipe-offset: 0px;
    --swipe-edge-prev-opacity: 0;
    --swipe-edge-next-opacity: 0;
  }

  .swipe-page {
    transform: translateX(var(--swipe-offset));
    transition: transform 0.2s ease;
  }

  .swipe-page.is-swiping {
    transition: none;
  }

  .swipe-page.swipe-exit-left {
    transition: transform 0.18s ease-in;
    transform: translateX(-100%);
  }

  .swipe-page.swipe-exit-right {
    transition: transform 0.18s ease-in;
    transform: translateX(100%);
  }

  .swipe-edge {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand-soft);
    color: var(--color-brand-dark);
    pointer-events: none;
    transition: opacity 0.12s ease;
  }

  .swipe-edge--prev {
    left: 0;
    opacity: var(--swipe-edge-prev-opacity);
  }

  .swipe-edge--next {
    right: 0;
    opacity: var(--swipe-edge-next-opacity);
  }

  .swipe-edge__icon {
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
  }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .swipe-page {
    transform: none;
    transition: none;
  }

  .swipe-edge {
    display: none;
  }
}

/* Indication de scroll (mobile) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-hint {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: 150;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-toggle);
  pointer-events: none;
}

.scroll-hint.is-visible {
  display: flex;
}

.scroll-hint__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.35rem;
  line-height: 1;
  animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}

@media (min-width: 768px) {
  .scroll-hint {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__icon {
    animation: none;
  }
}

.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-size: 1.35rem;
  line-height: 1;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-toggle);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  padding: 0;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  background: var(--color-brand-dark);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

.http-blocked {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background-soft);
  color: var(--color-text);
}

.http-blocked__main {
  max-width: 28rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.http-blocked__main h1 {
  color: var(--color-title);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.http-blocked__main p {
  margin: 0;
  line-height: 1.5;
}


/* === Boutique (module ecommerce) === */

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.shop-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--color-background-soft);
  overflow: hidden;
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card__placeholder,
.shop-product__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  background:
    linear-gradient(135deg, var(--color-brand-pale) 0%, var(--color-brand-soft) 100%);
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  flex: 1;
}

.shop-card__category,
.shop-product__category {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.shop-card__title a {
  color: var(--color-title);
  text-decoration: none;
}

.shop-card__title a:hover,
.shop-card__title a:focus-visible {
  color: var(--color-brand-dark);
}

.shop-card__excerpt {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  flex: 1;
}

.shop-card__price,
.shop-product__price {
  margin: 0.25rem 0 0;
}

.shop-price {
  font-weight: 600;
  color: var(--color-title);
}

.shop-price--lg {
  font-size: 1.35rem;
}

.shop-price--was {
  font-weight: 400;
  color: var(--color-muted);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.shop-badge {
  display: inline-block;
  margin: 0.25rem 0 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-brand-soft);
  color: var(--color-title);
  font-size: 0.8rem;
}

.shop-badge--sold {
  background: var(--color-error-soft);
  color: var(--color-error-text);
}

.shop-card__actions {
  margin: 0.5rem 0 0;
}

.shop-empty {
  color: var(--color-muted);
}

.shop-muted {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.shop-product {
  padding-bottom: 2rem;
}

.shop-product__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .shop-product__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.shop-product__picture img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: block;
}

.shop-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.shop-product__excerpt {
  margin: 0.75rem 0;
}

.shop-attrs {
  margin: 1rem 0;
  padding: 0;
}

.shop-attrs__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.5rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.shop-attrs__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--color-title);
}

.shop-attrs__row dd {
  margin: 0;
}

.shop-add-form {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.shop-add-form .form-row {
  width: 100%;
  max-width: 12rem;
}

.shop-add-form input[type="number"],
.shop-qty-input {
  width: 5rem;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-background);
  color: var(--color-text);
}

.shop-product__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.shop-product__content {
  margin-top: 0.5rem;
  padding-bottom: 2rem;
}

.shop-cart-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.shop-cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.shop-cart-table th,
.shop-cart-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.shop-cart-table th {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.shop-cart-actions {
  margin: 0.75rem 0 1.25rem;
}

.shop-cart-summary {
  max-width: 24rem;
  margin-left: auto;
  padding: 1rem 1.15rem;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.shop-cart-summary p,
.shop-checkout-summary p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0;
}

.shop-cart-total {
  font-size: 1.1rem;
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.shop-hidden-form {
  display: none;
}

.shop-checkout__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.shop-checkout__full {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .shop-checkout__layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.shop-checkout-summary {
  padding: 1rem 1.15rem;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.shop-checkout-summary h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.shop-checkout-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.shop-checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.shop-confirm {
  max-width: 36rem;
}

.shop-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Cart table: stack on very small screens */
@media (max-width: 559px) {
  .shop-cart-table thead {
    display: none;
  }

  .shop-cart-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
  }

  .shop-cart-table td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border: 0;
    padding: 0.4rem 0;
  }

  .shop-cart-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-muted);
  }

  .shop-cart-remove {
    justify-content: flex-end !important;
  }

  .shop-cart-remove::before {
    content: none !important;
  }
}


/* === Impression === */

@media print {
  .site-header, .site-footer, .btn, .nav-toggle, .theme-toggle, .hero-illustration {
    display: none !important;
  }
  body {
    font-size: 11pt;
    color: var(--color-print-text);
  }
}

/* Branding canonique — logo.svg / dark / footer tagline
   Spécificité > .site-logo img { display:block } pour masquer le dark en mode jour. */
.site-logo img.site-logo__img--dark { display: none; }
html[data-theme="dark"] .site-logo--has-dark img.site-logo__img--light { display: none; }
html[data-theme="dark"] .site-logo--has-dark img.site-logo__img--dark { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .site-logo--has-dark img.site-logo__img--light { display: none; }
  html:not([data-theme="light"]) .site-logo--has-dark img.site-logo__img--dark { display: block; }
}
.site-brand__product { font-weight: 700; color: var(--color-brand-typo, var(--color-brand)); }
.site-brand__tagline { font-weight: 400; color: inherit; }
.site-logo--footer {
  display: inline;
  max-width: none;
  text-decoration: none;
  color: inherit;
  line-height: 1.45;
}
.site-logo--footer .site-brand--text,
.site-logo--footer .site-brand__product,
.site-logo--footer .site-brand__tagline {
  display: inline;
  font-size: inherit;
}
body.maintenance { background: var(--color-background-soft); }
.maintenance__main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--container-padding);
  box-sizing: border-box;
}
.maintenance__card {
  max-width: 28rem;
  width: 100%;
  padding: var(--space-xl);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.maintenance__card--bootstrap,
.bootstrap-card { text-align: left; }
.maintenance__brand {
  margin: 0 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.maintenance__brand .site-logo,
.maintenance__brand .site-logo--static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  max-width: 100%;
}
.maintenance__brand .site-logo img {
  width: min(100%, 16rem);
  height: auto;
  max-height: 5.5rem;
  object-fit: contain;
}
.maintenance__brand-text {
  margin: 0 0 var(--space-lg);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--color-brand-typo, var(--color-brand-dark));
}
.maintenance__title {
  margin: 0 0 var(--space-md);
  font-size: 1.25rem;
}
.maintenance__message {
  margin: 0;
  color: var(--color-muted);
  white-space: pre-line;
}
.maintenance__credit {
  margin: var(--space-lg) 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hp-field { position: absolute; left: -9999px; }
