/* ==========================================================================
   Au Cœur des Blessures Intérieures — feuille de styles du site vitrine
   Tokens issus de la « Palette chromatique et guide d'utilisation » (validée)
   et de la charte graphique v1.0 (typographie, rayons, grilles : recommandations).
   ========================================================================== */

:root {
  color-scheme: light;
  /* Couleurs — palette validée */
  --color-brand-terracotta: #E35336;      /* logo, grands titres, graphismes */
  --color-action-primary: #B23A22;        /* boutons, liens, focus */
  --color-action-primary-hover: #8F2E1B;
  --color-bg-default: #FBF7F1;            /* ivoire */
  --color-bg-subtle: #F2E8DA;             /* sable */
  --color-bg-highlight: #F8E3DB;          /* rose argile */
  --color-accent-sage: #9AAB8E;           /* décoratif uniquement */
  --color-action-secondary: #4E6450;      /* sauge profond */
  --color-action-secondary-hover: #3D4F3F;
  --color-text-default: #3A2B25;          /* encre brune */
  --color-text-secondary: #4E6450;
  --color-text-on-dark: #FFFFFF;
  --color-border-control: #4E6450;
  --color-border-decorative: #E3D8C8;
  --white: #FFFFFF;

  /* Typographie — recommandation charte : Lora + Source Sans 3 */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Open Sans", Arial, sans-serif;

  /* Espacements — base 8 */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  /* Rayons */
  --r-control: 8px; --r-card: 16px; --r-large: 24px; --r-tag: 20px;

  --container: 1200px;
  --measure: 720px;
  --gutter: 20px;
  --header-h: 88px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; --header-h: 112px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-bg-default);
  color: var(--color-text-default);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 18px; } }
img, svg { max-width: 100%; display: block; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--color-text-default); margin: 0; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 600; }
h2 { font-size: 26px; line-height: 1.2; font-weight: 600; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 500; }
h4 { font-family: var(--font-sans); font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0; }
@media (min-width: 1200px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
}
.display { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }

a { color: var(--color-action-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-action-primary-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--color-action-primary); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--color-action-primary); color: var(--white); padding: 12px 20px; border-radius: var(--r-control);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s7); }
@media (min-width: 1200px) { .section { padding-block: var(--s8); } }
.section--sable { background: var(--color-bg-subtle); }
.section--tight { padding-block: var(--s6); }
.measure { max-width: var(--measure); }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s4); }
.section-head { display: flex; flex-direction: column; gap: var(--s3); max-width: var(--measure); margin-bottom: var(--s6); }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); }
.section-head--row > div { display: flex; flex-direction: column; gap: var(--s3); max-width: var(--measure); }
.lead { font-size: 19px; line-height: 1.55; }
@media (min-width: 1200px) { .lead { font-size: 21px; } }
.muted { color: var(--color-text-secondary); }
.small { font-size: 15px; line-height: 1.5; }

