/* =========================================================
   PALOMA Social — feuille de style
   Couleurs et polices : bloc :root ci-dessous.
   ========================================================= */
:root {
  --sun: #ffd13b;          /* jaune Paloma */
  --sun-soft: #fff1bf;
  --sun-deep: #e8a900;
  --terra: #d9572b;        /* accent chaleureux */
  --terra-dark: #b8441c;
  --ink: #2a2118;          /* brun très foncé, plus doux que le noir */
  --ink-soft: #5c4f42;
  --cream: #ffffff;
  --white: #ffffff;
  --line: rgba(42, 33, 24, .12);
  --radius: 20px;
  --shadow: 0 12px 32px rgba(60, 40, 10, .12);
  --font-title: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.75; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--sun-deep); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .55em; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--sun { background: var(--cream); }
.section--soft { background: var(--cream); border-top: 1px solid var(--line); }
/* Bloc jaune posé sur fond blanc (Agir, appels aux dons) */
.section--ink { background: var(--cream); }
.section--ink > .container { background: var(--sun); border-radius: 32px; padding: clamp(32px, 5vw, 64px); }
.section--ink .lead { color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: .9em; }
.eyebrow::before { content: ""; width: 26px; height: 6px; border-radius: 6px; background: var(--sun); }
.section--ink .eyebrow::before { background: var(--ink); }
.section--ink .eyebrow { color: var(--ink); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.section--sun .lead { color: var(--ink); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-body); font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--terra { background: var(--terra); color: var(--white); }
.btn--terra:hover { background: var(--terra-dark); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 700; padding: .3em 0; border-bottom: 3px solid transparent; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-color: var(--sun); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.social { display: flex; gap: 10px; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: var(--ink); transition: background .15s, color .15s; }
.social a:hover { background: var(--ink); color: var(--sun); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 78px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 20px 16px 28px; display: none; flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (min-width: 961px) { .nav__menu { display: flex; align-items: center; gap: 26px; } }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 9vw, 110px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -160px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: var(--sun); pointer-events: none; }
.hero::before { content: ""; position: absolute; left: -90px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid var(--sun); pointer-events: none; }
.mark { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero .lead { color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }

.page-hero { background: var(--cream); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(44px, 7vw, 84px) 0 clamp(40px, 6vw, 70px); }
.page-hero .lead { color: var(--ink-soft); }
.page-hero::after { content: ""; position: absolute; right: -110px; top: -110px; width: 320px; height: 320px; border-radius: 50%; background: var(--sun); pointer-events: none; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1::after { content: ""; display: block; width: 72px; height: 8px; border-radius: 8px; background: var(--sun); margin-top: .35em; }
.breadcrumb { font-size: .9rem; font-weight: 700; margin-bottom: 1em; }
.breadcrumb a { color: var(--ink); }

/* ---------- Vidéos ---------- */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.video--short { aspect-ratio: 9/16; max-width: 340px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--ink) center/cover no-repeat; }
.video__btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65)); }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; transition: transform .2s; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.video__play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--ink); }
.video__btn:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__title { position: absolute; left: 20px; right: 20px; bottom: 16px; color: #fff; font-weight: 800; text-align: left; font-size: 1.05rem; line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
/* Emplacement vidéo pas encore en ligne */
.video--placeholder { background: repeating-linear-gradient(135deg, var(--sun-soft) 0 18px, #fff6d6 18px 36px); border: 2px dashed var(--sun-deep); box-shadow: none; display: grid; place-items: center; text-align: center; padding: 20px; }
.video--placeholder .video__ph-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; margin: 0 auto 10px; }
.video--placeholder .video__ph-icon svg { width: 22px; height: 22px; margin-left: 4px; fill: var(--ink); }
.video--placeholder strong { display: block; font-size: 1.05rem; }
.video--placeholder span { font-size: .85rem; color: var(--ink-soft); }

.video-card figcaption { margin-top: 12px; }
.video-card figcaption strong { display: block; font-size: 1.05rem; }
.video-card figcaption span { color: var(--ink-soft); font-size: .95rem; }
.video-card { margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 28px; }
.video-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
@media (max-width: 860px) { .video-feature { grid-template-columns: 1fr; } }
.film-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .film-duo { grid-template-columns: 1fr; } }
.film-label { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: .3em .9em; border-radius: 999px; margin-bottom: 12px; }

/* ---------- Onglets par année (REAAP) ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 40px; }
.tabs button { font: inherit; font-weight: 800; font-size: 1.15rem; padding: .55em 1.5em; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.tabs button[aria-selected="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.tabs button:hover:not([aria-selected="true"]) { background: var(--sun-soft); }
.year-panel[hidden] { display: none; }
.year-panel > * + * { margin-top: 48px; }
.year-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.year-num { font-family: var(--font-title); font-weight: 800; font-size: clamp(3rem, 8vw, 5rem); line-height: 1; color: var(--ink); background: var(--sun); border-radius: 24px; padding: .15em .3em; }
@media (max-width: 600px) { .year-head { grid-template-columns: 1fr; gap: 6px; } }
.subhead { font-family: var(--font-body); font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Affiches ---------- */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.poster { margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); cursor: zoom-in; aspect-ratio: 210/297; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster--placeholder { cursor: default; box-shadow: none; border: 2px dashed var(--sun-deep); background: var(--sun-soft); display: grid; place-items: center; text-align: center; padding: 16px; color: var(--ink-soft); font-size: .9rem; }
.poster--placeholder strong { display: block; color: var(--ink); font-size: 1rem; }

/* ---------- Cartes missions ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-5px); }
.card__img { aspect-ratio: 4/3; background: var(--sun-soft); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4em; }
.card__body p { color: var(--ink-soft); flex: 1; }
.card__link { font-weight: 800; color: var(--ink); }
.card:hover .card__link { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 4px; }

/* ---------- Agenda ---------- */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 900px) { .events { grid-template-columns: 1fr; } }
.event { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 6px solid var(--sun); }
.event__date { display: inline-block; font-weight: 800; color: var(--ink); background: var(--sun-soft); border-radius: 999px; padding: .2em .8em; font-size: .85rem; }
.event h3 { margin: .35em 0 .4em; }
.event p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.event--past { opacity: .75; border-top-color: var(--line); }

