/* =========================================================
   Fondation Fier de nos quartiers — feuille de style
   ========================================================= */
@font-face { font-family: "Vollkorn"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/vollkorn-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Vollkorn"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/vollkorn-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Vollkorn"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/vollkorn-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/satoshi-700.woff2") format("woff2"); }

:root {
  --orange: #f15a2b;
  --orange-title: #ea4e1a;
  --orange-dark: #d9481c;
  --salmon: #f3ab93;
  --yellow: #f7a800;
  --black: #000;
  --ink: #171a1f;
  --text: #363636;
  --muted: #495460;
  --line: #cbd2d9;
  --grey: #ececec;
  --soft: #fafafb;
  --white: #fff;
  --serif: "Vollkorn", "Times New Roman", Georgia, serif;
  --sans: "Satoshi", "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(17, 17, 17, .08);
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--black); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.center { text-align: center; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--grey { background: var(--grey); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--black); color: #fff; }
.h1 { font-size: clamp(40px, 5.2vw, 64px); }
.h2 { font-size: clamp(34px, 4.2vw, 56px); }
.kicker { color: var(--orange); font-weight: 500; margin-bottom: .4em; }
.muted { color: var(--muted); }
.lead-strong { color: var(--black); font-weight: 700; font-size: 17px; }
.accent, .accent a { color: var(--orange); font-weight: 500; text-decoration: none; }
.accent--lg { font-size: clamp(20px, 2.2vw, 28px); }
.rounded { border-radius: var(--radius); width: 100%; object-fit: cover; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 40px 0 32px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; border: 2px solid var(--orange); border-radius: 8px; padding: 12px 22px; font: 700 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--orange); }
.btn--ghost:hover { background: var(--orange); color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- En-tête ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px var(--gutter); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand__logo { width: 59px; height: auto; }
.brand__name { font: 500 23.5px/1.05 var(--serif); letter-spacing: .01em; }
.main-nav { display: flex; gap: 40px; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Accueil : héros ---------- */
.home-hero { position: relative; background: #000; min-height: max(720px, 100svh); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; filter: grayscale(1); }
.home-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 28%, rgba(0,0,0,.15) 65%, rgba(0,0,0,0) 100%), linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, #000 100%); }
.home-hero__content { position: relative; padding-top: 140px; padding-bottom: 40px; max-width: 1440px; }
.home-hero__title { font: 400 clamp(52px, 6.2vw, 88px)/1.02 var(--serif); color: var(--orange-title); max-width: 640px; margin-bottom: 28px; }
.home-hero__lead { font-size: 18px; max-width: 430px; color: #fff; }
.home-hero__values { position: relative; padding: 24px 0 48px; }

/* ---------- Bandeaux défilants ---------- */
.ticker { overflow: hidden; position: relative; --speed: 40s; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker var(--speed) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker--values { --speed: 30s; }
.value-word { font: 400 clamp(34px, 3.5vw, 50px)/1.2 var(--serif); color: var(--yellow); padding: 0 clamp(28px, 4vw, 60px); white-space: nowrap; }
.ticker--cards { --speed: 60s; padding: 24px 0 40px; }
.ticker--cards .ticker__group { gap: 0; }
.ticker--cards .card { width: 325px; margin: 0 22px; }
.ticker--logos { --speed: 45s; margin-top: 40px; }
.logo-item { padding: 0 34px; }
.logo-item img { height: 64px; width: auto; max-width: 220px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } .ticker { overflow-x: auto; } }

/* ---------- Cartes actus ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 12px 22px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(17,17,17,.12); }
.card__media img { width: 100%; aspect-ratio: 325 / 176; object-fit: cover; border-radius: 8px; }
.card__body { padding: 18px 6px 0; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 24px; margin-bottom: 8px; }
.card__title a { text-decoration: none; }
.card__text { color: var(--text); font-size: 16px; flex: 1; }
.card__more { color: var(--orange); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card__more:hover svg { transform: translateX(3px); }
.card__more svg { transition: transform .2s; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 32px; }

/* ---------- Sections accueil ---------- */
.home-news { padding-top: 48px; }
.newsletter-link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font: 600 16px/1 var(--sans); text-decoration: none; margin-bottom: 36px; padding: 10px 16px; border-radius: 8px; transition: background .2s; }
.newsletter-link:hover { background: rgba(241, 90, 43, .08); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split--reverse .split__media { order: -1; }
.split__text p { max-width: 520px; }
.framed { position: relative; max-width: 470px; margin-left: auto; }
.framed::before { content: ""; position: absolute; inset: -24px -24px 24px 24px; background: var(--salmon); border-radius: var(--radius); z-index: 0; }
.framed--left { margin-left: 0; margin-right: auto; }
.framed--left::before { inset: -24px 24px 24px -24px; }
.framed img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); aspect-ratio: 470 / 560; object-fit: cover; }
.home-about .framed img { aspect-ratio: 4 / 5; }
.home-appel .rounded { aspect-ratio: 421 / 500; max-width: 440px; }
.home-mecenes { padding-top: 40px; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 24px; }
.stats--3 { --n: 3; } .stats--4 { --n: 4; }
.stat__value { display: block; font: 500 clamp(36px, 3.6vw, 48px)/1 var(--serif); color: var(--orange); }
.stat__label { display: block; margin-top: 8px; color: var(--muted); }
.section--dark .stat { text-align: center; }
.section--dark .stat__label { color: #cbd2d9; }

/* ---------- Pages intérieures : héros ---------- */
.page-hero { position: relative; height: clamp(380px, 39vw, 560px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.55) 100%); }
.page-hero__title { position: relative; color: #fff; font: 500 clamp(40px, 5vw, 64px)/1.1 var(--serif); text-align: center; padding: 80px 20px 0; margin: 0; }
.post-hero { background: #000; color: #fff; padding: 170px 0 60px; }
.post-hero .h1 { color: #fff; margin: 0; }
.back-link { color: var(--yellow); text-decoration: none; display: inline-block; margin-bottom: 18px; }

/* La Fondation */
.raison { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.raison__head { display: flex; gap: 24px; align-items: flex-start; }
.raison__head img { flex-shrink: 0; }
.raison__head .h2 { font-size: clamp(28px, 3vw, 40px); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checklist--no li::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.timeline-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: 56px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--orange); }
.timeline__item { position: relative; display: grid; grid-template-columns: 187px 1fr; gap: 28px; align-items: center; margin-bottom: 36px; }
.timeline__item::before { content: ""; position: absolute; left: -35px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--orange); border: 3px solid var(--grey); }
.timeline__img { width: 187px; height: 126px; object-fit: cover; border-radius: 10px; }
.timeline__year { font: 500 34px/1 var(--serif); color: var(--black); margin-bottom: 8px; }
.timeline__year span { display: block; font: 700 14px/1.4 var(--sans); color: var(--orange); margin-top: 6px; }
.timeline__txt p:last-child { margin: 0; color: var(--muted); }
.timeline-side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 40px; align-self: start; }
.timeline-side img:first-child { aspect-ratio: 470 / 627; }
.timeline-side img:last-child { width: 60%; margin-left: auto; aspect-ratio: 245 / 368; }
.quote { margin: 0; font: 400 20px/1.55 var(--serif); color: var(--ink); }
.values-banner { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.values-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.values-banner__shade { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.values-banner__text { position: relative; color: var(--yellow); font: 400 clamp(26px, 3.4vw, 46px)/1.3 var(--serif); text-align: center; padding: 0 20px; margin: 0; }

/* Mécènes */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 110px; margin-top: 70px; align-items: start; }
.testimonial { background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.testimonial summary { display: flex; align-items: center; gap: 24px; padding: 24px 28px; cursor: pointer; list-style: none; min-height: 175px; }
.testimonial summary::-webkit-details-marker { display: none; }
.testimonial__photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial__who { flex: 1; display: flex; flex-direction: column; }
.testimonial__who strong { font: 500 26px/1.25 var(--sans); color: var(--ink); }
.testimonial__who span { color: var(--muted); font-size: 22px; line-height: 1.35; margin-top: 4px; }
.testimonial__toggle { position: relative; width: 24px; height: 24px; flex-shrink: 0; }
.testimonial__toggle::before, .testimonial__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: #495460; transform: translate(-50%, -50%); transition: transform .25s; }
.testimonial__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.testimonial[open] .testimonial__toggle::after { transform: translate(-50%, -50%) rotate(0); }
.testimonial__quote { padding: 0 28px 28px 132px; color: var(--muted); font-size: 17px; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }
.logo-grid { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 46px 24px; align-items: center; }
.logo-grid__item { display: flex; align-items: center; justify-content: center; min-height: 90px; }
.logo-grid__item img { max-height: 92px; max-width: 100%; width: auto; object-fit: contain; transition: transform .2s; }
.logo-grid__item a:hover img { transform: scale(1.06); }

/* Article */
.post__cover { margin-bottom: 40px; max-height: 560px; }
.prose { font-size: 18px; color: var(--text); }
.prose h2 { font-size: 32px; margin-top: 1.4em; }
.prose h3 { font-size: 24px; margin-top: 1.2em; }
.prose a { color: var(--orange); }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote { border-left: 4px solid var(--orange); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; font-family: var(--serif); font-size: 21px; }
.post__more { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin: 24px 0; }
.contact-card p { margin: 0 0 6px; }
.contact-card__name { font: 500 26px/1.2 var(--serif); color: var(--black); }
.contact-card__role { color: var(--orange); margin-bottom: 14px !important; }
.contact-card a { color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--orange); }
.socials--dark { display: flex; gap: 18px; }
.socials--dark a { color: var(--orange); font-weight: 700; }
.contact__form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 14px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; font: 500 16px/1.4 var(--sans); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241, 90, 43, .18); }
.form textarea { resize: vertical; min-height: 150px; }
.field--check label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.field--check input { margin-top: 5px; accent-color: var(--orange); }
.has-error input, .has-error textarea { border-color: #c62828; }
.field__err { color: #c62828; font-size: 14px; margin: 6px 0 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; }
.alert--ok { background: #e8f5e9; color: #1b5e20; }
.alert--err { background: #fdecea; color: #b71c1c; }

/* ---------- Pied de page ---------- */
.site-footer { background: #000; color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 64px; }
.footer-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; font: 700 22px/1.2 var(--sans); margin-bottom: 18px; }
.footer-brand img { width: 54px; }
.site-footer__about p { color: rgba(202, 209, 216, .85); max-width: 360px; }
.footer-title { font: 700 16px/1.2 var(--sans); color: #fff; margin-bottom: 22px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(202, 209, 216, .85); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--orange); }
.site-footer__bottom { background: var(--ink); padding: 22px 0; font-size: 14px; color: #cbd2d9; }
.site-footer__bottom a { color: #cbd2d9; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 26px; }
  .logo-grid { grid-template-columns: repeat(5, 1fr); }
  .testimonials { gap: 22px 40px; }
}
@media (max-width: 900px) {
  .burger { display: block; position: relative; z-index: 60; }
  .main-nav { position: fixed; inset: 0; background: rgba(0,0,0,.96); flex-direction: column; align-items: center; justify-content: center; gap: 26px; font-size: 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 55; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-open { overflow: hidden; }
  .split, .raison, .contact, .timeline-wrap { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .framed, .framed--left { margin: 24px auto 0; max-width: 420px; }
  .timeline-side { display: none; }
  .testimonials { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .stats--4 { --n: 2; row-gap: 36px; }
}
@media (max-width: 600px) {
  .brand__logo { width: 44px; }
  .framed::before { inset: -12px -12px 12px 12px; }
  .framed--left::before { inset: -12px 12px 12px -12px; }
  .brand__name { font-size: 19px; }
  .home-hero { min-height: 640px; }
  .home-hero__img { object-position: 60% center; opacity: .6; }
  .timeline__item { grid-template-columns: 1fr; gap: 14px; }
  .timeline__item::before { top: 20px; }
  .timeline__img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .testimonial summary { padding: 18px; gap: 16px; min-height: 0; }
  .testimonial__photo { width: 60px; height: 60px; }
  .testimonial__who strong { font-size: 20px; }
  .testimonial__who span { font-size: 16px; }
  .testimonial__quote { padding: 0 20px 22px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .stats { --n: 1 !important; text-align: center; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .ticker--cards .card { width: 280px; margin: 0 12px; }
}