/* Surtitre encadré de deux filets (écho au logo) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-action-primary);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.eyebrow--solo::after { display: none; }
.on-dark .eyebrow { color: var(--color-bg-default); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-control);
  font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--color-action-primary); color: var(--white); }
.btn--primary:hover { background: var(--color-action-primary-hover); color: var(--white); }
.btn--secondary { background: transparent; color: var(--color-action-secondary); border-color: var(--color-action-secondary); }
.btn--secondary:hover { background: var(--color-action-secondary-hover); border-color: var(--color-action-secondary-hover); color: var(--white); }
.btn--ivory { background: var(--color-bg-default); color: var(--color-action-primary); }
.btn--ivory:hover { background: var(--white); color: var(--color-action-primary-hover); }
.btn--outline-ivory { background: transparent; color: var(--color-bg-default); border-color: var(--color-bg-default); }
.btn--outline-ivory:hover { background: var(--color-bg-default); color: var(--color-action-secondary-hover); }
.on-dark :focus-visible { outline-color: var(--color-bg-default); }
.btn[disabled] { background: var(--color-bg-subtle); color: var(--color-text-secondary); border-color: transparent; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 767px) { .btn-row--stack .btn { width: 100%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-tag);
  background: var(--color-accent-sage); color: var(--color-text-default); font-size: 14px; font-weight: 600; line-height: 1.4;
}
.tag--sable { background: var(--color-bg-subtle); }
.tag--ivory { background: var(--color-bg-default); }

/* Élément à compléter (visible pour l'équipe, facile à retrouver) */
.todo {
  display: inline-block; padding: 2px 10px; border: 1.5px dashed var(--color-action-secondary); border-radius: 6px;
  font-size: 0.85em; font-weight: 600; color: var(--color-action-secondary); background: transparent; line-height: 1.5;
}
.on-dark .todo { color: var(--color-bg-default); border-color: var(--color-bg-default); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--color-bg-default);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border-decorative); box-shadow: 0 6px 24px -18px rgba(58, 43, 37, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); padding-block: 12px; }
/* Logo : 160 px sur mobile, 200 px sur ordinateur, zone de protection respectée */
.brand { display: block; flex: none; padding: 6px 0; }
.brand img { width: 160px; height: auto; }
@media (min-width: 1200px) { .brand img { width: 200px; } }

.nav { display: none; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  color: var(--color-text-default); text-decoration: none; font-weight: 600; font-size: 17px; border-radius: var(--r-control);
  position: relative;
}
.nav a:not(.btn):hover { color: var(--color-action-primary); }
.nav a[aria-current="page"] { color: var(--color-action-primary); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--color-action-primary); border-radius: 2px;
}
.nav .nav-cta { margin-left: 12px; }
.nav-cta .btn { min-height: 44px; padding: 10px 18px; font-size: 16px; }
@media (min-width: 1024px) { .nav { display: block; } .menu-toggle { display: none; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 14px;
  background: transparent; border: 1.5px solid var(--color-border-control); border-radius: var(--r-control);
  color: var(--color-text-default); font: 600 16px/1 var(--font-sans); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { border-top: 1px solid var(--color-border-decorative); background: var(--color-bg-default); }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; padding-block: var(--s3) var(--s4); }
.mobile-nav li + li { border-top: 1px solid var(--color-border-decorative); }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font-family: var(--font-serif); font-size: 22px; color: var(--color-text-default); text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--color-action-primary); }
.mobile-nav .btn { width: 100%; margin-top: var(--s3); }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--s6) var(--s7); }
@media (min-width: 1200px) { .hero { padding-block: var(--s7) var(--s8); } }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--s7); } }
.hero-copy { display: flex; flex-direction: column; gap: var(--s4); }
.hero-copy h1 em { font-style: italic; font-weight: 500; color: var(--color-brand-terracotta); }
.hero-copy .lead { max-width: 560px; }
.hero-art { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.hero-art svg { width: 100%; height: auto; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--color-text-secondary); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; }

/* Bandeau de page (pages intérieures) */
.page-hero { padding-block: var(--s6) var(--s6); position: relative; overflow: hidden; }
@media (min-width: 1200px) { .page-hero { padding-block: var(--s7) var(--s7); } }
.page-hero-grid { display: grid; gap: var(--s5); align-items: end; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.4fr 0.6fr; } }
.page-hero .stack-lg { max-width: 760px; }
.page-hero-art { display: none; }
@media (min-width: 900px) { .page-hero-art { display: block; justify-self: end; width: 100%; max-width: 280px; } }
.breadcrumb { font-size: 15px; color: var(--color-text-secondary); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--color-border-control); }
.breadcrumb a { color: var(--color-text-secondary); }

/* Courbe (trait fin ascendant, une par composition) */
.curve { display: block; width: 100%; height: 40px; color: var(--color-brand-terracotta); }