/* ---------- Galerie ---------- */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--sun-soft); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery.is-collapsed figure:nth-child(n+9) { display: none; }
.gallery__more { margin-top: 24px; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 14, 8, .93); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 86vh; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--sun); color: var(--ink); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Mise en page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.rounded-img { border-radius: var(--radius); box-shadow: 16px 16px 0 var(--sun); width: calc(100% - 16px); }
.prose { max-width: 72ch; }
.callout { background: var(--white); border-left: 6px solid var(--sun); border-radius: 12px; padding: 22px 26px; box-shadow: var(--shadow); margin: 1.5em 0; }
.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; }
.pills li { background: var(--sun); color: var(--ink); padding: .35em 1em; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 760px) { .goals { grid-template-columns: 1fr; } }
.goal { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.goal__icon { font-size: 1.9rem; line-height: 1; margin-bottom: 10px; }
.goal p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Agir ---------- */
.agir { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .agir { grid-template-columns: 1fr; } }
.agir__boxes { display: grid; gap: 18px; }
.agir__box { background: var(--white); border-radius: var(--radius); padding: 26px 28px; }
.agir__box p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Partenaires ---------- */
.marquee { overflow: hidden; margin-top: 44px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 26px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner { width: 150px; height: 150px; flex: none; background: var(--white); border-radius: var(--radius); display: grid; place-items: center; padding: 16px; box-shadow: var(--shadow); }
.partner img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .marquee { mask-image: none; } }

/* ---------- Contact ---------- */
.contact-card { background: var(--white); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 16px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.contact-list a { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 4px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--cream); color: var(--ink-soft); border-top: 10px solid var(--sun); padding: 56px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { height: 50px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--ink); font-family: var(--font-title); font-size: 1.1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; font-size: .85rem; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: var(--white); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Grille de Shorts (format vertical) */
.shorts-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 28px 22px; }
.shorts-grid .video--short, .shorts-grid .video[data-short] { max-width: none; }
.poster { aspect-ratio: 4/5; }
.shorts-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); max-width: 860px; margin-inline: auto; }
.hero__photo { position: relative; z-index: 1; aspect-ratio: 4/3; object-fit: cover; }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }
.news-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 0.9fr 1fr; border-top: 8px solid var(--sun); }
@media (max-width: 560px) { .news-card { grid-template-columns: 1fr; } }
.news-card figure { margin: 0; cursor: zoom-in; background: var(--sun-soft); }
.news-card figure img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 24px; min-width: 0; }
.news-card__body h3 { margin: .6em 0 .4em; }
.news-card__body p { color: var(--ink-soft); font-size: .95rem; }
.news-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; font-size: .95rem; }
.news-list strong { display: inline-block; min-width: 92px; }
.posters--pair { grid-template-columns: 1fr 1fr; }
.posters--five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .posters--five { grid-template-columns: repeat(2, 1fr); } }
