/* =========================================================
   ARAILD — Feuille de style principale
   Palette : Vert #2D2DA8 · Bleu #4F4FD9 · Blanc · Gris clair
   ========================================================= */

:root {
    --green: #2D2DA8;
    --green-dark: #1E1E7A;
    --green-light: #ECECFA;
    --blue: #4F4FD9;
    --blue-dark: #3A3AB0;
    --blue-light: #EDEDFB;
    --white: #ffffff;
    --gray-50: #F7F9FA;
    --gray-100: #EEF1F3;
    --gray-200: #E2E6E9;
    --gray-400: #9AA5AC;
    --gray-600: #5B6770;
    --gray-800: #2A3238;
    --text: #22292E;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(20, 30, 40, 0.06);
    --shadow-md: 0 10px 30px rgba(20, 30, 40, 0.10);
    --shadow-lg: 0 20px 50px rgba(20, 30, 40, 0.16);
    --gradient-brand: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 86px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .6em;
    color: var(--gray-800);
}

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--green); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

img { max-width: 100%; display: block; }

ul { padding-left: 1.2em; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-header p { color: var(--gray-600); font-size: 1.08rem; }

.bg-light { background: var(--gray-50); }
.bg-dark {
    background: linear-gradient(160deg, #0A0A32 0%, #2D2DA8 140%);
    color: var(--white);
}
.bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--white); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .96rem;
    padding: 15px 32px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); }

.btn-outline-dark { background: transparent; color: var(--gray-800); border-color: var(--gray-200); }
.btn-outline-dark:hover { background: var(--gray-800); color: var(--white); border-color: var(--gray-800); }

.btn-donate { background: var(--green); color: var(--white); }
.btn-donate:hover { background: var(--green-dark); color: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.02rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.0);
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 18px 0;
}
.site-header.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
.site-header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; }
.site-header:not(.scrolled) .brand-fallback-text { color: var(--white); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: .95rem;
    color: var(--gray-800);
    padding: 12px 14px;
    border-radius: 8px;
}
.site-header:not(.scrolled) .nav-menu > li > a { color: var(--white); }
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--green); }
.site-header:not(.scrolled) .nav-menu > li > a:hover,
.site-header:not(.scrolled) .nav-menu > li.active > a { color: #baf5d8; }

.has-dropdown .dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    list-style: none;
    margin: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown li a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--gray-800) !important;
    font-size: .92rem;
    font-weight: 500;
}
.dropdown li a:hover { background: var(--green-light); color: var(--green-dark) !important; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--gray-800); border-radius: 2px; }
.site-header:not(.scrolled) .nav-toggle span { background: var(--white); }

.lang-switch { display: flex; gap: 4px; font-family: var(--font-heading); font-weight: 600; font-size: .8rem; }
.lang-switch a { color: inherit; opacity: .6; padding: 4px; }
.lang-switch a.active { opacity: 1; color: var(--green); }
.site-header:not(.scrolled) .lang-switch a { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat, linear-gradient(135deg,#0A0A32,#2D2DA8);
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,20,32,.75) 0%, rgba(6,30,28,.55) 45%, rgba(4,22,18,.88) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { background: rgba(255,255,255,.15); color: #E0E7FF; backdrop-filter: blur(4px); }
.hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.8vw, 2.7rem);
    margin-bottom: .4em;
}
.hero h1 span { color: #A5B4FC; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 620px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 36px; }
.hero-scroll {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.8); font-size: 1.6rem; z-index: 2;
    animation: bounce 2.2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,10px);} }

.hero-stats {
    position: relative; z-index: 2;
    display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap;
}
.hero-stats div strong { display:block; font-family: var(--font-heading); font-size: 1.9rem; color: var(--white); }
.hero-stats div span { color: rgba(255,255,255,.75); font-size: .85rem; }

/* ---------- Cartes valeurs / axes / programmes ---------- */
.grid {
    display: grid;
    gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 34px 28px;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid var(--gray-100);
    height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.icon-badge {
    width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--gradient-brand);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--gray-600); font-size: .96rem; margin-bottom: 0; }

