/* ==========================================================
   LIRE-AFRIQUE — Design System
   Palette dérivée du logo : vert profond / terre cuite / or
   Typographie : Fraunces (display) + Work Sans (texte)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Couleurs de marque */
    --primary: #1F4D3E;
    --primary-dark: #123025;
    --primary-light: #2E6B57;
    --secondary: #C1673A;
    --secondary-dark: #9C4E29;
    --accent: #D4A73A;
    --dark: #14171A;
    --light: #FBF8F2;
    --paper: #F3EEE2;
    --text: #26231F;
    --text-muted: #6B655A;
    --border: #E6E0D2;
    --white: #ffffff;

    /* Typographie */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Rayons / ombres */
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 10px rgba(20, 23, 26, 0.06);
    --shadow-md: 0 10px 30px rgba(20, 23, 26, 0.10);
    --shadow-lg: 0 25px 60px rgba(20, 23, 26, 0.18);

    --container: 1220px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 70px 0; }
.section--dark { background: var(--primary); color: var(--light); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--paper { background: var(--paper); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--secondary);
    display: inline-block;
}
.section--dark .eyebrow { color: var(--accent); }
.section--dark .eyebrow::before { background: var(--accent); }

/* Motif signature : trame tissée, utilisé en filigrane */
.woven-mark {
    width: 44px; height: 44px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border: 1.5px solid transparent;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--secondary-dark); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark { border-color: var(--dark); color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: #c2952b; }
/* Bouton utilitaire du header (Se connecter / Mon espace) : s'adapte au fond
   transparent (hero sombre) et au fond clair une fois le header scrollé. */
.btn-header { color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); background: transparent; }
.btn-header:hover { background: rgba(255,255,255,0.14); }
.site-header.is-scrolled .btn-header { color: var(--text); border-color: var(--border); }
.site-header.is-scrolled .btn-header:hover { background: var(--paper); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ==========================================================
   GOOGLE TRANSLATE — bouton flottant (bas droite), limité à 4 langues.
   Le widget officiel de Google reste totalement invisible (positionné
   hors écran) ; seule notre propre interface est affichée.
   ========================================================== */
body { top: 0 !important; position: static !important; } /* annule le décalage que Google impose au <body> */
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

.translate-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1300;
}
.translate-fab-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.translate-fab-toggle:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.translate-fab-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.translate-fab.is-open .translate-fab-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.translate-fab-lang {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.translate-fab-lang:hover { background: var(--paper); color: var(--primary); }

@media (max-width: 640px) {
    .translate-fab { right: 16px; bottom: 16px; }
    .translate-fab-toggle { width: 46px; height: 46px; }
}
/* Évite toute superposition avec le panneau du menu mobile ouvert
   (l'overlay et le bouton flottant sont des éléments voisins dans le HTML). */
.nav-overlay.is-visible ~ .translate-fab { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
    background: rgba(251, 248, 242, 0.92);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); transition: color var(--transition); }
.site-header.is-scrolled .brand { color: var(--primary-dark); }
.brand-mark { width: 40px; height: 40px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    color: var(--white);
    font-weight: 500;
    font-size: 0.94rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
.site-header.is-scrolled .main-nav a.nav-link { color: var(--text); }
.main-nav a.nav-link:hover, .main-nav li.has-dropdown:hover > a.nav-link { background: rgba(255,255,255,0.14); }
.site-header.is-scrolled .main-nav a.nav-link:hover { background: var(--paper); }

.main-nav li.has-dropdown { position: relative; }
.main-nav .dropdown {
    position: absolute; top: 100%; left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    min-width: 240px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--transition);
}
.main-nav li.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text); font-size: 0.92rem; }
.main-nav .dropdown a:hover { background: var(--paper); color: var(--primary); }
.mobile-only-nav-item { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
    .mobile-only-nav-item { display: block; }
    .main-nav { position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: var(--white); flex-direction: column; align-items: stretch; padding: 100px 28px 40px; transform: translateX(100%); transition: transform var(--transition); overflow-y: auto; }
    .main-nav.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); height: 500px;}
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .main-nav a.nav-link { color: var(--text); padding: 16px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
    .main-nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 0 10px 14px; }
    .main-nav li.has-dropdown.is-open .dropdown { display: block; }
    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; border: none; background: rgba(255,255,255,0.15); border-radius: var(--radius-sm);
        z-index: 1100;
    }
    .site-header.is-scrolled .nav-toggle { background: var(--paper); }
    .nav-toggle span { display: block; height: 2px; width: 22px; margin: 0 auto; background: var(--white); border-radius: 2px; transition: all var(--transition); }
    .site-header.is-scrolled .nav-toggle span { background: var(--text); }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-overlay { position: fixed; inset: 0; background: rgba(20,23,26,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity var(--transition); }
    .nav-overlay.is-visible { opacity: 1; visibility: visible; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    color: var(--white);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,48,37,0.55) 0%, rgba(18,48,37,0.78) 55%, rgba(18,48,37,0.96) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-top: 90px; }
