/*
Theme Name: Conseil TPME
Theme URI: https://conseiltpme.fr
Author: Conseil TPME
Author URI: https://conseiltpme.fr
Description: Theme WordPress personnalise pour le site Conseil TPME 2.0.
Version: 3.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: conseiltpme
*/

/* === Self-hosted Inter font (RGPD compliant) === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/inter-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/inter-medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/fonts/inter-semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./assets/fonts/inter-bold.woff2') format('woff2');
}

/* ============================================
   1. DESIGN TOKENS
   ============================================ */

:root {
  /* Colors */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-light: #334155;
  --muted: #64748b;
  --primary: #0369a1;
  --primary-hover: #075985;
  --primary-light: #0ea5e9;
  --primary-soft: rgba(14, 165, 233, 0.08);
  --primary-contrast: #ffffff;
  --accent: #1e40af;
  --accent-soft: rgba(30, 64, 175, 0.08);
  --success: #059669;
  --error: #dc2626;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --header-bg: rgba(255, 255, 255, 0.85);
  --input-bg: #ffffff;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --section-gap: 6rem;
  --container-max: 1140px;
  --container-px: 1.5rem;
}

/* === Dark mode === */
html.dark {
  --bg: #0c1222;
  --bg-alt: #111827;
  --surface: #1e293b;
  --text: #f1f5f9;
  --text-light: #cbd5e1;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-light: #0ea5e9;
  --primary-soft: rgba(56, 189, 248, 0.12);
  --primary-contrast: #0c1222;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --border: rgba(148, 163, 184, 0.15);
  --border-hover: rgba(148, 163, 184, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(12, 18, 34, 0.88);
  --input-bg: #0f172a;
}

/* ============================================
   2. RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 300ms ease, color 300ms ease;
}

html.dark body {
  background: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover, a:focus {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--text-light);
}

/* ============================================
   3. BUTTONS
   ============================================ */

.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow-sm);
}

.button:hover,
button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--primary-contrast);
}

.button:active,
button[type="submit"]:active {
  transform: translateY(0);
}

.button:focus-visible,
button[type="submit"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--border-hover);
  color: var(--text);
}

html.dark .button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

html.dark .button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-small {
  font-size: var(--text-sm);
  padding: 0.6rem 1.2rem;
}

.button-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
}

.button-ghost:hover {
  background: var(--primary-soft);
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--container-px);
  transition: box-shadow 300ms ease, border-color 300ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  height: 4.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  justify-self: start;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  line-height: 0;
  transition: color 200ms ease, transform 200ms ease;
}

.brand-mark:hover {
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.brand-mark svg {
  display: block;
}

.site-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.site-title a:hover {
  color: var(--primary);
}

.site-description {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  color: var(--muted);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 200ms ease, background 200ms ease;
}

.main-navigation a:hover {
  color: var(--text);
  background: var(--primary-soft);
  text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-soft);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.site-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.theme-button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.theme-button:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--primary-soft);
}

.icon-moon { display: inline; }
.icon-sun { display: none; }
html.dark .icon-moon { display: none; }
html.dark .icon-sun { display: inline; }

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.menu-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--primary-soft);
}

.menu-toggle .icon-menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu-close { display: inline; }

/* ============================================
   5. CONTENT WRAPPER
   ============================================ */

.content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px) 4rem;
}

/* ============================================
   6. HERO SECTION
   ============================================ */

.hero {
  padding: 4rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-copy p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.hero-card {
  max-width: 100%;
}

.hero-card h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: var(--text-xl);
  color: var(--text);
}

.hero-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-light);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.hero-card li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: var(--primary-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

html.dark .hero-card li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ============================================
   7. SECTIONS
   ============================================ */

.section {
  margin-top: var(--section-gap);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  letter-spacing: -0.02em;
}

.section-intro,
.page-intro {
  color: var(--muted);
  max-width: 600px;
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.section-intro p {
  margin: 0.5rem 0 0;
}

/* ============================================
   8. CARDS
   ============================================ */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.875rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 300ms ease;
}

.card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 0.5rem;
  font-size: var(--text-lg);
  font-weight: 600;
  align-self: center;
}

.card p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.card .card-icon {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  margin-bottom: 0;
  color: var(--primary);
  align-self: center;
}

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

a.card:hover,
a.card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
  text-decoration: none;
}

a.card:hover::before,
a.card:focus::before {
  opacity: 1;
}

a.card h3 {
  color: var(--primary);
  transition: color 200ms ease;
}

a.card:hover h3 {
  color: var(--primary-hover);
}

/* Feature cards (approach section) */
.section-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: var(--text-base);
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* ============================================
   9. CTA SECTION
   ============================================ */

.section-contact-cta {
  position: relative;
  margin-top: var(--section-gap);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.section-contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}