/* Axes d'intervention */
.axis-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 340px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
    color: var(--white);
    background-size: cover;
    background-position: center;
    transition: transform .35s ease, box-shadow .35s ease;
}
.axis-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.axis-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,20,25,.15) 0%, rgba(6,20,22,.92) 100%);
}
.axis-card .axis-body { position: relative; z-index: 2; padding: 30px; }
.axis-card .axis-number {
    font-family: var(--font-heading); font-weight: 700;
    color: #A5B4FC; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.axis-card h3 { color: var(--white); font-size: 1.3rem; margin: 8px 0 12px; }
.axis-card .axis-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--white); font-weight: 600; font-size: .9rem;
    opacity: 0; transform: translateY(6px);
    transition: all .3s ease;
}
.axis-card:hover .axis-link { opacity: 1; transform: translateY(0); }

/* ---------- Impact / compteurs ---------- */
.impact-section { background: linear-gradient(160deg,#06062A 0%, #2D2DA8 55%, #4F4FD9 130%); color: var(--white); position: relative; overflow: hidden; }
.impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.impact-item .icon-badge { margin: 0 auto 18px; background: rgba(255,255,255,.15); }
.counter { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--white); }
.impact-item span.label { display:block; color: rgba(255,255,255,.85); font-size: .98rem; margin-top: 6px; }

/* ---------- Programmes ---------- */
.program-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease; }
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.program-card .program-img { height: 220px; background-size: cover; background-position: center; position: relative; }
.program-card .program-img .tag {
    position: absolute; top: 16px; left: 16px;
    background: var(--white); color: var(--green);
    font-family: var(--font-heading); font-weight: 600; font-size: .78rem;
    padding: 6px 14px; border-radius: 50px;
}
.program-card .program-body { padding: 26px; }
.program-card .program-body h3 { font-size: 1.2rem; }
.program-card .program-body p { color: var(--gray-600); font-size: .95rem; }

