/* Unamy — feuille de style du site vitrine
   Charte : Poppins, corail #f35f45, bleu gris #8ba5bb, jaune #fad162, beige #e0dbc6, noir #1a1a1a.
   Mise en page : colonne de lecture généreuse, bandes pleine largeur alternées, le motif « un »
   de la charte en décor, et la « fiche de passage » comme élément récurrent.
   Les couleurs vives servent aux aplats ; le texte reste noir ou dans une teinte foncée dérivée (contraste AA). */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #fbfaf6;          /* blanc chaud, teinté beige */
  --surface: #ffffff;
  --band: #efece1;        /* beige clair pour les bandes */
  --link-on-beige: #8f2f1c;
  --beige: #e0dbc6;       /* beige de la charte */
  --ink: #1a1a1a;         /* noir de la charte */
  --muted: #4d4a42;
  --line: #d9d4c2;
  --coral: #f35f45;       /* corail de la charte : aplats, boutons, grands titres */
  --coral-text: #b8402a;  /* corail foncé pour liens et petits textes (5,2:1) */
  --coral-soft: #fde3dc;
  --blue: #8ba5bb;        /* bleu gris de la charte : aplats */
  --blue-text: #3f5a73;   /* bleu foncé pour surtitres (6,8:1) */
  --blue-soft: #e3eaf0;
  --yellow: #fad162;      /* jaune de la charte : repères, numéros */
  --yellow-soft: #fdf1c8;
  --on-accent: #1a1a1a;   /* texte sur corail, jaune ou bleu */
  --footer-bg: #1a1a1a;
  --footer-ink: #e0dbc6;
  --focus: #1a1a1a;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.95rem;
  --step-0: 1.0625rem;    /* 17 px en Poppins : corps lisible pour un public senior */
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.8rem, 1.3rem + 2vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.5rem);

  --radius: 18px;
  --wrap: 72rem;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1a1a; --surface: #242424; --band: #202020; --beige: #2c2a24; --link-on-beige: #ffb4a0; --ink: #f2efe4; --muted: #c9c4b2;
    --line: #3a3833; --coral-text: #f7826d; --coral-soft: #3a231e; --blue-text: #b9c8d6; --blue-soft: #232b33;
    --yellow-soft: #36301c; --footer-bg: #121212; --focus: #fad162; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1a1a; --surface: #242424; --band: #202020; --beige: #2c2a24; --link-on-beige: #ffb4a0; --ink: #f2efe4; --muted: #c9c4b2;
  --line: #3a3833; --coral-text: #f7826d; --coral-soft: #3a231e; --blue-text: #b9c8d6; --blue-soft: #232b33;
  --yellow-soft: #36301c; --footer-bg: #121212; --focus: #fad162; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--coral-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: 0.5rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: grid; gap: 1.1rem; }
.stack-lg { display: grid; gap: 2.2rem; }
.measure { max-width: var(--measure); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-text); }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 34px; width: auto; }
.site-footer .brand img { height: 30px; }
.nav-toggle { display: none; font: inherit; font-weight: 700; background: none; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 0.4rem 1rem; min-height: 44px; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; align-items: center; }
.nav { font-size: 0.98rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.5rem 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration-color: var(--coral); text-decoration: underline; text-decoration-thickness: 2px; }
.nav a.btn { color: var(--on-accent); text-decoration: none; padding: 0.55rem 1.1rem; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-block; }
  .nav { flex-basis: 100%; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-block: 0.5rem; }
  .nav li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 0.8rem 0; }
  .nav a.btn { margin-top: 0.7rem; text-align: center; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--coral); background: var(--coral); color: var(--on-accent); font-family: inherit; font-size: inherit; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.sage { background: var(--blue); border-color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Sections */
section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.band { background: var(--band); }
.section-head { display: grid; gap: 0.8rem; max-width: 46rem; margin-bottom: 2.4rem; }

/* Héros */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero { position: relative; overflow: hidden; }
.hero .lead { max-width: 34rem; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .deco { position: absolute; right: -3%; top: 56%; transform: translateY(-50%); width: min(46vw, 640px); max-width: none; opacity: 0.9; pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) { .hero .deco { width: 120vw; right: -40vw; top: auto; bottom: -4rem; transform: none; opacity: 0.6; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.page-hero { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero .lead { max-width: 44rem; }

/* Fiche de passage : le compte rendu après une visite */
.visit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 18px 40px -28px rgba(29, 39, 48, 0.45); display: grid; gap: 0.9rem; max-width: 26rem; justify-self: center; width: 100%; }
.visit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.visit-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap; }
.visit dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 1rem; font-size: 1rem; }
.visit dt { color: var(--muted); }
.visit dd { margin: 0; font-variant-numeric: tabular-nums; }
.visit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; font-size: 1rem; }
.visit li { display: flex; gap: 0.55rem; align-items: baseline; }
.visit li::before { content: "✓"; color: var(--coral); font-weight: 700; }
.visit blockquote { margin: 0; padding: 0.8rem 1rem; background: var(--yellow-soft); border-radius: 10px; font-size: 1rem; }
.visit .status { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); font-size: 1rem; }
.visit .status::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--coral); }