.hero-content .eyebrow { color: var(--accent); }
.hero-content .eyebrow::before { background: var(--accent); }
.hero-content h1 { color: var(--white); }
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-scroll {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7);
    z-index: 2;
}
.hero-scroll .line { width: 1px; height: 34px; background: rgba(255,255,255,0.5); overflow: hidden; position: relative; }
.hero-scroll .line::after { content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background: var(--accent); animation: scrollLine 1.8s infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ==========================================================
   COMPOSANTS RÉUTILISABLES
   ========================================================== */

/* Grille "Qui sommes-nous" */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.stat-card {
    position: absolute; bottom: -30px; right: -30px;
    background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    padding: 22px 26px; text-align: center; min-width: 150px;
}
.stat-card .stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--secondary); line-height: 1; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.stats-row { display: flex; gap: 40px; margin: 32px 0; flex-wrap: wrap; }
.stats-row .stat-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--primary); font-weight: 700; }
.stats-row .stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Cartes "Nos domaines" */
.domains-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.domain-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 34px 26px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.domain-icon {
    width: 54px; height: 54px; border-radius: var(--radius-sm);
    background: var(--paper); display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--primary);
    transition: background var(--transition), color var(--transition);
}
.domain-card:hover .domain-icon { background: var(--primary); color: var(--white); }
.domain-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.domain-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* Actualités - magazine */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-top: 50px; align-items: stretch; }
.news-featured { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; box-shadow: var(--shadow-md); }
.news-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.news-featured:hover img { transform: scale(1.05); }
.news-featured::after { content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(20,23,26,0.9) 0%, rgba(20,23,26,0.15) 60%); }
.news-featured-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; z-index: 2; color: var(--white); }
.news-tag { display: inline-block; background: var(--secondary); color: var(--white); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 30px; margin-bottom: 14px; font-weight: 600; }
.news-featured-content h3 { color: var(--white); font-size: 1.6rem; }
.news-meta { font-size: 0.82rem; color: rgba(255,255,255,0.75); display: flex; gap: 14px; margin-top: 10px; }

.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-item { display: flex; gap: 18px; border-bottom: 1px solid var(--border); padding-bottom: 22px; }
.news-item:last-child { border-bottom: none; }
.news-item-thumb { width: 110px; height: 110px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.news-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-item:hover .news-item-thumb img { transform: scale(1.08); }
.news-item-body .news-tag { background: var(--paper); color: var(--secondary); }
.news-item-body h4 { font-family: var(--font-display); font-size: 1.02rem; margin: 8px 0 6px; line-height: 1.35; }
.news-item-body .news-meta { color: var(--text-muted); }

/* Cartes d'articles (grille) */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.article-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.article-card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.article-card:hover .article-card-media img { transform: scale(1.08); }
.article-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.article-card-body h3 { font-size: 1.12rem; margin: 10px 0 12px; }
.article-card-body p { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.article-card-body .news-meta { color: var(--text-muted); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

/* Immersion culturelle */
.immersion-section { position: relative; color: var(--white); overflow: hidden; }
.immersion-bg { position: absolute; inset: 0; }
.immersion-bg img { width: 100%; height: 100%; object-fit: cover; }
.immersion-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(120deg, rgba(18,48,37,0.94) 30%, rgba(18,48,37,0.55) 100%); }
.immersion-content { position: relative; z-index: 2; max-width: 620px; }
.immersion-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.immersion-tags span { border: 1px solid rgba(255,255,255,0.35); padding: 8px 16px; border-radius: 30px; font-size: 0.82rem; }

/* Citation / manifeste */
.manifesto { text-align: center; background: var(--dark); color: var(--white); padding: 120px 0; }
.manifesto blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 900px; margin: 0 auto 24px; line-height: 1.35; font-weight: 500; }
.manifesto cite { font-style: normal; color: var(--accent); font-size: 0.95rem; letter-spacing: 0.03em; }
.quote-mark { width: 46px; height: 46px; margin: 0 auto 30px; color: var(--accent); }

/* Newsletter */
.newsletter-box { background: var(--secondary); border-radius: var(--radius-lg); padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; color: var(--white); }
.newsletter-box h2 { color: var(--white); margin-bottom: 8px; }
.newsletter-form { display: flex; gap: 10px; flex: 1; min-width: 300px; max-width: 460px; }
.newsletter-form input { flex: 1; padding: 15px 18px; border-radius: var(--radius-sm); border: none; font-size: 0.95rem; }
.newsletter-form button { background: var(--dark); color: var(--white); border: none; padding: 15px 26px; border-radius: var(--radius-sm); font-weight: 600; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--primary-dark); }
.form-message { margin-top: 12px; font-size: 0.88rem; }