/* ---------- Conviction (citation) ---------- */
.conviction { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .conviction { grid-template-columns: 0.8fr 1.2fr; gap: var(--s7); align-items: start; } }
.quote {
  margin: 0; padding-left: var(--s4); border-left: 2px solid var(--color-brand-terracotta);
  font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--color-text-default);
}
@media (min-width: 1200px) { .quote { font-size: 26px; } }
.quote p + p { margin-top: var(--s3); }

/* ---------- Faits (en bref) ---------- */
.facts { display: grid; gap: var(--s4); list-style: none; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--color-border-control); }
.fact h3 { font-size: 21px; }
.fact .icon { width: 28px; height: 28px; color: var(--color-action-secondary); margin-bottom: 4px; }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: var(--s4); list-style: none; }
@media (min-width: 768px) { .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s3); height: 100%;
  padding: var(--s4); border-radius: var(--r-card); background: var(--color-bg-subtle);
  transition: box-shadow .2s ease, transform .2s ease;
}
@media (min-width: 1200px) { .card { padding: var(--s5); } }
.section--sable .card { background: var(--color-bg-default); }
.card--link:hover { box-shadow: 0 14px 36px -24px rgba(58, 43, 37, .55); transform: translateY(-2px); }
.card--link:focus-within { outline: 2px solid var(--color-action-primary); outline-offset: 2px; }
.card--link a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link a.stretched:focus-visible { outline: none; }
.card h3 a { color: inherit; text-decoration: none; }
.card .card-foot { margin-top: auto; padding-top: var(--s2); }
.card-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-bg-default); color: var(--color-action-secondary);
}
.section--sable .card-icon { background: var(--color-bg-subtle); }
.card-icon svg { width: 26px; height: 26px; }

/* Actualités */
.news-card { gap: var(--s3); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--color-text-secondary); font-weight: 600; }
.news-card h3 { font-size: 21px; }
.news-source { font-size: 14px; color: var(--color-text-secondary); border-top: 1px solid var(--color-border-decorative); padding-top: var(--s3); margin-top: auto; }
.news-source a { font-weight: 600; }
.ext { display: inline-block; width: 14px; height: 14px; vertical-align: -1px; margin-left: 3px; }

/* ---------- Bandeau web app (Sauge Profond) ---------- */
.band {
  position: relative; overflow: hidden; border-radius: var(--r-large);
  background: var(--color-action-secondary); color: var(--color-bg-default);
  padding: var(--s6) var(--s4);
}
@media (min-width: 768px) { .band { padding: var(--s7) var(--s6); } }
.band h2, .band h3 { color: var(--color-bg-default); }
.band-grid { position: relative; display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.3fr 0.7fr; } }
.band .lead { color: var(--color-bg-default); }
.band-list { list-style: none; display: grid; gap: 12px; }
.band-list li { display: flex; gap: 12px; align-items: flex-start; }
.band-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.band-status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.band-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-bg-default); }
.band-deco { position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; background: var(--color-action-secondary-hover); pointer-events: none; }

/* ---------- Encadrés ---------- */
.info-box {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--color-bg-highlight); border-radius: var(--r-card); padding: var(--s4);
}
.info-box > svg { width: 24px; height: 24px; flex: none; color: var(--color-action-primary); margin-top: 3px; }
.info-box strong { color: var(--color-action-primary); }
.info-box .stack { gap: 10px; }

.help-strip { background: var(--color-bg-highlight); }
.help-grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .help-grid { grid-template-columns: 0.9fr 1.1fr; } }
.help-numbers { display: grid; gap: var(--s3); list-style: none; }
@media (min-width: 600px) { .help-numbers { grid-template-columns: repeat(3, 1fr); } }
.help-numbers li { background: var(--color-bg-default); border-radius: var(--r-card); padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: 4px; }
.help-numbers .num { font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--color-action-primary); font-variant-numeric: tabular-nums; }
.help-numbers .lbl { font-size: 15px; line-height: 1.45; }

