﻿/* ============================================================
   Signes de sens — Feuille de styles principale
   Charte graphique 2026 (Open Sans, tokens SDS, remixicon)
   ============================================================ */

/* --- 1. Police Open Sans (chargée via Google Fonts dans header.php) --- */

/* --- 2. Design tokens (variables CSS) --- */
:root {
  /* Palette identité */
  --sds-noir:      #2C2A29;
  --sds-gris:      #6D6E70;
  --sds-blanc:     #FFFFFF;
  --sds-gris-100:  #F4F4F3;
  --sds-gris-200:  #E7E7E6;
  --sds-gris-300:  #D2D2D1;
  --sds-gris-500:  #9A9A9B;

  /* Couleurs aplats */
  --sds-rouge:     #DA291C;
  --sds-jaune:     #FFC72C;
  --sds-vert:      #48A23F;
  --sds-bleu:      #003594;
  --sds-magenta:   #991E66;

  /* Accent par défaut = magenta */
  --accent:        var(--sds-magenta);

  /* Sémantique */
  --text-body:     #141414;
  --text-muted:    var(--sds-gris);
  --surface-page:  var(--sds-blanc);
  --surface-wash:  var(--sds-gris-100);
  --border-hairline: var(--sds-gris-200);
  --focus-ring:    var(--sds-bleu);

  /* Typographie */
  --font-sans:     "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --fw-regular:    400;
  --fw-bold:       700;
  --fs-display:    3.052rem;
  --fs-h1:         2.441rem;
  --fs-h2:         1.953rem;
  --fs-h3:         1.563rem;
  --fs-h4:         1.25rem;
  --fs-body-lg:    1.125rem;
  --fs-body:       1rem;
  --fs-small:      0.875rem;
  --fs-caption:    0.75rem;
  --lh-tight:      1.1;
  --lh-heading:    1.2;
  --lh-body:       1.6;
  --tracking-title:   0.02em;
  --tracking-eyebrow: 0.08em;

  /* Espacement */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Effets */
  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-pill: 999px;
  --shadow-xs:   0 1px 2px rgba(44,42,41,0.06);
  --shadow-sm:   0 2px 6px rgba(44,42,41,0.08);
  --shadow-md:   0 6px 20px rgba(44,42,41,0.10);
  --shadow-focus: 0 0 0 3px #003594;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* Layout */
  --wrap-max: 1180px;
  --gutter:   24px;
}

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

html {
  overflow-x: clip; /* clip ne crée pas de scroll container → position:sticky fonctionne */
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--text-body);
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(1.8rem, 4vw, var(--fs-h1)); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4, h5 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-title);
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-2);
}
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a { color: var(--sds-noir); text-decoration: underline; text-underline-offset: 2px;
    transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--accent); }

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

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* --- 4. Utilitaires --- */
.sds-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sds-wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sds-section     { padding: var(--space-20) 0; }
.sds-section--wash { background: var(--surface-wash); }

.sds-eyebrow {
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: var(--fs-small);
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-3);
}

.sds-section-head { margin-bottom: var(--space-12); }
.sds-section-head .sds-eyebrow { color: var(--accent); }
.sds-section-head h2 { margin: 0 0 var(--space-4); max-width: 22ch; }
.sds-section-head p  { color: var(--text-muted); max-width: 58ch; margin: 0; }

