@import url('./tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;1,400&family=Open+Sans:wght@400;600&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
p { max-width: 65ch; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo img, .logo svg { height: 40px; width: auto; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  line-height: 1.25;
}
.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #6B7280;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-primary);
  line-height: 0;
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid #E5E7EB;
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid #F3F4F6; }
  .site-nav a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    border-bottom: none;
  }
  .site-nav a[aria-current="page"] {
    color: var(--color-primary);
    border-bottom: none;
  }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-text);
  border-color: var(--color-secondary);
}
.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-teal {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-teal:hover {
  background: #085F77;
  border-color: #085F77;
}

/* === HERO === */
.hero {
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 5rem 1.5rem;
    gap: 3rem;
  }
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero-creole {
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  max-width: 50ch;
}
.hero-intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 52ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* === SMALL HERO (inner pages) === */
.hero-small {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.hero-small .container { padding: 0 1.5rem; }
.hero-small h1 { color: #fff; margin-bottom: 0.625rem; }
.hero-small .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.hero-small .breadcrumb a { color: var(--color-secondary); }
.hero-small .hero-intro { color: rgba(255,255,255,0.8); max-width: 60ch; margin-bottom: 0; }

/* === SECTIONS === */
.section { padding: 4.5rem 0; }
.section.bg-light { background: #F0F7FA; }
.section.bg-teal { background: var(--color-primary); }
.section.bg-amber { background: var(--color-secondary); }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-title {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.section-intro {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 2.5rem;
  max-width: 58ch;
}

/* === CARD GRID === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 580px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  border-top: 3px solid var(--color-secondary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card-icon {
  width: 50px;
  height: 50px;
  background: color-mix(in srgb, var(--color-primary) 10%, #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.card h3 { color: var(--color-primary); margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: #374151; max-width: none; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}
.card-link:hover { text-decoration: underline; }

/* === SPLIT LAYOUT === */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split.reverse .split-media { order: -1; }
}
.split-content h2 { color: var(--color-primary); margin-bottom: 1rem; }
.split-content p { margin-bottom: 1rem; color: #374151; }
.split-content ul { margin: 1rem 0 1rem 0; }
.split-content li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  font-size: 0.95rem;
  color: #374151;
  position: relative;
}
.split-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
}

/* === CTA BAND === */
.cta-band {
  background: var(--color-secondary);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-text); margin-bottom: 1rem; }
.cta-band p { color: rgba(17,24,39,0.75); max-width: 52ch; margin: 0 auto 2rem; }
.cta-band-teal { background: var(--color-primary); }
.cta-band-teal h2 { color: #fff; }
.cta-band-teal p { color: rgba(255,255,255,0.8); }

/* === QUOTE BAND === */
.quote-band {
  background: #065F71;
  padding: 3.5rem 0;
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  color: #fff;
  max-width: 720px;
  margin: 0 auto 0.75rem;
  line-height: 1.4;
}
.quote-band .quote-translation {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

/* === ENGAGEMENT GRID === */
.engagement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .engagement-grid { grid-template-columns: repeat(3, 1fr); } }

.engagement-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  text-align: center;
}
.engagement-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-secondary);
}
.engagement-card h3 { color: var(--color-primary); margin-bottom: 0.75rem; }
.engagement-card p { font-size: 0.95rem; color: #374151; max-width: none; }

/* === FORM === */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 22px rgba(0,0,0,0.08);
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 768px) { .form-card { padding: 3rem 2.5rem; } }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
}
.form-group { margin-bottom: 1.25rem; }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}
label .required { color: #DC2626; margin-left: 2px; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
textarea { resize: vertical; min-height: 130px; }
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: #6B7280;
  pointer-events: none;
}
.form-submit { margin-top: 1.75rem; }
.btn-submit {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.2s;
}
.btn-submit:hover { background: #085F77; }
.form-note {
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 1rem;
  max-width: none;
}

/* === CONTACT INFO === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.6fr; } }

.contact-info h2 { color: var(--color-primary); margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: color-mix(in srgb, var(--color-primary) 10%, #fff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.contact-item-text p { margin: 0; max-width: none; }
.contact-item-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
  margin-bottom: 0.2rem;
}
.contact-item-text a { color: var(--color-primary); font-weight: 600; }
.contact-item-text a:hover { text-decoration: underline; }

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}
@media (min-width: 768px) { .map-wrapper iframe { height: 400px; } }

/* === MENTIONS LÉGALES === */
.mentions-section {
  background: #F8FAFC;
  padding: 3.5rem 0;
}
.mentions-section h2 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.mentions-section p {
  font-size: 0.9rem;
  color: #4B5563;
  margin-bottom: 0.75rem;
  max-width: none;
}
.mentions-section a { color: var(--color-primary); }

/* === FOOTER === */
.site-footer {
  background: #065F71;
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.footer-brand .footer-tagline {
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.875rem;
  max-width: none;
}
.footer-brand p { font-size: 0.875rem; max-width: none; }
.footer-brand a { color: var(--color-secondary); text-decoration: underline; }

.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-contact p { font-size: 0.875rem; margin-bottom: 0.5rem; max-width: none; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--color-secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: rgba(255,255,255,0.9); }

/* === VISUAL PLACEHOLDER (spec WEB-715) === */
.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));
}

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #065F71;
  color: rgba(255,255,255,0.9);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.875rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.cookie-banner p { max-width: none; flex: 1 1 200px; color: rgba(255,255,255,0.9); }