/* ---------- Activités (page) ---------- */
.activity-index { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.activity-index a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-tag);
  background: var(--color-bg-default); border: 1.5px solid var(--color-border-control); color: var(--color-text-default);
  text-decoration: none; font-weight: 600; font-size: 16px;
}
.activity-index a:hover { background: var(--color-action-secondary); color: var(--white); }

.activity { display: grid; gap: var(--s5); padding-block: var(--s6); border-top: 1px solid var(--color-border-decorative); }
.activity:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .activity { grid-template-columns: 0.42fr 0.58fr; gap: var(--s7); } }
.activity-head { display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 900px) { .activity-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.activity-num { font-family: var(--font-serif); font-size: 15px; font-weight: 500; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.activity-head h2 { font-size: 28px; }
@media (min-width: 1200px) { .activity-head h2 { font-size: 34px; } }
.activity-head .tagline { font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1.45; }
.activity-body { display: flex; flex-direction: column; gap: var(--s4); }
.detail-list { display: grid; gap: 0; margin: 0; border-radius: var(--r-card); background: var(--color-bg-subtle); padding: var(--s2) var(--s4); }
.detail-list > div { display: grid; gap: 4px; padding-block: var(--s3); border-top: 1px solid var(--color-border-decorative); }
.detail-list > div:first-child { border-top: 0; }
@media (min-width: 600px) { .detail-list > div { grid-template-columns: 150px 1fr; gap: var(--s4); } }
.detail-list dt { font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); padding-top: 3px; }
.detail-list dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.audience { display: grid; gap: var(--s4); list-style: none; }
@media (min-width: 768px) { .audience { grid-template-columns: repeat(3, 1fr); } }

/* ---------- À propos ---------- */
.stats { display: grid; gap: var(--s4); list-style: none; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border-radius: var(--r-card); background: var(--color-bg-default); height: 100%; }
.stat-num { font-family: var(--font-serif); font-size: 44px; font-weight: 600; line-height: 1.05; color: var(--color-brand-terracotta); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-text { font-size: 17px; line-height: 1.5; }
.stat-src { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--color-border-decorative); font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.stat-src a { font-weight: 600; }

.vm { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .vm { grid-template-columns: 1fr 1fr; } }
.vm-item { padding: var(--s5) var(--s4); border-radius: var(--r-large); display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 1200px) { .vm-item { padding: var(--s6); } }
.vm-item--vision { background: var(--color-bg-subtle); }
.vm-item--mission { background: var(--color-action-secondary); color: var(--color-bg-default); }
.vm-item--mission h2, .vm-item--mission p { color: var(--color-bg-default); }
.vm-item p.big { font-family: var(--font-serif); font-size: 24px; line-height: 1.4; }
@media (min-width: 1200px) { .vm-item p.big { font-size: 28px; } }

.two-col { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s6); } }

.approach { list-style: none; display: grid; gap: 0; }
@media (min-width: 768px) { .approach { grid-template-columns: repeat(2, 1fr); column-gap: var(--s6); } }
.approach li { display: flex; gap: var(--s3); align-items: center; padding-block: var(--s3); border-bottom: 1px solid var(--color-border-decorative); font-weight: 600; }
.approach svg { width: 24px; height: 24px; flex: none; color: var(--color-action-secondary); }

.values { list-style: none; display: grid; gap: var(--s4); }
@media (min-width: 768px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s4); border-top: 2px solid var(--color-accent-sage); }
.value h3 { font-size: 22px; }

.limits { display: grid; gap: var(--s3); list-style: none; }
.limits li { display: flex; gap: var(--s3); align-items: flex-start; }
.limits svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.limits .no { color: var(--color-action-primary); }
.limits .yes { color: var(--color-action-secondary); }