/* --- 5. Lien d'évitement (RGAA) --- */
.sds-skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 1100;
  padding: 8px 18px;
  background: var(--sds-noir);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: var(--fw-bold);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  transition: top var(--dur-fast), background var(--dur-fast);
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sds-skip:focus { top: 15px; }
.sds-skip:hover { background: #7D1954; color: #fff; }

/* --- 6. Header --- */
.sds-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #ededed;
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.sds-header.scrolled { box-shadow: var(--shadow-sm); }

/* Fil d'ariane — première lettre de chaque mot en majuscule (pas tout en caps) */
nav[aria-label="Fil d'ariane"] { text-transform: capitalize !important; font-size: 0.875rem !important; }
nav[aria-label="Fil d'ariane"] a { color: #6a6a6a !important; text-decoration: none; transition: color 0.15s; }
nav[aria-label="Fil d'ariane"] a:hover { color: #991E66 !important; }
nav[aria-label="Fil d'ariane"] [aria-current="page"] { color: #991E66 !important; }
nav[aria-label="Fil d'ariane"] [aria-current="page"]::before { content: '●'; font-size: 9px; margin-right: 5px; vertical-align: 1px; }
nav[aria-label="Fil d'ariane"] span:not([aria-current]) { color: #767676 !important; }

.sds-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 56px;
  padding: 0 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.sds-logo-link { display: inline-flex; line-height: 0; flex: none; text-decoration: none; }
.sds-logo-link img,
.sds-logo-link svg { height: 52px; width: auto; }

/* Navigation desktop */
.sds-desktop-nav { display: flex; align-items: center; }
.sds-desktop-nav a {
  font-weight: 700;
  font-size:0.8438rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  color: #141414;
}
.sds-desktop-nav a[aria-current="page"] { color: #991E66; }
.sds-desktop-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sds-desktop-nav a[aria-current="page"] { text-decoration: none; }
.sds-desktop-nav a[aria-current="page"]::before { content: '●'; font-size: 9px; position: absolute; left: -13px; top: 50%; transform: translateY(-50%); }

/* Burger mobile */
.sds-burger {
  display: none;
  flex: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #141414;
  line-height: 0;
}

/* Overlay mobile plein écran (comme le design Claude Design) */
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }

.sds-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #141414;
  color: #fff;
  padding: 24px;
  flex-direction: column;
  animation: menuIn 0.22s ease;
}
.sds-mobile-drawer.open { display: flex; }

.sds-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-bottom: 18px;
}
.sds-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
  line-height: 0;
  border-radius: var(--radius-md);
}
.sds-menu-close:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.9); }

.sds-mobile-drawer nav {
  padding-top: 12px;
}
.sds-mobile-drawer nav ul {
  display: flex;
  flex-direction: column;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sds-mobile-drawer nav li { display: contents; }
.sds-mobile-drawer nav a {
  font-weight: 800;
  font-size:1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  display: block;
}
.sds-mobile-drawer nav a:hover { color: rgba(255,255,255,0.75); }
.sds-mobile-drawer nav a[aria-current="page"] { color: #fff; text-decoration: none; }
.sds-mobile-drawer nav a[aria-current="page"] { position: relative; }
.sds-mobile-drawer nav a[aria-current="page"]::before { content: '●'; font-size: 9px; position: absolute; left: -13px; top: 50%; transform: translateY(-50%); }

/* --- 7. Boutons --- */
.sds-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
  line-height: 1.2;
}
.sds-btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.sds-btn--primary:hover { filter: brightness(0.88); color: #fff; }
.sds-btn--secondary { background: transparent; color: var(--sds-noir); border-color: var(--sds-gris-300); }
.sds-btn--secondary:hover { border-color: var(--sds-noir); color: var(--sds-noir); }
.sds-btn--ghost { background: transparent; color: var(--accent); border-color: transparent; padding-left: 0; padding-right: 0; }
.sds-btn--ghost:hover { color: var(--sds-noir); }
.sds-btn--white { background: #fff; color: var(--accent); border-color: #fff; }
.sds-btn--white:hover { background: rgba(255,255,255,0.9); }
.sds-btn--white-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.sds-btn--white-outline:hover { border-color: #fff; color: #fff; }
.sds-btn--sm { padding: 7px 16px; font-size: var(--fs-caption); }

/* --- 8. Hero (variante split) --- */
#accueil { padding: 72px 0 64px; }

.sds-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.sds-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.sds-hero-eyebrow span {
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.sds-hero-eyebrow .sep { color: var(--accent); }
.sds-hero-title {
  font-size: clamp(2rem, 4vw, var(--fs-display));
  margin: 0;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.sds-hero-lead {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  margin-top: var(--space-5);
  max-width: 42ch;
  margin-bottom: 0;
}
.sds-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.sds-hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.sds-hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transform: rotate(4deg) scale(1.05);
}
.sds-hero-figure-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 15%, white) 0%,
    color-mix(in srgb, var(--accent) 6%, white) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 5rem;
}

/* --- 9. Qui sommes-nous --- */
#qui-sommes-nous { padding: var(--space-20) 0; }

.sds-qsn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.sds-qsn-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.sds-qsn-card--accent { background: var(--accent); }
.sds-qsn-card--dark   { background: var(--sds-noir); }
.sds-qsn-card .badge {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 22px;
  flex: none;
  font-size: 1.5rem;
}
.sds-qsn-card .sds-eyebrow { color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.sds-qsn-card h3 { color: #fff; margin: 0 0 12px; text-transform: none; font-size: var(--fs-h2); }
.sds-qsn-card p  { color: rgba(255,255,255,0.92); margin: 0; flex: 1; }
.sds-qsn-card .sds-btn { margin-top: var(--space-6); align-self: flex-start; }

/* --- 10. Impact --- */
#notre-impact { padding: 56px 0; }

.sds-impact-band {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 56px var(--space-12);
}
.sds-impact-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}
.sds-impact-head h2 { color: #fff; margin: 0; font-size:1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.sds-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: 28px;
}
.sds-stat-value { font-weight: var(--fw-bold); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: #fff; }
.sds-stat-label { margin-top: var(--space-2); font-size: var(--fs-body); color: rgba(255,255,255,0.92); }

/* --- 11. Offres --- */
#nos-offres { padding: var(--space-20) 0; }

.sds-offres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.sds-card {
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-xs);
}
.sds-card:hover { }
.sds-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 12%, white);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
  flex: none;
}
.sds-card h3 { margin: 0 0 10px; text-transform: none; font-size: var(--fs-h3); }
.sds-card p  { color: var(--text-muted); margin: 0; flex: 1; }
.sds-card .sds-btn { margin-top: var(--space-4); align-self: flex-start; }

/* --- 12. Programmes --- */
#nos-programmes { padding: var(--space-20) 0; background: var(--surface-wash); }

.sds-prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}
.sds-prog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.sds-prog-card:hover { border-color: var(--accent); color: inherit; }
.sds-prog-card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, white);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
  flex: none;
}
.sds-prog-card-title { display: block; font-weight: var(--fw-bold); font-size: var(--fs-h4); text-transform: none; margin-bottom: var(--space-2); color: var(--sds-noir); }
.sds-prog-card-desc  { display: block; color: var(--text-muted); font-size: var(--fs-small); flex: 1; }
.sds-prog-card-cta   { margin-top: var(--space-4); color: var(--accent); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); font-size: var(--fs-small); }

