/* ==========================================================
   NAZARI 2026 — Design académique premium & moderne
   Bleu institutionnel + rouge + blanc, éléments flottants,
   verre dépoli (glassmorphism), micro-interactions.
   ========================================================== */

:root {
    --nz-bleu: #142c5c;
    --nz-bleu-fonce: #0a1a38;
    --nz-bleu-clair: #2451a3;
    --nz-rouge: #c62828;
    --nz-rouge-fonce: #8e1c1c;
    --nz-rouge-vif: #e53935;
    --nz-fond: #f6f7fb;
    --nz-texte: #1c1f26;
    --nz-gris-texte: #626878;
    --nz-bordure: #e7e9f0;
    --nz-or: var(--nz-rouge);       /* alias legacy pour le CSS du plugin */
    --nz-or-fonce: var(--nz-rouge-fonce);
    --nz-bleu-nuit: var(--nz-bleu); /* alias legacy pour le CSS du plugin */
    --nz-bleu-nuit-clair: var(--nz-bleu-clair);
    --nz-police-titre: 'Playfair Display', Georgia, serif;
    --nz-police-texte: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --nz-ombre: 0 10px 30px rgba(10, 26, 56, .1);
    --nz-ombre-forte: 0 20px 50px rgba(10, 26, 56, .18);
    --nz-rayon: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }

body {
    margin: 0;
    font-family: var(--nz-police-texte);
    color: var(--nz-texte);
    background: var(--nz-fond);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 1.05rem;
}

a { color: var(--nz-bleu); text-decoration: none; transition: color .15s; }
a:hover { color: var(--nz-rouge); }
img { max-width: 100%; height: auto; display: block; }

.nz-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------------- Bande tricolore ---------------- */
.nz-bande-tricolore {
    height: 5px;
    background: linear-gradient(90deg,
        var(--nz-bleu) 0%, var(--nz-bleu) 50%,
        #ffffff 50%, #ffffff 100%);
}

/* ---------------- Bandeau utilitaire ---------------- */
.nz-bandeau-haut {
    background: var(--nz-bleu-fonce);
    color: #aab4c8;
    font-size: .8rem;
    padding: 8px 0;
}
.nz-bandeau-haut .nz-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.nz-bandeau-haut a { color: #dfe4f2; }

/* ---------------- En-tête (sticky + verre dépoli) ---------------- */
.nz-entete-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}
.nz-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nz-bordure);
    padding: 20px 0;
}
.nz-header-interieur { display: flex; align-items: center; gap: 22px; }

.nz-logo { flex-shrink: 0; }
.nz-logo img,
.nz-logo .custom-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: var(--nz-ombre);
    transition: transform .25s;
}
.nz-logo:hover img { transform: scale(1.05) rotate(-2deg); }

.nz-emblème-secours {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 3px solid var(--nz-bleu);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    box-shadow: inset 0 0 0 3px var(--nz-rouge), var(--nz-ombre);
}
.nz-emblème-secours span {
    font-family: var(--nz-police-titre);
    font-weight: 700;
    font-size: 2rem;
    color: var(--nz-bleu);
}

.nz-identite h1 {
    font-family: var(--nz-police-titre);
    font-weight: 900;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    margin: 0 0 4px;
    color: var(--nz-bleu);
    line-height: 1.15;
    letter-spacing: .01em;
}
.nz-devise {
    font-style: italic;
    color: var(--nz-rouge-fonce);
    font-size: .9rem;
    margin: 0 0 4px;
}
.nz-issn {
    display: inline-block;
    margin-top: 8px;
    font-size: .76rem;
    letter-spacing: .05em;
    color: var(--nz-gris-texte);
    border: 1px solid var(--nz-bordure);
    padding: 3px 12px;
    border-radius: 20px;
    background: #fff;
}

/* ---------------- Navigation ---------------- */
.nz-nav {
    background: var(--nz-bleu-fonce);
}
.nz-nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nz-nav a {
    display: block;
    color: #dbe1ee;
    padding: 16px 20px;
    font-size: .93rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}
.nz-nav a:hover, .nz-nav .current-menu-item > a {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-bottom-color: var(--nz-rouge-vif);
}

