/* =====================================================================================
   Design « 2026 » — inspiré de « AI generation process web design » (Dribbble) :
   fond clair à fines diagonales, grands titres très gras, forme colorée animée,
   cartes flottantes, boutons arrondis, en-tête blanc.
   Chargé APRÈS style.css sur toutes les pages : retirer ce fichier rétablit l'ancien design.
   ===================================================================================== */
:root {
  --display: "Plus Jakarta Sans", var(--sans);
  --rose: #E5336D;
  --rose-soft: #FDE4EC;
  --title: #12161F; /* titres très foncés, comme la maquette */
  --chip: #EEF0F4; /* champ de recherche, formes grises */
  --radius: 20px;
  --glow: linear-gradient(100deg, #F1C75B 0%, #F2994A 22%, #E5336D 46%, #7B4FE0 70%, #1A99A5 100%);
  --soft-shadow: 0 1px 0 rgba(15,40,71,.04), 0 22px 44px -26px rgba(15,40,71,.38);
}
:root[data-theme="dark"] { --title: #F1F5FB; --chip: #172235; --rose-soft: rgba(229,51,109,.18); }

/* Un élément masqué (attribut hidden) l'est toujours, même si une règle lui donne un affichage. */
[hidden] { display: none !important; }

/* ---------- Typographie et fond ---------- */
h1, h2, h3, .stat strong, .split-img .float strong { font-family: var(--display); letter-spacing: -.025em; }
h1, h2 { font-weight: 800; }
body { background-image: repeating-linear-gradient(112deg, transparent 0 150px, rgba(23,59,102,.03) 150px 151px); }
:root[data-theme="dark"] body { background-image: repeating-linear-gradient(112deg, transparent 0 150px, rgba(255,255,255,.03) 150px 151px); }

/* ---------- Boutons, champs et cartes plus doux ---------- */
.btn { border-radius: 999px; }
.field input, .field select, .field textarea { border-radius: 12px; }
.card, .quick a, .feature, .value { border-radius: var(--radius); border-color: transparent; box-shadow: var(--soft-shadow); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .quick a, :root[data-theme="dark"] .feature, :root[data-theme="dark"] .value { border-color: var(--line); }
.cta-band, .split-img img, .split-img .float { border-radius: 26px; }
.badge { border-radius: 999px; }

/* ---------- En-tête clair (barre de navigation blanche) ---------- */
.mainnav { background: var(--surface); box-shadow: none; border-bottom: 1px solid var(--line); }
.mainnav li a { color: var(--muted); }
.mainnav li a:hover, .mainnav li a.active { color: var(--title); background: transparent; }
.mainnav li a.active::after { left: 50%; right: auto; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; transform: translateX(-50%); background: var(--rose); }
.burger, .theme-toggle { color: var(--title); }
.theme-toggle { border-color: var(--line); }
.theme-toggle:hover { background: var(--chip); }
.nav-cta .btn-gold { background: transparent; border: 1.5px solid var(--title); color: var(--title); }
.nav-cta .btn-gold:hover { background: var(--title); color: var(--surface); box-shadow: none; }
#header.scrolled .mainnav li a { color: var(--muted); }
#header.scrolled .mainnav li a:hover, #header.scrolled .mainnav li a.active { color: var(--title); background: transparent; }
@media (max-width: 860px) {
  .mainnav ul { background: var(--surface); }
  .mainnav li a.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; border-radius: 3px; transform: none; }
}

/* =====================================================================================
   Accueil : grand en-tête animé
   ===================================================================================== */
.nhero { position: relative; overflow: hidden; isolation: isolate; padding-top: 48px; }
.nhero-grid { position: relative; z-index: 3; /* au-dessus des cartes : la liste de suggestions peut les recouvrir */ display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }

.nh-tag { display: inline-block; background: var(--rose-soft); color: var(--rose); font-family: var(--display); font-weight: 800; font-size: 1.05rem; padding: 3px 12px; border-radius: 8px; margin-bottom: 16px; }
.nhero h1 { font-size: clamp(2.5rem, 5.6vw, 4.7rem); line-height: 1.03; color: var(--title); }
.nh-grad { background: var(--glow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nh-shine 7s linear infinite; }
.nh-lead { font-size: 1.15rem; line-height: 1.7; color: var(--muted); max-width: 540px; margin: 20px 0 30px; }

.nh-actions { position: relative; z-index: 5; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } /* liste de suggestions au premier plan */
.nh-search { position: relative; display: flex; align-items: center; width: min(100%, 360px); background: var(--chip); border-radius: 14px; transition: background .25s, box-shadow .25s; }
.nh-search:focus-within { background: var(--surface); box-shadow: 0 0 0 3px rgba(229,51,109,.2), var(--soft-shadow); }
.nh-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 17px 18px; color: var(--ink); font-size: .98rem; outline: none; }
.nh-search input::placeholder { color: var(--muted); }
.nh-search > button { margin-right: 6px; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 11px; background: var(--title); color: var(--surface); display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s; }
.nh-search > button:hover { background: var(--rose); color: #fff; transform: rotate(-8deg); }
.nh-sugg { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 26px 50px -22px rgba(15,40,71,.5); padding: 6px; max-height: 330px; overflow-y: auto; animation: nh-drop .18s ease both; }
.nh-sugg li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; cursor: pointer; font-size: .93rem; color: var(--ink); }
.nh-sugg li small { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.nh-sugg li mark { background: none; color: var(--rose); font-weight: 700; }
.nh-sugg li[aria-selected="true"], .nh-sugg li:hover { background: var(--rose-soft); }

.nh-play { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer; color: var(--title); font-weight: 700; font-size: 1rem; }
.nh-play .ring { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; transition: background .25s, color .25s, transform .25s; }
.nh-play .ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--rose); opacity: 0; animation: nh-wave 2.4s ease-out infinite; }
.nh-play:hover .ring { background: var(--title); color: var(--surface); transform: scale(1.06); }
.nh-play u { text-underline-offset: 5px; text-decoration-thickness: 2px; }

.nh-question { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; }
.nh-question:hover { color: var(--title); }
.nh-question i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: nh-ping 2s ease-out infinite; }

