/* ==========================================================================
   SULTAN ALJAMA — feuille de style principale
   ========================================================================== */
:root {
  --blue-dark: #061a3d;
  --blue: #0b2a5b;
  --blue-2: #14407f;
  --yellow: #f2b705;
  --yellow-light: #ffd23f;
  --green: #12804a;
  --green-light: #1fae63;
  --bg: #ffffff;
  --soft: #f1f5fb;
  --ink: #0f1d33;
  --muted: #5b6b82;
  --line: #dde5f0;
  --white: #fff;
  --ok: #12804a;
  --bad: #c5221f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 91, .10);
  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-num: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overscroll-behavior-y: none; }
/* Page figée sur l'axe horizontal : rien ne peut la faire glisser sur le côté (clip ne casse pas l'en-tête collant). */
body { overflow-x: clip; }
/* Page bloquée pendant que le menu mobile est ouvert (méthode compatible iPhone, voir main.js). */
body.scroll-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; object-position: center 20%; } /* recadrage : on garde le haut (les visages) */
[hidden] { display: none !important; }
.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }
.btn .ico { width: 1.2em; height: 1.2em; }
.icon-big { display: inline-flex; width: 76px; height: 76px; border-radius: 20px; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,210,63,.35); color: var(--yellow-light); margin-bottom: 14px; }
.icon-big .ico { width: 40px; height: 40px; }
.result-icon .ico { width: 72px; height: 72px; color: var(--green); stroke-width: 1.5; }
.placeholder-img .ico { width: 56px; height: 56px; }
.block h3 .ico, .list-icons .ico { color: var(--green); margin-right: 4px; }
.list-icons { list-style: none; padding: 0; margin: 0; }
.list-icons li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.site-footer .footer-links .ico { color: var(--yellow); margin-right: 6px; }
.menu-toggle .ico { width: 28px; height: 28px; }
.menu-toggle .ico-close, .menu-toggle.is-open .ico-open { display: none; }
.menu-toggle.is-open .ico-close { display: inline-block; }
.search-input .ico { color: var(--muted); }
.tabs a .ico { margin-right: 4px; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-title); letter-spacing: .01em; font-weight: 700; color: var(--blue); }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--blue); color: var(--soft); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-sand { background: var(--soft); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: .6rem; }
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .fs-hero .eyebrow { color: var(--yellow-light); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.section-dark .lead { color: #c9d7ec; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }

/* Motif décoratif inspiré des tissus africains */
.pattern { background-image:
  linear-gradient(45deg, rgba(242,183,5,.08) 25%, transparent 25%, transparent 75%, rgba(242,183,5,.08) 75%),
  linear-gradient(45deg, rgba(242,183,5,.08) 25%, transparent 25%, transparent 75%, rgba(242,183,5,.08) 75%);
  background-size: 28px 28px; background-position: 0 0, 14px 14px; }
.kente-bar { height: 6px; background: repeating-linear-gradient(90deg, var(--yellow) 0 44px, var(--white) 44px 50px, var(--green) 50px 86px, var(--white) 86px 92px, var(--blue-2) 92px 128px, var(--white) 128px 134px); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--yellow); color: var(--blue-dark); }
.btn-primary:hover { background: var(--yellow-light); color: var(--blue-dark); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-light); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--blue-2); background: transparent; }
.btn-outline:hover { background: var(--blue-2); color: var(--white); border-color: var(--blue-2); }
.hero .btn-outline, .fs-hero .btn-outline, .section-dark .btn-outline, .page-hero .btn-outline { color: var(--white); }
.hero .btn-outline:hover, .fs-hero .btn-outline:hover, .section-dark .btn-outline:hover, .page-hero .btn-outline:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--yellow-light); color: var(--blue); }
.btn-dark { background: var(--blue); color: var(--white); }
.btn-dark:hover { background: var(--blue-dark); color: var(--yellow-light); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); color: var(--blue); box-shadow: 0 2px 16px rgba(11,42,91,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue); font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; letter-spacing: .08em; white-space: nowrap; }
.brand:hover { color: var(--blue-2); }
.brand img { height: 50px; width: auto; }
.brand span b { color: var(--yellow); font-weight: 700; }
.site-footer .brand { color: var(--white); }
.footer-logo { width: 190px; margin-bottom: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dropdown > button { white-space: nowrap; color: var(--blue); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 10px 9px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav > a:hover, .nav > a.active, .nav .dropdown > button:hover { color: var(--green); }
.nav > a.active { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav .nav-cta { background: var(--green); color: var(--white); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--green-light); color: var(--white); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.dropdown-menu a:hover { background: var(--soft); color: var(--green); }
.menu-toggle { display: none; background: none; border: 0; color: var(--blue); font-size: 1.8rem; cursor: pointer; padding: 4px 8px; }

/* Éléments propres au menu mobile : masqués sur ordinateur */
.nav-head, .nav-foot, .nav-ico, .nav-backdrop, .nav-cta-ico { display: none; }
.nav .chev { display: inline-flex; margin-left: 4px; }
.nav .chev .ico { width: 14px; height: 14px; transition: transform .25s; }
.nav .dropdown > button { display: inline-flex; align-items: center; }
.dropdown:hover .chev .ico { transform: rotate(180deg); }

@media (max-width: 1200px) {
  /* Sans flou : le flou ferait de l'en-tête le repère du menu plein écran (menu coupé). */
  .site-header { backdrop-filter: none; background: #fff; }
  .menu-toggle { display: block; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
  .nav-backdrop { touch-action: none; }
  body.menu-open .to-top, body.menu-open .wa-float, body.menu-open .toasts { display: none; }

  /* Fond assombri derrière le panneau */
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(4,14,34,.55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }

  /* Panneau latéral */
  .nav { position: fixed; z-index: 2; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 28px; overflow-y: auto; overscroll-behavior: contain;
    background: radial-gradient(ellipse at 100% 0%, rgba(242,183,5,.18), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(31,174,99,.18), transparent 55%), linear-gradient(165deg, var(--blue-dark), var(--blue) 65%, var(--blue-2));
    box-shadow: -24px 0 60px rgba(0,0,0,.35); transform: translateX(105%); visibility: hidden; transition: transform .38s cubic-bezier(.2,.8,.2,1), visibility .38s; }
  .nav.open { transform: none; visibility: visible; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 16px 22px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
  .nav-head img { height: 54px; width: auto; }
  .nav-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, transform .2s; }
  .nav-close:hover { background: var(--yellow); color: var(--blue-dark); transform: rotate(90deg); }
  .nav-close .ico { width: 22px; height: 22px; }

  /* Rubriques */
  .nav > a, .nav .dropdown > button { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 22px; border: 0; border-radius: 0; background: none; color: #e8f0fb; font-size: 1rem; font-weight: 600; letter-spacing: .01em; text-transform: none; text-align: left; transition: background .2s, color .2s; }
  .nav > a:hover, .nav .dropdown > button:hover { background: rgba(255,255,255,.05); color: #fff; }
  .nav > a.active, .nav .dropdown.current > button { color: #fff; background: rgba(255,255,255,.07); box-shadow: none; }
  .nav > a.active::before, .nav .dropdown.current > button::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--yellow); }
  .nav-ico { display: inline-flex; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; align-items: center; justify-content: center; background: rgba(255,255,255,.07); color: var(--yellow-light); transition: background .2s, color .2s; }
  .nav-ico .ico { width: 20px; height: 20px; }
  .nav > a.active .nav-ico, .nav .dropdown.current > button .nav-ico { background: var(--yellow); color: var(--blue-dark); }
  .nav .chev { margin-left: auto; color: #9fb3d1; }
  .nav .chev .ico { width: 18px; height: 18px; }
  .dropdown:hover .chev .ico { transform: none; }
  .nav .dropdown.open .chev .ico { transform: rotate(180deg); }

  /* Volets dépliants */
  .dropdown-menu, .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; position: static; min-width: 0; padding: 0; margin: 0; border-radius: 0; box-shadow: none; background: rgba(0,0,0,.18); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .dropdown.open .dropdown-menu { max-height: 520px; }
  .dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 22px 11px 74px; border-radius: 0; color: #c9d7ec; font-size: .95rem; font-weight: 500; }
  .dropdown-menu a .ico { color: #9fb3d1; }
  .dropdown-menu a:hover { background: rgba(255,255,255,.05); color: #fff; }
  .dropdown-menu a.active { color: var(--yellow-light); }
  .dropdown-menu a.active .ico { color: var(--yellow-light); }

  /* Bouton Contact et pied du panneau */
  .nav .nav-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 22px 0; padding: 14px; border-radius: 999px; background: var(--green); color: #fff; font-size: 1rem; text-transform: none; letter-spacing: .02em; }
  .nav .nav-cta:hover { background: var(--green-light); color: #fff; }
  .nav-cta-ico { display: inline-block; }
  .nav-foot { display: flex; flex-direction: column; gap: 10px; margin: 14px 22px 0; }
  .nav-foot .btn { font-size: .95rem; }
  .nav-foot-line { display: flex; align-items: center; gap: 10px; color: #c9d7ec; font-size: .92rem; }
  .nav-foot-line:hover { color: #fff; }
  .nav-foot-line .ico { color: var(--yellow-light); }
  .nav-foot-tagline { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); color: #9fb3d1; font-style: italic; font-size: .85rem; line-height: 1.5; }

  /* Apparition des rubriques l'une après l'autre */
  .nav.open > * { animation: nav-in .45s cubic-bezier(.2,.8,.2,1) both; }
  .nav.open > *:nth-child(2) { animation-delay: .04s; } .nav.open > *:nth-child(3) { animation-delay: .08s; }
  .nav.open > *:nth-child(4) { animation-delay: .12s; } .nav.open > *:nth-child(5) { animation-delay: .16s; }
  .nav.open > *:nth-child(6) { animation-delay: .20s; } .nav.open > *:nth-child(7) { animation-delay: .24s; }
  .nav.open > *:nth-child(8) { animation-delay: .28s; } .nav.open > *:nth-child(9) { animation-delay: .32s; }
  .nav.open > *:nth-child(10) { animation-delay: .36s; } .nav.open > *:nth-child(11) { animation-delay: .40s; }
  @keyframes nav-in { from { opacity: 0; transform: translateX(24px); } }
}
@media (max-width: 1200px) and (prefers-reduced-motion: reduce) { .nav, .nav-backdrop, .dropdown-menu { transition: none; } .nav.open > * { animation: none; } }

/* Héros */
.hero { position: relative; min-height: calc(100vh - 72px); display: flex; align-items: center; color: var(--white); background: var(--blue-dark) center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,26,61,.94) 0%, rgba(6,26,61,.78) 45%, rgba(6,26,61,.30) 100%); }
.hero.no-photo { background: radial-gradient(ellipse at 80% 40%, rgba(31,174,99,.25), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(242,183,5,.18), transparent 50%), linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, var(--blue-2)); }
.hero.no-photo::before { display: none; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.hero-logo { width: 100%; max-width: 440px; justify-self: center; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { max-width: 240px; order: -1; } }
@media (max-width: 860px) { .hero::before { background: linear-gradient(180deg, rgba(6,26,61,.80) 0%, rgba(6,26,61,.88) 60%, rgba(6,26,61,.95) 100%); } }
.hero-photo { position: absolute; top: 0; right: 0; height: 100%; width: 58%; object-fit: cover; object-position: center 20%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, #000 40%); }
@media (max-width: 860px) { .hero-photo { width: 100%; opacity: .38; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); } }
.hero .container { z-index: 1; position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: var(--white); margin-bottom: .3em; font-size: clamp(2.3rem, 6.5vw, 5rem); letter-spacing: .04em; }
.hero h1 b { color: var(--yellow); font-weight: 700; }
.hero-titles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-titles span { border: 1px solid rgba(255,210,63,.5); color: var(--yellow-light); padding: 4px 12px; border-radius: 999px; font-size: .8rem; }
.hero blockquote { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-style: italic; margin: 0 0 22px; max-width: 680px; border-left: 4px solid var(--yellow); padding-left: 18px; color: #e8f0fb; }
.hero p { max-width: 640px; color: #c9d7ec; }

.page-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue) 70%, var(--blue-2)); color: var(--white); padding: 70px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); margin-bottom: .2em; }
.page-hero .lead { color: #c9d7ec; }
.breadcrumb { font-size: .85rem; color: #9fb3d1; margin-bottom: 10px; }
.breadcrumb a { color: var(--yellow-light); }

/* Grilles et cartes */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 56px 0; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
a.card { color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,42,91,.18); color: inherit; }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--soft); }
.card-img.square { aspect-ratio: 1; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-meta { font-size: .8rem; color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.card-foot { margin-top: auto; padding-top: 12px; }
.placeholder-img { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, var(--blue-2), var(--green)); color: var(--yellow-light); }

.service-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: inherit; overflow: hidden; isolation: isolate; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--yellow), var(--green)); transform: scaleX(.25); transform-origin: left; transition: transform .35s; }
.service-card::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(242,183,5,.14), transparent 70%); transition: transform .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11,42,91,.16); border-color: transparent; color: inherit; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { transform: scale(1.35); }
.service-icon { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: var(--yellow-light); box-shadow: 0 10px 22px rgba(11,42,91,.22); transition: transform .3s, background .3s, color .3s; }
.service-icon .ico { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--yellow), var(--yellow-light)); color: var(--blue-dark); transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: .45em; }
.service-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.service-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--green); }
.service-more .ico { transition: transform .25s; }
.service-card:hover .service-more .ico { transform: translateX(5px); }
.block .service-icon { width: 52px; height: 52px; border-radius: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .92rem; }
.section-dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--soft); }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.list-check li:last-child { border-bottom: 0; }
.list-check li::before { content: "◆"; position: absolute; left: 4px; color: var(--green); font-size: .8rem; top: 10px; }