.validate-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.25fr 0.75fr; gap: var(--s7); align-items: start; } }
.form-card { background: var(--white); border-radius: var(--r-large); padding: var(--s4); box-shadow: 0 1px 0 var(--color-border-decorative), 0 24px 48px -36px rgba(58, 43, 37, .45); }
@media (min-width: 768px) { .form-card { padding: var(--s6); } }
.form { display: grid; gap: var(--s4); }
.form-row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--color-text-default); }
.req { color: var(--color-action-primary); }
.opt { font-weight: 400; color: var(--color-text-secondary); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 17px/1.4 var(--font-sans); color: var(--color-text-default);
  background: var(--white); border: 1px solid var(--color-border-control); border-radius: var(--r-control);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233A2B25' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-text-default); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border: 2px solid var(--color-action-primary); padding: 11px 13px; }
.field select:focus { padding-right: 43px; }
.field .hint { font-size: 15px; color: var(--color-text-secondary); line-height: 1.45; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border: 2px solid var(--color-action-primary); padding: 11px 13px; }
.error-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-weight: 600; color: var(--color-action-primary); line-height: 1.45; }
.error-msg svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--color-action-primary); flex: none; }
.counter { font-size: 14px; color: var(--color-text-secondary); text-align: right; font-variant-numeric: tabular-nums; }
.form-status { border-radius: var(--r-card); padding: var(--s3) var(--s4); display: flex; gap: 12px; align-items: flex-start; }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form-status--error { background: var(--color-bg-highlight); color: var(--color-text-default); }
.form-status--error svg { color: var(--color-action-primary); }
.form-status--demo { background: var(--color-bg-subtle); border-left: 3px solid var(--color-action-secondary); }
.form-status--demo svg { color: var(--color-action-secondary); }
.form-status h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; }

.coords { display: flex; flex-direction: column; gap: var(--s4); }
.coord-list { list-style: none; display: grid; gap: 0; background: var(--color-bg-subtle); border-radius: var(--r-card); padding: var(--s2) var(--s4); }
.coord-list li { display: flex; gap: var(--s3); align-items: flex-start; padding-block: var(--s3); border-top: 1px solid var(--color-border-decorative); }
.coord-list li:first-child { border-top: 0; }
.coord-list svg { width: 22px; height: 22px; flex: none; color: var(--color-action-secondary); margin-top: 3px; }
.coord-list .k { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); }

/* ---------- Pied de page (Encre Brune, logo Ivoire) ---------- */
.site-footer { background: var(--color-text-default); color: var(--color-bg-default); padding-block: var(--s7) var(--s5); }
.site-footer a { color: var(--color-bg-default); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--color-bg-default); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr 1fr; gap: var(--s5); } }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { margin-top: var(--s4); max-width: 340px; font-size: 16px; line-height: 1.55; }
.footer-title { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s3); color: var(--color-bg-default); }
.footer-list { list-style: none; display: grid; gap: 10px; font-size: 16px; }
.footer-bottom { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(251, 247, 241, .22); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: 15px; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Toast (web app) ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  background: var(--color-text-default); color: var(--color-bg-default); border-radius: var(--r-card);
  padding: var(--s3) var(--s4); display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 20px 48px -20px rgba(0, 0, 0, .5);
}
.toast svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.toast button { margin-left: auto; background: transparent; border: 0; color: var(--color-bg-default); cursor: pointer; min-width: 44px; min-height: 44px; margin-top: -10px; margin-right: -12px; font-size: 22px; line-height: 1; }
.toast button:focus-visible { outline-color: var(--color-bg-default); }

/* Apparition douce */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(12px); opacity: .001; } to { transform: none; opacity: 1; } }
  .draw-curve path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Ordre de cascade : le bouton de menu est masqué sur grand écran */
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.stat-num--sm { font-size: 34px; white-space: nowrap; }
.hero-copy .hero-text { max-width: 560px; margin-top: calc(-1 * var(--s2)); }