/* --- 13. Newsletter --- */
#newsletter { padding: 72px 0; }

.sds-nl-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--sds-noir);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
}
.sds-nl-eyebrow { color: rgba(255,255,255,0.85); margin-bottom: var(--space-3); }
.sds-nl-box h2 { color: #fff; margin: 0; text-transform: none; font-size: var(--fs-h2); }
.sds-nl-box > div > p { color: rgba(255,255,255,0.85); margin-top: var(--space-4); margin-bottom: 0; }

.sds-nl-form { display: grid; gap: var(--space-4); }
.sds-nl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.sds-nl-foot { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: 4px; }
.sds-nl-foot .sds-caption { font-size: var(--fs-caption); color: rgba(255,255,255,0.7); }

/* Champs formulaire (fond sombre) */
.sds-field { display: flex; flex-direction: column; gap: var(--space-1); }
.sds-field label { font-weight: var(--fw-bold); font-size: var(--fs-small); color: rgba(255,255,255,0.9); }
.sds-field input,
.sds-field select,
.sds-field textarea {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: border-color var(--dur-fast);
}
.sds-field input::placeholder,
.sds-field textarea::placeholder { color: rgba(255,255,255,0.45); }
.sds-field input:focus,
.sds-field textarea:focus { border-color: var(--accent); outline: none; box-shadow: var(--shadow-focus); }

/* Champs fond clair (contact) */
.sds-field--light label { color: var(--sds-noir); }
.sds-field--light input,
.sds-field--light select,
.sds-field--light textarea {
  border: 1px solid var(--sds-gris-300);
  background: #fff;
  color: var(--sds-noir);
}
.sds-field--light input::placeholder,
.sds-field--light textarea::placeholder { color: var(--text-muted); }
.sds-field--light input:focus,
.sds-field--light textarea:focus { border-color: var(--accent); }

.sds-nl-success {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.sds-nl-success .check {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center; justify-content: center;
  flex: none;
  font-size: 1.1rem;
}

/* --- 14. Actualités --- */
#actualites { padding: var(--space-20) 0; background: var(--surface-wash); }

.sds-actu-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}
.sds-actu-head-row .sds-section-head { margin-bottom: 0; }

.sds-actu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

.sds-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.sds-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); color: inherit; }
.sds-news-thumb {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, #2C2A29) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 2.4rem;
  overflow: hidden;
}
.sds-news-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sds-news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.sds-news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sds-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
}
.sds-news-date { font-size: var(--fs-caption); color: var(--text-muted); }
.sds-news-card h3 { margin: 0 0 var(--space-4); text-transform: none; font-size: var(--fs-h4); line-height: 1.3; flex: 1; }
.sds-news-cta { color: var(--accent); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); font-size: var(--fs-small); }

