/* =========================================================
   Le Pont des Enfants — feuille de style
   ========================================================= */
:root {
  /* Charte graphique */
  --orange: #C7007D;        /* magenta (couleur secondaire) */
  --orange-dark: #A10066;
  --blue: #38302E;          /* brun foncé (titres et texte) */
  --blue-soft: #117181;     /* bleu canard */
  --sky: #E8F3F4;
  --sun: #A3D862;           /* vert (accent) */
  --green: #117181;
  --lime: #A3D862;
  --ink: #38302E;
  --muted: rgba(56, 48, 46, .68);
  --line: #ECE8E7;
  --bg: #FFFFFF;
  --tint: #FBF1F7;
  --radius: 28px;
  --shadow: 0 12px 34px rgba(56, 48, 46, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-soft); }
h1, h2, h3 { color: var(--blue); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.05; }
.hl { color: var(--orange); }
h2 { font-size: clamp(1.8rem, 3.7vw, 2.8rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .95em; word-break: break-all; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--orange); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.narrow { max-width: 760px; }
.narrow-block { max-width: 820px; }
.ico { width: 1.2em; height: 1.2em; vertical-align: -.2em; }

/* Boutons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.4em; border-radius: 60px; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 800; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(199, 0, 125, .28); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-green { background: var(--lime); color: var(--ink); }
.btn-green:hover { background: #93C953; }
.btn-soft { background: #F1EEED; color: var(--ink); }
.btn-soft:hover { background: #E6E1E0; }
.btn-light { background: #fff; color: var(--orange); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(1320px, 100% - 32px); display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font-size: 1.25rem; white-space: nowrap; }
.brand strong { color: var(--orange); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--orange); background: var(--tint); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 3px; background: var(--blue); border-radius: 3px; margin: 5px 0; transition: .2s; }

@media (max-width: 1360px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px 16px; gap: 12px; display: none; overflow-y: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a:not(.btn) { font-size: 1.1rem; padding: 12px; }
  .nav-cta { justify-content: center; }
  body.menu-open { overflow: hidden; }
  .menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Messages */
.flash { padding: 14px 0; font-weight: 700; }
.flash-ok { background: #E3F6F1; color: #1C6E63; }
.flash-error { background: #FDE8E4; color: #A23A1C; }

/* Hero */
.hero { background: #fff; color: var(--ink); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 80px 0 90px; }
.hero h1 { color: var(--ink); }
.hero .lead { color: var(--muted); max-width: 600px; }
.hero-art { background: var(--blue-soft); border-radius: 48px 160px 48px 160px; padding: 40px 30px 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; } .hero-art { max-width: 340px; } }

/* Chiffres */
.stats { position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { display: block; font-size: 2.6rem; font-weight: 900; color: var(--orange); line-height: 1.1; }
.stat-label { color: var(--muted); font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .lead { margin-inline: auto; }
.page-hero { background: linear-gradient(180deg, var(--tint), #fff); padding: 64px 0 40px; }
.group-title { margin-top: 56px; }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 36px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-1 { grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card-row { display: flex; gap: 18px; align-items: flex-start; }
.card-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--tint); color: var(--orange); display: grid; place-items: center; margin-bottom: 16px; flex: none; }
.card-icon .ico { width: 28px; height: 28px; }
@media (max-width: 1000px) { .cards, .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards-4 { grid-template-columns: 1fr; } }

/* Témoignage */
.quote-wrap { max-width: 860px; }
.quote { margin: 0; text-align: center; }
.quote p { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--blue); line-height: 1.45; }
.quote footer { color: var(--orange); font-weight: 700; }

/* 3 chemins */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path { border-radius: var(--radius); padding: 32px; color: #fff; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s; }
.path:hover { transform: translateY(-5px); }
.path .ico { width: 40px; height: 40px; margin-bottom: 18px; }
.path h3 { color: #fff; font-size: 1.35rem; }
.path p { opacity: .92; flex: 1; }
.path span { font-weight: 800; }
.path-orange { background: var(--orange); }
.path-blue { background: var(--blue-soft); }
.path-green { background: var(--lime); color: var(--ink); }
.path-green h3 { color: var(--ink); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

/* Actualités */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-thumb { position: relative; aspect-ratio: 16/10; background: var(--sky); display: block; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-empty { background: linear-gradient(135deg, var(--lime), var(--blue-soft)); }
.tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--blue); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.tag-evenement { background: var(--orange); color: #fff; }
.post-body { padding: 20px 22px 24px; }
.post-body h3 a { color: var(--blue); text-decoration: none; }
.post-body h3 a:hover { color: var(--orange); }
.post-body p { color: var(--muted); margin: 0; }
.post-date { font-size: .88rem; font-weight: 700; color: var(--orange) !important; margin-bottom: 6px !important; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tabs a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; background: #fff; }
.tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager { display: flex; justify-content: center; gap: 8px; }
.pager a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager a[aria-current] { background: var(--orange); color: #fff; border-color: var(--orange); }
.article { max-width: 820px; }
.article-img { border-radius: var(--radius); margin-bottom: 28px; width: 100%; }
.event-meta { font-weight: 700; color: var(--blue-soft); }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* Bandeau rêve */
.dream { background: var(--blue-soft); color: #fff; }
.dream h2 { color: #fff; }
.dream .lead { color: rgba(255,255,255,.85); }
.dream .eyebrow { color: var(--sun); }
.dream-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.dream-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 860px) { .dream-inner { grid-template-columns: 1fr; } }
.cta-band { margin-top: 60px; background: var(--orange); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }

/* Mise en avant */
.feature { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; background: var(--sky); border-radius: var(--radius); padding: 40px; }
.feature-art { aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--orange); }
.feature-art .ico { width: 45%; height: 45%; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; padding: 28px; } .feature-art { max-width: 160px; } }

/* Contenu + formulaire */
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps { padding-left: 0; counter-reset: s; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; margin-bottom: 16px; min-height: 36px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center; }
.note { background: var(--sky); border-radius: 14px; padding: 20px 22px; margin: 24px 0; }
.note h3 { margin-bottom: .3em; }
.note p { margin: 0; }
.side-card, .form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.side-card h3 { margin-top: 1.2em; }
.side-card h3:first-child { margin-top: 0; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { background: var(--tint); color: var(--orange-dark); padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }

/* Formulaires */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--blue); }
.req { color: var(--orange); }
.form input:not([type=checkbox]), .form select, .form textarea, .newsletter input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus, .newsletter input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(199,0,125,.14); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 18px 0; }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .side-card, .form-card { padding: 22px; } }

/* Contact */
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--tint); padding: 20px; border-radius: 14px; }
.contact-item .ico { width: 26px; height: 26px; color: var(--orange); flex: none; }
.contact-item strong { display: block; color: var(--blue); }

/* Dons */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 10px 0 30px; }
.pay { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.bank dt { font-weight: 700; color: var(--blue); }
.bank dd { margin: 0; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }

/* Pied de page */
.site-footer { background: #2B2523; color: #D9D2CF; padding: 64px 0 24px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #D9D2CF; }
.site-footer a:hover { color: #fff; }
.brand-light { color: #fff; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .muted { color: #A89D99; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { padding: 6px 12px; border: 1px solid #4A403D; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 180px; border-color: #4A403D; background: #38302E; color: #fff; }
.footer-bottom { border-top: 1px solid #4A403D; margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Photos ---------- */
.hero-photo { border-radius: 48px 160px 48px 160px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.4; background: var(--sky); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo { text-align: center; padding-top: 30px; }
.card-img { width: 170px; height: 170px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; border: 6px solid var(--tint); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid #fff; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.side-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 20px; margin-bottom: 22px; }
.page-hero-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.page-hero-photo { width: 100%; aspect-ratio: 1; max-width: 340px; justify-self: end; object-fit: cover; border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .page-hero-split { grid-template-columns: 1fr; }
  .page-hero-photo { max-width: 220px; justify-self: start; }
  .hero-photo { max-width: 420px; }
}