/* Chiffres clés sur fond ivoire : cartes sable */
.section--stats .stat { background: var(--color-bg-subtle); }

/* Mention discrète de la web app (À propos) */
.webapp-note-inner { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--color-border-decorative); }
.webapp-note h2 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; line-height: 1.4; }
.webapp-note p { font-size: 16px; line-height: 1.55; color: var(--color-text-secondary); }
.webapp-note .link-arrow { font-size: 16px; }

/* Pages légales */
.legal-body { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--s3); }
.legal-body h2 { font-size: 22px; margin-top: var(--s5); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 1.2em; display: grid; gap: 6px; }

/* Photo (bloc Qui sommes-nous) */
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-large); }

/* Bannière avec photo floutée en fond : voile ivoire pour garantir la lisibilité du texte */
.page-hero--photo {
  background-color: var(--color-bg-default);
  background-image:
    linear-gradient(90deg, rgba(251, 247, 241, .94) 0%, rgba(251, 247, 241, .9) 55%, rgba(251, 247, 241, .6) 100%),
    url("photo-groupe-flou.jpg");
  background-size: cover;
  background-position: center;
}
@media (max-width: 899px) {
  .page-hero--photo { background-image: linear-gradient(rgba(251, 247, 241, .92), rgba(251, 247, 241, .92)), url("photo-groupe-flou.jpg"); }
}

/* Qui sommes-nous : photo en fond, visible à gauche, texte lisible à droite */
.qui-card { position: relative; border-radius: var(--r-large); overflow: hidden; background: var(--color-bg-subtle); }
.qui-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.qui-veil { display: none; }
.qui-text { position: relative; padding: var(--s5) var(--s4) var(--s4); }
@media (min-width: 900px) {
  .qui-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 560px; }
  .qui-photo { position: absolute; top: 0; left: 0; width: 64%; height: 100%; aspect-ratio: auto; object-position: center; }
  .qui-veil {
    display: block; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(242, 232, 218, 0) 0%, rgba(242, 232, 218, 0) 34%, rgba(242, 232, 218, .96) 50%, #F2E8DA 64%);
  }
  .qui-text { grid-column: 2; padding: var(--s6) var(--s6) var(--s6) var(--s4); }
}

/* Réseaux sociaux */
.social { display: inline-flex; gap: 12px; align-items: center; }
.social-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--color-action-secondary); }
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { background: var(--color-action-secondary); color: var(--white); border-color: var(--color-action-secondary); }
.site-footer .social-link { color: var(--color-bg-default); }
.site-footer .social-link:hover { background: var(--color-bg-default); color: var(--color-text-default); border-color: var(--color-bg-default); }

.coord-list li { align-items: center; }
.coord-list svg { margin-top: 0; }

/* Bannière À propos avec photo */
.page-hero--image {
  background-color: var(--color-bg-default);
  background-image:
    linear-gradient(90deg, rgba(251, 247, 241, .94) 0%, rgba(251, 247, 241, .86) 38%, rgba(251, 247, 241, .2) 62%, rgba(251, 247, 241, 0) 75%),
    url("hero-accueil.jpg");
  background-size: cover;
  background-position: right center;
}
@media (min-width: 900px) { .page-hero--image { min-height: 540px; display: flex; align-items: center; } .page-hero--image > .container { width: 100%; } .page-hero--image .stack-lg { max-width: 620px; } }
@media (max-width: 899px) {
  .page-hero--image { background-image: linear-gradient(rgba(251, 247, 241, .9), rgba(251, 247, 241, .9)), url("hero-accueil.jpg"); background-position: 70% center; }
}