/* Publications / ressources */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pub-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px; background: var(--white); transition: box-shadow var(--transition), transform var(--transition); }
.pub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pub-icon { color: var(--secondary); margin-bottom: 18px; }

/* ==========================================================
   PAGES INTERNES
   ========================================================== */
.page-hero { background: var(--primary-dark); color: var(--white); padding: 170px 0 80px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p { max-width: 620px; color: rgba(255,255,255,0.82); font-size: 1.05rem; }

.prose { max-width: 780px; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose p { color: var(--text); font-size: 1.03rem; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.5em; }
.prose img { border-radius: var(--radius-md); margin: 1.6em 0; }

/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius-md); padding: 30px 24px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; border: 4px solid var(--paper); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .role { color: var(--secondary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px; }
.team-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* Article (page de lecture) */
.article-header { text-align: center; max-width: 780px; margin: 0 auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 40px 0; box-shadow: var(--shadow-md); max-height: 520px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-share { display: flex; gap: 10px; align-items: center; margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--primary); transition: background var(--transition), color var(--transition); }
.share-btn:hover { background: var(--primary); color: var(--white); }

/* Filtres / recherche actualités */
.filters-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 50px; }
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill { padding: 10px 20px; border-radius: 30px; border: 1.5px solid var(--border); font-size: 0.88rem; font-weight: 500; transition: all var(--transition); }
.filter-pill:hover, .filter-pill.is-active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.search-box { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.search-box input { border: none; padding: 11px 16px; font-size: 0.9rem; width: 220px; }
.search-box button { background: var(--primary); color: var(--white); border: none; padding: 0 18px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.pagination a, .pagination span { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: 0.9rem; transition: all var(--transition); }
.pagination a:hover { background: var(--paper); }
.pagination .is-active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-item { display: flex; gap: 18px; margin-bottom: 28px; }
.contact-info-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.94rem; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: 30px; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Alertes de formulaire */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 20px; }
.alert-success { background: #E4F1E8; color: var(--primary-dark); border: 1px solid #B9DCC4; }
.alert-error { background: #FBEAE4; color: var(--secondary-dark); border: 1px solid #F0C4B3; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 90px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 22px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--accent); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--accent); }

/* ==========================================================
   ANIMATIONS AU SCROLL
   ========================================================== */
/* Par défaut (JS absent, en échec, ou avant chargement) : contenu visible.
   L'animation ne s'active que si <html> porte la classe "js" (ajoutée
   en tout début de page par un script inline dans <head>). Ainsi, si le
   JavaScript ne se charge pas ou plante, rien ne reste invisible. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
    .domains-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid, .pub-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .about-grid, .contact-grid, .news-grid { grid-template-columns: 1fr; gap: 40px; }
    .stat-card { position: static; margin-top: 20px; display: inline-block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .header-actions .btn-header { display: none; } /* évite le débordement ; accessible via le menu mobile */
    .section { padding: 70px 0; }
    .domains-grid, .articles-grid, .pub-grid, .team-grid { grid-template-columns: 1fr; }
    .newsletter-box { padding: 36px 24px; flex-direction: column; align-items: stretch; }
    .newsletter-form { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .contact-form { padding: 28px; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .search-box input { width: 100%; }
}
