/**
 * Charte d'Un Cœur en Action — d'après les maquettes du 12/11/2026.
 *
 * Couleurs relevées sur les planches : crème #FAF9F7, charbon #202020,
 * rouge d'aplat #A60000, rouge d'accent #CA0300.
 *
 * Deux polices et une règle : la grotesque porte le propos, le serif italique
 * porte le second souffle de chaque titre (« Chaque soir de maraude, être là »).
 * Le rouge est un signal, pas un décor.
 */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* variables exposées par wy-blocs, remplacées par la charte */
  --wy-nuit:       #202020;
  --wy-nuit-clair: #2C2C2C;
  --wy-vert:       #CA0300;
  --wy-vert-vif:   #E10400;
  --wy-papier:     #FFFFFF;
  --wy-teinte:     #F3F1EE;
  --wy-trait:      #E2DFDA;
  --wy-encre:      #202020;
  --wy-sourd:      #5E5C58;
  --wy-clair:      #D9D4D1;
  --wy-graisse-titre: 700;
  --wy-rayon:   4px;
  --wy-rayon-s: 4px;
  --wy-rayon-p: 999px;

  /* propres à la charte */
  --cea-rouge:       #CA0300;
  --cea-rouge-aplat: #A60000;
  --cea-rouge-fonce: #8E0000;
  --cea-rouge-clair: #F0625C;   /* le seul rouge lisible sur le charbon : 5,13:1 */
  --cea-charbon:     #202020;
  --cea-creme:       #FAF9F7;
  --cea-gris:        #F3F1EE;
  --cea-trait:       #E2DFDA;
  --cea-sourd:       #5E5C58;
  --cea-max:         1140px;
  --cea-gout:        clamp(20px, 5vw, 32px);
  --cea-sec-y:       clamp(48px, 7vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }

body,
.wp-site-blocks,
.editor-styles-wrapper {
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--cea-charbon);
  background: var(--cea-creme);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.wp-block-post-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0;
}

/** Le second souffle du titre : serif italique, rouge quand il est sur fond clair. */
.cea-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--cea-rouge);
}

.cea-hero--sombre .cea-serif,
.cea-appel .cea-serif { color: #fff; }

/** Sur une section sombre, le rouge de marque tombe a 2,73:1 : on l'eclaircit. */
.cea-sec--sombre .cea-serif { color: var(--cea-rouge-clair); }

a { color: inherit; }

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

/* ================================================================== */
/* Ossature                                                            */
/* ================================================================== */

.cea-conteneur {
  max-width: var(--cea-max);
  margin-inline: auto;
  padding-inline: var(--cea-gout);
}

.cea-sec { padding-block: var(--cea-sec-y); }
.cea-sec--serree { padding-block: clamp(36px, 5vw, 64px); }
.cea-sec--grise  { background: var(--cea-gris); }
.cea-sec--blanche{ background: #fff; }
.cea-sec--creme  { background: var(--cea-creme); }
.cea-sec--sombre { background: var(--cea-charbon); color: #fff; }
.cea-sec--sombre h2, .cea-sec--sombre h3 { color: #fff; }

.cea-surtitre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--cea-rouge);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cea-surtitre::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.cea-sec--sombre .cea-surtitre { color: #fff; }

.cea-t1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.cea-t2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
.cea-t3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

.cea-chapo {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  color: var(--cea-sourd);
  line-height: 1.66;
}

.cea-sec--sombre .cea-chapo { color: #C9C7C3; }

.cea-texte p { margin: 0 0 1.1em; max-width: 62ch; line-height: 1.72; }
.cea-texte p:last-child { margin-bottom: 0; }

/* ================================================================== */
/* En-tête                                                             */
/* ================================================================== */

.cea-entete {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 247, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.cea-entete.est-colle {
  border-bottom-color: var(--cea-trait);
  box-shadow: 0 6px 24px rgba(32, 32, 32, .06);
}

.cea-entete__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  transition: min-height .25s ease;
}

.cea-entete.est-colle .cea-entete__in { min-height: 64px; }

.cea-marque {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.cea-marque img { width: 56px; height: auto; display: block; transition: width .25s ease; }
.cea-entete.est-colle .cea-marque img { width: 46px; }

.cea-marque span {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.cea-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cea-menu a {
  position: relative;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  padding-block: 4px;
  white-space: nowrap;
}

.cea-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cea-rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.cea-menu a:hover::after,
.cea-menu .est-actif a::after { transform: scaleX(1); }
.cea-menu .est-actif a { color: var(--cea-rouge); }

.cea-entete__droite { display: flex; align-items: center; gap: 14px; }

.cea-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--cea-trait);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.cea-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--cea-charbon);
  position: relative;
  transition: background-color .2s;
}

.cea-burger span::before,
.cea-burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--cea-charbon);
  transition: transform .24s ease;
}

.cea-burger span::before { top: -6px; }
.cea-burger span::after  { top: 6px; }

.cea-burger[aria-expanded="true"] span { background: transparent; }
.cea-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.cea-burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .cea-menu { display: none; }
  .cea-burger { display: flex; }
  .cea-entete__droite .cea-bouton--plein { padding: 11px 18px; font-size: .9rem; }
  .cea-marque span { display: none; }
}

/* Volet mobile */

.cea-volet {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--cea-creme);
  padding: 96px var(--cea-gout) 40px;
  transform: translateY(-100%);
  transition: transform .34s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.cea-volet.est-ouvert { transform: translateY(0); }

.cea-volet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.cea-volet a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--cea-trait);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}