/* Illustration : forme grise + disque coloré tournant + photo en forme organique + cartes flottantes */
.nhero-art { position: relative; height: 570px; }
.nh-blob-grey { position: absolute; right: 0; top: 2%; width: 76%; height: 88%; background: var(--chip); border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; animation: nh-morph 14s ease-in-out infinite; }
.nh-blob-color { position: absolute; left: 3%; top: 19%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, #1A99A5, #7B4FE0, #E5336D, #F2994A, #F1C75B, #1A99A5); animation: nh-spin 20s linear infinite, nh-morph 11s ease-in-out infinite; }
.nh-blob-color::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(30px); }
.nh-photo { position: absolute; left: 31%; top: 1%; width: 52%; height: 80%; object-fit: cover; object-position: center 20%; border-radius: 46% 54% 40% 60% / 38% 42% 58% 62%; box-shadow: 0 0 0 7px var(--surface), 0 40px 70px -30px rgba(15,40,71,.75); animation: nh-morph2 16s ease-in-out infinite; }

.nh-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; background: var(--surface); border-radius: 15px; color: var(--ink); box-shadow: 0 24px 46px -20px rgba(15,40,71,.45); animation: nh-bob 6s ease-in-out infinite; transition: box-shadow .3s, scale .3s; }
.nh-float:hover { scale: 1.06; box-shadow: 0 30px 60px -22px rgba(229,51,109,.5); }
.nh-float b { display: block; font-family: var(--display); font-size: .98rem; color: var(--title); line-height: 1.25; }
.nh-float small { display: block; color: var(--muted); font-size: .78rem; }
.nh-float .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ic.pink { background: linear-gradient(135deg, #FF7BA4, #E5336D); }
.ic.orange { background: linear-gradient(135deg, #F9D35B, #F2994A); }
.ic.teal { background: linear-gradient(135deg, #3DDCB9, #1A99A5); }
.nh-float.f1 { left: 0; top: 40%; }
.nh-float.f2 { right: -2%; top: 57%; animation-delay: -2s; }
.nh-float.f3 { left: 9%; bottom: 4%; animation-delay: -4s; }

/* Gribouillis en pointillés (comme la maquette), qui « avancent » doucement */
.nh-doodle { position: absolute; z-index: 1; color: var(--muted); opacity: .45; pointer-events: none; }
.nh-doodle .dash { stroke-dasharray: 5 7; animation: nh-march 3s linear infinite; }
.nh-doodle.d1 { top: 2%; left: 40%; width: 90px; }
.nh-doodle.d2 { top: 38%; left: 2%; width: 30px; animation: nh-bob 5s ease-in-out infinite; }
.nh-doodle.d3 { bottom: 210px; left: 41%; width: 130px; }
.nh-doodle.d4 { bottom: 120px; right: 4%; width: 46px; animation: nh-bob 7s ease-in-out infinite; }
.nh-doodle.d5 { top: 6%; right: 2%; width: 70px; }

/* Trois cartes à image ronde, posées sur la bande sombre */
.nh-services { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 230px)); align-items: start; gap: 20px; padding-top: 70px; padding-bottom: 46px; }
.nh-card { position: relative; display: block; background: var(--surface); border-radius: 20px; padding: 58px 18px 22px; text-align: center; box-shadow: var(--soft-shadow); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.nh-card:nth-child(2) { margin-top: 12px; }
.nh-card:nth-child(3) { margin-top: 24px; }
.nh-card img { position: absolute; top: -46px; left: 50%; translate: -50% 0; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 14px 30px -14px rgba(15,40,71,.6); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.nh-card h3 { font-size: 1.12rem; color: var(--title); margin-bottom: 6px; }
.nh-card p { font-size: .87rem; color: var(--muted); line-height: 1.5; }
.nh-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--rose); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.nh-card:hover { transform: translateY(-10px); box-shadow: 0 34px 60px -28px rgba(15,40,71,.55); }
.nh-card:hover img { transform: rotate(-12deg) scale(1.1); }
.nh-card:hover .go, .nh-card:focus-visible .go { opacity: 1; transform: none; }

/* Bande sombre en diagonale qui rejoint le bandeau des chiffres */
.nh-dark { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: 1; background: var(--navy-dark); clip-path: polygon(0 42%, 46% 22%, 100% 72%, 100% 100%, 0 100%); }
.nhero + .stats { background: var(--navy-dark); }

/* Entrée de l'en-tête au chargement */
.nhero-text > * { animation: nh-in .85s cubic-bezier(.2,.7,.2,1) both; }
.nhero-text > :nth-child(2) { animation-delay: .08s; }
.nhero-text > :nth-child(3) { animation-delay: .16s; }
.nhero-text > :nth-child(4) { animation-delay: .24s; }
.nhero-text > :nth-child(5) { animation-delay: .32s; }
.nh-stage { position: absolute; inset: 0; animation: nh-pop 1.1s cubic-bezier(.2,.7,.2,1) both .1s; }
.nh-float { animation: nh-in .8s cubic-bezier(.2,.7,.2,1) both .55s, nh-bob 6s ease-in-out infinite 1.4s; }
.nh-float.f2 { animation-delay: .7s, -.6s; }
.nh-float.f3 { animation-delay: .85s, .2s; }
.nh-card { animation: nh-in .8s cubic-bezier(.2,.7,.2,1) both; }
.nh-card:nth-child(1) { animation-delay: .45s; }
.nh-card:nth-child(2) { animation-delay: .55s; }
.nh-card:nth-child(3) { animation-delay: .65s; }

/* ---------- Visite express (diaporama plein écran) ---------- */
.nh-tour { margin: auto; /* centrage (style.css remet toutes les marges à 0) */ padding: 0; border: 0; border-radius: 24px; width: min(940px, 94vw); max-height: 92vh; overflow: hidden; background: #0B1220; color: #fff; }
.nh-tour::backdrop { background: rgba(8,13,24,.78); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.nh-tour[open] { animation: nh-pop .4s cubic-bezier(.2,.7,.2,1) both; }
.tour-view { position: relative; aspect-ratio: 16 / 9; max-height: 92vh; }
.tour-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.tour-slide.on { opacity: 1; }
.tour-slide img { width: 100%; height: 100%; object-fit: cover; }
.tour-slide.on img { animation: nh-kenburns 7s ease-out both; }
.tour-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,13,24,.55) 0%, transparent 30%, transparent 45%, rgba(8,13,24,.9) 100%); }
.tour-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 34px 30px; }
.tour-cap span { display: inline-block; background: var(--rose); color: #fff; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.tour-cap h2 { color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.3rem); }
.tour-cap p { color: #d6dce6; max-width: 620px; margin-top: 6px; }
.tour-cap .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tour-slide.on .tour-cap > * { animation: nh-in .7s cubic-bezier(.2,.7,.2,1) both .15s; }
.tour-bars { position: absolute; top: 14px; left: 16px; right: 112px; z-index: 3; display: flex; gap: 6px; }
.tour-bars button { flex: 1; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; cursor: pointer; }
.tour-bars i { display: block; height: 100%; width: 0; background: #fff; }
.tour-bars button.done i { width: 100%; }
.tour-bars button.on i { animation: nh-fill var(--tour-ms, 6000ms) linear both; }
.nh-tour.paused .tour-bars button.on i { animation-play-state: paused; }
.tour-btn { position: absolute; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s; }
.tour-btn:hover { background: rgba(255,255,255,.3); }
.tour-close { top: 8px; right: 12px; }
.tour-pause { top: 8px; right: 60px; font-size: .78rem; letter-spacing: -1px; }
.tour-prev, .tour-next { top: 50%; translate: 0 -50%; }
.tour-prev { left: 14px; }
.tour-next { right: 14px; }

/* ---------- Animations ---------- */
@keyframes nh-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes nh-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes nh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes nh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes nh-spin { to { transform: rotate(360deg); } }
@keyframes nh-morph { 0%, 100% { border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; } 50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; } }
@keyframes nh-morph2 { 0%, 100% { border-radius: 46% 54% 40% 60% / 38% 42% 58% 62%; } 50% { border-radius: 54% 46% 58% 42% / 46% 54% 46% 54%; } }
@keyframes nh-shine { to { background-position: 200% 0; } }
@keyframes nh-ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.65); } 100% { box-shadow: 0 0 0 11px rgba(34,197,94,0); } }
@keyframes nh-wave { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes nh-march { to { stroke-dashoffset: -48; } }
@keyframes nh-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes nh-fill { from { width: 0; } to { width: 100%; } }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 980px) {
  .nhero-grid { grid-template-columns: 1fr; }
  .nhero-art { height: 470px; width: 100%; max-width: 560px; margin: 0 auto; }
  .nh-services { grid-template-columns: repeat(3, 1fr); }
  .nh-doodle.d1, .nh-doodle.d3 { display: none; }
}
@media (max-width: 640px) {
  .nhero { padding-top: 24px; }
  .nh-lead { font-size: 1.02rem; }
  .nh-actions { gap: 16px; }
  .nh-search { width: 100%; }
  .nhero-art { height: 390px; }
  .nh-float { padding: 9px 14px 9px 9px; gap: 9px; }
  .nh-float .ic { width: 34px; height: 34px; border-radius: 10px; }
  .nh-float b { font-size: .86rem; }
  .nh-float small { font-size: .7rem; }
  .nh-float.f2 { right: 0; }
  .nh-doodle { display: none; }
  .nh-services { grid-template-columns: 1fr; gap: 62px; padding-top: 84px; max-width: 340px; margin: 0 auto; }
  .nh-card:nth-child(2), .nh-card:nth-child(3) { margin-top: 0; }
  .nh-card .go { opacity: 1; transform: none; }
  .nh-dark { height: 62%; clip-path: polygon(0 12%, 100% 4%, 100% 100%, 0 100%); }
  .tour-view { aspect-ratio: 3 / 4; }
  .tour-cap { padding: 20px 20px 24px; }
  .tour-prev, .tour-next { top: 38%; }
}

/* Mouvements réduits : tout reste visible, sans animation (la règle globale de style.css coupe les animations). */
@media (prefers-reduced-motion: reduce) {
  .nh-blob-color, .nh-blob-grey, .nh-photo, .nh-float, .nh-grad { animation: none !important; }
  .tour-bars button.on i { width: 100%; }
}

/* =====================================================================================
   À propos : fondation et agrément
   ===================================================================================== */
.badge-agree { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; font-size: .9rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge-agree svg { color: #4ADE80; }
.founder { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 56px; align-items: center; }
.founder-card { position: relative; background: var(--surface); border-radius: 26px; padding: 34px 30px 28px; box-shadow: var(--soft-shadow); text-align: center; overflow: hidden; }
.founder-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--glow); }
.founder-avatar { display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%; background: var(--glow); color: #fff; font-family: var(--display); font-weight: 800; font-size: 2.1rem; letter-spacing: .02em; box-shadow: 0 0 0 6px var(--surface), 0 18px 40px -16px rgba(229,51,109,.6); }
.founder-card h3 { font-size: 1.35rem; color: var(--title); }
.founder-role { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.founder-facts { margin-top: 20px; display: grid; gap: 10px; text-align: left; }
.founder-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--chip); }
.founder-facts dt { color: var(--muted); font-size: .86rem; }
.founder-facts dd { color: var(--title); font-weight: 700; font-size: .92rem; text-align: right; }
.accredit { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 20px 22px; border-radius: 20px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.3); }
.accredit-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #34D399, #15803D); }
.accredit b { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--title); }
.accredit p { color: var(--muted); font-size: .94rem; margin-top: 4px; }
.accredit-ref { font-size: .85rem !important; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; gap: 32px; } .founder-card { max-width: 420px; margin: 0 auto; width: 100%; } }
@media (max-width: 480px) { .founder-facts > div { flex-direction: column; gap: 2px; } .founder-facts dd { text-align: left; } }