.section-contact-cta > * {
  position: relative;
  z-index: 1;
}

.section-contact-cta h2 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
}

.section-contact-cta p {
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  font-size: var(--text-lg);
}

.section-contact-cta .button {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
}

.section-contact-cta .button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

/* ============================================
   10. SERVICE PAGES
   ============================================ */

.service-page,
.contact-page {
  padding-top: 2rem;
}

.service-hero {
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.service-hero .hero-tagline {
  font-size: var(--text-xs);
}

.service-hero h1 {
  margin: 0.75rem 0;
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  letter-spacing: -0.02em;
}

.service-intro {
  color: var(--muted);
  font-size: var(--text-lg);
  margin-bottom: 1.5rem;
}

.service-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
  align-items: flex-start;
  margin-top: 2.5rem;
}

.service-copy {
  display: grid;
  gap: 2rem;
}

.service-subservices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.service-subservice {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  transition: all 200ms ease;
}

.service-subservice:hover {
  border-color: var(--border-hover);
  border-left-color: var(--primary-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .service-subservices {
    grid-template-columns: 1fr;
  }
}

.service-subservice h3 {
  margin: 0 0 0.5rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.service-subservice p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.service-steps {
  grid-column: 1 / -1;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.service-steps h2 {
  margin-top: 0;
  font-size: var(--text-xl);
}

.service-steps ol {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  counter-reset: step;
  list-style: none;
}

.service-steps li {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: var(--text-sm);
  counter-increment: step;
  position: relative;
  padding-left: 0.5rem;
}

.service-steps li::before {
  content: counter(step);
  position: absolute;
  left: -2rem;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-contact-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: sticky;
  top: 6rem;
  overflow: hidden;
  isolation: isolate;
}

.service-contact-cta::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1;
}

.service-contact-cta::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.service-contact-cta .cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.25);
}

.service-contact-cta .cta-icon svg {
  width: 22px;
  height: 22px;
}

.service-contact-cta h2 {
  margin: 0;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.service-contact-cta p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.service-contact-cta .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.service-contact-cta .cta-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 0.25rem;
}

.service-contact-cta .cta-meta::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* --- Service zone (SEO local) --- */
.service-zone {
  padding: 1.5rem 2rem;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.service-zone h2 {
  margin: 0 0 0.5rem;
  font-size: var(--text-lg);
  color: var(--primary);
}

.service-zone p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Pricing grid --- */
.service-pricing {
  grid-column: 1 / -1;
  margin-top: 3rem;
}

.service-pricing h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card--popular {
  border-color: var(--primary);
  box-shadow: var(--shadow), 0 0 0 1px var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pricing-card h3 {
  margin: 0 0 0.75rem;
  font-size: var(--text-lg);
  font-weight: 600;
}

.pricing-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.pricing-card li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.5;
}

.pricing-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   11. CONTACT PAGE
   ============================================ */

.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: flex-start;
  margin-top: 2rem;
}

.contact-copy {
  display: grid;
  gap: 1.5rem;
}

.contact-benefits h2 {
  font-size: var(--text-xl);
  margin: 0 0 1rem;
}

.contact-benefits ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-light);
  font-size: var(--text-sm);
}

.contact-benefits li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--primary-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

html.dark .contact-benefits li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.contact-form-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form label {
  display: block;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  margin-top: 0.35rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.consent-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--muted);
}

.consent-field input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.contact-notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
}

.contact-notice.success {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--success);
}

.contact-notice.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--error);
}

/* ============================================
   12. NOTRE HISTOIRE
   ============================================ */

.histoire-page {
  padding-top: 2rem;
}

.histoire-intro {
  max-width: 680px;
  margin-bottom: 3rem;
}

.histoire-intro h1 {
  margin-bottom: 1rem;
}