.block { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.block h3 { color: var(--green); }

.quote-band { background: var(--green); color: var(--white); border-top: 4px solid var(--yellow); border-bottom: 4px solid var(--yellow); text-align: center; padding: 56px 20px; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; font-size: clamp(1.3rem, 3vw, 2rem); font-style: italic; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.filters a.active, .filters a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Musique */
.track { display: grid; grid-template-columns: 140px 1fr; gap: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.track img, .track .placeholder-img { width: 140px; height: 100%; min-height: 140px; object-fit: cover; }
.track-body { padding: 18px 20px 18px 0; }
.track-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 520px) { .track { grid-template-columns: 1fr; } .track img, .track .placeholder-img { width: 100%; height: 220px; } .track-body { padding: 0 18px 18px; } }

/* Titres musicaux : cartes cliquables et page de détail */
.tracks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 340px)); gap: 24px; justify-content: center; }
.track-card .track-cover { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--soft); }
.track-card .track-cover img, .track-card .track-cover .placeholder-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.track-card:hover .track-cover img { transform: scale(1.05); }
.track-play { position: absolute; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); color: var(--blue-dark); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); transform: translateY(8px); opacity: .92; transition: transform .25s, opacity .25s, background .25s; }
.track-play .ico { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.track-card:hover .track-play { transform: none; opacity: 1; background: var(--yellow-light); }
.track-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.track-foot .service-more { padding-top: 0; }
.track-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--blue-2); background: var(--soft); padding: 3px 10px; border-radius: 999px; }
.track-hero { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.track-hero-cover img, .track-hero-cover .placeholder-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
@media (max-width: 760px) { .track-hero { grid-template-columns: 1fr; gap: 24px; } .track-hero-cover { max-width: 260px; } }
.track-video { max-width: 900px; margin: 0 auto; scroll-margin-top: 100px; }
.video-file { width: 100%; border-radius: var(--radius); background: #000; display: block; box-shadow: var(--shadow); }
.track-actions { margin-top: 18px; }
.track-tags { display: inline-flex; gap: 6px; }
.btn-youtube { background: #ff0000; color: #fff; }
.btn-youtube:hover { background: #cc0000; color: #fff; }
/* Lecteur audio */
.player { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px; padding: 14px 18px 14px 14px; max-width: 620px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,210,63,.35); backdrop-filter: blur(6px); }
.player-btn { flex: 0 0 auto; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--yellow); color: var(--blue-dark); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(242,183,5,.35); transition: transform .15s, background .2s; }
.player-btn:hover { background: var(--yellow-light); transform: scale(1.05); }
.player-btn .ico { width: 26px; height: 26px; fill: currentColor; }
.player-btn .ico-play { margin-left: 4px; }
.player-btn .ico-pause, .player.is-playing .player-btn .ico-play { display: none; }
.player.is-playing .player-btn .ico-pause { display: block; }
.player-main { flex: 1; min-width: 0; }
.player-title { display: flex; gap: 10px; align-items: baseline; color: #fff; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title span { color: #c9d7ec; font-size: .85rem; }
.player-bar { display: flex; align-items: center; gap: 10px; }
.player-time { font-size: .78rem; color: #c9d7ec; font-variant-numeric: tabular-nums; min-width: 36px; }
.player-bar input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; cursor: pointer; background: linear-gradient(90deg, var(--yellow) var(--p, 0%), rgba(255,255,255,.2) var(--p, 0%)); }
.player-bar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(242,183,5,.35); }
.player-bar input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
@media (max-width: 520px) { .player { padding: 12px; gap: 12px; } .player-btn { width: 52px; height: 52px; } }
.lyrics p { font-style: italic; line-height: 1.9; }

/* Vidéos */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lite { cursor: pointer; }
.video-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: .2s; }
.video-lite:hover img { opacity: 1; }
.video-lite::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: var(--yellow); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: 5px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { display: block; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; color: #fff; font-size: .8rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.lightbox { position: fixed; inset: 0; background: rgba(4,14,34,.95); z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 8px; }
.lightbox p { color: #eee; margin-top: 12px; text-align: center; max-width: 800px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* Partenaires */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.partner { background: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 18px; aspect-ratio: 3/2; box-shadow: var(--shadow); color: var(--ink); text-align: center; font-weight: 600; font-size: .9rem; }
.partner img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.partner:hover img { filter: none; opacity: 1; }

/* Formulaires */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
@media (max-width: 520px) { .form-card { padding: 22px 18px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .req { color: var(--green); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=date],
.field input[type=file], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 1rem; background: #ffffff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(242,183,5,.15); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .error, .errorlist { color: var(--bad); font-size: .85rem; margin: 4px 0 0; padding: 0; list-style: none; }
.field-check { display: flex; gap: 10px; align-items: flex-start; }
.field-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--yellow); }
.field-check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Messages */
.messages { position: fixed; top: 84px; right: 16px; left: 16px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.alert { pointer-events: auto; max-width: 480px; padding: 14px 18px; border-radius: 10px; background: var(--white); box-shadow: var(--shadow); border-left: 5px solid var(--yellow); }
.alert-success { border-color: var(--ok); }
.alert-error { border-color: var(--bad); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.pagination .current { background: var(--blue); color: #fff; }

/* Article */
.article-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; }
.prose { font-size: 1.05rem; max-width: 760px; }
.prose p { margin-bottom: 1.2em; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.date-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 10px; border-radius: 12px; background: var(--blue); color: var(--white); line-height: 1.1; }
.date-badge b { font-family: var(--font-num); font-size: 2rem; font-weight: 400; color: var(--yellow-light); }
.date-badge span { font-size: .75rem; text-transform: uppercase; }
.agenda-item { display: flex; gap: 20px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: inherit; }
.agenda-item:hover { color: inherit; }

/* Pied de page */
.site-footer { background: var(--blue-dark); color: #9fb3d1; padding: 64px 0 24px; font-size: .92rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.site-footer a { color: #c9d7ec; }
.site-footer a:hover { color: var(--yellow-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.socials a:hover { background: var(--yellow); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.wa-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 28px; border-radius: var(--radius); background: linear-gradient(135deg, #e8fbef, #f4fff8); border: 1px solid #b9efcd; }
.wa-card-icon { width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wa-card-icon .ico { width: 28px; height: 28px; }
.wa-card > div { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.wa-card strong { color: var(--blue); }
.wa-card span { color: var(--muted); font-size: .9rem; }
.contact-needs a { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.contact-needs a:hover { color: var(--green); }
.wa-hint { margin-left: auto; color: #25d366; opacity: 0; transform: translateX(-6px); transition: .2s; }
.contact-needs a:hover .wa-hint { opacity: 1; transform: none; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ==========================================================================
   FESCOSLAM
   ========================================================================== */
.fs-hero { background: radial-gradient(ellipse at top right, rgba(242,183,5,.28), transparent 55%), radial-gradient(ellipse at bottom left, rgba(31,174,99,.22), transparent 50%), var(--blue-dark); color: var(--white); padding: 64px 0; }
.fs-hero h1, .fs-hero h2, .fs-hero h3, .hero h2, .page-hero h2, .section-dark h1 { color: var(--white); }
.fs-hero .theme { color: var(--yellow-light); font-size: 1.15rem; font-style: italic; }
.fs-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .fs-hero-grid { grid-template-columns: 1fr; } }
.fs-poster { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); max-height: 460px; object-fit: cover; width: 100%; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.1); color: var(--yellow-light); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status-voting, .status-registration { color: #5ee08a; }
.status-voting::before, .status-registration::before { animation: pulse 1.4s infinite; }
.status-suspended { color: #ff8a80; }
.status-finished { color: #c9d7ec; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.countdown { margin: 22px 0; }
.countdown .label { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #c9d7ec; margin-bottom: 10px; }
.countdown .boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 10px; }
.countdown .box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,210,63,.35); border-radius: 12px; padding: 10px 4px; text-align: center; }
@media (max-width: 400px) { .countdown .box b { font-size: 2.1rem; } .countdown .box span { font-size: .62rem; letter-spacing: .04em; } }
.countdown .box b { display: block; font-family: var(--font-num); font-size: 2.6rem; font-weight: 400; color: var(--yellow-light); line-height: 1; }
.countdown .box span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #c9d7ec; }
.countdown .target { font-size: .85rem; color: #9fb3d1; margin-top: 8px; }
.countdown-light .label, .countdown-light .box span, .countdown-light .target { color: var(--muted); }
.countdown-light .box { background: var(--white); border-color: var(--line); }
.countdown-light .box b { color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--white); border-radius: 12px; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--font-num); font-size: 2.3rem; font-weight: 400; color: var(--green); line-height: 1; }
.stat span { font-size: .8rem; color: var(--muted); }

.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 30px; scrollbar-width: none; }
.tabs a { padding: 12px 18px; white-space: nowrap; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active, .tabs a:hover { color: var(--green); border-color: var(--yellow); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; margin-bottom: 40px; }
.podium .p { position: relative; text-align: center; background: var(--white); border-radius: var(--radius); padding: 26px 12px 20px; box-shadow: var(--shadow); color: inherit; display: flex; flex-direction: column; align-items: center; border-top: 5px solid var(--line); transition: transform .25s, box-shadow .25s; }
.podium .p:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,42,91,.16); color: inherit; }
/* Même taille de photo pour les trois places */
.podium .p img { width: 110px; height: 110px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; margin: 0 0 12px; border: 4px solid var(--line); }
.podium .p1 { border-top-color: var(--yellow-light); background: linear-gradient(180deg, #fffbea, var(--white) 55%); }
.podium .p1 img { border-color: var(--yellow-light); box-shadow: 0 0 0 5px rgba(255,210,63,.25); }
.podium .p2 { border-top-color: #b8b8b8; }
.podium .p2 img { border-color: #cfcfcf; }
.podium .p3 { border-top-color: #c77b3d; }
.podium .p3 img { border-color: #dca578; }
.podium .medal { font-family: var(--font-num); font-size: 1.8rem; color: var(--green); line-height: 1.1; }
.podium .name { font-weight: 700; line-height: 1.25; }
.podium .points { margin-top: auto; padding-top: 6px; }
.podium .p1 { order: 1; } .podium .p2 { order: 2; } .podium .p3 { order: 3; }
@media (max-width: 560px) { .podium { gap: 8px; } .podium .p { padding: 14px 6px 12px; } .podium .p img { width: 64px; height: 64px; border-width: 3px; margin-bottom: 8px; } .podium .name { font-size: .82rem; } .podium .small { font-size: .7rem; } .podium .points { font-size: 1.25rem; } .podium .medal { font-size: 1.4rem; } }

.search-box { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 14px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--green); }
.search-input { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 999px; padding: 0 16px; background: var(--white); transition: border-color .15s; }
.search-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,128,74,.15); }
.search-input input { flex: 1; border: 0; outline: none; padding: 13px 0; font-family: inherit; font-size: 1rem; background: transparent; color: var(--ink); min-width: 0; }
.search-box select { padding: 12px 16px; border: 2px solid var(--line); border-radius: 999px; font-family: inherit; font-size: .95rem; background: var(--white); color: var(--ink); max-width: 100%; }
.search-count { margin: 0 0 18px 6px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.toolbar input, .toolbar select { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-family: inherit; font-size: .95rem; background: var(--white); }
.toolbar input { flex: 1; min-width: 180px; }

.candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.cand { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.cand:hover { transform: translateY(-4px); color: inherit; }
.cand-photo { position: relative; aspect-ratio: 1; background: var(--soft); }
.cand-photo img { width: 100%; height: 100%; object-fit: cover; }
.cand .rank { position: absolute; top: 10px; left: 10px; background: var(--blue); color: var(--yellow-light); font-family: var(--font-num); font-size: 1.5rem; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 23px; display: flex; align-items: center; justify-content: center; }
.cand .move { position: absolute; top: 14px; right: 10px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--white); }
.move.up { color: var(--ok); } .move.down { color: var(--bad); }
.cand-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.cand-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.cand-school { font-size: .85rem; color: var(--muted); margin: 2px 0 10px; }
.cand-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.points { font-family: var(--font-num); font-size: 1.6rem; color: var(--green); line-height: 1; }
.points small { font-family: var(--font); font-size: .75rem; color: var(--muted); }
.cand.eliminated { opacity: .55; }
.cand.eliminated .cand-photo img { filter: grayscale(1); }
.tag-elim { position: absolute; bottom: 10px; left: 10px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }
.cand.flash { animation: flash 1.2s; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--yellow-light); } 100% { box-shadow: var(--shadow); } }

.ranking-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ranking-table th, .ranking-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.ranking-table th { background: var(--blue); color: var(--white); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ranking-table td img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.cand-profile { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.cand-vote { position: sticky; top: 90px; }
@media (max-width: 860px) { .cand-vote { position: static; } }
.cand-hero { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; }
.cand-hero-photo { position: relative; display: block; }
.cand-hero-photo img { width: 200px; height: 200px; object-fit: cover; border-radius: 22px; border: 4px solid var(--yellow); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.cand-hero-rank { position: absolute; left: -10px; top: -10px; min-width: 56px; height: 56px; padding: 0 10px; border-radius: 28px; background: var(--green); color: #fff; font-family: var(--font-num); font-size: 1.9rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.cand-hero-rank small { font-family: var(--font); font-size: .8rem; margin-left: 2px; }
.cand-hero-text { color: #e8f0fb; margin: 4px 0 14px; }
.cand-hero-text .ico { color: var(--yellow-light); }
.cand-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.cand-hero-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; font-size: .88rem; }
.cand-hero-stats .ico { color: var(--yellow-light); }
.cand-hero-stats .is-out { background: var(--bad); border-color: var(--bad); }
@media (max-width: 640px) { .cand-hero { grid-template-columns: 1fr; gap: 20px; } .cand-hero-photo img { width: 150px; height: 150px; } }
.cand-about h2 { margin-top: 0; }
.cand-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; }
.cand-facts div { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.cand-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cand-facts dt .ico { color: var(--green); }
.cand-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--blue); }
@media (max-width: 520px) { .cand-facts { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .cand-profile { grid-template-columns: 1fr; } }
.cand-profile .photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1; object-fit: cover; }
.cand-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.cand-info div { background: var(--white); border-radius: 12px; padding: 12px; text-align: center; box-shadow: var(--shadow); }
.cand-info b { display: block; font-family: var(--font-num); font-size: 2rem; font-weight: 400; color: var(--green); line-height: 1; }
.cand-info span { font-size: .75rem; color: var(--muted); text-transform: uppercase; }

.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pack { position: relative; }
.pack input { position: absolute; opacity: 0; }
.pack label { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; cursor: pointer; background: #ffffff; transition: .15s; height: 100%; }
.pack label b { display: block; font-family: var(--font-num); font-size: 1.7rem; font-weight: 400; color: var(--green); line-height: 1.1; }
.pack label span { display: block; font-size: .8rem; color: var(--muted); }
.pack label em { display: inline-block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: .85rem; background: var(--soft); padding: 2px 10px; border-radius: 999px; }
.pack input:checked + label { border-color: var(--yellow); background: #fff8db; box-shadow: 0 0 0 3px rgba(242,183,5,.15); }
.points-preview { background: var(--blue); color: var(--white); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; margin: 16px 0; }
.points-preview b { font-family: var(--font-num); font-size: 2rem; font-weight: 400; color: var(--yellow-light); }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.wall-item { background: var(--white); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); border-left: 4px solid var(--yellow); }
.wall-item b { display: block; }
.wall-item .amt { color: var(--green); font-weight: 700; font-size: .9rem; }
.wall-item p { margin: 8px 0 0; font-style: italic; color: var(--muted); font-size: .92rem; }
.progress { height: 14px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--yellow), var(--yellow-light)); border-radius: 999px; }
.section-sand .progress, .form-card .progress { background: var(--soft); }

.laureates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.laureate { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 24px 18px; border-top: 5px solid var(--yellow-light); }
.laureate img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid var(--soft); }
.laureate .prize { color: var(--green); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; gap: 12px; align-items: center; background: var(--white); padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); }
.doc-list a::before { content: "📄"; font-size: 1.4rem; }

/* Partenaires : bandeau défilant, cartes, page de détail */
.partners-band { background: var(--white); border-bottom: 1px solid var(--line); padding: 20px 0 22px; }
.partners-band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.partners-band-head .eyebrow { margin: 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee.is-static { -webkit-mask-image: none; mask-image: none; }
.marquee.is-static .marquee-track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; } .marquee-track [aria-hidden="true"] { display: none; } }
.partner-chip { display: flex; flex-direction: column; align-items: center; width: 168px; margin: 6px 9px; color: var(--ink); text-align: center; }
.partner-chip:hover { color: var(--green); }
.partner-chip-logo { width: 150px; height: 86px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 10px; transition: .2s; }
.partner-chip:hover .partner-chip-logo { border-color: var(--yellow); box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-chip-logo img { max-height: 64px; width: auto; object-fit: contain; }
.partner-chip-logo b, .partner-card-logo b, .partner-hero-logo b { font-family: var(--font-title); color: var(--blue); font-size: 1.6rem; }
.partner-chip-name { font-weight: 600; font-size: .85rem; margin-top: 8px; line-height: 1.25; }
.partner-chip-role { font-size: .72rem; color: var(--muted); }
.partner-card-logo { height: 150px; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--soft); border-bottom: 1px solid var(--line); }
.partner-card-logo img { max-height: 100px; width: auto; object-fit: contain; }
.partner-hero { display: flex; gap: 32px; align-items: center; }
.partner-hero-logo { flex: 0 0 auto; width: 180px; height: 180px; border-radius: 20px; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.partner-hero-logo img { max-height: 140px; width: auto; object-fit: contain; }
@media (max-width: 640px) { .partner-hero { flex-direction: column; align-items: flex-start; gap: 18px; } .partner-hero-logo { width: 120px; height: 120px; } }
.partnership { display: block; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 14px; color: var(--ink); border-left: 4px solid var(--green); }
.partnership:hover { color: var(--ink); transform: translateY(-2px); }
.partnership-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.partnership-role { background: var(--yellow); color: var(--blue-dark); font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.partnership p { margin: 8px 0; color: var(--muted); font-size: .95rem; }
.mini-logos { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.mini-logos span { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: var(--blue); overflow: hidden; }
.mini-logos img { max-width: 32px; max-height: 32px; object-fit: contain; }
.edition-card .status { background: var(--blue); }
.test-banner { background: repeating-linear-gradient(45deg, #ffd54f 0 18px, #ffca28 18px 36px); color: #4e3400; text-align: center; padding: 10px; font-weight: 700; }
.result-icon { font-size: 4rem; line-height: 1; margin-bottom: 10px; }
.spinner { width: 46px; height: 46px; border: 5px solid var(--line); border-top-color: var(--yellow); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Interactions et animations
   ========================================================================== */
/* Apparition au défilement (classe ajoutée par le JavaScript uniquement) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.reveal-left { transform: translateX(-30px); }
.reveal.reveal-zoom { transform: scale(.94); }
.reveal.in { opacity: 1; transform: none; }

/* En-tête au défilement */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,42,91,.14); background: rgba(255,255,255,.98); }

/* Barre de progression de lecture en haut de page */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70; background: linear-gradient(90deg, var(--yellow), var(--green)); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Bouton retour en haut */
.to-top { position: fixed; right: 22px; bottom: 92px; z-index: 60; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(11,42,91,.3); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green); }
.to-top .ico { width: 22px; height: 22px; transform: rotate(-90deg); position: relative; z-index: 1; }
.to-top svg.ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; }

/* Accueil : titres qui s'écrivent, indicateur de défilement */
.hero-rotator { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #e8f0fb; margin: -4px 0 18px; min-height: 1.6em; }
.hero-rotator b { color: var(--yellow-light); font-weight: 600; }
.hero-rotator .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--yellow-light); vertical-align: -0.15em; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #c9d7ec; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint span { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow-light); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
.scroll-hint:hover { color: #fff; }
@media (max-width: 860px) { .scroll-hint { display: none; } }
.hero-photo { will-change: transform; }

/* Effet de brillance au survol des boutons principaux */
.btn-primary, .btn-green, .btn-whatsapp { position: relative; overflow: hidden; }
.btn-primary::after, .btn-green::after, .btn-whatsapp::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-primary:hover::after, .btn-green:hover::after, .btn-whatsapp:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }

/* Notifications « nouveau vote » */
.toasts { position: fixed; left: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 110px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 14px 40px rgba(11,42,91,.22); border-left: 4px solid var(--green); animation: toast-in .45s cubic-bezier(.2,.8,.2,1); }
.toast:hover { color: var(--ink); }
.toast.out { animation: toast-out .35s forwards; }
.toast .toast-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.toast small { display: block; color: var(--muted); font-size: .75rem; }
.toast strong { color: var(--blue); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-30px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-30px); } }

/* Confettis */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* Blocs de services : la dernière ligne remplit toujours la largeur */
.blocks-fill { display: flex; flex-wrap: wrap; gap: 24px; }
.blocks-fill > * { flex: 1 1 calc(33.333% - 16px); min-width: 280px; }
.blocks-fill.n4 > *, .blocks-fill.n2 > * { flex-basis: calc(50% - 12px); }
.blocks-fill.n1 > * { flex-basis: 100%; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-rotator .caret, .scroll-hint span::after { animation: none; }
  .toast { animation: none; }
  html { scroll-behavior: auto; }
}

/* Actualités : la mise en page remplit toujours la largeur */
.cards-fill { display: flex; flex-wrap: wrap; gap: 24px; }
.cards-fill > * { flex: 1 1 calc(33.333% - 16px); min-width: 280px; }
.cards-fill.n2 > * { flex-basis: calc(50% - 12px); }
.news-feature { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; }
.news-feature-img { position: relative; min-height: 340px; background: var(--soft); overflow: hidden; }
.news-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-feature:hover .news-feature-img img { transform: scale(1.04); }
.news-badge { position: absolute; top: 16px; left: 16px; background: var(--yellow); color: var(--blue-dark); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.news-feature .card-body { padding: 32px 34px; justify-content: center; }
.news-feature h3 { font-family: var(--font-title); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--blue); margin-bottom: .4em; }
.news-feature .news-feature-summary { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.news-feature .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .news-feature { grid-template-columns: 1fr; } .news-feature-img { min-height: 220px; } .news-feature .card-body { padding: 22px; } }

/* Icônes chargées depuis l'administration (images) */
.service-icon.has-image, .icon-big.has-image { background: var(--white); border: 1px solid var(--line); padding: 8px; box-shadow: 0 10px 22px rgba(11,42,91,.12); }
.service-icon.has-image img, .icon-big.has-image img { width: 100%; height: 100%; object-fit: contain; }
.service-card:hover .service-icon.has-image { background: var(--white); border-color: var(--yellow); }
.icon-big.has-image { padding: 10px; }

/* Bandeaux d'en-tête avec image de fond (bannières des pages) */
.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.page-hero.has-bg { padding: 96px 0 80px; }
.page-hero-bg { position: absolute; z-index: -1; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 25%, #000 60%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 25%, #000 60%); }
.has-bg::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(6,26,61,.6) 0%, rgba(6,26,61,.3) 55%, rgba(6,26,61,.5) 100%); pointer-events: none; }
.has-bg > .container { position: relative; }
@media (max-width: 760px) {
  .page-hero.has-bg { padding: 64px 0 52px; }
  .page-hero-bg { width: 100%; opacity: .35; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
}

/* Accueil : diaporama de fond */
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; will-change: transform; }
.hero-slide { position: absolute; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-wide { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-portrait { top: 0; right: 0; width: 58%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, #000 40%); }
.hero-slide.active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,26,61,.93) 0%, rgba(6,26,61,.7) 42%, rgba(6,26,61,.2) 100%); }
.hero-dots { position: absolute; z-index: 2; right: 28px; bottom: 26px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.hero-dots button.active { width: 28px; background: var(--yellow-light); }
.hero-dots button:hover { background: #fff; }
@media (max-width: 860px) {
  .hero-slide.is-portrait { width: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
  .hero-slides::after { background: linear-gradient(180deg, rgba(6,26,61,.75), rgba(6,26,61,.9)); }
  .hero-dots { right: 50%; transform: translateX(50%); bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide.active { animation: none; } .hero-slide { transition: none; } }

/* Petits écrans : le nom et le bouton du menu ne se chevauchent jamais */
.header-inner { min-width: 0; }
.brand { min-width: 0; }
.menu-toggle { flex: 0 0 auto; }
@media (max-width: 480px) {
  .brand { font-size: 1.08rem; gap: 8px; letter-spacing: .05em; }
  .brand img { height: 40px; }
}
@media (max-width: 360px) {
  .brand { font-size: .95rem; letter-spacing: .03em; }
  .brand img { height: 34px; }
}

/* Accueil : mosaïque « En images » */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.mosaic a { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--blue-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s ease, filter .4s; }
.mosaic a:hover img { transform: scale(1.07); filter: brightness(1.05); }
.mosaic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(6,26,61,.85)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.mosaic a:hover span { opacity: 1; transform: none; }
.mosaic .m1 { grid-column: span 2; grid-row: span 2; }
.mosaic .m6, .mosaic .m7 { grid-column: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .mosaic .m6, .mosaic .m7 { grid-column: span 1; }
  .mosaic span { opacity: 1; transform: none; font-size: .75rem; padding: 20px 10px 8px; }
}

/* Photo d'introduction d'un service : cadrée, jamais démesurée */
.service-photo { width: 100%; max-height: 460px; object-fit: cover; object-position: center 25%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .service-photo { max-height: 340px; } }

/* En-tête : logo décalé vers la gauche (conteneur plus large que le contenu des pages) */
.site-header .header-inner { max-width: 1280px; padding-left: 16px; }
@media (max-width: 1200px) { .site-header .header-inner { padding-left: 10px; } }

/* Cartes de services avec photo */
.service-card.has-photo { padding-top: 0; }
.service-card-photo { display: block; margin: 0 -28px; height: 200px; overflow: hidden; background: var(--soft); }
.service-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s ease; }
.service-card:hover .service-card-photo img { transform: scale(1.06); }
.service-card.has-photo .service-icon { position: relative; z-index: 1; width: 54px; height: 54px; margin: -27px 0 14px; border: 3px solid var(--white); }
.service-card.has-photo .service-icon .ico { width: 24px; height: 24px; }
.service-card.has-photo::before { z-index: 2; }
@media (max-width: 640px) { .service-card-photo { height: 180px; } }

/* Recadrage des photos : on garde le haut de l'image (les visages) plutôt que le centre */
.card-img, .article-cover, .news-feature-img img, .track-card .track-cover img, .track-hero-cover img,
.project .article-cover, .gallery img, .partner-card-logo img { object-position: center 18%; }
.partner-card-logo img { object-position: center; }
/* Page d'un article : une photo verticale s'affiche entière, centrée */
.article-cover.is-portrait { width: auto; max-width: 100%; max-height: 680px; margin-left: auto; margin-right: auto; display: block; object-fit: contain; }
/* « À la une » avec une photo verticale : colonne image plus étroite, cadrage sur le haut */
.news-feature.cover-portrait { grid-template-columns: .8fr 1fr; }
.news-feature.cover-portrait .news-feature-img { min-height: 440px; }
.news-feature.cover-portrait .news-feature-img img { object-position: center 12%; }
@media (max-width: 760px) { .news-feature.cover-portrait .news-feature-img { min-height: 320px; } }

/* FESCOSLAM sans affiche : le texte occupe toute la largeur */
.fs-hero-grid.no-poster { grid-template-columns: 1fr; max-width: 900px; margin-left: auto; margin-right: auto; }

/* Photos des formations : format 4/3, cadrées sur le haut */
.training-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 15%; border-radius: 12px; margin-bottom: 16px; }
/* Images affichées entières (logos, couverture verticale) : centrées */
.article-cover.is-portrait, .partner-chip-logo img, .partner-hero-logo img, .mini-logos img, .brand img, .footer-logo { object-position: center; }
