/* ============================================================
   École Sainte Florence — maquette refonte 2026
   Charte : BLEU + BLANC (réelle), ORANGE en accents & menu actuel
   Style  : inspiré thème "Enfant" — arrondi, joyeux, cartes souples
   ============================================================ */

:root {
  /* Charte réelle */
  --blue-900: #0e3a66;
  --blue-700: #14508c;
  --blue-500: #2e77b8;
  --blue-300: #9cc6e8;
  --blue-100: #eaf4fc;
  --blue-50:  #f5faff;
  /* Héritage / accents */
  --orange:   #e9650c;
  --orange-dark: #c95408;
  --orange-soft: #fdece0;
  /* Neutres */
  --ink:      #22303e;
  --ink-soft: #51637a;
  --white:    #ffffff;
  --radius:   24px;
  --radius-lg: 36px;
  --shadow:   0 10px 30px rgba(14, 58, 102, 0.10);
  --shadow-hover: 0 14px 40px rgba(14, 58, 102, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4, .btn {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  line-height: 1.2;
  color: var(--blue-900);
}

img { max-width: 100%; display: block; border-radius: 18px; }

a { color: var(--blue-700); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER (contrainte : conservé, orange) ---------- */
.site-topbar {
  background: var(--white);
  padding: 18px 0 14px;
  border-bottom: 4px solid var(--orange);
}
.site-topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-topbar img.logo { height: 74px; width: auto; border-radius: 0; }
.topbar-contacts { text-align: right; font-weight: 700; color: var(--blue-700); font-size: 15px; }
.topbar-contacts a { color: var(--orange); text-decoration: none; }
.topbar-contacts a:hover { text-decoration: underline; }

.main-nav {
  background: var(--orange);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 14px rgba(233, 101, 12, 0.35);
}
.main-nav ul {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
}
.main-nav a {
  display: block; padding: 16px 26px;
  color: #fff; text-decoration: none;
  font-family: 'Baloo 2', sans-serif; font-size: 17px; font-weight: 600;
  letter-spacing: .2px;
  border-bottom: 4px solid transparent;
  transition: background .18s;
}
.main-nav a:hover { background: var(--orange-dark); }
.main-nav a.active { background: var(--orange-dark); border-bottom-color: #fff; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  color: #fff;
  padding: 84px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::after { /* vagues en bas du hero */
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,64 C240,110 480,10 720,48 C960,86 1200,20 1440,60 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; }
.hero h1 .accent { color: #ffb37a; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 720px; color: #d9e9f8; margin-bottom: 34px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 16px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-orange { background: var(--orange); color: #fff !important; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-white  { background: #fff; color: var(--blue-700) !important; }
.btn-outline-white { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.75); }
.btn-blue { background: var(--blue-700); color: #fff !important; }

/* Adaptateur blocs natifs Gutenberg : les variantes .btn-* se posent
   sur le wrapper wp-block-button, le style cible le lien interieur. */
.wp-block-button .wp-block-button__link {
  border-radius: 999px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 30px;
  transition: transform .15s, box-shadow .15s;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.wp-block-button.btn-orange .wp-block-button__link { background: var(--orange) !important; color: #fff !important; }
.wp-block-button.btn-orange .wp-block-button__link:hover { background: var(--orange-dark) !important; }
.wp-block-button.btn-white .wp-block-button__link { background: #fff !important; color: var(--blue-700) !important; }
.wp-block-button.btn-blue .wp-block-button__link { background: var(--blue-700) !important; color: #fff !important; }
.wp-block-button.btn-outline-white .wp-block-button__link {
  background: transparent !important; color: #fff !important;
  border: 2px solid rgba(255,255,255,.75);
}
.icon-badge p { margin: 0; }

/* ---------- SECTIONS ---------- */
.section { padding: 72px max(24px, calc((100% - 1140px) / 2 + 24px)); }
.section.alt { background: var(--blue-50); }
.section.blue { background: var(--blue-700); color: #eaf4fc; }
.section.blue h2, .section.blue h3 { color: #fff; }

.section-title {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}
.section-title .sail { font-size: .9em; }
.section-sub { color: var(--ink-soft); max-width: 760px; margin-bottom: 40px; font-size: 1.08rem; }
.section.blue .section-sub { color: #cfe3f5; }
.title-accent { color: var(--orange); }

/* ---------- CARTES ---------- */
.cards { display: grid; gap: 26px; }
.cards.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards.c3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* Le groupe .cards porte is-layout-flow (WP) qui ajoute margin-top:24px à chaque
   carte sauf la 1re -> décale le haut des cartes suivantes (bas alignés, 1re plus
   haute). Dans une grille le gap suffit : on annule cette marge pour tout aligner. */
.cards > * { margin-top: 0 !important; margin-block-start: 0 !important; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border-top: 6px solid var(--blue-500);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card.accent { border-top-color: var(--orange); }
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card .icon-badge {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--blue-100); display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 16px;
}
.card.accent .icon-badge { background: var(--orange-soft); }
/* Carte-carte (iframe OpenStreetMap) dans la grille Coordonnees : la carte sert de
   cadre, l'iframe le remplit, coins arrondis via overflow. */
.card.map-card { padding: 0; overflow: hidden; }
.card.map-card iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---------- BLOCS IMAGE / TEXTE alternés ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 64px;
}
.split:last-child { margin-bottom: 0; }
.split.flip .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }
.split-body h3 { font-size: 1.5rem; margin-bottom: 12px; }
.split-body p + p { margin-top: 12px; }
.kicker {
  display: inline-block; background: var(--blue-100); color: var(--blue-700);
  font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.kicker.orange { background: var(--orange-soft); color: var(--orange-dark); }

/* ---------- CITATION ---------- */
.quote-band {
  background: var(--blue-100);
  border-left: 8px solid var(--orange);
  border-radius: var(--radius);
  padding: 44px 48px;
  text-align: center;
}
.quote-band blockquote {
  font-family: 'Baloo 2', serif; font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--blue-900); margin-bottom: 12px;
}
.quote-band cite { color: var(--ink-soft); font-style: normal; font-weight: 700; }
/* Bloc estf/citation : citation = héros (grande Baloo), attribution = plus petite.
   Bouton pilule via .btn.btn-blue. Évite le <cite> imbriqué du bloc core wp:quote
   qui héritait de la taille du blockquote (hiérarchie inversée). */
.quote-band .estf-quote {
  font-family: 'Baloo 2', serif; font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--blue-900); font-weight: 600; margin: 0 0 12px;
}
.quote-band .estf-cite {
  color: var(--ink-soft); font-style: normal; font-weight: 600;
  font-size: 1rem; line-height: 1.6; max-width: 760px; margin: 0 auto;
}
.quote-band .estf-quote-cta { margin-top: 18px; }

/* ---------- ÉQUIPE ---------- */
.team-card { text-align: center; padding-bottom: 34px; }
.team-photo {
  width: 170px; height: 170px; border-radius: 50%;
  margin: 0 auto 18px; overflow: hidden;
  border: 6px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--blue-300), var(--blue-500));
  color: #fff; font-family: 'Baloo 2'; font-size: 44px; font-weight: 700;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.team-role { color: var(--orange); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.team-fonction { color: var(--blue-700); font-weight: 700; margin-bottom: 4px; }
.team-classe { font-size: 14.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
.team-quote { font-style: italic; color: var(--ink-soft); margin-bottom: 14px; }
.team-bio { font-size: 14.5px; color: var(--ink); text-align: left; }
.team-bio strong { color: var(--blue-700); }
/* Espace entre le bloc « Parcours » (bio1) et « Ancrage & mission » (bio2) :
   chaque bio = un <p> rendu par wpautop ; on écarte le <p> qui suit un autre. */
.team-bio p + p { margin-top: 14px; }

/* ---------- ÉTAPES (inscription) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius); padding: 34px 28px 28px;
  box-shadow: var(--shadow); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -22px; left: 26px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: 'Baloo 2'; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(233,101,12,.4);
}
.step h3 { margin-bottom: 8px; font-size: 1.2rem; }

/* ---------- GALERIE ----------
   Selecteurs renforces : le CSS core de wp-block-gallery (flex +
   width:auto!important) a une specificite superieure a .gallery seul. */
.wp-block-gallery.gallery,
.gallery {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.wp-block-gallery.gallery figure.wp-block-image {
  margin: 0 !important;
  width: 100% !important;
}
.wp-block-gallery.gallery figure.wp-block-image img,
.gallery img {
  width: 100% !important;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform .2s;
}
.gallery img:hover { transform: scale(1.04); }

/* ---------- BAROMÈTRE / GRAPHIQUE PLACEHOLDER ---------- */
.chart-placeholder {
  background: #fff; border: 3px dashed var(--blue-300); border-radius: var(--radius);
  padding: 34px; text-align: center; color: var(--ink-soft);
}
.bars { display: flex; align-items: flex-end; gap: 26px; height: 220px; justify-content: center; margin-bottom: 18px; }
.bar { width: 74px; border-radius: 12px 12px 4px 4px; position: relative; }
.bar span { position: absolute; top: -26px; left: 0; right: 0; font-weight: 800; color: var(--blue-900); font-size: 14px; }
.bar em { position: absolute; bottom: -30px; left: -12px; right: -12px; font-style: normal; font-size: 13px; color: var(--ink-soft); font-weight: 700; }

/* ---------- ENCADRÉS SPÉCIAUX ---------- */
.callout {
  border-radius: var(--radius); padding: 30px 34px; margin-top: 34px;
  background: var(--orange-soft); border-left: 8px solid var(--orange);
}
.callout.blue { background: var(--blue-100); border-left-color: var(--blue-700); }
.callout h3 { margin-bottom: 8px; }

/* ---------- FORMULAIRE ---------- */
.form-card {
  background: #fff; border-radius: var(--radius); padding: 38px;
  box-shadow: var(--shadow);
}
.form-card label { display: block; font-weight: 800; color: var(--blue-900); margin: 16px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--blue-300);
  border-radius: 14px; font-family: inherit; font-size: 15.5px; background: var(--blue-50);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
}
.form-card textarea { min-height: 130px; resize: vertical; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--blue-900); color: #cfe3f5; padding: 54px 0 26px; margin-top: 0;
}
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; margin-bottom: 34px; }
/* Colonne unique du footer (Navigation + Contact mécénat retirés) : centrée. */
.site-footer .footer-single { text-align: center; max-width: 520px; margin: 0 auto 34px; }
.site-footer .footer-single p { margin: 0 0 10px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #ffb37a; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: 14px; text-align: center; color: #9cc6e8; }

/* ── Tableau tarifs (page inscriptions, bloc wp:html) ── */
.tarifs-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 1px 4px rgba(20,80,140,.10); margin-top: 6px; }
.tarifs-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; min-width: 640px; }
.tarifs-table th, .tarifs-table td { border: 1px solid #e2e8f0; padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.5; }
.tarifs-table thead th { background: #eef4fb; color: var(--blue-900); font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.tarifs-table tbody tr:nth-child(even) { background: #fafcfe; }
.tarifs-table tbody td:first-child { font-weight: 600; color: var(--blue-900); }
.tarifs-table .tarif-tier { display: inline-block; margin-top: 4px; font-weight: 800; color: var(--blue-800); }
.tarifs-table .tarif-tier:first-child { margin-top: 0; }
.tarifs-table sup { font-size: 0.7em; }
@media (max-width: 640px) { .tarifs-table { font-size: 0.85rem; } .tarifs-table th, .tarifs-table td { padding: 9px 10px; } }

/* ---------- PLACEHOLDER ---------- */
.placeholder-note {
  display: inline-block; background: #fff8e6; border: 1.5px dashed #d9a400; color: #8a6a00;
  border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 700; margin-top: 10px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.flip .split-media { order: 0; }
  .site-topbar .container { justify-content: center; text-align: center; }
  .topbar-contacts { text-align: center; }
  .main-nav a { padding: 12px 14px; font-size: 15px; }
  .quote-band { padding: 30px 22px; }
}

/* === v3.0 standalone (sans GeneratePress) — overrides défensifs === */
.main-nav ul { padding: 0; margin: 0; }
.quote-band blockquote { font-style: normal; border: none; margin: 0 0 12px; padding: 0; }
.hero.compact { padding: 64px 0 100px; }
/* Conteneur 1140px des sections rendues en wp:group (maquette: .container) */
.refonte-main .wp-block-group.section > .wp-block-group__inner-container {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
/* Les cartes rendues en wp:group dans .cards : pas de marge WP parasite */
.refonte-main .cards > .wp-block-group { margin: 0; }

/* ---------- SIMULATEUR DE DON (bloc estf/don) ---------- */
.don-sim {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-top: 6px solid var(--orange);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
  color: var(--ink);
  margin: 8px 0;
}
.don-sim * { box-sizing: border-box; }
.don-intro h3 { font-size: 1.6rem; color: var(--blue-900); margin: 0 0 12px; }
.don-intro p { color: var(--ink-soft); margin: 0 0 8px; }
.don-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}
.don-form label { display: block; font-weight: 700; margin: 0 0 8px; color: var(--blue-900); }
.don-form select,
.don-form input {
  width: 100%;
  border: 1px solid var(--blue-300);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  color: var(--ink);
  font: inherit;
  margin-bottom: 18px;
}
.don-form select:focus,
.don-form input:focus {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}
.don-result {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 16px;
  padding: 26px;
}
.don-result > span { color: var(--ink-soft); font-weight: 600; }
.don-total { font-size: clamp(38px, 6vw, 52px); color: var(--orange); font-weight: 800; line-height: 1.1; margin: 10px 0; }
.don-result p { margin: 8px 0 0; color: var(--ink); }
.don-small { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 10px 0 0; }
.don-error { color: #a32424; font-weight: 600; min-height: 1em; margin: 12px 0 0; }
.don-sim a { color: var(--orange-dark); text-decoration: underline; }
@media (max-width: 650px) {
  .don-grid { grid-template-columns: 1fr; gap: 18px; }
  .don-total { font-size: 40px; }
}

/* ---------- PASSERELLE DES MÉCÈNES (bloc estf/passerelle) ---------- */
.passerelle-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: var(--blue-100); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px); margin-bottom: 34px;
}
.passerelle-intro.flip .passerelle-media { order: 2; }
.passerelle-media img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.passerelle-media-ph {
  aspect-ratio: 4/3; border-radius: 18px; background: var(--blue-300);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.passerelle-body h3 { color: var(--blue-900); font-size: 1.5rem; margin: 0 0 12px; }
.passerelle-body p { color: var(--ink); margin: 0 0 10px; }
.passerelle-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.niveau {
  background: #fff; border-radius: 18px; padding: 24px 20px;
  box-shadow: var(--shadow); border-top: 5px solid var(--blue-500); text-align: center;
}
.niveau:nth-child(even) { border-top-color: var(--orange); }
.niveau-head { margin-bottom: 8px; }
.niveau-num {
  display: inline-block; background: var(--blue-700); color: #fff; border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 700; margin-right: 6px;
}
.niveau-nom { font-weight: 800; color: var(--blue-900); text-transform: uppercase; letter-spacing: .5px; }
.niveau-montant { font-size: 30px; font-weight: 800; color: var(--orange); margin: 8px 0 2px; }
.niveau-apres { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.niveau-texte { font-size: 13.5px; color: var(--ink); text-align: left; margin: 0; }
@media (max-width: 900px) { .passerelle-levels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) {
  .passerelle-intro { grid-template-columns: 1fr; }
  .passerelle-intro.flip .passerelle-media { order: 0; }
  .passerelle-levels { grid-template-columns: 1fr; }
}

/* Icône de niveau (au-dessus du titre). Conteneur à hauteur FIXE + object-fit:
   contain => l'icône occupe toujours le même espace vertical quelle que soit sa
   taille/ratio natif (les captures PDF font 1-5px de différence) : les 4 cartes
   restent alignées en haut comme en bas. */
.niveau { transition: transform .18s, box-shadow .18s; }
.niveau:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.niveau-icon {
  height: 88px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.niveau-icon img { max-height: 88px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* ---------- CARTES RÉDUCTION FISCALE (bloc estf/tax) ---------- */
.tax-cards { display: grid; grid-template-columns: repeat(var(--tax-n, 3), 1fr); gap: 0; }
.tax-card { padding: 10px 30px; text-align: center; }
.tax-card + .tax-card { border-left: 2px solid var(--blue-700); }
.tax-taux { font-size: clamp(40px, 6vw, 56px); font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 12px; }
.tax-impot { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.tax-limite { font-style: italic; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }
.tax-exemple { font-weight: 800; color: var(--ink); }
@media (max-width: 760px) {
  .tax-cards { grid-template-columns: 1fr; }
  .tax-card { padding: 18px 12px; }
  .tax-card + .tax-card { border-left: 0; border-top: 2px solid var(--blue-700); }
}

/* ---------- ZONE LEGS (bloc estf/legs) — fond bleu ---------- */
.legs-zone {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-500) 100%);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); color: #eaf4fc;
}
.legs-inner { max-width: 820px; margin: 0 auto; text-align: left; }
.legs-titre { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 18px; text-transform: uppercase; letter-spacing: .5px; }
.legs-body p { color: #dcecf9; font-size: 1.05rem; line-height: 1.7; margin: 0 0 14px; }
.legs-body strong { color: #fff; }
.legs-body em { color: #bcd8f0; }
.legs-body a { color: #ffb37a; }
/* QR rendu hors de la zone bleue : seul et centré sous le bloc. */
.legs-qr { margin-top: 28px; display: flex; justify-content: center; }
.legs-qr img { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 10px; box-shadow: var(--shadow); object-fit: contain; }

/* ---------- PILIER (bloc estf/pilier) — bandeau horizontal + témoignage ---------- */
.pilier {
  background: #fff; border-radius: var(--radius); padding: 30px 32px;
  box-shadow: var(--shadow); margin-bottom: 26px;
  transition: transform .18s, box-shadow .18s;
}
.pilier:last-child { margin-bottom: 0; }
.pilier:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pilier-head { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-bottom: 14px; }
.pilier-lead { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 auto; min-width: 0; }
.pilier-icon { font-size: 58px; line-height: 1.1; flex-shrink: 0; }
.pilier-titre {
  color: var(--orange); font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: .3px; margin: 0; line-height: 1.2;
  text-wrap: balance;
}
/* Petit kicker « Pilier N : » au-dessus du titre descriptif (mis en valeur). */
.pilier-titre .pilier-kicker {
  display: block; font-size: 0.6em; font-weight: 700; letter-spacing: 1.5px;
  color: var(--orange); opacity: .85; margin-bottom: 3px;
}
.pilier-media { flex-shrink: 0; }
.pilier-circle {
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow); border: 4px solid #fff;
}
.pilier-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pilier-circle-ph {
  background: var(--blue-100); display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--blue-300);
}
.pilier-body { color: var(--ink); margin: 0 0 18px; }
.pilier-body p { margin: 0 0 10px; }
.pilier-body p:last-child { margin-bottom: 0; }
.pilier-body strong { color: var(--blue-700); }
.pilier-testimonial {
  background: var(--blue-100); border-radius: 12px; padding: 20px 24px;
  border-left: 4px solid var(--orange);
}
.pilier-quote {
  font-style: italic; color: var(--ink); font-size: 1.02rem; line-height: 1.6; margin: 0 0 10px;
}
.pilier-quote::before {
  content: "\201C"; color: var(--orange); font-weight: 800; font-size: 1.7rem;
  line-height: 0; vertical-align: -0.32em; margin-right: 3px;
}
.pilier-attr { color: var(--blue-700); font-weight: 700; font-size: 0.92rem; margin: 0; }
@media (max-width: 640px) {
  .pilier { padding: 24px 20px; }
  .pilier-head { flex-direction: column-reverse; align-items: center; text-align: center; }
  .pilier-lead { flex-direction: column; align-items: center; gap: 8px; }
}

/* === MENTIONS LÉGALES — scopé à la page (body_class WP = page-mentions-legales) ===
   Colonne centrée 780px + typo réduite. Zéro impact sur les autres pages. */
.page-mentions-legales .refonte-main {
  padding: 56px max(24px, calc((100% - 780px) / 2 + 24px)) 72px;
}
.page-mentions-legales .refonte-main h1 {
  font-family: 'Baloo 2', sans-serif;
  color: var(--blue-900);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 22px;
}
.page-mentions-legales .refonte-main h2 {
  font-family: 'Baloo 2', sans-serif;
  color: var(--blue-700);
  font-size: 1.12rem;
  margin: 30px 0 8px;
}
.page-mentions-legales .refonte-main p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.page-mentions-legales .refonte-main a { color: var(--blue-500); }
@media (max-width: 640px) {
  .page-mentions-legales .refonte-main { padding: 36px 20px 48px; }
}

/* === CONTACT FORM 7 — style thème (champs du formulaire existant) === */
.wpcf7 form { max-width: 760px; margin: 0; text-align: left; }
.wpcf7 label { display: block; font-weight: 700; color: var(--blue-900); margin: 18px 0 6px; font-size: 15px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel],
.wpcf7 select, .wpcf7 textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 2px solid var(--blue-300); border-radius: 14px;
  background: var(--blue-50); color: var(--ink); box-sizing: border-box;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 .wpcf7-not-valid { border-color: #d64545 !important; }
.wpcf7 .wpcf7-validation-errors { display: none !important; }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 input[type=submit], .wpcf7 .wpcf7-submit {
  display: inline-block; margin-top: 22px; padding: 13px 34px;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 16px;
  border: none; border-radius: 999px; cursor: pointer;
  transition: background .15s, transform .15s;
}
.wpcf7 input[type=submit]:hover { background: var(--orange-dark); transform: translateY(-1px); }
.wpcf7 .wpcf7-response-output {
  margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px;
}
.wpcf7 .wpcf7-mail-sent-ok { border: 2px solid #2e7d32 !important; background: #eaf6ea; color: #2e7d32; }
.wpcf7 .wpcf7-mail-sent-ng, .wpcf7 .wpcf7-aborted { border: 2px solid #d64545 !important; background: #fdeaea; color: #b03030; }