/* Grilles */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid > * { min-width: 0; }
/* auto-fill : un ou deux articles gardent la taille d'une colonne au lieu de s'étirer */
.posts-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }

.point { display: grid; gap: 0.5rem; align-content: start; }
.point h3 { color: var(--ink); }
.point .icon { width: 46px; height: 46px; padding: 9px; border-radius: 50%; background: var(--yellow); color: #1a1a1a; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 0.9rem; align-content: start; }
.panel.sage { background: var(--blue-soft); border-color: transparent; }
.panel.plum { background: var(--coral-soft); border-color: transparent; }
.panel.beige { background: var(--beige); border-color: transparent; }

/* Étapes : un vrai déroulé, donc numéroté */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1.1rem; padding-block: 1.3rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--on-accent); }
.steps h3 { margin-bottom: 0.3rem; }

/* Listes cochées */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.checks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.6rem; }
.checks li::before { content: "✓"; color: var(--blue-text); font-weight: 700; }
.checks.no li::before { content: "✕"; color: var(--coral-text); }

/* Tableau des deux modes */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; background: var(--band); }
tbody th { font-weight: 700; color: var(--muted); width: 28%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Citation / encadré */
.callout { border-left: 4px solid var(--coral); padding: 0.4rem 0 0.4rem 1.2rem; display: grid; gap: 0.4rem; }
.notice { background: var(--coral-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: grid; gap: 0.4rem; font-size: 1rem; }
.urgence { background: var(--surface); border: 2px solid var(--coral); border-radius: var(--radius); padding: 1.3rem 1.5rem; display: grid; gap: 0.5rem; }
.urgence strong { font-variant-numeric: tabular-nums; }

/* Grande citation de promesse */
.promise { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: var(--step-3); line-height: 1.2; max-width: 48rem; text-wrap: balance; }
.promise span { background: var(--yellow); color: #1a1a1a; padding: 0 0.2em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* FAQ */
.faq { display: grid; gap: 0.8rem; max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--coral-text); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.2rem; display: grid; gap: 0.7rem; color: var(--ink); }
.faq-group { display: grid; gap: 1rem; }
.faq-group + .faq-group { margin-top: 2.6rem; }

/* Formulaire */
.form { display: grid; gap: 1.3rem; max-width: 40rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 600; }
.field .hint { font-size: 0.95rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; min-height: 50px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--coral); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.choice { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 1rem; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.choice input { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; accent-color: var(--coral); flex: none; }
.choices { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.form-result { padding: 1rem 1.2rem; border-radius: 10px; background: var(--yellow-soft); font-weight: 600; }

/* Pied de page */
.cta-band { background: var(--coral); color: var(--on-accent); position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; gap: 1.2rem; justify-items: start; position: relative; z-index: 1; }
.cta-band .deco { position: absolute; right: -4%; bottom: -18%; width: min(48vw, 560px); height: auto; max-width: none; pointer-events: none; }
@media (max-width: 700px) { .cta-band .deco { width: 90vw; right: -30vw; bottom: -10%; opacity: 0.7; } }
/* « Pourquoi Unamy » : « un » blanc, plus contrasté sur l'orange */
.why-cta .deco { right: 3%; bottom: -12%; width: min(36vw, 440px); opacity: 1; }
@media (max-width: 700px) { .why-cta .wrap { padding-bottom: 5.5rem; } .why-cta .deco { width: 44vw; right: 1rem; bottom: -1.2rem; opacity: 1; } }
.cta-band h2 { max-width: 40rem; }
.cta-band p { max-width: 40rem; }
.cta-band .btn { background: #1a1a1a; color: #fbfaf6; border-color: #1a1a1a; }
.cta-band .btn.ghost { background: transparent; color: #1a1a1a; border-color: #1a1a1a; }
.cta-band :focus-visible { outline-color: #1a1a1a; }

.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 3rem; font-size: 1rem; }
.site-footer .muted, .site-footer .footnote { color: #c9c4b2; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--footer-ink); }
.site-footer :focus-visible { outline-color: #fad162; }
.site-footer h2 { font-size: 1rem; margin-bottom: 0.7rem; color: #fad162; letter-spacing: 0; }
.footnote { grid-column: 1 / -1; border-top: 1px solid #3a3833; padding-top: 1.2rem; }

.breadcrumb { font-size: 0.95rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; }
.breadcrumb a { color: var(--muted); }

.prose a, .prose li { overflow-wrap: anywhere; }
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: var(--measure); overflow-wrap: break-word; }
.hero, .cta-band, .page-hero { overflow-x: clip; }
.prose h2 { font-size: var(--step-2); margin-top: 1.2rem; }
.prose ul { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.todo { background: var(--yellow-soft); padding: 0 0.3rem; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Motif « un » de la charte derrière l'en-tête des pages intérieures */
.page-hero { position: relative; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--page-deco); background-repeat: no-repeat; background-position: right -3rem center; background-size: auto 115%; }
:root { --page-deco: url("logo/un-beige-hd.webp"); --page-deco-mobile: url("logo/un-bleu-hd.webp"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --page-deco: url("logo/un-contour-bleu-hd.webp"); --page-deco-mobile: url("logo/un-contour-bleu-hd.webp"); } }
:root[data-theme="dark"] { --page-deco: url("logo/un-contour-bleu-hd.webp"); --page-deco-mobile: url("logo/un-contour-bleu-hd.webp"); }
/* Mobile : forme plus petite, calée en bas à droite, et un peu plus visible */
@media (max-width: 860px) { .page-hero::before { background-image: var(--page-deco-mobile); background-position: right -5rem bottom -1rem; background-size: auto 62%; opacity: 0.28; } }
@media (max-width: 860px) { :root[data-theme="dark"] .page-hero::before { opacity: 0.9; } }
@media (max-width: 860px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-hero::before { opacity: 0.9; } }

/* Accueil sans visuel à droite : le motif « un » occupe l'espace */
.hero.solo .wrap { grid-template-columns: minmax(0, 40rem); }
.hero.solo .lead { max-width: 38rem; }
.hero.solo .deco { right: -6%; width: min(52vw, 720px); }

/* Cartes d'entrée de l'accueil */
.panel.entry { grid-template-rows: auto 1fr auto; }
.panel.entry .entry-action { margin: 0; }
.panel.entry .entry-action .btn { width: 100%; text-align: center; }

/* Bloc titre + texte */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 4vw, 4rem); align-items: start; }
.split h2 { font-size: var(--step-3); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.callout.big { font-size: var(--step-1); line-height: 1.5; gap: 1rem; }
.promise.small { font-size: var(--step-2); }

/* Photos : noir et blanc, motif « un » et mot en couleur de la charte */
.duo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--beige); }
.duo > img:first-child { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.duo-mark { position: absolute; right: -3%; bottom: 0; margin-bottom: -2.5%; width: 32%; max-width: none; height: auto; pointer-events: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35)); }
.entry-photo .duo-mark { width: 28%; }
.duo-word { display: none; position: absolute; left: 1rem; bottom: 1rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.8rem); letter-spacing: -0.02em; line-height: 1; padding: 0.35em 0.5em 0.4em; border-radius: 8px; color: #1a1a1a; }
.duo-corail.duo-word { background: #fad162; }
.duo-jaune.duo-word { background: #f35f45; }
.duo-bleu.duo-word { background: #fad162; }
.page-hero.with-photo .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.page-hero.with-photo { background-image: none; }
.hero:not(.solo) .hero-photo { position: relative; z-index: 1; }
.hero:not(.solo) .deco { display: none; }
.entry-photo { width: calc(100% + 3.2rem); margin: -1.6rem -1.6rem 0.4rem; border-radius: var(--radius) var(--radius) 0 0; }
.entry-photo > img:first-child { aspect-ratio: 16 / 10; }
.panel.entry:has(.entry-photo) { grid-template-rows: auto auto 1fr auto; overflow: hidden; }
@media (max-width: 860px) { .page-hero.with-photo .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Conseils */
.post-card { display: grid; gap: 0.6rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.post-card h2, .post-card h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.post-card { overflow: hidden; }
.post-card .post-photo { width: calc(100% + 2.8rem); margin: -1.4rem -1.4rem 0.4rem; border-radius: var(--radius) var(--radius) 0 0; }
.post-card .post-photo > img:first-child { aspect-ratio: 16 / 10; }
.post-meta { font-size: var(--step--1); color: var(--muted); }
.post-meta span { font-weight: 600; color: var(--blue-text); text-transform: uppercase; letter-spacing: 0.06em; }
.article { display: grid; gap: 2rem; justify-items: start; }
.article-photo { max-width: 52rem; width: 100%; }
.article-body { max-width: 42rem; }
.article-body h2 { font-size: var(--step-2); margin-top: 1.4rem; }
.article-body h3 { margin-top: 0.8rem; }
.article-body ul { padding-left: 1.3rem; display: grid; gap: 0.4rem; }

/* ---------------------------------------------------------------- Mouvement (inspiré des sites produits, en plus sobre) */
/* Apparition au défilement : uniquement quand le script a ajouté .anim, donc le contenu reste visible sans JavaScript */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.anim .reveal.is-in { opacity: 1; transform: none; }

/* Cartes : légère élévation et zoom de la photo au survol */
.panel.entry, .post-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.panel.entry:hover, .post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35); }
.duo > img:first-child { transition: transform 0.6s ease; }
.panel.entry:hover .duo > img:first-child, .post-card:hover .duo > img:first-child { transform: scale(1.04); }
.btn { transition: transform 0.2s ease, filter 0.2s ease; }
.btn:hover { transform: translateY(-2px); }

/* Accueil : le « un » et le mot montent à l'arrivée sur la page */
@keyframes rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.hero-photo .duo-mark { animation: rise 0.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-photo .duo-word { animation: pop 0.5s 0.7s cubic-bezier(0.2, 0.7, 0.3, 1.3) both; }

/* Bandeau défilant des besoins */
.marquee { background: var(--yellow); color: #1a1a1a; overflow: hidden; padding-block: 0.9rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); white-space: nowrap; }
.marquee li::after { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .marquee-track ul:last-child { display: none; }
  .marquee ul { flex-wrap: wrap; row-gap: 0.4rem; }
  .panel.entry:hover, .post-card:hover, .btn:hover { transform: none; }
}

/* Surlignage qui se dessine sous les mots clés des titres */
.hl { background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 0.28em; padding-inline: 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h1 em.hl { color: var(--coral); }
.anim .hl.reveal { opacity: 1; transform: none; background-size: 0% 0.28em; transition: background-size 0.9s 0.35s cubic-bezier(0.6, 0, 0.2, 1); }
.anim .hl.reveal.is-in { background-size: 100% 0.28em; }

/* Pages besoin : cartes de lien */
.need-card { display: grid; gap: 0.5rem; align-content: start; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.need-card h3 { font-size: var(--step-1); }
.need-card p { margin: 0; color: var(--muted); }
.need-more { margin-top: 0.3rem; font-weight: 700; color: var(--coral-text); display: inline-flex; align-items: center; gap: 0.4rem; }
.need-more::after { content: "→"; transition: transform 0.25s ease; }
.need-card:hover { transform: translateY(-4px); border-color: var(--coral); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35); }
.need-card:hover .need-more::after { transform: translateX(4px); }
.marquee a { color: inherit; text-decoration: none; }
.marquee a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: reduce) { .need-card:hover { transform: none; } }

/* Situation concrète mise en avant */
.situation-card { background: var(--yellow-soft); border-radius: var(--radius); padding: clamp(1.6rem, 1rem + 3vw, 3rem); display: grid; gap: 0.9rem; max-width: 56rem; }
.situation-card h2 { font-size: var(--step-3); text-wrap: balance; }
.situation-card p:not(.eyebrow) { max-width: 44rem; }

/* Formulaires actualités / message */
.form h2 { margin-bottom: -0.4rem; }
.choice.consent { font-size: 0.95rem; }

/* Photos en couleur naturelle par défaut ; variante noir et blanc (aperçu seulement) avec la classe photos-nb sur <html> */
.photos-nb .duo > img:first-child { filter: grayscale(1) contrast(1.06); }

/* Photos des cartes besoin */
.need-card:has(.need-photo) { overflow: hidden; }
.need-photo { width: calc(100% + 2.8rem); margin: -1.4rem -1.4rem 0.4rem; border-radius: var(--radius) var(--radius) 0 0; }
.need-photo > img:first-child { aspect-ratio: 16 / 10; }
.need-photo .duo-mark { width: 28%; }

/* Parcours de l'accueil : cartes claires, une couleur d'accent par public */
.tone-coral { --tone: var(--coral); }
.tone-yellow { --tone: var(--yellow); }
.tone-blue { --tone: var(--blue); }
.panel.entry[class*="tone-"] { background: var(--surface); border: 1px solid var(--line); }
.panel.entry[class*="tone-"] .entry-photo { border-bottom: 5px solid var(--tone); }
.panel.entry[class*="tone-"]:hover { border-color: var(--tone); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow, .panel.entry:hover .btn .arrow { transform: translateX(4px); }

/* Situations de l'accueil */
.situation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.situation-tile { display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.5rem; padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tone); color: var(--ink); text-decoration: none; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.situation-tile .icon { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--tone); color: #1a1a1a; }
.situation-tile h3 { font-size: var(--step-0); line-height: 1.3; }
.situation-tile p { margin: 0; color: var(--muted); font-weight: 400; }
.situation-tile .arrow { color: var(--coral-text); font-weight: 700; transition: transform 0.25s ease; justify-self: start; }
.situation-tile:hover { border-color: var(--tone); box-shadow: 0 12px 26px -20px rgba(0, 0, 0, 0.35); }
.situation-tile:hover .arrow { transform: translateX(5px); }
@media (max-width: 960px) { .situation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .situation-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .situation-tile .arrow, .btn .arrow { transition: none; } .situation-tile:hover .arrow, .btn:hover .arrow, .panel.entry:hover .btn .arrow { transform: none; } }
.panel.entry .entry-action .btn { padding-inline: 1rem; }
@media (max-width: 520px) { .situation-tile { padding: 1rem; } .situation-tile h3 { font-size: 1rem; } .situation-tile p { font-size: 0.9rem; } }
@media (min-width: 861px) and (max-width: 1100px) { .panel.entry .entry-action .btn { font-size: 0.9rem; padding-inline: 0.7rem; } }

/* Accueil : premier écran plus large et moins haut, texte 48 % et photo 52 % en 4:3, centres alignés */
.hero:not(.solo) { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
body:has(.hero:not(.solo)) .site-header .wrap { max-width: 84rem; }
@media (min-width: 861px) { body:has(.hero:not(.solo)) .site-header .wrap, .hero:not(.solo) .wrap { padding-left: max(clamp(1rem, 4vw, 3.5rem), env(safe-area-inset-left, 0px)); padding-right: max(clamp(1rem, 4vw, 3.5rem), env(safe-area-inset-right, 0px)); } }
.hero:not(.solo) .wrap { max-width: 84rem; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero:not(.solo) .hero-photo > img:first-child { aspect-ratio: 4 / 3; object-position: 0% 45%; }
.hero:not(.solo) .hero-photo .duo-mark { width: 26%; margin-bottom: -2%; }
.hero .actions { align-items: center; column-gap: 1.1rem; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 48px; font-weight: 700; color: var(--ink); text-decoration: none; }
.arrow-link .link-text { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.arrow-link:hover, .arrow-link:active, .arrow-link:focus, .arrow-link:focus-visible { text-decoration: none; }
.arrow-link:hover .link-text, .arrow-link:focus-visible .link-text { text-decoration-thickness: 3px; }
.arrow-link .arrow { color: var(--coral-text); transition: transform 0.25s ease; }
.arrow-link:hover .arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .arrow-link .arrow { transition: none; } .arrow-link:hover .arrow { transform: none; } }
@media (max-width: 860px) {
  .hero:not(.solo) .wrap { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hero .hero-extra { display: none; }
}
.hero .arrow-link { font-size: 0.95rem; }
.hero .actions .btn { padding-inline: 1.2rem; }

/* Réseaux sociaux : pied de page, bandeau d'appel et page contact */
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.socials a { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 44px; min-height: 44px; border-radius: 999px; border: 2px solid currentColor; color: inherit; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.socials svg { width: 20px; height: 20px; flex: none; }
.site-footer .socials a { color: var(--footer-ink); }
.site-footer .socials a:hover { background: var(--footer-ink); color: var(--footer-bg); }
.cta-band .actions { align-items: center; column-gap: 1.5rem; }
.follow-inline { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; color: #1a1a1a; }
.follow-inline .socials a { color: #1a1a1a; }
.follow-inline .socials a:hover { background: #1a1a1a; color: #fbfaf6; }
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.socials.big a { padding-inline: 1.2rem; min-height: 48px; font-weight: 700; color: var(--ink); background: var(--surface); border-color: var(--line); }
.socials.big a:hover { border-color: var(--coral); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .socials a { transition: none; } .socials.big a:hover { transform: none; } }
.site-footer ul.socials { display: flex; }

/* Page Pourquoi Unamy : récit en blocs variés, conteneur large et colonnes de lecture limitées */
.why-wide { max-width: 84rem; }
@media (min-width: 861px) { .why-wide { padding-left: max(clamp(1rem, 4vw, 3.5rem), env(safe-area-inset-left, 0px)); padding-right: max(clamp(1rem, 4vw, 3.5rem), env(safe-area-inset-right, 0px)); } }
.why-read { max-width: 40rem; }
.why-h2 { font-size: var(--step-3); max-width: 34rem; }
.why-hero { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); border-bottom: 1px solid var(--line); }
.why-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.why-hero .lead { max-width: 36rem; }
.why-question { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.3; max-width: 32rem; }
.why-name { display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); justify-items: start; padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--radius); background: transparent; border: 1px solid var(--ink); }
.why-name img { width: min(100%, 380px); height: auto; aspect-ratio: 1000 / 235; }
.why-name p { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; }
.why-story { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.why-story h2 { font-size: var(--step-3); margin-bottom: 0.4em; }
.why-quote { margin: 0; padding: 1.2rem 0 1.2rem 1.4rem; border-left: 4px solid var(--yellow); }
.why-quote p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.45; max-width: 26rem; }
.why-quote::before { content: "“"; display: block; font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 0.6; color: var(--coral); margin-bottom: 0.6rem; }
.why-photo-wide > img:first-child { aspect-ratio: 21 / 9; object-position: 50% 40%; }
.why-photo-wide .duo-mark { width: 12%; }
.why-cols { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.why-strong { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.3; max-width: 28rem; }
.arrow-link.small { min-height: 0; display: inline-flex; margin-top: 0.4rem; }
.why-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.why-photo > img:first-child { aspect-ratio: 4 / 3; }
.why-text { max-width: 36rem; }
.why-idea { margin: 0.4rem 0; padding-left: 1rem; border-left: 4px solid var(--coral); font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.4; }
.why-answer { background: var(--blue-soft); }
.why-lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; }
.why-lines li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; gap: 0.4rem 2rem; align-items: baseline; padding-block: 1.2rem; border-top: 1px solid var(--line); }
.why-lines li:last-child { border-bottom: 1px solid var(--line); }
.why-who { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; color: var(--ink); }
.why-who::before { content: ""; flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--tone); }
.why-lines li > span:last-child { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.why-sign { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); letter-spacing: -0.02em; color: var(--blue-text); }
.why-cta .actions { align-items: center; column-gap: 1.5rem; }
.arrow-link.on-coral, .arrow-link.on-coral .arrow { color: #1a1a1a; }
.arrow-link.on-coral .link-text { text-decoration-color: #1a1a1a; }
@media (max-width: 860px) {
  .why-hero-grid, .why-story, .why-cols, .why-media { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .why-media .why-text { order: -1; }
  .why-photo-wide > img:first-child { aspect-ratio: 4 / 3; object-position: 40% 50%; }
  .why-photo-wide .duo-mark { width: 20%; }
  .why-lines { grid-template-columns: minmax(0, 1fr); }
  .why-lines li { grid-template-columns: minmax(0, 1fr); }
  .why-who { white-space: normal; }
  .why-name img { width: min(80%, 280px); }
}

/* Message d'erreur du formulaire */
.form-error { padding: 1rem 1.2rem; border-radius: 10px; background: var(--coral-soft); border-left: 4px solid var(--coral); font-weight: 600; }

/* Formulaire d'inscription Brevo : habillé aux couleurs d'Unamy (la structure Brevo est conservée) */

/* Choix sur les cookies : un service facultatif (reCAPTCHA) chargé seulement après accord */
.site-footer .linklike { color: var(--footer-ink); }
/* Liens lisibles sur les panneaux beiges (contraste 4,5:1) */
.panel.beige a { color: var(--link-on-beige); }

/* 320 px : aucun contenu ne doit déborder */
.stack, .wrap > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.stack { grid-template-columns: minmax(0, 1fr); }

/* Mention « Plateforme en préparation » près des appels à l'action */
.soon { flex-basis: 100%; display: flex; align-items: center; gap: 0.4rem; margin-top: -0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.soon::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px currentColor; flex: none; }
.cta-band .soon { color: #1a1a1a; }
.page-hero.with-photo::before { display: none; }

/* Inscription aux actualités (formulaire local) */
.brevo-note { margin: 0; font-size: 0.9rem; }
.form-ok { padding: 1rem 1.2rem; border-radius: 10px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); font-weight: 600; margin: 0; }
.field-error { margin: 0; color: var(--coral-text); font-weight: 600; font-size: 0.95rem; }
.field input[aria-invalid="true"] { border-color: var(--coral-text); }
.site-footer .soon { flex-basis: auto; margin: 0; color: var(--footer-ink); }
.cta-band .actions { align-items: center; column-gap: 1.5rem; row-gap: 1rem; }
.field .choice { font-weight: 400; }

/* Formulaire Brevo (structure et script fournis par Brevo ; mise en forme du site) */
.brevo #sib-container { max-width: none; padding: clamp(1.2rem, 2.5vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.brevo, .brevo * { font-family: inherit; }
.brevo .sib-form-message-panel { display: none; margin-bottom: 1rem; padding: 1rem 1.2rem; border-radius: 10px; font-weight: 600; }
.brevo .sib-form-message-panel--active { display: block; }
.brevo .brevo-success { background: var(--yellow-soft); color: var(--ink); }
.brevo .brevo-error { background: var(--coral-soft); color: var(--ink); border-left: 4px solid var(--coral); }
.brevo .sib-form-message-panel svg { display: none; }
.brevo #sib-form { display: grid; gap: 1.1rem; }
.brevo .entry__label { font-weight: 600; color: var(--ink); text-align: left; }
.brevo .entry__field { margin-top: 0.4rem; }
.brevo input.input, .brevo .entry__field input { width: 100%; min-height: 48px; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.brevo .entry__error { display: block; margin-top: 0.4rem; color: var(--coral-text); font-weight: 600; text-align: left; }
.brevo .entry__error:empty { display: none; }
.brevo .entry__choice label { display: flex; gap: 0.7rem; align-items: flex-start; text-align: left; }
.brevo .input_replaced { position: static; width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; opacity: 1; accent-color: var(--coral); }
.brevo .checkbox { display: none; }
.brevo .brevo-note { margin: 0; font-size: 0.9rem; text-align: left; }
.brevo .sib-form-block { text-align: left; }
.brevo .input--hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brevo .sib-form-block__button { cursor: pointer; }
.brevo .sib-hide-loader-icon, .brevo .progress-indicator__icon { display: none; }
.brevo .sib-form-block__button-with-loader--loading .progress-indicator__icon { display: inline-block; width: 1em; height: 1em; }
.brevo .brevo-title { font-size: var(--step-1); margin: 0 0 1rem; }
.brevo #sib-container { background: var(--beige); border-color: transparent; }
.brevo .entry__field input { background: var(--surface); }
/* Emplacement du CAPTCHA : seul élément soumis à l'accord pour Google ; les champs ci-dessus restent utilisables */
.captcha-gate { display: grid; gap: 0.7rem; padding: 1rem 1.1rem; border: 2px dashed var(--ink); border-radius: 10px; background: var(--surface); text-align: left; }
.captcha-gate p { margin: 0; font-size: 0.95rem; }
.captcha-gate .gate-refused { display: none; font-weight: 600; }
html[data-recaptcha="refused"] .captcha-gate .gate-refused { display: block; }
html[data-recaptcha="accepted"] .captcha-gate { display: none; }
.captcha-gate .actions .btn { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.site-footer .linklike { color: var(--footer-ink); }
.consent-dialog { max-width: min(38rem, calc(100vw - 2rem)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); padding: clamp(1.2rem, 3vw, 2rem); }
.consent-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.consent-dialog h2 { font-size: var(--step-2); }
.consent-dialog p { margin: 0; }
.consent-dialog [hidden] { display: none !important; }
.consent-options { display: grid; gap: 1rem; }
.brevo a { color: var(--link-on-beige); }