.cea-volet a::after { content: "→"; color: var(--cea-rouge); }
.cea-volet .cea-bouton { margin-top: 28px; width: 100%; justify-content: center; }

/* ================================================================== */
/* Boutons et liens                                                    */
/* ================================================================== */

.cea-bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.cea-bouton svg { width: 17px; height: 17px; flex: none; transition: transform .22s ease; }
.cea-bouton:hover svg { transform: translateX(4px); }

.cea-bouton--plein { background: var(--cea-rouge); color: #fff; }
.cea-bouton--plein:hover { background: var(--cea-rouge-fonce); transform: translateY(-1px); }

.cea-bouton--sombre { background: var(--cea-charbon); color: #fff; }
.cea-bouton--sombre:hover { background: #000; }

.cea-bouton--contour { border-color: var(--cea-trait); color: var(--cea-charbon); background: #fff; }
.cea-bouton--contour:hover { border-color: var(--cea-charbon); }

.cea-bouton--clair { background: #fff; color: var(--cea-charbon); }
.cea-bouton--clair:hover { background: #F1EEEA; }

.cea-bouton--nu { padding: 15px 0; border-bottom: 2px solid currentColor; border-radius: 0; }

.cea-lien {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cea-rouge);
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.cea-lien svg { width: 15px; height: 15px; transition: transform .22s ease; }
.cea-lien:hover svg { transform: translateX(4px); }

.cea-lien--sobre { color: inherit; border-bottom-color: var(--cea-charbon); }

/* ================================================================== */
/* Fil d'Ariane                                                        */
/* ================================================================== */

.cea-fil {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 18px 0;
  font-size: .85rem;
  color: var(--cea-sourd);
}

.cea-fil a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cea-fil a:hover { color: var(--cea-rouge); }
.cea-fil span[aria-current] { color: inherit; }
.cea-hero--sombre .cea-fil { color: #B8B6B2; }

/* ================================================================== */
/* Ouverture de page                                                   */
/* ================================================================== */

.cea-hero { position: relative; overflow: hidden; }
.cea-hero--sombre { background: var(--cea-charbon); color: #fff; }
.cea-hero--sombre h1 { color: #fff; }
.cea-hero--clair { background: var(--cea-creme); }

.cea-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 76px);
}

.cea-hero--inverse .cea-hero__in { direction: rtl; }
.cea-hero--inverse .cea-hero__in > * { direction: ltr; }

.cea-hero h1 { max-width: 15ch; }

.cea-hero__boutons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.cea-figure { margin: 0; }
.cea-figure img { width: 100%; display: block; object-fit: cover; }

.cea-figure figcaption {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--cea-trait);
  font-size: .8rem;
  color: var(--cea-sourd);
}

.cea-hero--sombre .cea-figure figcaption { color: #B8B6B2; border-left-color: #4A4A4A; }

/* L'ouverture pleine largeur de l'accueil */

.cea-hero--accueil .cea-hero__in { padding-block: 0; gap: 0; grid-template-columns: 1fr 1fr; align-items: stretch; }
.cea-hero--accueil .cea-hero__texte { padding: clamp(40px, 6vw, 86px) clamp(24px, 4vw, 56px) clamp(40px, 6vw, 86px) var(--cea-gout); max-width: 640px; margin-left: auto; width: 100%; }
.cea-hero--accueil .cea-figure { height: 100%; }
.cea-hero--accueil .cea-figure img { height: 100%; min-height: 420px; }
.cea-hero--accueil .cea-figure figcaption {
  position: absolute; right: 14px; bottom: 14px; margin: 0; padding: 6px 12px;
  background: rgba(32, 32, 32, .72); color: #fff; border: 0; font-size: .74rem;
}
.cea-hero--accueil .cea-figure { position: relative; }

@media (max-width: 900px) {
  .cea-hero__in,
  .cea-hero--accueil .cea-hero__in { grid-template-columns: 1fr; }
  .cea-hero--inverse .cea-hero__in { direction: ltr; }
  .cea-hero--accueil .cea-figure { order: -1; }
  .cea-hero--accueil .cea-figure img { min-height: 260px; max-height: 320px; }
  .cea-hero--accueil .cea-hero__texte { padding-inline: var(--cea-gout); }
  .cea-hero h1 { max-width: none; }
}

/* ================================================================== */
/* Trio de repères                                                     */
/* ================================================================== */

.cea-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 38px);
  margin-top: 26px;
}

.cea-trio > div { border-top: 1.5px solid var(--cea-charbon); padding-top: 18px; }
.cea-trio h3 { font-size: 1.12rem; margin-bottom: 8px; }
.cea-trio p { margin: 0; color: var(--cea-sourd); font-size: .96rem; }

@media (max-width: 820px) { .cea-trio { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Duo texte + encadré                                                 */
/* ================================================================== */

.cea-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.cea-duo__texte h2 { margin-bottom: 20px; }

.cea-encadre {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--cea-trait);
  background: #fff;
}

.cea-encadre__ico { color: var(--cea-rouge); margin-bottom: 16px; display: block; }
.cea-encadre__ico svg { width: 24px; height: 24px; }
.cea-encadre h3 { font-size: 1.4rem; margin-bottom: 12px; }
.cea-encadre p { color: var(--cea-sourd); margin: 0 0 20px; }

@media (max-width: 900px) { .cea-duo { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Nos actions                                                         */
/* ================================================================== */

.cea-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 42px);
}

.cea-action {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.cea-action__img { overflow: hidden; }
.cea-action__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.cea-action:hover .cea-action__img img { transform: scale(1.06); }

.cea-action h2,
.cea-action h3 { font-size: 1.32rem; display: flex; align-items: center; gap: 12px; }
.cea-action h2 svg,
.cea-action h3 svg { width: 26px; height: 26px; color: var(--cea-rouge); flex: none; transition: transform .22s ease; }
.cea-action:hover h2 svg,
.cea-action:hover h3 svg { transform: translateX(5px); }
.cea-action p { margin: 8px 0 0; color: var(--cea-sourd); font-size: .96rem; }

@media (max-width: 820px) {
  .cea-actions { grid-template-columns: 1fr; }
  .cea-action { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
}

/* L'accueil : une grande action et trois en liste */

.cea-actions-mixte {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

.cea-action--large { display: block; }
.cea-action--large .cea-action__img img { aspect-ratio: 4 / 3; }
.cea-action--large h3 { margin-top: 20px; font-size: 1.7rem; }

.cea-liste-actions { display: grid; }
.cea-liste-actions .cea-action { padding-block: 22px; border-top: 1px solid var(--cea-trait); grid-template-columns: 118px minmax(0, 1fr); }
.cea-liste-actions .cea-action:last-child { border-bottom: 1px solid var(--cea-trait); }
.cea-liste-actions .cea-action__img img { aspect-ratio: 4 / 3; }

@media (max-width: 900px) { .cea-actions-mixte { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Chiffres                                                            */
/* ================================================================== */

.cea-chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.cea-chiffres--avec-titre { grid-template-columns: minmax(200px, .9fr) repeat(3, 1fr); align-items: center; }

.cea-chiffre { position: relative; padding-left: 28px; }
.cea-chiffre::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.22); }
.cea-sec--grise .cea-chiffre::before, .cea-sec--creme .cea-chiffre::before { background: var(--cea-trait); }

.cea-chiffre b {
  display: block;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.cea-chiffre .cea-chiffre__nom { display: block; margin-top: 12px; font-weight: 600; font-size: 1rem; }
.cea-chiffre .cea-chiffre__note { display: block; margin-top: 3px; font-size: .88rem; opacity: .68; }

@media (max-width: 900px) {
  .cea-chiffres--avec-titre { grid-template-columns: 1fr 1fr; }
}

/* Le grand chiffre du territoire */

.cea-grand-chiffre {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.cea-grand-chiffre__valeur {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(4rem, 11vw, 8.2rem);
  line-height: .92;
  color: var(--cea-rouge-aplat);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.cea-grand-chiffre h2 { max-width: 16ch; }

@media (max-width: 820px) { .cea-grand-chiffre { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Cartes grises                                                       */
/* ================================================================== */

.cea-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); margin-top: 32px; }

.cea-carte {
  background: var(--cea-gris);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform .25s ease, background-color .25s ease;
}

.cea-sec--grise .cea-carte { background: #fff; }
.cea-carte:hover { transform: translateY(-3px); }
.cea-carte__ico { color: var(--cea-rouge); display: block; margin-bottom: 18px; }
.cea-carte__ico svg { width: 24px; height: 24px; }
.cea-carte h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cea-carte p { margin: 0; color: var(--cea-sourd); font-size: .96rem; }

@media (max-width: 900px) { .cea-cartes { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Étapes numérotées                                                   */
/* ================================================================== */

.cea-etapes { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--cea-rouge); display: grid; gap: 26px; }
.cea-etapes li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.cea-etapes .cea-num { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.4rem; color: var(--cea-rouge); line-height: 1.2; }
.cea-etapes b { display: block; font-size: 1.06rem; margin-bottom: 5px; }
.cea-etapes span.cea-etape__txt { color: var(--cea-sourd); font-size: .96rem; }

/* ================================================================== */
/* Listes à coches                                                     */
/* ================================================================== */

.cea-coches { list-style: none; margin: 0; padding: 0; }

.cea-coches li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--cea-trait);
  font-size: 1rem;
}

.cea-coches li:first-child { border-top: 1px solid var(--cea-trait); }
.cea-coches svg { width: 17px; height: 17px; margin-top: 5px; color: var(--cea-rouge); }
.cea-coches--non svg { color: var(--cea-sourd); }

.cea-deux-listes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 30px; }
.cea-deux-listes h3 { font-size: 1.45rem; margin-bottom: 16px; }

@media (max-width: 820px) { .cea-deux-listes { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Besoins du moment                                                   */
/* ================================================================== */

.cea-besoins { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

.cea-besoins li {
  padding: 10px 18px;
  border: 1px solid var(--cea-trait);
  background: #fff;
  font-size: .95rem;
  font-weight: 500;
  border-radius: 999px;
}

.cea-besoins li.cea-besoin--urgent { background: var(--cea-rouge); border-color: var(--cea-rouge); color: #fff; }
.cea-besoins li.cea-besoin--urgent::before { content: "Urgent · "; font-weight: 700; }
.cea-besoins__maj { margin-top: 16px; font-size: .85rem; color: var(--cea-sourd); }
.cea-vide { color: var(--cea-sourd); font-style: italic; margin: 0; }

/* ================================================================== */
/* Maraudes                                                            */
/* ================================================================== */

.cea-maraudes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.cea-maraude {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--cea-trait);
}

.cea-maraude:first-child { border-top: 1px solid var(--cea-trait); }

.cea-maraude__date {
  display: grid;
  place-items: center;
  padding: 10px 0;
  background: var(--cea-charbon);
  color: #fff;
  line-height: 1;
}

.cea-sec--sombre .cea-maraude__date { background: var(--cea-rouge); }
.cea-maraude__date b { font-size: 1.6rem; font-weight: 700; }
.cea-maraude__date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 5px; }
.cea-maraude__txt b { display: block; font-size: 1.08rem; }
.cea-maraude__txt span { display: block; color: var(--cea-sourd); font-size: .9rem; text-transform: capitalize; margin-top: 2px; }
.cea-sec--sombre .cea-maraude__txt span { color: #B8B6B2; }

/* ================================================================== */
/* Vidéos du terrain                                                   */
/* ================================================================== */

.cea-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }

.cea-video { background: #fff; border: 1px solid var(--cea-trait); }
.cea-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; }
.cea-video__txt { padding: 20px 22px; }
.cea-video h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cea-video p { margin: 0; color: var(--cea-sourd); font-size: .93rem; }

@media (max-width: 900px) { .cea-videos { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Galerie trois images                                                */
/* ================================================================== */

.cea-trois-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.cea-trois-images figure { margin: 0; }
.cea-trois-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cea-trois-images figcaption { margin-top: 8px; font-size: .76rem; color: var(--cea-sourd); }
.cea-trois-images h3 { margin-top: 16px; font-size: 1.18rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cea-trois-images h3 svg { width: 17px; height: 17px; color: var(--cea-rouge); }
.cea-trois-images p { margin: 8px 0 0; color: var(--cea-sourd); font-size: .94rem; }

@media (max-width: 900px) { .cea-trois-images { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Questions fréquentes                                                */
/* ================================================================== */

.cea-faq { border-top: 1px solid var(--cea-trait); }

.cea-faq details { border-bottom: 1px solid var(--cea-trait); }

.cea-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.04rem;
  list-style: none;
}

.cea-faq summary::-webkit-details-marker { display: none; }

.cea-faq summary::after {
  content: "+";
  color: var(--cea-rouge);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .25s ease;
}

.cea-faq details[open] summary::after { transform: rotate(45deg); }
.cea-faq details > div { padding: 0 0 22px; color: var(--cea-sourd); max-width: 70ch; }

/* ================================================================== */
/* Tête de section avec lien à droite                                  */
/* ================================================================== */

.cea-tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 760px) { .cea-tete { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ================================================================== */
/* À lire aussi                                                        */
/* ================================================================== */

.cea-suite { background: var(--cea-creme); border-top: 1px solid var(--cea-trait); }

.cea-suite__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(26px, 3vw, 40px);
}

.cea-suite__gauche { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }

.cea-suite__lien {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--cea-rouge);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.cea-suite__lien svg { width: 20px; height: 20px; transition: transform .22s ease; }
.cea-suite__lien:hover svg { transform: translateX(6px); }

@media (max-width: 760px) { .cea-suite__in { flex-direction: column; align-items: flex-start; } }

/* ================================================================== */
/* Appel rouge                                                         */
/* ================================================================== */

.cea-appel { background: var(--cea-rouge-aplat); color: #fff; }
.cea-appel h2 { color: #fff; }
.cea-appel p { color: rgba(255, 255, 255, .88); max-width: 52ch; margin: 14px 0 0; }

.cea-appel__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding-block: var(--cea-sec-y);
}

/* ================================================================== */
/* Contact                                                             */
/* ================================================================== */

.cea-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

.cea-coord { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.cea-coord li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; }

.cea-coord__ico {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--cea-trait);
  border-radius: 999px;
  color: var(--cea-rouge);
}

.cea-coord__ico svg { width: 18px; height: 18px; }
.cea-coord span { display: block; font-size: .8rem; color: var(--cea-sourd); }
.cea-coord a, .cea-coord b { font-size: 1.06rem; font-weight: 600; text-decoration: none; }
.cea-coord a:hover { color: var(--cea-rouge); }

.cea-urgence { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--cea-trait); }
.cea-urgence h2,
.cea-urgence h3 { font-size: 1.2rem; margin-bottom: 10px; }
.cea-urgence p { margin: 0; color: var(--cea-sourd); font-size: .96rem; }
.cea-urgence strong { color: var(--cea-charbon); }

.cea-form { background: #fff; border-top: 3px solid var(--cea-rouge); padding: clamp(26px, 3.4vw, 42px); box-shadow: 0 18px 50px rgba(32, 32, 32, .07); }
.cea-form h2 { font-size: 1.7rem; margin-bottom: 22px; }

@media (max-width: 900px) { .cea-contact { grid-template-columns: 1fr; } }

/* Formulaires wy-forms habillés */

.wy-formulaire label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }

.wy-formulaire input[type="text"],
.wy-formulaire input[type="email"],
.wy-formulaire input[type="tel"],
.wy-formulaire textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--cea-trait);
  background: #fff;
  font: inherit;
  font-size: .98rem;
  border-radius: 2px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.wy-formulaire input:focus,
.wy-formulaire textarea:focus {
  outline: none;
  border-color: var(--cea-rouge);
  box-shadow: 0 0 0 3px rgba(202, 3, 0, .12);
}

.wy-formulaire p { margin: 0 0 18px; }
.wy-formulaire textarea { min-height: 140px; resize: vertical; }

.wy-formulaire button,
.wy-formulaire input[type="submit"] {
  background: var(--cea-rouge);
  color: #fff;
  border: 0;
  padding: 15px 30px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease;
}

.wy-formulaire button:hover { background: var(--cea-rouge-fonce); }

/* ================================================================== */
/* Pied de page                                                        */
/* ================================================================== */

.cea-pied { background: var(--cea-charbon); color: #fff; padding-block: clamp(44px, 5vw, 72px) 26px; }

.cea-pied__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 64px);
}

.cea-pied__marque img { width: 108px; background: #fff; padding: 10px; display: block; }
.cea-pied__marque p { margin: 18px 0 0; color: #B8B6B2; font-size: .93rem; max-width: 30ch; }
.cea-pied h3 { font-size: .98rem; margin-bottom: 16px; color: #fff; }
.cea-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cea-pied ul a { color: #D6D4D0; text-decoration: none; font-size: .94rem; transition: color .18s ease; }
.cea-pied ul a:hover { color: #fff; }

.cea-pied__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .86rem;
  color: #9D9B98;
}

.cea-pied__bas nav { display: flex; flex-wrap: wrap; gap: 20px; }
.cea-pied__bas a { color: #9D9B98; text-decoration: none; }
.cea-pied__bas a:hover { color: #fff; }

@media (max-width: 820px) { .cea-pied__cols { grid-template-columns: 1fr 1fr; } .cea-pied__marque { grid-column: 1 / -1; } }

/* ================================================================== */
/* Apparitions                                                         */
/* ================================================================== */

.cea-anime { opacity: 0; transform: translateY(18px); }

.cea-anime.est-vu {
  opacity: 1;
  transform: none;
  transition: opacity .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  .cea-anime, .cea-anime.est-vu { opacity: 1; transform: none; transition: none; }
  .cea-volet { transition: none; }
  * { scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

/* Pages de contenu simple (mentions, confidentialité) */

.cea-doc { max-width: 72ch; }
.cea-doc h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.cea-doc h2:first-child { margin-top: 0; }
.cea-doc p { margin: 0 0 1.1em; color: var(--cea-sourd); }
.cea-doc a { color: var(--cea-rouge); }
.cea-doc ul { margin: 0 0 1.2em; padding-left: 1.1em; color: var(--cea-sourd); }
.cea-doc li { margin-bottom: .5em; }

/* ================================================================== */
/* Adhésion                                                            */
/* ================================================================== */

.cea-adhesion {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.cea-adhesion__carte {
  background: var(--cea-charbon);
  color: #fff;
  padding: clamp(28px, 3.4vw, 42px);
  text-align: center;
}

.cea-adhesion__montant {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  line-height: 1;
  margin-bottom: 16px;
}

.cea-adhesion__carte p { margin: 0 0 24px; color: #C9C7C3; font-size: .96rem; }

@media (max-width: 900px) { .cea-adhesion { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Corrections d'audit du 12/11/2026                                   */
/* ================================================================== */

/**
 * Lisibilité sur fond charbon.
 *
 * Le gris de texte #5E5C58 donne 2,44:1 sur #202020 et le rouge d'accent
 * 2,73:1, loin des 4,5:1 attendus. Le gris clair de la charte donne 9,65:1,
 * l'ivoire davantage. Vaut pour l'accueil, Nos actions, Les maraudes et
 * Le terrain, qui ouvrent toutes sur un bandeau sombre.
 */
.cea-hero--sombre .cea-chapo,
.cea-hero--sombre .cea-texte p { color: #C9C7C3; }
.cea-hero--sombre .cea-surtitre { color: #F0EDE7; }
.cea-hero--sombre .cea-fil,
.cea-hero--sombre .cea-fil a { color: #C9C7C3; }
.cea-hero--sombre .cea-fil a:hover { color: #fff; }

/* L'en-tête : le bouton de don garde sa ligne, le menu s'efface avant lui. */

.cea-entete__droite { flex: none; }

.cea-entete__droite .cea-bouton {
  white-space: nowrap;
  flex: none;
  padding-inline: 22px;
}

.cea-menu { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.cea-marque { min-width: 0; }

@media (max-width: 1200px) {
  .cea-menu { display: none; }
  .cea-burger { display: flex; }
}

@media (min-width: 1201px) {
  .cea-burger { display: none; }
}

/* Le nom reste lisible à côté du cœur, y compris sur téléphone. */
@media (max-width: 1040px) {
  .cea-marque span { display: block; font-size: .88rem; }
}

@media (max-width: 420px) {
  .cea-entete__droite .cea-bouton { padding: 11px 16px; font-size: .88rem; }
  .cea-entete__droite .cea-bouton svg { display: none; }
  .cea-marque img { width: 44px; }
}

/* L'ouverture de l'accueil retrouve les proportions de la maquette : 58 % à la photo. */

@media (min-width: 901px) {
  .cea-hero--accueil .cea-hero__in { grid-template-columns: 42fr 58fr; }
}

/* Le volet mobile ne doit pas garder le focus quand il est fermé. */

.cea-volet[aria-hidden="true"] { visibility: hidden; }
.cea-volet.est-ouvert { visibility: visible; }

/* Les sources du territoire, en liens plutôt qu'en texte mort. */

.cea-sources { list-style: none; margin: 0; padding: 0; }

.cea-sources li {
  padding: 16px 0;
  border-bottom: 1px solid var(--cea-trait);
}

.cea-sources li:first-child { border-top: 1px solid var(--cea-trait); }
.cea-sources a { font-weight: 600; color: var(--cea-rouge); text-decoration: none; border-bottom: 1px solid currentColor; }
.cea-sources a:hover { color: var(--cea-rouge-fonce); }
.cea-sources span { display: block; margin-top: 5px; color: var(--cea-sourd); font-size: .92rem; }
.cea-sources svg { width: 14px; height: 14px; vertical-align: -1px; margin-left: 5px; }

/* Le carnet de terrain s'ouvre sur une vidéo. */

.cea-terrain-ouverture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.cea-terrain-ouverture video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  background: #111;
}

.cea-terrain-ouverture figcaption {
  margin-top: 10px;
  font-size: .82rem;
  color: #B8B6B2;
}

@media (max-width: 900px) { .cea-terrain-ouverture { grid-template-columns: 1fr; } }

/* ================================================================== */
/* Accessibilité — revue du 12/11/2026                                 */
/* ================================================================== */

/**
 * Un anneau de mise au point visible sur tout ce qui se manipule.
 *
 * Seuls les champs de formulaire en avaient un : au clavier, le reste du site
 * se parcourait à l'aveugle. :focus-visible plutôt que :focus, pour que
 * l'anneau n'apparaisse qu'à la navigation au clavier.
 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
video:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--cea-rouge);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Le volet recoit le focus a l'ouverture pour que le clavier entre dedans :
   c'est un conteneur, pas une cible, il ne porte donc pas d'anneau. */
.cea-volet:focus,
.cea-volet:focus-visible { outline: none; }

/* Sur fond rouge ou charbon, l'anneau rouge ne se verrait pas. */
.cea-appel a:focus-visible,
.cea-sec--sombre a:focus-visible,
.cea-hero--sombre a:focus-visible,
.cea-pied a:focus-visible,
.cea-adhesion__carte a:focus-visible {
  outline-color: #fff;
}

/* Les cibles tactiles atteignent 44 px, y compris dans le pied. */

.cea-pied ul { gap: 2px; }

.cea-pied ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
}

.cea-pied__bas nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.cea-fil a,
.cea-sources a,
.cea-lien,
.cea-suite__lien {
  padding-block: 6px;
}

.cea-menu a { padding-block: 12px; }

.cea-coord a { display: inline-flex; align-items: center; min-height: 44px; }

/* Le bouton du menu reste au-dessus du volet qu'il commande. */
.cea-entete { z-index: 60; }
.cea-volet  { z-index: 55; }

/* Les listes de liens du pied ne doivent pas s'étirer sur toute la colonne. */
.cea-pied ul a { width: fit-content; }

/* Aucun mot ne pousse la page plus large que l'écran. */

h1, h2, h3, .cea-serif, .cea-suite__lien, .cea-grand-chiffre__valeur {
  overflow-wrap: break-word;
}

.cea-conteneur, .cea-hero__in, .cea-hero__texte { min-width: 0; }

/* ⛔ Plus aucun `overflow` sur le body. `hidden` comme `clip` touchent au
   defilement de la page : `hidden` fabrique un conteneur qui casse le
   `position: sticky` de l'en-tete, et Safari iOS se comporte mal des qu'on y
   pose l'un ou l'autre. Ce garde-fou servait contre un debordement horizontal
   qui n'existe plus : les 15 pages tiennent dans 390 px, mesure a l'appui. Si
   un debordement revient, corriger l'element fautif, pas le body. */

/* L'en-tete est `sticky`, mais WordPress l'enferme dans le div de la partie
   de gabarit, qui fait exactement sa hauteur : il ne lui reste aucune course
   et la barre part des le premier defilement. On efface cette boite pour que
   l'en-tete colle le long de la page entiere. */
.wp-block-template-part:has(> .cea-entete) { display: contents; }

/* Les ancres ne doivent pas se garer sous la barre collee. */
html { scroll-padding-top: 84px; }

/* Les vidéos verticales ne doivent pas occuper tout l'écran sur téléphone. */
@media (max-width: 600px) {
  .cea-video video,
  .cea-terrain-ouverture video { max-height: 70vh; aspect-ratio: auto; height: 70vh; }
}

/* ================================================================== */
/* Au doigt : elargir la zone tactile sans deplacer le soulignement    */
/* ================================================================== */
/* Les liens d'action font 37 px de haut, les sources 31, le fil 34.
   On garde le trait colle au texte et on etend la cible a 44 px par un
   pseudo-element, uniquement sur les pointeurs grossiers. */
@media (pointer: coarse) {
  .cea-lien,
  .cea-sources a,
  .cea-fil a { position: relative; }

  .cea-lien::after,
  .cea-sources a::after,
  .cea-fil a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }
}


/* ================================================================== */
/* L'en-tete tient dans la largeur, jusqu'aux petits telephones         */
/* ================================================================== */

/* ⛔ Un enfant de flex vide compte quand meme dans les `gap`. WordPress
   glisse un paragraphe vide dans la partie de gabarit, et le `nav` du menu
   restait dans la mise en page alors que sa liste est masquee : a eux deux
   ils mangeaient 48 px de la barre, qui debordait de 6 px sur un ecran de
   375 px et de 61 px en affichage agrandi (320 px). La page se laissait
   alors pousser lateralement. On les sort de la mise en page. */
.cea-entete__in > p:empty { display: none; }

@media (max-width: 1200px) {
  .cea-entete__nav { display: none; }
}

/* Sur les petits telephones on resserre les ecarts, au lieu de laisser la
   barre deborder. */
@media (max-width: 420px) {
  .cea-entete__in { gap: 12px; }
  .cea-marque { gap: 8px; }
  .cea-entete__droite { gap: 10px; }
  /* ⛔ `est-colle` est plus specifique que la regle de cette tranche : le
     logo grossissait de 44 a 46 px des le premier defilement. */
  .cea-entete.est-colle .cea-marque img { width: 44px; }
}

/* Avec les ecarts resserres, le nom tient jusqu'a 350 px. En dessous — un
   iPhone en affichage agrandi — il mangerait la marge du bouton de don : le
   coeur suffit, le nom est repris dans le volet, dans le titre de la page et
   dans le pied. */
@media (max-width: 350px) {
  .cea-marque span { display: none; }
}
