@import url('tokens.css');

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: var(--font-body); border: 0; background: none; }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 3.5rem 0; }
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-intro {
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  font-size: 1.05rem;
}
.section-alt {
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg));
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover { background: color-mix(in srgb, var(--color-primary) 8%, transparent); }
.btn-light {
  background: #fff;
  color: var(--color-primary);
}

/* ── Skip link ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── Header & Nav ────────────────────────────────────── */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img, .nav-logo svg {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-phone-header {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-phone-header:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  color: #fff;
  flex-shrink: 0;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(5px, -5px); }
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-primary);
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.25rem;
  gap: 0.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.nav-menu.is-open { display: flex; }
.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:last-child { border-bottom: 0; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active { font-weight: 600; }
.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
  border: 0;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none; }

/* ── Visual Placeholders ─────────────────────────────── */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-secondary) 18%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3; }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1; }
.visual-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4; }
.visual-placeholder[data-aspect="21:9"] { aspect-ratio: 21 / 9; }
.visual-placeholder[data-tone="secondary"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-secondary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-primary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="accent"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-accent, var(--color-primary)) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
      color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg));
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 3.5rem 0;
}
.hero .container {
  display: grid;
  gap: 2.5rem;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-tagline {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
}
.hero-creole {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: 1.75rem;
  display: block;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Trust Badge ─────────────────────────────────────── */
.trust-band {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-bg));
  border-top: 3px solid var(--color-accent);
  padding: 1.25rem 0;
}
.trust-band .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.trust-badge-icon {
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1rem;
}
.trust-badge strong {
  color: var(--color-primary);
  display: block;
  font-size: 0.95rem;
}
.trust-badge span {
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
  font-size: 0.85rem;
}
.trust-sep {
  width: 1px;
  height: 2rem;
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
  display: none;
}

/* ── Cards Grid ──────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(30,58,95,0.12);
  transform: translateY(-2px);
}
.card .visual-placeholder { border-radius: 0; }
.card-body {
  padding: 1.5rem;
}
.card-body h3 {
  margin-bottom: 0.6rem;
  color: var(--color-primary);
}
.card-body p {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  margin-bottom: 1rem;
}
.card-link {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.card-link:hover { text-decoration: underline; }

/* ── Service Detail Sections ─────────────────────────── */
.service-detail {
  padding: 3rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.service-detail:last-child { border-bottom: 0; }
.service-detail-inner {
  display: grid;
  gap: 2rem;
}
.service-detail-content h2 { margin-bottom: 1rem; }
.service-detail-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.service-detail-content ul li {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.98rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.service-detail-content ul li::before {
  content: '—';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}
.service-detail-cta {
  margin-top: 1.5rem;
}

/* ── About Teaser ────────────────────────────────────── */
.about-teaser-inner {
  display: grid;
  gap: 2rem;
}
.about-teaser-text h2 { margin-bottom: 1rem; }
.about-habilitation {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-bg));
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
.about-habilitation strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.about-habilitation span {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.about-zone {
  margin-top: 1.25rem;
}
.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.zone-tag {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg));
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

/* ── CTA Band ────────────────────────────────────────── */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
.cta-band-phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.cta-band-phone:hover { color: var(--color-secondary); text-decoration: none; }
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-bg));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--color-primary);
}
.contact-detail-text strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.contact-detail-text a,
.contact-detail-text span {
  color: var(--color-text);
  font-size: 1rem;
}
.contact-detail-text a { color: var(--color-accent); font-weight: 600; }
.contact-phone-big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  margin: 1.5rem 0;
}
.contact-phone-big:hover { text-decoration: underline; }
.contact-habilitation {
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg));
  border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 1.25rem;
}
.contact-habilitation strong { color: var(--color-primary); }

/* ── Map ─────────────────────────────────────────────── */
.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  margin-top: 1rem;
}
.map-container iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ── Form ────────────────────────────────────────────── */
.contact-form-wrap h2 { margin-bottom: 1.5rem; }
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group label .req { color: var(--color-accent); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231E3A5F'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.1rem; padding-right: 2.5rem; }
.form-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
}
.form-checkbox input { width: auto; flex-shrink: 0; margin-top: 0.2rem; }
.form-submit { margin-top: 1.5rem; }
.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  line-height: 1.5;
}