/* --- 16. Footer --- */
.sds-footer { background: #141414; color: #fff; }

.sds-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px;
}

.sds-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 36px;
}

/* Logo footer */
.sds-footer-logo { margin-bottom: 16px; }
.sds-footer-logo img { height: 57px; width: auto; display: block; mix-blend-mode: screen; }

/* Adresse */
.sds-footer-adresse {
  font-size:0.8438rem;
  line-height: 1.7;
  color: #c0c0c0;
}
.sds-footer-adresse a { color: #fff; text-decoration: none; }
.sds-footer-adresse a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Fonds */
.sds-footer-fonds {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #333;
  font-size:0.8125rem;
  color: #c0c0c0;
}
.sds-footer-fonds a { color: #fff; text-decoration: none; }
.sds-footer-fonds a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Titres colonnes */
.sds-footer-col-title {
  font-weight: 800;
  font-size:0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 14px;
  display: block;
}

/* Liens Informations */
.sds-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size:0.8438rem;
}
.sds-footer-links a {
  text-decoration: none;
  color: #c0c0c0;
}
.sds-footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Réseaux sociaux */
.sds-footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sds-footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #c0c0c0;
  font-size:0.8438rem;
  transition: color 0.18s;
}
.sds-footer-social a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sds-footer-social a:hover .sds-social-icon { background: #7D1954; }
.sds-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #991E66;
  color: #fff;
  transition: background 0.18s;
  flex-shrink: 0;
}