/* Activités : rangées éditoriales alternées, galets */
.act { padding-block: var(--s7); }
@media (min-width: 1200px) { .act { padding-block: var(--s8); } }
.act--band { background: var(--color-bg-subtle); }
.act-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) {
  .act-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s7); }
  .act--flip .act-visual { order: 2; }
}
.act-visual { display: flex; justify-content: center; }
.act-galet {
  display: grid; place-items: center; width: clamp(160px, 26vw, 300px); aspect-ratio: 1.08 / 1;
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; color: var(--color-text-default);
  transition: border-radius 1.2s ease;
}
.act-galet svg { width: 34%; height: auto; stroke-width: 1.1; }
.act-galet--sauge { background: var(--color-accent-sage); }
.act-galet--rose { background: var(--color-bg-highlight); }
.act-galet--sable { background: var(--color-bg-subtle); }
.act--band .act-galet--sable { background: var(--color-bg-default); }
.act:hover .act-galet { border-radius: 45% 55% 42% 58% / 55% 45% 56% 44%; }
.act-content { display: flex; flex-direction: column; gap: var(--s3); max-width: 620px; }
.act-content h2 { font-size: 30px; }
@media (min-width: 1200px) { .act-content h2 { font-size: 40px; } }
.act-tagline { font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--color-action-primary); }
.act-text { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--color-border-decorative); }
@media (max-width: 899px) { .act-visual { justify-content: flex-start; } .act-galet { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .act-galet { transition: none; } }

/* Accueil : bannière avec photo */
.hero--image {
  background-color: var(--color-bg-default);
  background-image:
    linear-gradient(90deg, rgba(251, 247, 241, .95) 0%, rgba(251, 247, 241, .88) 40%, rgba(251, 247, 241, .2) 64%, rgba(251, 247, 241, 0) 78%),
    url("hero-accueil.jpg");
  background-size: cover;
  background-position: right center;
}
@media (min-width: 900px) {
  .hero--image { min-height: 600px; display: flex; align-items: center; }
  .hero--image > .container { width: 100%; }
  .hero--image .hero-grid { grid-template-columns: 1fr; }
  .hero--image .hero-copy { max-width: 600px; }
}
@media (max-width: 899px) {
  .hero--image { background-image: linear-gradient(rgba(251, 247, 241, .9), rgba(251, 247, 241, .9)), url("hero-accueil.jpg"); background-position: 70% center; }
}


[hidden] { display: none !important; }

/* Accueil : mission + 3 piliers */
.piliers-head { max-width: 760px; margin: 0 auto var(--s6); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.piliers-head h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; }
.piliers-grid { list-style: none; display: grid; gap: var(--s5); border-top: 1px solid var(--color-border-decorative); border-bottom: 1px solid var(--color-border-decorative); padding-block: var(--s6); }
@media (min-width: 768px) { .piliers-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.pilier { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s2); max-width: 340px; margin-inline: auto; }
.pilier-icon svg { width: 34px; height: 34px; stroke-width: 1.5; }
.pilier-icon { margin-bottom: var(--s2); }
.pilier-icon--terra { color: var(--color-action-primary); }
.pilier-icon--sauge { color: var(--color-action-secondary); }
.pilier h3 { font-family: var(--font-sans); font-size: 21px; font-weight: 600; }
.pilier p { color: var(--color-text-secondary); font-size: 17px; line-height: 1.6; }
.piliers-link { text-align: center; margin-top: var(--s5); }

/* À propos : valeurs, liste éditoriale sobre */
.valeurs { list-style: none; display: grid; border-top: 1px solid var(--color-border-decorative); }
.valeur { display: grid; gap: var(--s2); padding-block: var(--s4); border-bottom: 1px solid var(--color-border-decorative); }
@media (min-width: 900px) { .valeur { grid-template-columns: 0.35fr 0.65fr; gap: var(--s6); align-items: baseline; padding-block: var(--s5); } }
.valeur h3 { font-size: 26px; color: var(--color-text-default); }
.valeur p { max-width: 640px; }

/* Accueil : chiffres et actualités, affichage discret */
.mini-title { font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-secondary); }
.chiffres-card { border: 1px solid var(--color-border-decorative); border-radius: var(--r-card); padding: var(--s4); background: var(--white); display: flex; flex-direction: column; gap: var(--s4); }
@media (min-width: 768px) { .chiffres-card { padding: var(--s5); } }
.chiffres { list-style: none; display: grid; gap: var(--s4) var(--s6); }
@media (min-width: 768px) { .chiffres { grid-template-columns: 1fr 1fr; } }
.chiffre { display: flex; flex-direction: column; gap: 6px; }
.chiffre-num { font-family: var(--font-sans); font-size: 38px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre-num--terra { color: var(--color-brand-terracotta); }
.chiffre-num--sauge { color: var(--color-action-secondary); }
.chiffre-text { font-size: 18px; line-height: 1.5; }
.chiffre-src, .chiffres-note { font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.mini-title--out { margin: var(--s6) 0 var(--s3); }
.actus { list-style: none; display: grid; }
.actu { display: flex; flex-direction: column; gap: 6px; padding-block: var(--s4); border-bottom: 1px solid var(--color-border-decorative); }
.actu:first-child { padding-top: var(--s2); }
.actu h3 { font-family: var(--font-sans); font-size: 21px; font-weight: 600; line-height: 1.35; }
.actu-meta { font-size: 15px; color: var(--color-text-secondary); }
.actu-text { max-width: 820px; }
.actu-link { font-weight: 600; font-size: 16px; }
.mini-title--top { margin-bottom: var(--s4); }
.veille .chiffres-note { margin-top: var(--s3); }

/* Nos activités : bannière avec photo */
.page-hero--activites {
  background-color: var(--color-bg-default);
  background-image:
    linear-gradient(90deg, rgba(251, 247, 241, .95) 0%, rgba(251, 247, 241, .9) 42%, rgba(251, 247, 241, .3) 66%, rgba(251, 247, 241, .05) 82%),
    url("hero-activites-v2.jpg");
  background-size: cover;
  background-position: center 30%;
}
@media (min-width: 900px) {
  .page-hero--activites { min-height: 540px; display: flex; align-items: center; }
  .page-hero--activites > .container { width: 100%; }
  .page-hero--activites .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero--activites .stack-lg { max-width: 600px; }
}
@media (max-width: 899px) {
  .page-hero--activites { background-image: linear-gradient(rgba(251, 247, 241, .9), rgba(251, 247, 241, .9)), url("hero-activites-v2.jpg"); }
}

/* À propos : valeurs en cartes illustrées */
.vcards { list-style: none; display: grid; gap: var(--s4); }
@media (min-width: 700px) { .vcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vcards { grid-template-columns: repeat(3, 1fr); } }
.vcard {
  display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5) var(--s4) var(--s4);
  background: var(--white); border: 1px solid var(--color-border-decorative); border-radius: var(--r-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(58, 43, 37, .5); }
.vcard-icon {
  display: grid; place-items: center; width: 64px; height: 60px; margin-bottom: var(--s2);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; color: var(--color-text-default);
  transition: border-radius .8s ease;
}
.vcard:hover .vcard-icon { border-radius: 45% 55% 42% 58% / 55% 45% 56% 44%; }
.vcard-icon svg { width: 28px; height: 28px; }
.vcard-icon--sauge { background: var(--color-accent-sage); }
.vcard-icon--rose { background: var(--color-bg-highlight); }
.vcard h3 { font-size: 24px; color: var(--color-action-primary); }
.vcard p { font-size: 17px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .vcard, .vcard-icon { transition: none; } .vcard:hover { transform: none; } }

/* Adresse e-mail : toujours sur une seule ligne */
a.email { white-space: nowrap; }
.site-footer a.email { font-size: 15px; }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.1fr 0.8fr 1.25fr 1fr; } }
@media (max-width: 520px) {
  .coord-list { padding-inline: var(--s3); }
  .coord-list li { gap: 12px; }
  .coord-list a.email { font-size: clamp(12px, 3.6vw, 17px); }
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