.histoire-intro p {
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.story-timeline {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  position: relative;
  padding-left: 2rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.story-chapter {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  transition: all 300ms ease;
}

.story-chapter:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.story-chapter::before {
  content: attr(data-chapter);
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.story-chapter::after {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 2.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
}

.story-chapter h2 {
  margin-top: 0;
  font-size: var(--text-xl);
}

.story-chapter p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ============================================
   13. BLOG
   ============================================ */

.post-meta {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-meta a {
  color: var(--primary);
}

.button-link {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 200ms ease;
}

.button-link:hover {
  gap: 0.5rem;
  text-decoration: none;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-navigation {
  margin-top: 2rem;
}

.entry-content {
  line-height: 1.8;
  font-size: var(--text-base);
}

.entry-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: var(--text-2xl);
}

.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: var(--text-xl);
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

/* ============================================
   14. FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr 1fr 1fr;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem var(--container-px) 2rem;
}

.footer-grid h2 {
  margin: 0 0 0.75rem;
  font-size: var(--text-lg);
}

.footer-grid h3 {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer-grid p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

.footer-grid a {
  color: var(--muted);
  font-size: var(--text-sm);
  transition: color 200ms ease;
}

.footer-grid a:hover {
  color: var(--primary);
}

.copyright {
  margin: 0;
  padding: 1.5rem var(--container-px);
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
  border-top: 1px solid var(--border);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ============================================
   15. 404 PAGE
   ============================================ */

.page-404 {
  text-align: center;
  padding: 6rem 2rem;
}

.page-404 .error-code {
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h1 {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ============================================
   16. LEGAL PAGES
   ============================================ */

.legal-page .entry-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-page .entry-content h2:first-child {
  border-top: none;
  padding-top: 0;
}

/* ============================================
   17. ACCESSIBILITY
   ============================================ */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 200;
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-to-content:focus {
  top: 0;
}

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

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  background: var(--surface);
  color: var(--text);
}

/* ============================================
   18. COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem var(--container-px);
  z-index: 200;
  transform: translateY(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

/* When banner is visible, push down sticky header so they don't overlap */
body.has-cookie-banner .site-header {
  top: var(--cookie-banner-height, 80px);
  transition: top 200ms ease;
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 280px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-buttons .button {
  font-size: var(--text-sm);
  padding: 0.55rem 1rem;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.cookie-modal-overlay.is-visible {
  display: flex;
}

.cookie-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.cookie-modal h2 {
  margin-top: 0;
  font-size: var(--text-xl);
}

.cookie-modal > p {
  font-size: var(--text-sm);
  color: var(--muted);
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category-info h3 {
  margin: 0 0 0.2rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.cookie-category-info p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 200ms ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 200ms ease;
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* ============================================
   19. MANAGE COOKIES LINK
   ============================================ */

.manage-cookies-link {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  padding: 0;
  font-size: inherit;
  font-family: var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.manage-cookies-link:hover {
  color: var(--primary);
}

/* ============================================
   20. SCROLL ANIMATIONS
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 80ms; }
.fade-up:nth-child(3) { transition-delay: 160ms; }
.fade-up:nth-child(4) { transition-delay: 240ms; }
.fade-up:nth-child(5) { transition-delay: 320ms; }
.fade-up:nth-child(6) { transition-delay: 400ms; }
.fade-up:nth-child(7) { transition-delay: 480ms; }
.fade-up:nth-child(8) { transition-delay: 560ms; }

/* ============================================
   20b. REDUCED MOTION (RGAA / a11y)
   ============================================ */

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

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  a.card:hover,
  .feature-card:hover,
  .story-chapter:hover,
  .button:hover,
  button[type="submit"]:hover {
    transform: none;
  }
}

/* ============================================
   21. RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 480px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-contact-cta {
    position: static;
    top: auto;
  }

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

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

  .story-timeline {
    padding-left: 1.5rem;
  }

  .story-chapter::after {
    left: -2.05rem;
  }
}

@media (max-width: 1200px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    padding: 0.5rem var(--container-px) 1rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: var(--text-base);
    border-radius: var(--radius);
    white-space: normal;
  }

  .main-navigation .current-menu-item > a::after,
  .main-navigation .current_page_item > a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 4rem;
    --container-px: 1.25rem;
  }

  .header-inner {
    height: 3.75rem;
    padding: 0;
    gap: 0.75rem;
  }

  .site-branding {
    gap: 0.5rem;
  }

  .site-branding > div {
    min-width: 0;
  }

  .site-title {
    font-size: var(--text-base);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-navigation {
    max-height: calc(100vh - 3.75rem);
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-contact-cta {
    padding: 2.5rem 1.5rem;
  }
}

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

@media (min-width: 1200px) {
  .card-grid.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   22. MEDIA (hero / service / histoire images)
   ============================================ */

.hero-visual-media {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.hero-visual-media::before {
  display: none;
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: var(--text-sm);
  line-height: 1.35;
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-media-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #f59e0b);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.service-hero-media {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.service-hero-copy {
  min-width: 0;
}

.service-hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.service-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.histoire-intro-media {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: none;
  margin-bottom: 3rem;
}

.histoire-intro-copy {
  min-width: 0;
  max-width: 680px;
}

.histoire-portrait {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.histoire-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.histoire-banner {
  margin: 0 0 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.histoire-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.histoire-banner figcaption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 0.6rem 1rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: var(--text-sm);
  line-height: 1.4;
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (max-width: 980px) {
  .service-hero-media,
  .histoire-intro-media {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .histoire-portrait {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-media-caption,
  .histoire-banner figcaption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: var(--text-xs);
    padding: 0.5rem 0.75rem;
  }
}