/* ── About page ──────────────────────────────────────── */
.about-content {
  display: grid;
  gap: 2rem;
}
.about-content h2 { margin-bottom: 1rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-box {
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}
.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-box span {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.82);
  padding: 3rem 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-brand img, .footer-brand svg {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-col ul a:hover { color: #fff; }
.footer-col address { line-height: 1.75; font-size: 0.9rem; }
.footer-col address a { color: rgba(255,255,255,0.72); }
.footer-col address a:hover { color: #fff; }
.footer-phone-big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-top: 0.5rem;
}
.footer-phone-big:hover { color: var(--color-secondary); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.8;
}
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: rgba(255,255,255,0.85); }

/* ── Reveal animation ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page hero (inner pages) ─────────────────────────── */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.6rem; }
.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .page-hero-lead {
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Urgence banner ──────────────────────────────────── */
.urgence-banner {
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg));
  border: 1.5px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.urgence-banner strong {
  color: var(--color-primary);
  font-size: 0.95rem;
}
.urgence-banner a {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.15rem;
  white-space: nowrap;
}

/* ── Responsive — Tablet ─────────────────────────────── */
@media (min-width: 640px) {
  .trust-sep { display: block; }
}

@media (min-width: 768px) {
  section { padding: 5rem 0; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .nav-link {
    padding: 0.5rem 0.75rem;
    border-bottom: 0;
    font-size: 0.9rem;
  }
  .nav-cta { margin-top: 0; padding: 0.5rem 1rem; font-size: 0.9rem; }
  .nav-phone-header { display: flex; }
  .hero .container { grid-template-columns: 1fr 1fr; align-items: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-teaser-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .about-content { grid-template-columns: 3fr 2fr; align-items: start; }
  .service-detail-inner { grid-template-columns: 3fr 2fr; align-items: start; }
  .service-detail-inner.reverse { direction: rtl; }
  .service-detail-inner.reverse > * { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-band .container { text-align: left; justify-content: center; }
}

/* ── Responsive — Desktop ────────────────────────────── */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ───────────────────────────────────────────────────────
   Animation pass — WEB-5702 (AnimationDesigner)
   Template F (mono-zen / sobre / funéraire).
   Gestes retenus, cadences lentes, dignité visuelle.
   Toute animation est encapsulée sous prefers-reduced-motion:no-preference ;
   un override reduce final force animation/transition à none.
   ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {

  /* Reveal — courbe plus posée, plus lente (gravitas) */
  .reveal {
    transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform: translateY(24px);
  }
  .reveal.visible { transform: translateY(0); }

  /* Hero — cascade discrète du bloc d'accueil (fade + subtle lift) */
  @keyframes ang-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-content > * {
    opacity: 0;
    animation: ang-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .hero-content > .hero-eyebrow { animation-delay: 0.05s; }
  .hero-content > h1            { animation-delay: 0.18s; }
  .hero-content > .hero-tagline { animation-delay: 0.32s; }
  .hero-content > .hero-creole  { animation-delay: 0.46s; }
  .hero-content > .hero-actions { animation-delay: 0.60s; }

  /* Placeholder hero — respiration très lente du dégradé */
  .hero .visual-placeholder {
    background-size: 140% 140%;
    background-position: 0% 0%;
    animation: ang-drift 22s ease-in-out infinite alternate;
  }
  @keyframes ang-drift {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 100%; }
  }

  /* Cartes — hover raffiné (bord + ombre + placeholder qui glisse un rien) */
  .card {
    transition: box-shadow 0.35s ease,
                transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-color 0.35s ease;
  }
  .card:hover {
    box-shadow: 0 10px 32px rgba(30, 58, 95, 0.14);
    border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  }
  .card .visual-placeholder {
    background-size: 130% 130%;
    background-position: 40% 40%;
    transition: background-position 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .card:hover .visual-placeholder { background-position: 60% 60%; }

  /* Card-link — soulignement animé au survol (bg-size trick) */
  .card-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.35s ease;
    padding-bottom: 2px;
  }
  .card-link:hover {
    background-size: 100% 1px;
    text-decoration: none;
  }

  /* Nav-link — même soulignement discret (blanc sur navy) */
  @media (min-width: 768px) {
    .nav-link:not(.nav-cta) {
      background-image: linear-gradient(#fff, #fff);
      background-repeat: no-repeat;
      background-position: 0.75rem 100%;
      background-size: 0 1.5px;
      transition: color 0.2s, background-size 0.3s ease;
    }
    .nav-link:not(.nav-cta):hover {
      background-size: calc(100% - 1.5rem) 1.5px;
      text-decoration: none;
    }
    .nav-link.active:not(.nav-cta) {
      background-size: calc(100% - 1.5rem) 1.5px;
    }
  }

  /* Boutons — élévation feutrée */
  .btn {
    transition: opacity 0.25s, transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.25s ease, background-color 0.25s ease;
  }
  .btn-primary:hover {
    box-shadow: 0 6px 18px rgba(139, 107, 82, 0.28);
  }
  .btn-outline:hover {
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.10);
  }

  /* Trust-band — entrée douce des trois badges à l'arrivée sur la page */
  .trust-badge {
    opacity: 0;
    animation: ang-fade-up 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.85s;
  }
  .trust-badge:nth-of-type(2) { animation-delay: 1.00s; }
  .trust-badge:nth-of-type(3) { animation-delay: 1.15s; }

  /* Bloc d'habilitation — barre latérale qui s'étire à la révélation */
  .about-habilitation,
  .contact-habilitation {
    position: relative;
    overflow: hidden;
  }
  .about-habilitation::after,
  .contact-habilitation::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--color-accent);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
  }
  .reveal.visible .about-habilitation::after,
  .reveal.visible .contact-habilitation::after,
  .about-habilitation.is-lit::after,
  .contact-habilitation.is-lit::after { transform: scaleY(1); }

  /* Téléphone CTA band — transition sépia douce */
  .cta-band-phone { transition: color 0.4s ease, letter-spacing 0.4s ease; }
  .cta-band-phone:hover { letter-spacing: 0.07em; }

  /* Focus visible — halo discret navy/sépia */
  a:focus-visible,
  button:focus-visible,
  .btn:focus-visible,
  .form-group input:focus-visible,
  .form-group select:focus-visible,
  .form-group textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 3px;
    transition: outline-offset 0.15s ease;
  }
}

/* Safety net WCAG 2.3 — désactivation totale si l'utilisateur préfère peu de mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-content > *,
  .trust-badge { opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