/* ---------- Fil d'actualité de l'éducation (js/news-feed.js) ---------- */
.nf-tabs { margin-bottom: 22px; }
.nf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.nf-grid[aria-busy], .nf-list[aria-busy] { opacity: .5; transition: opacity .2s; }
.nf-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.nf-card:hover { transform: translateY(-4px); box-shadow: var(--soft-shadow); border-color: transparent; }
.nf-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #173B66, #1A99A5); }
.nf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-media.nf-noimg::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); font-size: 2.4rem; }
.nf-region { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; color: #fff; background: #173B66; }
.nf-media .nf-region { position: absolute; left: 12px; top: 12px; z-index: 1; }
.nf-madagascar { background: #A53128; } .nf-france { background: #173B66; } .nf-international { background: #1A99A5; }
.nf-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nf-meta { font-size: .78rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nf-meta b { color: var(--heading); font-weight: 700; }
.nf-body h3 { font-size: 1.02rem; line-height: 1.35; margin: 0; }
.nf-sum { font-size: .88rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-more { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--teal); padding-top: 4px; }
.nf-compact { flex-direction: row; border-radius: 14px; }
.nf-compact .nf-body { padding: 12px 14px; }
.nf-compact .nf-more { display: none; }
.nf-compact h3 { font-size: .95rem; }
.nf-info { font-size: .78rem; color: var(--muted); margin-top: 16px; }
.nf-empty { color: var(--muted); }
@media (max-width: 960px) { .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nf-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .nf-grid { grid-template-columns: 1fr; } }

/* ---------- Grilles de 8 actualités (4 × 2) et pagination ---------- */
.nf-grid.nf-grid-4, .news.news-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pager[hidden] { display: none; }
.pager .chip { min-width: 42px; }
.pager .chip:disabled { opacity: .4; cursor: default; pointer-events: none; }
@media (max-width: 1080px) { .nf-grid.nf-grid-4, .news.news-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .nf-grid.nf-grid-4, .news.news-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nf-grid.nf-grid-4, .news.news-4 { grid-template-columns: 1fr; } .pager .pg-nav { flex: 1 1 100%; } }

/* ---------- Annonce « Nouveau site » (accueil) ---------- */
.newsite { padding-top: 56px; padding-bottom: 8px; }
.newsite-box { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding: 40px 44px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(26,153,165,.55), transparent 55%), linear-gradient(135deg, #0F2847, #173B66); box-shadow: var(--soft-shadow); }
.newsite-box h2 { color: #fff; margin: 14px 0 12px; }
.newsite-box p { color: #d5e0ee; }
.newsite-badge { display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--gold-light); color: #0F2847; }
.newsite-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.newsite-cta .btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); background: transparent; }
.newsite-cta .btn-ghost:hover { background: rgba(255,255,255,.12); }
.newsite-list { margin: 0; color: #eef3f9; }
.newsite-list b { color: #fff; }
@media (max-width: 860px) { .newsite-box { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; } }