/* Newsletter footer */
.sds-footer-nl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sds-footer-nl-input {
  width: 100%;
  background: #1f1f1f;
  border: 1px solid #6a6a6a;
  color: #fff;
  padding: 11px 14px;
  font-family: inherit;
  font-size:1rem;
  border-radius: 999px;
  outline: none;
}
.sds-footer-nl-input::placeholder { color: #999; }
.sds-footer-nl-input:focus { border-color: #991E66; }
.sds-footer-nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: #991E66;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size:0.8125rem;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.sds-footer-nl-btn:hover { background: #7D1954; }
.sds-footer-nl-btn:active { background: #661342; }

/* Bas de footer */
.sds-footer-bottom {
  border-top: 1px solid #333;
  margin-top: 36px;
  padding-top: 20px;
  font-size:0.7812rem;
  color: #b5b5b5;
}

/* --- 17. Newsletter footer (ancienne section dans le pied de page) --- */
#footer-newsletter { padding: var(--space-12) 0; background: var(--surface-wash); }
.sds-footer-nl { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.sds-footer-nl-form { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-end; flex: 1; min-width: 260px; }

/* --- 18. Animations au scroll --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease-standard), transform 0.45s var(--ease-standard);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --- 19. Responsive --- */
@media (max-width: 960px) {
  .sds-desktop-nav { display: none !important; }
  .sds-burger      { display: block !important; }
  .sds-footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 960px) {
  .sds-offres-grid  { grid-template-columns: repeat(2, 1fr); }
  .sds-impact-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sds-hero-grid  { grid-template-columns: 1fr; }
  .sds-hero-figure { display: none; }
  .sds-qsn-grid   { grid-template-columns: 1fr; }
  .sds-nl-box     { grid-template-columns: 1fr; padding: var(--space-8); }
  .sds-nl-fields  { grid-template-columns: 1fr; }
  .sds-actu-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sds-footer-grid { grid-template-columns: 1fr !important; }
  .sds-offres-grid { grid-template-columns: 1fr; }
  .sds-actu-grid   { grid-template-columns: 1fr; }
  .sds-section     { padding: 48px 0; }
  #accueil         { padding: 48px 0; }
  .sds-impact-band { padding: 40px var(--space-6); }
}

/* --- 19b. Bouton "Faire un don" header + bouton retour en haut --- */
.sds-don-header {
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.sds-don-header:hover  { background: #7D1954 !important; }
.sds-don-header:active { background: #5C0F3C !important; }
.sds-don-header:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #003594; }

#sds-back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #991E66;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transition: background var(--dur-fast) var(--ease-standard), opacity var(--dur-fast), visibility var(--dur-fast);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#sds-back-top.sds-back-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#sds-back-top:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  outline: 3px solid #F2C500;
  outline-offset: 3px;
}
#sds-back-top:hover  { background: #7D1954; }
#sds-back-top:active { background: #661342; }

/* Bordure lisse (solid) sur les boutons CTA */
.sds-cta {
  border: 2px solid currentColor;
}

/* CTA des pages programmes (hero + bloc contact) :
   effet de survol identique à l'Accueil = assombrissement du fond.
   Déclenché aussi au focus clavier (RGAA 3.2). */
.sds-prog-cta {
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}
/* !important : les boutons portent un background inline (spécificité supérieure)
   qu'il faut battre pour que l'assombrissement au survol/focus s'applique (comme les .f-btn-* de formation.php). */
.sds-prog-cta:hover,
.sds-prog-cta:focus-visible { background: #7D1954 !important; color: #fff !important; }
/* Bague de focus lisible sur le bouton sombre ET le fond clair (RGAA 10.7) :
   double anneau — blanc interne (tranche sur le bouton magenta foncé) + bleu externe (tranche sur le fond clair). */
.sds-prog-cta:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #003594 !important;
  outline: none !important;
}
/* Boutons blancs à texte magenta sur aplat magenta (« Nous contacter », « Faire un don »…) :
   survol/focus = fond noir + texte blanc, comme sur Formation / Conseil / Nos outils. */
.sds-prog-cta--white:hover,
.sds-prog-cta--white:focus-visible,
.sds-b-white:hover,
.sds-b-white:focus-visible { background: #141414 !important; color: #fff !important; }

/* Prise de focus adaptée aux aplats sombres/magenta → bague blanche
   (RGAA 3.2 « focus visible » + 10.7, contraste de la bague avec le fond) */
.sds-fond-magenta :focus-visible {
  box-shadow: 0 0 0 3px #fff !important;
  outline: none !important;
}
/* Les boutons blancs deviennent noirs au focus → la bague blanche ci-dessus
   tranche à la fois sur le bouton noir et sur l'aplat magenta. */

/* Boutons à libellé éditable (éditeur de pages) : un intitulé long passe à la
   ligne proprement — texte aligné à gauche — et le cadre grandit en hauteur au
   lieu de déborder ou d'être rogné. Vaut aussi sur les pages publiées. */
.ie-btn-label { white-space: normal; text-align: left; overflow-wrap: break-word; line-height: 1.25; }
a:has(> .ie-btn-label),
button:has(> .ie-btn-label) { height: auto; min-height: 32px; }
/* L'icône / la flèche à côté du libellé garde sa taille (ne pas la laisser
   rétrécir quand le libellé occupe plusieurs lignes). */
a:has(> .ie-btn-label) > :not(.ie-btn-label),
button:has(> .ie-btn-label) > :not(.ie-btn-label) { flex-shrink: 0; }

/* --- 20. Accessibilité --- */
/* Focus sur fonds sombres (footer, drawer, newsletter) → bague blanche */
.sds-footer :focus-visible,
.sds-mobile-drawer :focus-visible,
.sds-nl2 :focus-visible {
  box-shadow: 0 0 0 3px #fff !important;
  outline: none !important;
}

@media (max-width: 400px) {
  .sds-impact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  .sds-btn--primary { forced-color-adjust: none; }
  :focus-visible { outline: 2px solid ButtonText; box-shadow: none; }
}

/* --- Contact page --- */
.sds-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; padding: var(--space-20) 0; }
.sds-contact-info h2 { font-size: var(--fs-h2); }
.sds-contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.sds-contact-form textarea { resize: vertical; min-height: 120px; }
@media (max-width: 768px) {
  .sds-contact-grid { grid-template-columns: 1fr; padding: 48px 0; }
  .sds-contact-form-grid { grid-template-columns: 1fr; }
}

/* --- Tailles de police (mise en forme inline des textes éditables) ---
   Relatif à l'élément porteur (em) → cohérent dans un titre comme un paragraphe. */
.ie-fs-petit     { font-size: 0.82em; }
.ie-fs-grand     { font-size: 1.28em; }
.ie-fs-tresgrand { font-size: 1.6em; }

/* --- Grille de logos du constructeur de sections (4 par ligne en bureau) --- */
@media (max-width: 960px) { .sds-logos-dyn { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 640px) { .sds-logos-dyn { grid-template-columns: 1fr 1fr !important; } }
