/* ================================================================
   COMPENDIUM DU PORO — style.css
   Polices : Playfair Display (titres) + DM Sans (textes)
================================================================ */

:root {
    --green:        #009640;
    --green-dark:   #006622;
    --green-light:  #e8f5ee;
    --orange:       #f7941e;
    --orange-dark:  #d97c10;
    --orange-light: #fff3e0;
    --dark:         #1a2332;
    --grey:         #64748b;
    --light:        #f4f7f5;
    --white:        #ffffff;
    --border:       #dde4dd;
    --radius:       10px;
    --shadow:       0 2px 16px rgba(0,0,0,.08);
    --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
    --font-titre:   'Playfair Display', Georgia, serif;
    --font-texte:   'DM Sans', 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-texte); color: var(--dark); background: #fff; overflow-x: hidden; line-height: 1.6; }
a    { text-decoration: none; color: inherit; }
img  { display: block; max-width: 100%; }

/* ── Container ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Barre orange du haut ── */
.top-bar-orange { height: 5px; background: linear-gradient(90deg, var(--orange), var(--green)); }

/* ── HEADER ── */
.header {
    position: sticky; top: 0; z-index: 600;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }

/* Logo */
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-top { font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.logo-top .orange { color: var(--orange); }
.logo-top .green-light { color: var(--green); }
.logo-main { font-family: var(--font-titre); font-size: 30px; font-weight: 900; color: var(--green); margin-top: 1px; }

/* Nav desktop */
.nav-desktop { display: flex; gap: 4px; }
.nav-desktop a {
    padding: 8px 15px; border-radius: 7px; font-size: 14px; font-weight: 500;
    color: var(--grey); transition: all .2s;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--green); background: var(--green-light); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-header-annuaire {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 18px; background: var(--green-light); color: var(--green);
    border-radius: 7px; font-size: 14px; font-weight: 600; transition: all .2s;
}
.btn-header-annuaire:hover { background: var(--green); color: #fff; }
.btn-header-inscrire {
    padding: 9px 20px; background: var(--orange); color: #fff;
    border-radius: 7px; font-size: 14px; font-weight: 600; transition: all .2s;
}
.btn-header-inscrire:hover { background: var(--orange-dark); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.burger span { display: block; width: 23px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile */
.nav-mobile { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 14px 22px; font-size: 15px; font-weight: 500; color: var(--dark); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; transition: background .2s; }
.nav-mobile a:hover { background: var(--light); color: var(--green); }
.nav-mobile a i { color: var(--orange); width: 18px; text-align: center; }

/* ── Flash bar ── */
.flash-bar { background: var(--green); height: 38px; overflow: hidden; }
.flash-inner { display: flex; align-items: center; height: 100%; gap: 0; }
.flash-label { background: var(--orange); color: #fff; padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; flex-shrink: 0; }
.flash-scroll { flex: 1; overflow: hidden; }
.flash-text { display: inline-block; white-space: nowrap; color: #fff; font-size: 13px; font-weight: 500; padding-left: 100%; animation: ticker 50s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ── HERO (accueil) ── */
.hero {
    min-height: 88vh; display: flex; align-items: center;
    background: linear-gradient(140deg, var(--dark) 0%, #1e3a2f 55%, var(--green-dark) 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 70% at 70% 40%, rgba(0,150,64,.3) 0%, transparent 70%),
                radial-gradient(ellipse 40% 50% at 15% 80%, rgba(247,148,30,.12) 0%, transparent 60%);
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 420px; gap: 60px;
    align-items: center; position: relative; z-index: 2; padding: 80px 0;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(247,148,30,.18); border: 1px solid rgba(247,148,30,.4);
    color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 7px 16px; border-radius: 30px; margin-bottom: 22px;
}
.hero-titre { font-family: var(--font-titre); font-size: clamp(36px,5vw,62px); color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero-titre em { color: var(--orange); font-style: normal; }
.hero-desc { font-size: 17px; color: rgba(255,255,255,.72); line-height: 1.75; margin-bottom: 34px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; font-family: var(--font-texte); cursor: pointer; border: none; transition: all .25s; }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover  { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost  { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Hero stats */
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hstat-num { font-family: var(--font-titre); font-size: 34px; font-weight: 900; color: var(--orange); }
.hstat-lbl { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }

/* Hero card */
.hero-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 26px; backdrop-filter: blur(10px);
}
.hero-card-title { font-family: var(--font-titre); color: #fff; font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-card-title i { color: var(--orange); }

.membre-preview { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(255,255,255,.06); border-radius: 10px; border: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.mp-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.mp-nom { color: #fff; font-size: 14px; font-weight: 600; }
.mp-fn  { color: rgba(255,255,255,.5); font-size: 12px; }
.mp-dispo { margin-left: auto; font-size: 11px; padding: 3px 9px; border-radius: 20px; background: rgba(22,163,74,.25); color: #4ade80; white-space: nowrap; }

.hero-card-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--orange); font-size: 13px; font-weight: 600; }

/* ── Bande statistiques ── */
.stats-bande { background: var(--dark); padding: 42px 0; }
.stats-bande-inner { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 24px; }
.sb-item { text-align: center; }
.sb-num { font-family: var(--font-titre); font-size: 38px; font-weight: 900; color: var(--orange); }
.sb-lbl { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }
.sb-div { width: 1px; height: 48px; background: rgba(255,255,255,.1); }

/* ── Section fonctionnalités ── */
.section-features { padding: 90px 0; background: var(--light); }
.section-entete { text-align: center; margin-bottom: 50px; }
.section-tag  { display: inline-block; background: var(--orange-light); color: var(--orange-dark); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-titre { font-family: var(--font-titre); font-size: clamp(26px,4vw,40px); color: var(--dark); margin-bottom: 12px; }
.section-titre span { color: var(--green); }
.section-sous { font-size: 16px; color: var(--grey); max-width: 540px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
    background: #fff; border-radius: var(--radius); padding: 30px 26px;
    border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: all .3s; position: relative; overflow: hidden;
}
.feat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-card:hover::after { transform: scaleX(1); }
.feat-icon { width: 54px; height: 54px; border-radius: 13px; background: var(--green-light); color: var(--green); font-size: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: all .3s; }
.feat-card:hover .feat-icon { background: var(--green); color: #fff; }
.feat-card h3 { font-family: var(--font-titre); font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.feat-card p  { font-size: 14px; color: var(--grey); line-height: 1.7; }

/* ── FORMULAIRE D'INSCRIPTION ── */
.section-form { padding: 90px 0; background: #fff; }
.poro-form { max-width: 820px; margin: 0 auto; }

.form-bloc {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.form-bloc-titre {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 16px; margin-bottom: 24px;
    border-bottom: 2px solid var(--orange);
}
.bloc-num { background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 4px; }
.bloc-label { font-size: 15px; font-weight: 700; color: var(--dark); }
.opt { font-size: 12px; color: var(--grey); font-weight: 400; font-style: italic; margin-left: 6px; }

.form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-groupe { margin-bottom: 18px; }
.form-groupe:last-child { margin-bottom: 0; }

label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 7px; }
label i { color: var(--orange); font-size: 12px; }
.req { color: #ef4444; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: 7px;
    font-size: 15px; font-family: var(--font-texte); color: var(--dark);
    background: var(--light); outline: none; transition: all .2s;
    appearance: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--green); background: #fff;
    box-shadow: 0 0 0 3px rgba(0,150,64,.1);
}
input::placeholder, textarea::placeholder { color: #94a3b8; font-style: italic; font-size: 13px; }
textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }

.btn-soumettre {
    width: 100%; padding: 18px;
    background: var(--green); color: #fff; border: none;
    border-radius: 8px; font-size: 17px; font-weight: 700;
    font-family: var(--font-texte); cursor: pointer; transition: all .3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 10px;
}
.btn-soumettre:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── Champs Email & Téléphone ── */

/* Icône préfixe dans les inputs email/tel du formulaire */
.input-avec-icone {
    position: relative;
}
.input-avec-icone i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}
.input-avec-icone input {
    padding-left: 38px;
}

/* Mise en valeur au focus des champs email/tel */
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,150,64,.1);
}

/* Badge contact dans la modal profil (email + tel cliquables) */
.mc-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px 14px;
    border-top: 1px solid var(--border);
}
.mc-contact-lien {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.mc-contact-email {
    background: rgba(0,150,64,.1);
    color: var(--green-dark);
    border: 1px solid rgba(0,150,64,.2);
}
.mc-contact-email:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.mc-contact-tel {
    background: rgba(247,148,30,.1);
    color: var(--orange-dark);
    border: 1px solid rgba(247,148,30,.25);
}
.mc-contact-tel:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

/* Liens email/tel dans la modal de profil complet */
.modal-val a[href^="mailto"],
.modal-val a[href^="tel"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all .2s;
}
.modal-val a[href^="mailto"] {
    background: rgba(0,150,64,.08);
    color: var(--green-dark);
    border: 1px solid rgba(0,150,64,.18);
}
.modal-val a[href^="mailto"]:hover {
    background: var(--green);
    color: #fff;
}
.modal-val a[href^="tel"] {
    background: rgba(247,148,30,.08);
    color: var(--orange-dark);
    border: 1px solid rgba(247,148,30,.2);
}
.modal-val a[href^="tel"]:hover {
    background: var(--orange);
    color: #fff;
}

/* Ligne contact dans la modal — section dédiée */
.modal-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* Alertes */
.alerte-erreur {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fef2f2; border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444; border-radius: 7px;
    padding: 16px 18px; margin-bottom: 24px; color: #dc2626;
}
.alerte-erreur ul { list-style: disc; padding-left: 16px; }
.alerte-erreur li { font-size: 14px; margin-bottom: 3px; }

.succes-box { text-align: center; padding: 60px 30px; border: 2px solid var(--green); border-radius: var(--radius); background: #f0fff4; }
.succes-icone { font-size: 58px; color: var(--green); margin-bottom: 18px; }
.succes-box h3 { font-family: var(--font-titre); font-size: 26px; color: var(--green); margin-bottom: 10px; }
.succes-box p  { font-size: 16px; color: var(--grey); margin-bottom: 26px; line-height: 1.7; }
.succes-box .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── ANNUAIRE ── */
.annuaire-hero { padding: 60px 0 36px; background: linear-gradient(135deg, var(--dark) 0%, #1e3a2f 100%); }
.annuaire-hero-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.annuaire-hero h1 { font-family: var(--font-titre); font-size: clamp(28px,4vw,44px); color: #fff; }
.annuaire-hero h1 span { color: var(--orange); }
.annuaire-hero p { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 8px; }
.annuaire-compteur { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 18px 30px; text-align: center; }
.annuaire-compteur strong { display: block; font-family: var(--font-titre); font-size: 44px; color: var(--orange); line-height: 1; }
.annuaire-compteur span { font-size: 13px; color: rgba(255,255,255,.55); }

/* Barre de filtres */
.barre-filtres { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 0; position: sticky; top: 70px; z-index: 100; box-shadow: var(--shadow); }
.filtres-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filtre-search { position: relative; flex: 1; min-width: 220px; }
.filtre-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--grey); font-size: 14px; }
.filtre-search input { padding-left: 38px; }
.filtre-select { padding: 11px 14px; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; font-family: var(--font-texte); color: var(--dark); background: var(--light); cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; transition: all .2s; }
.filtre-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,150,64,.1); }
.btn-filtrer { padding: 11px 22px; background: var(--green); color: #fff; border: none; border-radius: 7px; font-size: 14px; font-weight: 600; font-family: var(--font-texte); cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all .2s; }
.btn-filtrer:hover { background: var(--green-dark); }
.btn-reset { padding: 11px 16px; background: var(--light); color: var(--grey); border: 1px solid var(--border); border-radius: 7px; font-size: 14px; font-family: var(--font-texte); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-reset:hover { background: #e2e8f0; color: var(--dark); }

/* Corps annuaire */
.annuaire-corps { padding: 36px 0 70px; background: var(--light); }
.resultats-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.resultats-info span { font-size: 14px; color: var(--grey); }
.resultats-info strong { color: var(--dark); }

/* Grille membres */
.membres-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }

.membre-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
    overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
    transition: all .3s;
}
.membre-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }

.mc-tete { padding: 20px 20px 14px; display: flex; align-items: flex-start; gap: 14px; }
.mc-avatar { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0; }
.mc-nom    { font-family: var(--font-titre); font-size: 17px; color: var(--dark); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-fn     { font-size: 13px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mc-corps { padding: 0 20px 14px; }
.mc-ligne { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; font-size: 13px; }
.mc-ligne i { color: var(--orange); font-size: 12px; width: 14px; flex-shrink: 0; margin-top: 2px; }
.mc-ligne span { color: var(--grey); line-height: 1.5; }

.mc-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 20px 14px; }
.mc-tag { background: var(--green-light); color: var(--green-dark); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

.mc-pied { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dispo-badge { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.mc-voir { font-size: 12px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 5px; }

/* Aucun résultat */
.aucun { text-align: center; padding: 80px 20px; color: var(--grey); }
.aucun i { font-size: 52px; color: var(--border); display: block; margin-bottom: 16px; }
.aucun h3 { font-family: var(--font-titre); font-size: 22px; color: var(--dark); margin-bottom: 8px; }
.aucun a  { color: var(--green); font-weight: 600; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--grey); background: #fff; transition: all .2s; }
.pagination a:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ── Modal profil ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.actif { opacity: 1; pointer-events: all; }
.modal-boite { background: #fff; border-radius: 16px; max-width: 680px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); transform: translateY(30px); transition: transform .3s; position: relative; }
.modal-overlay.actif .modal-boite { transform: translateY(0); }

.modal-tete { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 26px 28px; display: flex; gap: 18px; align-items: center; border-radius: 16px 16px 0 0; }
.modal-avatar { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-size: 26px; color: #fff; flex-shrink: 0; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.3); }
.modal-tete h2 { font-family: var(--font-titre); color: #fff; font-size: 22px; }
.modal-tete p  { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 4px; }
.modal-fermer { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.15); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.modal-fermer:hover { background: rgba(255,255,255,.3); }

.modal-corps { padding: 26px 28px; }
.modal-section { margin-bottom: 24px; }
.modal-section-titre { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); margin-bottom: 14px; padding-bottom: 7px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.modal-ligne { display: grid; grid-template-columns: 130px 1fr; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.modal-lbl { color: var(--grey); font-weight: 500; }
.modal-val { color: var(--dark); word-break: break-word; line-height: 1.6; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tag { background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }

/* ── CONTACT ── */
.contact-hero { padding: 60px 0 40px; background: linear-gradient(135deg, var(--dark), #1e3a2f); }
.contact-hero h1 { font-family: var(--font-titre); font-size: clamp(28px,4vw,42px); color: #fff; margin-top: 10px; }
.contact-hero p  { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 8px; }

.contact-section { padding: 70px 0; }
.contact-grille { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }

.contact-infos { background: linear-gradient(135deg, var(--dark), #1e3a2f); border-radius: var(--radius); padding: 34px; color: #fff; }
.contact-infos h3 { font-family: var(--font-titre); font-size: 20px; margin-bottom: 24px; }
.ci-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.ci-icone { width: 40px; height: 40px; border-radius: 10px; background: rgba(247,148,30,.2); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.ci-item strong { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 3px; }
.ci-item span, .ci-item a { font-size: 14px; color: #fff; }
.ci-socials { margin-top: 28px; }
.ci-socials h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.ci-social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.ci-social-icons a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .2s; }
.ci-social-icons a:hover { background: var(--orange); border-color: var(--orange); transform: scale(1.1); }

.contact-form-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.contact-form-card h3 { font-family: var(--font-titre); font-size: 20px; color: var(--dark); margin-bottom: 24px; }

/* ── ADMIN ── */
.admin-body { background: #f0f2f5; min-height: 100vh; }
.admin-topbar { background: linear-gradient(90deg, var(--green-dark), var(--green)); color: #fff; padding: 0 24px; height: 58px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 800; box-shadow: var(--shadow); }
.admin-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.admin-brand i { color: var(--orange); font-size: 20px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.admin-btn-out { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 5px; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: background .2s; }
.admin-btn-out:hover { background: rgba(255,255,255,.25); }

.admin-wrap { display: flex; min-height: calc(100vh - 58px); }
.admin-sidebar { width: 230px; background: #fff; border-right: 1px solid var(--border); padding: 20px 0; flex-shrink: 0; }
.admin-sidebar a { display: flex; align-items: center; gap: 12px; padding: 12px 22px; font-size: 14px; font-weight: 500; color: var(--grey); border-left: 3px solid transparent; transition: all .2s; }
.admin-sidebar a:hover { background: var(--light); color: var(--green); }
.admin-sidebar a.actif { background: var(--green-light); color: var(--green); border-left-color: var(--green); font-weight: 700; }
.admin-sidebar a i { color: var(--orange); width: 18px; text-align: center; }
.admin-sidebar-sep { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; padding: 16px 22px 6px; }

.admin-main { flex: 1; padding: 28px 30px; overflow-x: auto; }

/* Stats admin */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat { background: #fff; border-radius: 10px; padding: 20px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.admin-stat-icone { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.as-green  { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.as-orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.as-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.as-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.admin-stat h3 { font-family: var(--font-titre); font-size: 28px; font-weight: 900; color: var(--dark); line-height: 1; }
.admin-stat p  { font-size: 12px; color: var(--grey); margin-top: 3px; }

/* Table admin */
.admin-card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.admin-card-tete { background: #f8f9fa; border-bottom: 1px solid var(--border); padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.admin-card-tete h2 { font-size: 15px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.admin-card-tete h2 i { color: var(--orange); }
.admin-card-corps { padding: 20px 22px; }

.filtres-admin { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filtres-admin input, .filtres-admin select { padding: 9px 13px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: var(--font-texte); outline: none; background: var(--light); transition: border-color .2s; }
.filtres-admin input:focus, .filtres-admin select:focus { border-color: var(--green); }
.filtres-admin input { flex: 1; min-width: 180px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { background: var(--dark); color: #fff; padding: 11px 13px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .15s; }
tbody tr:hover { background: #fafffe; }
tbody td { padding: 11px 13px; vertical-align: middle; }
.td-tronq { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-table { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.btn-suppr { background: none; border: none; color: #ef4444; font-size: 15px; cursor: pointer; padding: 4px 8px; border-radius: 5px; transition: background .2s; }
.btn-suppr:hover { background: #fef2f2; }
.btn-voir  { background: none; border: none; color: #3b82f6; font-size: 15px; cursor: pointer; padding: 4px 8px; border-radius: 5px; transition: background .2s; }
.btn-voir:hover { background: #eff6ff; }

.btn-csv { padding: 9px 18px; background: var(--orange); color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; font-family: var(--font-texte); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s; text-decoration: none; }
.btn-csv:hover { background: var(--orange-dark); }

.vide { text-align: center; padding: 50px 20px; color: var(--grey); }
.vide i { font-size: 40px; display: block; margin-bottom: 12px; color: var(--border); }

/* Modal detail admin */
.detail-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.detail-overlay.actif { display: flex; }
.detail-boite { background: #fff; border-radius: 12px; max-width: 660px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.detail-tete { background: linear-gradient(90deg, var(--green-dark), var(--green)); color: #fff; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-radius: 12px 12px 0 0; position: sticky; top: 0; }
.detail-tete h3 { font-family: var(--font-titre); font-size: 18px; }
.detail-fermer { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.detail-corps { padding: 22px 24px; }
.detail-section { margin-bottom: 20px; }
.detail-section h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.detail-ligne { display: grid; grid-template-columns: 130px 1fr; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.detail-lbl { color: var(--grey); font-weight: 500; }
.detail-val { color: var(--dark); word-break: break-word; }

/* Connexion admin */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--dark) 0%, #1e3a2f 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #fff; border-radius: 14px; padding: 48px 40px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-icone { font-size: 48px; color: var(--orange); margin-bottom: 10px; }
.login-card h1 { font-family: var(--font-titre); font-size: 22px; color: var(--dark); margin-bottom: 5px; }
.login-card .sous { font-size: 13px; color: var(--grey); margin-bottom: 28px; }
.input-icone { position: relative; }
.input-icone i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #aaa; }
.input-icone input { padding-left: 38px; }
.btn-login { width: 100%; padding: 13px; background: var(--green); color: #fff; border: none; border-radius: 7px; font-size: 15px; font-weight: 700; font-family: var(--font-texte); cursor: pointer; transition: background .3s; margin-top: 4px; }
.btn-login:hover { background: var(--green-dark); }

/* ── FOOTER ── */
.footer { background: var(--dark); color: #fff; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { font-family: var(--font-titre); font-size: 26px; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 4px; }
.footer-logo span { display: block; font-size: 14px; color: rgba(255,255,255,.4); font-weight: 400; margin-top: 4px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; margin-top: 14px; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .2s; }
.footer-socials a:hover { background: var(--orange); }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a { color: rgba(255,255,255,.5); transition: color .2s; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-col ul li a i { font-size: 10px; color: var(--orange); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 10px; }
.footer-contact li i { color: var(--orange); margin-top: 2px; }
.footer-contact li a { color: rgba(255,255,255,.5); }
.footer-contact li a:hover { color: var(--orange); }
.footer-bottom { text-align: center; padding: 18px 20px; font-size: 12px; color: rgba(255,255,255,.3); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grille { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .nav-desktop, .btn-header-annuaire, .btn-header-inscrire { display: none; }
    .burger { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .form-ligne { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .sb-div { display: none; }
    .filtres-inner { flex-direction: column; }
    .filtre-search { width: 100%; }
    .membres-grille { grid-template-columns: 1fr; }
    .modal-ligne { grid-template-columns: 1fr; }
    .modal-corps { padding: 18px 20px; }
    .modal-tete { padding: 20px; }
    .annuaire-hero-inner { flex-direction: column; text-align: center; }
    .annuaire-compteur { width: 100%; }
    .contact-grille { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .admin-stats { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 14px; }
    .login-card { padding: 36px 22px; }
    .form-bloc { padding: 20px 16px; }
}