/* ---------------- Hero avec éléments flottants ---------------- */
.nz-hero {
    position: relative;
    background: radial-gradient(ellipse at top left, #1c3a72 0%, var(--nz-bleu-fonce) 55%, #060f24 100%);
    color: #fff;
    padding: 110px 0 90px;
    text-align: center;
    overflow: hidden;
}
.nz-hero .nz-orbe {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .35;
    pointer-events: none;
    animation: nz-flotter 9s ease-in-out infinite;
}
.nz-hero .nz-orbe--1 { width: 320px; height: 320px; background: var(--nz-rouge-vif); top: -100px; left: -80px; animation-delay: 0s; }
.nz-hero .nz-orbe--2 { width: 260px; height: 260px; background: #3a6fd8; bottom: -80px; right: -60px; animation-delay: 2.5s; }
.nz-hero .nz-orbe--3 { width: 160px; height: 160px; background: #ffffff; top: 30%; right: 12%; opacity: .07; animation-delay: 1.2s; }

@keyframes nz-flotter {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-24px) scale(1.06); }
}

.nz-hero > .nz-container { position: relative; z-index: 1; }
.nz-devise-hero {
    display: inline-block;
    color: #f0d3d3;
    font-style: italic;
    font-size: .95rem;
    margin: 0 0 18px;
    padding: 6px 18px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 30px;
    background: rgba(255,255,255,.06);
}
.nz-hero h1 {
    font-family: var(--nz-police-titre);
    font-weight: 900;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    letter-spacing: .01em;
    margin: 0 0 8px;
    background: linear-gradient(180deg, #fff 40%, #cfd9ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nz-hero-soustitre {
    font-size: 1.2rem;
    color: #cfd8e8;
    margin: 0 0 20px;
    font-weight: 300;
    letter-spacing: .02em;
}
.nz-hero-accroche {
    max-width: 640px;
    margin: 0 auto 34px;
    color: #b9c3d9;
    font-size: 1.02rem;
}

.nz-bouton-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--nz-rouge-vif), var(--nz-rouge-fonce));
    color: #fff;
    padding: 16px 38px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: .02em;
    box-shadow: 0 12px 28px rgba(198,40,40,.4);
    transition: transform .2s, box-shadow .2s;
}
.nz-bouton-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(198,40,40,.5);
}

/* ---- Cartes statistiques flottantes (glassmorphism) ---- */
.nz-hero-stats {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 54px;
    flex-wrap: wrap;
}
.nz-carte-stat-flottante {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--nz-rayon);
    padding: 22px 34px;
    min-width: 150px;
    transition: transform .25s, background .25s;
}
.nz-carte-stat-flottante:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.13);
}
.nz-carte-stat-flottante .nz-chiffre {
    font-family: var(--nz-police-titre);
    font-weight: 900;
    font-size: 3.1rem;
    line-height: 1;
    color: #fff;
    display: block;
}
.nz-carte-stat-flottante .nz-libelle {
    font-size: .88rem;
    color: #aeb8cf;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: 8px;
    display: block;
}

.nz-hero-vide {
    max-width: 580px;
    margin: 34px auto 0;
    background: rgba(255,255,255,.08);
    border: 1px dashed rgba(255,255,255,.3);
    border-radius: var(--nz-rayon);
    padding: 16px 22px;
    font-size: .9rem;
    color: #dfe4ea;
}

/* ---------------- Vague de transition sous le hero ---------------- */
.nz-vague { display: block; margin-top: -2px; }
.nz-vague svg { display: block; width: 100%; height: 60px; }

/* ---------------- Bandeau appel à contribution ---------------- */
.nz-bandeau-appel {
    background: linear-gradient(90deg, var(--nz-rouge-fonce), var(--nz-rouge-vif));
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: .95rem;
}
.nz-bandeau-appel a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------------- Sections ---------------- */
.nz-section { padding: 70px 0; }
.nz-section--alterne { background: #fff; }
.nz-titre-section {
    font-family: var(--nz-police-titre);
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--nz-bleu);
    text-align: center;
    margin: 0 0 10px;
}
.nz-sous-titre-section {
    text-align: left;
    color: var(--nz-gris-texte);
    max-width: 640px;
    margin: 0 auto 44px;
}