.cookie-banner button {
  background: var(--color-secondary);
  color: var(--color-text);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-banner button:hover { background: var(--color-accent); color: #fff; }

/* === ANIMATIONS (WEB-7853 — pass éditorial associatif) === */
@media (prefers-reduced-motion: no-preference) {

  /* Hero cascade — labels, titre, créole, intro, CTAs, visuel */
  @keyframes em-fade-up {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: none; }
  }
  .hero-content > * {
    animation: em-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-content > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-content > *:nth-child(4) { animation-delay: 0.35s; }
  .hero-content > *:nth-child(5) { animation-delay: 0.45s; }
  .hero > .hero-inner > [aria-hidden="true"] {
    animation: em-fade-up 0.9s 0.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .hero-small h1,
  .hero-small .hero-intro,
  .hero-small .breadcrumb {
    animation: em-fade-up 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .hero-small .breadcrumb { animation-delay: 0.05s; }
  .hero-small h1 { animation-delay: 0.15s; }
  .hero-small .hero-intro { animation-delay: 0.25s; }

  /* Cards & engagement — stagger sur reveal existant */
  .card-grid [data-reveal]:nth-child(1),
  .engagement-grid [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
  .card-grid [data-reveal]:nth-child(2),
  .engagement-grid [data-reveal]:nth-child(2) { transition-delay: 0.15s; }
  .card-grid [data-reveal]:nth-child(3),
  .engagement-grid [data-reveal]:nth-child(3) { transition-delay: 0.25s; }
  .card-grid [data-reveal]:nth-child(4) { transition-delay: 0.35s; }

  /* Icônes de carte — micro-pop au survol du parent */
  .card-icon,
  .engagement-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.25s ease;
  }
  .card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
  .engagement-card:hover .engagement-icon { transform: scale(1.06); }

  /* Card-link — soulignement animé */
  .card-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                color 0.2s;
  }
  .card-link:hover { background-size: 100% 1.5px; text-decoration: none; }

  /* Nav — soulignement fluide */
  @media (min-width: 768px) {
    .site-nav a {
      background-image: linear-gradient(var(--color-secondary), var(--color-secondary));
      background-size: 0% 2px;
      background-repeat: no-repeat;
      background-position: 0 100%;
      transition: color 0.2s, background-size 0.3s ease, border-color 0.2s;
    }
    .site-nav a:hover { background-size: 100% 2px; }
    .site-nav a[aria-current="page"] { background-size: 100% 2px; }
  }

  /* Boutons — lift discret */
  .btn { will-change: transform; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); transition-duration: 0.05s; }
  .cta-band .btn-teal {
    box-shadow: 0 4px 14px rgba(6, 95, 113, 0.25);
  }
  .cta-band .btn-teal:hover {
    box-shadow: 0 10px 24px rgba(6, 95, 113, 0.32);
  }

  /* Section-title — soulignement décoratif (scroll-driven + fallback statique) */
  .section-title {
    position: relative;
    display: inline-block;
  }
  .section-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 48px;
    margin-top: 0.6rem;
    background: var(--color-secondary);
    border-radius: 2px;
  }
  @supports (animation-timeline: view()) {
    .section-title::after {
      width: 0;
      animation: em-title-underline linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 35%;
    }
    @keyframes em-title-underline { to { width: 48px; } }
  }

  /* Quote-band — italic entrance douce (scroll-driven) */
  @supports (animation-timeline: view()) {
    .quote-band blockquote,
    .quote-band .quote-translation {
      animation: em-quote-in linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }
    @keyframes em-quote-in {
      from { opacity: 0; transform: translate3d(0, 12px, 0); }
      to   { opacity: 1; transform: none; }
    }
  }

  /* Visual placeholder — dégradé qui glisse + lift au hover d'une carte parente */
  .visual-placeholder {
    background-size: 200% 200%;
    background-position: 0% 0%;
    transition: transform 0.4s ease, background-position 0.8s ease;
    will-change: background-position;
  }
  @supports (animation-timeline: view()) {
    .visual-placeholder {
      animation: em-placeholder-drift linear both;
      animation-timeline: view();
      animation-range: entry cover;
    }
    @keyframes em-placeholder-drift {
      from { background-position: 0% 0%; }
      to   { background-position: 100% 100%; }
    }
  }

  /* Split-content li — puces qui glissent au hover */
  .split-content li::before {
    transition: transform 0.3s ease, background 0.2s;
  }
  .split-content li:hover::before {
    transform: scale(1.4);
    background: var(--color-primary);
  }

  /* Header — élévation d'ombre au scroll (scroll-driven) */
  @supports (animation-timeline: scroll()) {
    .site-header {
      animation: em-header-shadow linear both;
      animation-timeline: scroll();
      animation-range: 0 120px;
    }
    @keyframes em-header-shadow {
      from { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
      to   { box-shadow: 0 6px 18px rgba(0,0,0,0.14); }
    }
  }

  /* Focus-visible — halo élégant */
  a:focus-visible,
  button:focus-visible,
  .btn:focus-visible,
  .btn-submit:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* Form — inputs déjà transitionnés ; on ajoute un léger scale au focus */
  input:focus, select:focus, textarea:focus {
    transform: translateY(-1px);
  }

  /* Contact item icons — pulse au hover du groupe */
  .contact-item-icon { transition: transform 0.3s ease, background 0.2s; }
  .contact-item:hover .contact-item-icon { transform: scale(1.06); }

  /* Footer links — soulignement discret */
  .footer-nav a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color 0.2s, background-size 0.3s ease;
  }
  .footer-nav a:hover { background-size: 100% 1px; }
}

/* === REDUCED-MOTION SAFETY (WCAG 2.3.3) === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* === UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