/* ---------- Actualités / blog cards ---------- */
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s ease; display:flex; flex-direction: column; height: 100%; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.post-card .post-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.post-card .post-img .category-badge {
    position: absolute; bottom: 14px; left: 14px;
    background: var(--green); color: var(--white);
    font-size: .74rem; font-weight: 600; padding: 5px 12px; border-radius: 50px;
    font-family: var(--font-heading);
}
.post-card .post-body { padding: 24px; display:flex; flex-direction: column; flex: 1; }
.post-card .post-date { color: var(--gray-400); font-size: .82rem; margin-bottom: 10px; display:flex; align-items:center; gap:6px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.post-card h3 a { color: var(--gray-800); }
.post-card h3 a:hover { color: var(--green); }
.post-card p { color: var(--gray-600); font-size: .93rem; flex: 1; }
.read-more { font-family: var(--font-heading); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.read-more i { transition: transform .25s ease; }
.read-more:hover i { transform: translateX(4px); }

/* ---------- Partenaires ---------- */
.partners-track { display: flex; align-items: center; gap: 60px; overflow: hidden; position: relative; }
.partners-track .track-inner { display: flex; gap: 60px; animation: scroll-left 30s linear infinite; }
.partners-track:hover .track-inner { animation-play-state: paused; }
.partners-track img { height: 56px; width: auto; filter: grayscale(1); opacity: .65; transition: all .3s ease; }
.partners-track img:hover { filter: grayscale(0); opacity: 1; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Don / CTA ---------- */
.donate-cta {
    border-radius: 28px;
    background: linear-gradient(120deg, #0A0A32, #2D2DA8 60%, #4F4FD9 130%);
    color: var(--white);
    padding: 70px;
    display: flex; align-items: center; gap: 50px;
    box-shadow: var(--shadow-lg);
}
.donate-cta .cta-icon { font-size: 5rem; color: rgba(255,255,255,.9); flex-shrink: 0; }
.donate-cta h2 { color: var(--white); }
.donate-cta p { color: rgba(255,255,255,.9); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: #081b16; color: rgba(255,255,255,.8); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 22px; }
.footer-brand img { height: 50px; margin-bottom: 18px; background: var(--white); border-radius: 8px; padding: 6px; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.65); }
.footer-contact li { list-style: none; display: flex; gap: 10px; margin-bottom: 14px; font-size: .92rem; color: rgba(255,255,255,.75); }
.footer-contact i { color: #A5B4FC; margin-top: 3px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .93rem; }
.footer-links a:hover { color: #A5B4FC; }
.newsletter-form { display: flex; margin-top: 6px; }
.newsletter-form input {
    flex: 1; padding: 13px 16px; border-radius: 50px 0 0 50px;
    border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: var(--white); font-size: .9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
    border-radius: 0 50px 50px 0; border: none; background: var(--green);
    color: var(--white); padding: 0 22px; cursor: pointer; font-weight: 600;
}
.newsletter-form button:hover { background: var(--green-dark); }
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons a {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: var(--white);
    transition: all .25s ease;
}
.social-icons a:hover { background: var(--green); transform: translateY(-4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-lang { display: flex; gap: 6px; }
.footer-lang a { font-weight: 600; }
.footer-lang a.active { color: var(--green); }

/* ---------- Page banner (pages intérieures) ---------- */
.page-banner {
    margin-top: 0;
    padding: calc(var(--header-height) + 70px) 0 70px;
    background: linear-gradient(160deg, #0A0A32, #2D2DA8 130%);
    color: var(--white);
    text-align: center;
}
.page-banner h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.breadcrumb { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; font-size: .88rem; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: rgba(255,255,255,.4); }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--gray-800); }
.form-control {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200); font-family: var(--font-body); font-size: .96rem;
    background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-file { border: 2px dashed var(--gray-200); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.form-note { font-size: .82rem; color: var(--gray-400); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .95rem; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid #b8e6cf; }
.alert-error { background: #fdecec; color: #b42318; border: 1px solid #f6c6c6; }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 50px; font-size: .76rem; font-weight: 600; font-family: var(--font-heading); }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-blue { background: var(--blue-light); color: var(--blue-dark); }
.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--green); color: var(--white);
    padding: 12px 20px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Table admin-friendly listing on public pages (publications) */
.filters-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.filters-bar select, .filters-bar input[type="search"] {
    padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200); font-size: .92rem;
}
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; list-style: none; padding: 0; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    font-family: var(--font-heading); font-weight: 600; font-size: .9rem;
    color: var(--gray-800); background: var(--white); border: 1.5px solid var(--gray-200);
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .active span { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---------- AOS-like fallback ---------- */
[data-aos] { opacity: 0; transition-property: opacity, transform; }
[data-aos].aos-animate { opacity: 1; transform: none !important; }
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(.92); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .donate-cta { flex-direction: column; text-align: center; padding: 50px 30px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu, .nav-actions .btn { display: none; }
    .nav-menu.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
        background: var(--white); padding: 20px; overflow-y: auto; gap: 0;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.open > li > a { color: var(--gray-800) !important; padding: 16px 10px; border-bottom: 1px solid var(--gray-100); }
    .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr 1fr; }
    section { padding: 64px 0; }
    .donate-cta .cta-icon { font-size: 3.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .counter { font-size: 2.2rem; }
}

/* ===== Menu de navigation modernisé ===== */

/* Libellés sur une seule ligne, typo affinée */
.nav-menu { gap: 8px; }
.nav-menu > li > a {
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 10px 16px;
    border-radius: 50px;
    position: relative;
    transition: color .25s ease, background .25s ease;
}

/* Soulignement animé au survol et sur la page active */
.nav-menu > li > a::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 5px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), #A5B4FC);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after { transform: scaleX(1); }

/* Pastille translucide au survol (effet verre) */
.nav-menu > li > a:hover { background: rgba(45, 45, 168, .08); }
.site-header:not(.scrolled) .nav-menu > li > a:hover {
    background: rgba(255, 255, 255, .12);
    color: var(--white);
}
.site-header:not(.scrolled) .nav-menu > li.active > a { color: #C7D2FE; }

/* Menu déroulant raffiné */
.has-dropdown .dropdown {
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 24px 60px rgba(10, 10, 50, .16);
    padding: 8px;
}
.dropdown li a {
    border-radius: 10px;
    transition: background .2s ease, padding-left .2s ease;
}
.dropdown li a:hover { padding-left: 20px; }

/* Neutralise le style desktop dans le menu mobile ouvert */
@media (max-width: 768px) {
    .nav-menu.open > li > a { border-radius: 0; white-space: normal; }
    .nav-menu.open > li > a::after { display: none; }
}