/* ---------------- Cartes numéro ---------------- */
.rna-grille-numeros {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 26px;
}
.rna-carte-numero {
    display: block;
    background: #fff;
    border: 1px solid var(--nz-bordure);
    border-radius: var(--nz-rayon);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--nz-ombre);
    transition: transform .25s, box-shadow .25s;
}
.rna-carte-numero:hover {
    transform: translateY(-8px);
    box-shadow: var(--nz-ombre-forte);
    text-decoration: none;
}
.rna-carte-numero-image { height: 175px; overflow: hidden; background: linear-gradient(135deg,#eef1f8,#e2e7f3); display:flex; align-items:center; justify-content:center; }
.rna-carte-numero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rna-carte-numero:hover .rna-carte-numero-image img { transform: scale(1.08); }
.rna-carte-numero-image--vide .dashicons { font-size: 2.6rem; width:auto; height:auto; color: var(--nz-bleu-clair); opacity:.4; }
.rna-carte-numero-contenu { padding: 18px; }
.rna-carte-numero-contenu h3 {
    font-family: var(--nz-police-titre);
    font-weight: 700;
    font-size: 1.08rem;
    margin: 0 0 6px;
    color: var(--nz-bleu);
}
.rna-carte-numero-contenu p { margin: 0; color: var(--nz-gris-texte); font-size: .87rem; }

/* ---------------- Cartes article ---------------- */
.nz-grille-derniers-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
}
.nz-carte-article {
    background: #fff;
    border: 1px solid var(--nz-bordure);
    border-radius: var(--nz-rayon);
    padding: 24px;
    position: relative;
    box-shadow: var(--nz-ombre);
    transition: transform .25s, box-shadow .25s;
}
.nz-carte-article::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nz-rouge), var(--nz-bleu-clair));
    border-radius: var(--nz-rayon) var(--nz-rayon) 0 0;
}
.nz-carte-article:hover { transform: translateY(-6px); box-shadow: var(--nz-ombre-forte); }
.nz-carte-article .nz-carte-discipline {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--nz-rouge);
    font-weight: 700;
}
.nz-carte-article h3 {
    font-family: var(--nz-police-titre);
    font-weight: 700;
    font-size: 1.08rem;
    margin: 10px 0 6px;
}
.nz-carte-article h3 a { color: var(--nz-bleu); }
.nz-carte-article .nz-carte-auteur { color: var(--nz-gris-texte); font-size: .85rem; margin: 0; }

/* ---------------- Boutons génériques ---------------- */
.rna-bouton {
    display: inline-block;
    background: var(--nz-bleu);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.rna-bouton:hover { background: var(--nz-bleu-fonce); color:#fff; transform: translateY(-2px); box-shadow: var(--nz-ombre); }
.rna-bouton--discret { background: transparent; color: var(--nz-bleu); border: 1.5px solid var(--nz-bleu); }
.rna-bouton--discret:hover { background: var(--nz-bleu); color: #fff; }

/* ---------------- Contenu générique (pages) ---------------- */
.nz-contenu-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 55px 28px;
}
.nz-contenu-page h2 { font-family: var(--nz-police-titre); color: var(--nz-bleu); }
.nz-contenu-page p { text-align: justify; hyphens: auto; }

/* ---------------- Galerie photo (pour "A propos", "Comités"...) ----------------
   Utilisation dans l'éditeur : bloc "HTML personnalisé" avec :
   <div class="nz-galerie-photos">
       <figure><img src="..."><figcaption>Nom</figcaption></figure>
       <figure><img src="..."><figcaption>Nom</figcaption></figure>
   </div>
------------------------------------------------------------------------------- */
.nz-galerie-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 30px 0;
}
.nz-galerie-photos figure {
    margin: 0;
    text-align: center;
}
.nz-galerie-photos img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--nz-ombre);
    margin-bottom: 12px;
    transition: transform .25s;
}
.nz-galerie-photos img:hover { transform: scale(1.04); }
.nz-galerie-photos figcaption {
    font-weight: 600;
    color: var(--nz-bleu);
    font-size: .92rem;
}

/* ---------------- Formulaires ---------------- */
.nz-formulaire label { display: block; font-weight: 600; margin: 16px 0 7px; font-size: .92rem; }
.nz-formulaire input[type=text], .nz-formulaire input[type=email], .nz-formulaire textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--nz-bordure);
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.nz-formulaire input:focus, .nz-formulaire textarea:focus {
    outline: none;
    border-color: var(--nz-bleu-clair);
    box-shadow: 0 0 0 3px rgba(36,81,163,.15);
}
.nz-formulaire button {
    margin-top: 22px;
    background: linear-gradient(135deg, var(--nz-bleu-clair), var(--nz-bleu));
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}
.nz-formulaire button:hover { transform: translateY(-2px); box-shadow: var(--nz-ombre); }

/* ---------------- Pied de page ---------------- */
.nz-footer {
    background: var(--nz-bleu-fonce);
    color: #9aa5c0;
    padding: 60px 0 24px;
    margin-top: 50px;
    font-size: .9rem;
}
.nz-footer h3 { color: #fff; font-size: 1.02rem; margin-top: 0; }
.nz-footer-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 34px;
    margin-bottom: 34px;
}
.nz-footer a { color: #c3cbe0; }
.nz-footer a:hover { color: #fff; }
.nz-footer-bas {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    text-align: center;
    font-size: .82rem;
    color: #6f7994;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 780px) {
    .nz-header-interieur { flex-direction: column; text-align: center; }
    .nz-nav { position: static; }
    .nz-nav ul { flex-direction: column; }
    .nz-hero { padding: 80px 0 60px; }
    .nz-bandeau-haut .nz-container { flex-direction: column; text-align: center; }
}
