/* =============================================================
   ONACI - Feuille de style principale
   Tailwind CSS est chargé via CDN pour le développement.
   En production : compiler avec `npx tailwindcss -i input.css -o app.css --minify`
   ============================================================= */

/* -- Polices Google Fonts (chargées dans le <head>) -- */

/* -- Variables de couleur ONACI -- */
:root {
    --vert-onaci:    #1E7B3C;
    --vert-fonce:    #14552A;
    --vert-clair:    #E8F3EC;
    --orange-ci:     #F77F00;
    --texte:         #1F2933;
    --fond:          #FFFFFF;
}

/* -- Réinitialisation de base -- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--texte);
    background: var(--fond);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* -- Liens -- */
a { color: var(--vert-onaci); text-decoration: none; transition: color .2s; }
a:hover { color: var(--vert-fonce); }

/* =============================================================
   EN-TÊTE
   ============================================================= */

/* Barre supérieure */
.topbar {
    background: var(--vert-fonce);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    transition: background .2s;
}
.topbar .social-icon:hover { background: var(--orange-ci); }

/* Bandeau Flash Infos */
.flash-bar {
    background: #fff;
    border-bottom: 2px solid var(--vert-onaci);
    padding: 6px 0;
    overflow: hidden;
}
.flash-bar .flash-label {
    background: var(--orange-ci);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    white-space: nowrap;
    border-radius: 2px;
    flex-shrink: 0;
}
.flash-ticker {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    font-size: 13px;
    color: var(--texte);
}
.flash-ticker-inner {
    display: inline-block;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}
.flash-ticker-inner:hover { animation-play-state: paused; }
.flash-ticker-inner a { color: var(--vert-fonce); margin-right: 40px; }
.flash-ticker-inner a:hover { color: var(--orange-ci); }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =============================================================
   EN-TÊTE — 2 rangées : logo+actions (haut) + navigation (bas)
   ============================================================= */
.main-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
}

/* Rangée 1 : Logo + boutons d'action */
.header-top { padding: 10px 0; border-bottom: 1px solid #e8f0e9; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.header-logo img { height: 62px; width: auto; flex-shrink: 0; }
.header-brand { display: flex; flex-direction: column; line-height: 1.2; }
.header-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--vert-fonce);
    letter-spacing: .02em;
}
.header-brand-sub {
    font-size: 10.5px;
    font-weight: 600;
    color: #555;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    max-width: 340px;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Boutons */
.btn-inscrire {
    background: var(--orange-ci);
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background .2s, transform .1s;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.btn-inscrire:hover { background: #d96e00; transform: translateY(-1px); color: #fff !important; }

.btn-connexion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--vert-fonce) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 5px;
    border: 2px solid var(--vert-onaci);
    white-space: nowrap;
    min-height: 44px;
    transition: background .2s, color .2s;
}
.btn-connexion:hover { background: var(--vert-onaci); color: #fff !important; }

/* Bouton hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 8px;
}
.hamburger span {
    display: block;
    height: 2.5px;
    background: var(--vert-fonce);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Rangée 2 : Barre de navigation desktop */
.header-nav {
    display: none;  /* mobile-first : caché */
    background: var(--vert-fonce);
    border-bottom: 4px solid var(--orange-ci);
}
@media (min-width: 1024px) {
    .header-nav { display: block; }
    .hamburger { display: none !important; }
    .btn-inscrire, .btn-connexion { display: inline-flex; }
}
@media (max-width: 900px) {
    .header-brand-sub { font-size: 9px; max-width: 220px; }
}
@media (max-width: 640px) {
    .header-logo img { height: 48px; }
    .header-brand-name { font-size: 17px; }
    .header-brand-sub { display: none; }
    .btn-connexion { display: none; }
    .btn-inscrire { display: none; }
    .hamburger { display: flex !important; }
}

/* =============================================================
   NAVIGATION DESKTOP (dans .header-nav)
   ============================================================= */
.main-nav { display: block; }
.main-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
}

/* Onglets — gros, blancs sur fond vert foncé */
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 15px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,.88) !important;
    white-space: nowrap;
    transition: background .18s, color .18s;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    letter-spacing: .01em;
}
.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.10);
    border-bottom-color: var(--orange-ci);
}
.nav-link .arrow {
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    opacity: .75;
    transition: transform .2s;
}
.nav-item.open > .nav-link .arrow { transform: rotate(180deg); }

/* Sous-menus — JAMAIS visibles par défaut */
.sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 230px;
    border-top: 4px solid var(--orange-ci);
    box-shadow: 0 10px 32px rgba(0,0,0,.18);
    z-index: 700;
    border-radius: 0 0 8px 8px;
}
.nav-item.open > .sub-menu { display: block !important; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sub-menu li a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--texte) !important;
    transition: background .15s, color .15s;
    border-bottom: 1px solid #f0f0f0;
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: var(--vert-clair); color: var(--vert-fonce) !important; padding-left: 24px; }

/* =============================================================
   MENU MOBILE — overlay fullscreen redesigné
   ============================================================= */
@media (max-width: 1024px) {
    .header-nav { display: none; }
    .hamburger  { display: flex; }
}

/* Overlay : toujours fullscreen quand ouvert */
#mobileMenu {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #1a6b34 0%, #0e3d1d 100%);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#mobileNav {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .28s ease, transform .28s ease;
}
#mobileNav.open {
    opacity: 1;
    transform: none;
}

/* En-tête */
.mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    flex-shrink: 0;
}
.mob-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mob-brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    letter-spacing: .06em;
}
.mob-close-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.mob-close-btn:hover, .mob-close-btn:active { background: rgba(255,255,255,.26); }

/* Boutons CTA */
.mob-cta {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}
.mob-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 8px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.mob-cta-connect {
    background: rgba(255,255,255,.12);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.3);
}
.mob-cta-connect:hover { background: rgba(255,255,255,.22); }
.mob-cta-signup {
    background: var(--orange-ci);
    color: #fff !important;
    border: 1px solid transparent;
}
.mob-cta-signup:hover { background: #e07200; }

/* Liste de navigation */
.mob-nav-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex: 1;
}
.mob-nav-item {
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.mob-nav-link,
.mob-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    color: rgba(255,255,255,.88);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    letter-spacing: .01em;
    box-sizing: border-box;
    transition: background .15s, color .15s, border-left-color .15s;
}
.mob-nav-link:hover, .mob-nav-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
    border-left-color: var(--orange-ci);
}
.mob-nav-btn:focus { outline: none; }
.mob-nav-arrow {
    flex-shrink: 0;
    opacity: .6;
    transition: transform .3s ease, opacity .2s;
}
.mob-nav-item.open .mob-nav-btn {
    color: #fff;
    border-left-color: var(--orange-ci);
    background: rgba(255,255,255,.05);
}
.mob-nav-item.open .mob-nav-arrow { transform: rotate(180deg); opacity: 1; }

/* Sous-menu accordéon (transition max-height) */
.mob-sub-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,.22);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s ease;
}
.mob-nav-item.open .mob-sub-nav { max-height: 500px; }
.mob-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px 13px 34px;
    color: rgba(255,255,255,.7);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: all .15s;
}
.mob-sub-link:last-child { border-bottom: none; }
.mob-sub-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--orange-ci);
    flex-shrink: 0;
    opacity: .65;
    transition: opacity .15s;
}
.mob-sub-link:hover { color: #fff; background: rgba(255,255,255,.07); padding-left: 40px; }
.mob-sub-link:hover .mob-sub-dot { opacity: 1; }

/* Pied du menu */
.mob-footer {
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
    margin-top: auto;
    text-align: center;
}
.mob-footer-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(255,255,255,.5);
    font-size: 13px;
    margin: 0;
}
.mob-footer-tel a { color: rgba(255,255,255,.5); text-decoration: none; }
.mob-footer-tel a:hover { color: rgba(255,255,255,.85); }

/* Icône de recherche */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--texte);
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-toggle:hover { color: var(--vert-onaci); }
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 500;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.search-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--vert-onaci);
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

/* =============================================================
   BANNIÈRE DE PAGE INTÉRIEURE
   ============================================================= */
.page-banner {
    background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-onaci) 100%);
    padding: 48px 0 36px;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/img/bg-pattern.svg') center/cover;
    opacity: .05;
}
.page-banner h1 {
    color: #fff;
    font-size: clamp(22px, 4vw, 36px);
    position: relative;
}
/* Fil d'Ariane */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.8);
    position: relative;
    margin-top: 8px;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* =============================================================
   BLOCS DE LA PAGE D'ACCUEIL
   ============================================================= */

/* Conteneur générique */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* Section titres */
.section-title {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--vert-fonce);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 28px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--orange-ci);
    border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

/* Carrousel "À la une" */
.carousel {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 320px;
    max-height: 560px;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    cursor: pointer;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .75;
}
.carousel-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: 32px 24px 24px;
    color: #fff;
}
.carousel-caption .cat-badge {
    display: inline-block;
    background: var(--orange-ci);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.carousel-caption h2 {
    font-size: clamp(18px, 3vw, 28px);
    color: #fff;
    margin-bottom: 6px;
}
.carousel-nav {
    position: absolute;
    bottom: 16px; right: 16px;
    display: flex;
    gap: 6px;
}
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s;
    border: none;
    padding: 0;
}
.carousel-dot.active { background: var(--orange-ci); width: 24px; border-radius: 4px; }
.carousel-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    color: #fff;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.carousel-arrow:hover { background: var(--vert-onaci); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Bloc inscription */
.bloc-inscription {
    background: linear-gradient(135deg, var(--vert-onaci), var(--vert-fonce));
    color: #fff;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    margin: 32px 0;
}
.bloc-inscription h2 { color: #fff; font-size: clamp(18px, 3vw, 24px); }
.bloc-inscription p  { color: rgba(255,255,255,.85); margin: 8px 0 20px; }

/* Cartes d'actualités */
.actu-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.actu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.actu-card img {
    width: 100%; height: 180px;
    object-fit: cover;
}
.actu-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.actu-card .cat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 2px;
    background: var(--vert-clair);
    color: var(--vert-fonce);
    margin-bottom: 8px;
    align-self: flex-start;
}
.actu-card h3 {
    font-size: 15px;
    color: var(--texte);
    margin-bottom: 6px;
    flex: 1;
    line-height: 1.4;
}
.actu-card .date { font-size: 12px; color: #888; }

/* Grille 3 colonnes */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid-3 { grid-template-columns: 1fr; } }

/* Grille 4 colonnes */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* Chiffres clés */
.stat-card {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border-top: 4px solid var(--vert-onaci);
}
.stat-card .stat-icon { font-size: 36px; margin-bottom: 12px; }
.stat-card .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--vert-onaci);
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* Onglets de section */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
}
.tab-btn {
    padding: 10px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    min-height: 44px;
    white-space: nowrap;
}
.tab-btn.active { color: var(--vert-onaci); border-bottom-color: var(--vert-onaci); }
.tab-btn:hover  { color: var(--vert-onaci); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* e-Services tuiles */
.service-tile {
    background: #fff;
    border: 2px solid var(--vert-clair);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--texte) !important;
    min-height: 130px;
    justify-content: center;
}
.service-tile:hover {
    border-color: var(--vert-onaci);
    box-shadow: 0 4px 16px rgba(30,123,60,.15);
    transform: translateY(-3px);
    color: var(--vert-fonce) !important;
}
.service-tile .icon {
    width: 52px; height: 52px;
    background: var(--vert-clair);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.service-tile span { font-size: 14px; font-weight: 600; font-family: 'Montserrat', sans-serif; }

/* Agenda item */
.agenda-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
.agenda-date-box {
    background: var(--vert-onaci);
    color: #fff;
    border-radius: 6px;
    min-width: 56px;
    text-align: center;
    padding: 8px 6px;
    flex-shrink: 0;
}
.agenda-date-box .day { font-size: 22px; font-weight: 700; line-height: 1; font-family: 'Montserrat', sans-serif; }
.agenda-date-box .month { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

/* Bandeau partenaires */
.partners-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    flex-wrap: nowrap;
}
.partners-track {
    display: flex;
    gap: 40px;
    align-items: center;
    animation: scroll-partners 20s linear infinite;
    flex-shrink: 0;
}
.partners-track:hover { animation-play-state: paused; }
.partners-track img {
    height: 48px;
    width: auto;
    filter: grayscale(60%);
    transition: filter .2s;
    object-fit: contain;
}
.partners-track img:hover { filter: grayscale(0); }
@keyframes scroll-partners {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================================
   PIED DE PAGE
   ============================================================= */
.main-footer {
    background: var(--vert-fonce);
    color: rgba(255,255,255,.8);
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h3 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,.15);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    transition: color .2s;
}
.footer-col ul li a:hover { color: var(--orange-ci); }
.footer-col .contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    align-items: flex-start;
}
.footer-col .contact-item .icon { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    background: rgba(0,0,0,.2);
    padding: 14px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); margin: 0 8px; }
.footer-bottom a:hover { color: var(--orange-ci); }

/* =============================================================
   ÉLÉMENTS FLOTTANTS
   ============================================================= */

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 20px;
    z-index: 900;
    background: #25D366;
    color: #fff;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
    color: #fff !important;
}

/* Retour en haut */
.scroll-top {
    position: fixed;
    bottom: 90px; right: 20px;
    z-index: 900;
    background: var(--vert-onaci);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--vert-fonce); transform: translateY(-2px); }

/* Pop-up d'annonce */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.popup-box {
    position: relative;
    max-width: 540px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.popup-close {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================================
   FORMULAIRES
   ============================================================= */
.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--texte);
}
.form-label .required { color: #dc2626; margin-left: 2px; }

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    font-size: 16px;
    color: var(--texte);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    min-height: 48px;
    font-family: 'Inter', sans-serif;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--vert-onaci);
    box-shadow: 0 0 0 3px rgba(30,123,60,.1);
}
.form-input.error, .form-select.error { border-color: #dc2626; }
.form-error { color: #dc2626; font-size: 13px; margin-top: 4px; }
.form-hint  { color: #888; font-size: 12px; margin-top: 4px; }

/* Barre de progression du formulaire multi-étapes */
.form-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
}
.form-steps::before {
    content: '';
    position: absolute;
    top: 20px; left: 16.66%; right: 16.66%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}
.step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s;
}
.step-item.active   .step-circle { background: var(--vert-onaci); color: #fff; }
.step-item.done     .step-circle { background: var(--vert-clair); color: var(--vert-onaci); }
.step-label { font-size: 12px; color: #888; text-align: center; font-weight: 600; }
.step-item.active .step-label { color: var(--vert-onaci); }

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    min-height: 48px;
    text-decoration: none;
}
.btn-primary {
    background: var(--vert-onaci);
    color: #fff !important;
    border-color: var(--vert-onaci);
}
.btn-primary:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff !important; }
.btn-secondary {
    background: #fff;
    color: var(--vert-onaci) !important;
    border-color: var(--vert-onaci);
}
.btn-secondary:hover { background: var(--vert-clair); color: var(--vert-fonce) !important; }
.btn-orange {
    background: var(--orange-ci);
    color: #fff !important;
    border-color: var(--orange-ci);
}
.btn-orange:hover { background: #d96e00; border-color: #d96e00; color: #fff !important; }
.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Colonne latérale (pages intérieures) */
.sidebar { position: relative; }
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    overflow: hidden;
    margin-bottom: 20px;
}
.sidebar-widget-title {
    background: var(--vert-onaci);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.sidebar-widget-body { padding: 16px; }

/* =============================================================
   TABLEAU DE BORD ADMIN
   ============================================================= */
.admin-sidebar {
    background: var(--vert-fonce);
    color: rgba(255,255,255,.85);
    min-height: 100vh;
    width: 240px;
    flex-shrink: 0;
}
@media (max-width: 1024px) { .admin-sidebar { display: none; } }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    color: rgba(255,255,255,.75);
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: var(--orange-ci);
}
.admin-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    border-top: 4px solid var(--vert-onaci);
    display: flex;
    gap: 16px;
    align-items: center;
}
.admin-stat-card.orange { border-top-color: var(--orange-ci); }
.admin-stat-card .big-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--vert-onaci);
    line-height: 1;
}
.admin-stat-card.orange .big-number { color: var(--orange-ci); }

/* Badges de statut */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-pending  { background: #fff3cd; color: #856404; }
.badge-valid    { background: #d1e7dd; color: #0a3622; }
.badge-rejected { background: #f8d7da; color: #58151c; }

/* Tables admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.admin-table tr:hover td { background: #f8f9fa; }

/* =============================================================
   ADMIN DESIGN SYSTEM — classes .adm-*
   ============================================================= */

/* En-tête de page */
.adm-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.adm-hd-left { flex: 1; min-width: 0; }
.adm-hd-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #1E7B3C;
    background: #e8f3ec;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.adm-hd-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f2318;
    margin-bottom: 3px;
    line-height: 1.2;
}
.adm-hd-sub { font-size: 13px; color: #888; }

/* Cartes */
.adm-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    overflow: hidden;
}
.adm-card-body { padding: 24px; }
.adm-card-head {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.adm-card-head-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Flash messages */
.adm-flash {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.adm-flash-ok  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.adm-flash-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.adm-flash-warn{ background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* Tables */
.adm-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-tbl thead tr { background: #f8f9fa; }
.adm-tbl th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    border-bottom: 1px solid #e8e8e8;
    white-space: nowrap;
}
.adm-tbl td { padding: 11px 16px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.adm-tbl tbody tr:hover td { background: #fafafa; }
.adm-tbl tbody tr:last-child td { border-bottom: none; }

/* Boutons */
.adm-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
}
.adm-btn:active { transform: scale(.97); }
.adm-btn-primary { background: linear-gradient(135deg,#14552A,#1E7B3C); color: #fff; box-shadow: 0 2px 8px rgba(30,123,60,.3); }
.adm-btn-primary:hover { opacity: .9; }
.adm-btn-ghost { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.adm-btn-ghost:hover { background: #e8f3ec; color: #1E7B3C; border-color: #bbf7d0; }
.adm-btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.adm-btn-danger:hover { background: #dc2626; color: #fff; }
.adm-btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 6px; }
.adm-btn-view  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.adm-btn-view:hover  { background: #1d4ed8; color: #fff; }

/* Champs de formulaire */
.adm-field { margin-bottom: 16px; }
.adm-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.adm-label .req { color: #dc2626; margin-left: 2px; }
.adm-input,
.adm-select,
.adm-textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.adm-input:focus, .adm-select:focus, .adm-textarea:focus {
    border-color: #1E7B3C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,123,60,.1);
}
.adm-input.err, .adm-select.err { border-color: #dc2626; }
.adm-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.adm-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.adm-input-err { font-size: 12px; color: #dc2626; margin-top: 4px; }
.adm-file-input { font-size: 13px; color: #555; }
.adm-file-hint { font-size: 11px; color: #9ca3af; margin-top: 3px; }

/* État vide */
.adm-empty {
    padding: 60px 24px;
    text-align: center;
}
.adm-empty svg { opacity: .25; margin-bottom: 16px; }
.adm-empty-title { font-size: 15px; font-weight: 600; color: #888; margin-bottom: 6px; }
.adm-empty-sub { font-size: 13px; color: #bbb; }

/* Pagination */
.adm-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.adm-pager a, .adm-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    color: #555;
    background: #fff;
    transition: all .15s;
}
.adm-pager a:hover { background: #e8f3ec; border-color: #bbf7d0; color: #1E7B3C; }
.adm-pager .cur { background: #14552A; border-color: #14552A; color: #fff; }

/* Grille layout */
.adm-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.adm-grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) {
    .adm-grid-2-1 { grid-template-columns: 1fr; }
    .adm-grid-2   { grid-template-columns: 1fr; }
}

/* Breadcrumb retour */
.adm-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1E7B3C;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 16px;
}
.adm-back:hover { text-decoration: underline; }

/* Badge statut universel */
.adm-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; gap: 4px; }
.adm-status-green  { background: #dcfce7; color: #166534; }
.adm-status-orange { background: #fef3c7; color: #92400e; }
.adm-status-red    { background: #fee2e2; color: #991b1b; }
.adm-status-blue   { background: #dbeafe; color: #1d4ed8; }
.adm-status-gray   { background: #f3f4f6; color: #6b7280; }
.adm-status-purple { background: #ede9fe; color: #6d28d9; }

/* =============================================================
   UTILITAIRES
   ============================================================= */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-alt { background: var(--vert-clair); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }

/* Lien "Voir tout" */
.see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vert-onaci) !important;
    border: 1.5px solid var(--vert-onaci);
    padding: 8px 18px;
    border-radius: 4px;
    transition: background .2s, color .2s;
}
.see-all:hover { background: var(--vert-onaci); color: #fff !important; }

/* =============================================================
   FORMULAIRES — INSCRIPTION & PORTAIL AGRICULTEUR
   ============================================================= */

/* Éléments de formulaire */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.form-label .required { color: #dc2626; }

.form-input,
.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: var(--texte);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--vert-onaci);
    box-shadow: 0 0 0 3px rgba(30,123,60,.12);
}
.form-input.error,
.form-select.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}
.form-input::placeholder { color: #9ca3af; }

.form-select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
.form-select:disabled { background-color: #f3f4f6; color: #9ca3af; cursor: not-allowed; }

.form-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.form-error {
    margin-top: 4px;
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Indicateur d'étapes */
.form-steps {
    display: flex;
    align-items: center;
    margin: 28px 0 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    padding: 16px 24px;
    position: relative;
}
.form-steps::before {
    content: '';
    position: absolute;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    top: 50%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 3px solid #e0e0e0;
    transition: all .3s;
}
.step-item.active .step-circle {
    background: var(--vert-onaci);
    color: #fff;
    border-color: var(--vert-onaci);
    box-shadow: 0 4px 12px rgba(30,123,60,.3);
}
.step-item.done .step-circle {
    background: var(--vert-clair);
    color: var(--vert-onaci);
    border-color: var(--vert-onaci);
}
.step-item.done .step-circle::after {
    content: '✓';
    font-size: 18px;
}
.step-item.done .step-circle { font-size: 0; }
.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-align: center;
}
.step-item.active .step-label { color: var(--vert-onaci); }
.step-item.done .step-label { color: var(--vert-fonce); }

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
    min-height: 46px;
    gap: 8px;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary {
    background: var(--vert-onaci);
    color: #fff;
    border-color: var(--vert-onaci);
}
.btn-primary:hover:not(:disabled) {
    background: var(--vert-fonce);
    border-color: var(--vert-fonce);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,123,60,.25);
}

.btn-orange {
    background: var(--orange-ci);
    color: #fff;
    border-color: var(--orange-ci);
}
.btn-orange:hover:not(:disabled) {
    background: #d96e00;
    border-color: #d96e00;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247,127,0,.3);
}

.btn-secondary {
    background: #fff;
    color: var(--texte);
    border-color: #d0d5dd;
}
.btn-secondary:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: var(--texte);
}

/* Fil d'Ariane */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span:not(.sep) { color: rgba(255,255,255,.9); }
.breadcrumb .sep { color: rgba(255,255,255,.5); }

/* Grille responsive 2 colonnes → 1 sur mobile */
@media (max-width: 640px) {
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .form-steps { padding: 12px 16px; }
    .step-circle { width: 32px; height: 32px; font-size: 14px; }
    .step-label { font-size: 11px; }
    .form-steps::before { left: calc(16.66% + 16px); right: calc(16.66% + 16px); }
}

/* =============================================================
   ADMIN — STYLES SUPPLÉMENTAIRES
   ============================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green  { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #fae8ff; color: #86198f; }
.badge-gray   { background: #f3f4f6; color: #4b5563; }

/* =============================================================
   CARTES ACTIONS — photo en en-tête
   ============================================================= */
.action-card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    height: 200px;
}
.action-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.action-card:hover .action-card-img { transform: scale(1.06); }
.action-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
}
.action-badge {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 3px;
}

/* =============================================================
   SECTION FILIÈRES AGRICOLES
   ============================================================= */
.filieres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.filiere-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
    text-align: center;
    text-decoration: none !important;
    color: inherit !important;
}
.filiere-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.filiere-card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.filiere-card-img-placeholder {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.filiere-card-body {
    padding: 12px 10px;
}
.filiere-card-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--vert-fonce);
    margin: 0 0 4px;
}
.filiere-card-type {
    font-size: 11px;
    color: #888;
    margin: 0;
}
.filiere-export { border-top: 3px solid var(--orange-ci); }
.filiere-vivrier { border-top: 3px solid var(--vert-onaci); }

/* =============================================================
   HÉROS — CARROUSEL AGRICOLE
   ============================================================= */
.hero-carousel {
    position: relative;
    height: clamp(480px, 58vw, 660px);
    overflow: hidden;
    background: #0d3a1c;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity .5s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-image: var(--bg-m);
    transform: scale(1.04);
    transition: transform 6s ease;
}
/* Desktop : nouvelles images au format paysage adapté */
@media (min-width: 768px) {
    .hero-bg { background-image: var(--bg-d); background-position: center center; }
}
.hero-slide.active .hero-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,40,15,.85) 0%, rgba(10,40,15,.4) 50%, rgba(10,40,15,.1) 100%),
                linear-gradient(to right, rgba(10,40,15,.5) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    width: 88%;
    max-width: 900px;
    text-align: center;
    padding: 36px clamp(20px, 3vw, 48px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: var(--orange-ci);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 22px;
}
.hero-titre {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4.2vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 28px;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-sous {
    font-size: clamp(15px, 1.8vw, 20px);
    color: rgba(255,255,255,.90);
    margin: 0 0 52px;
    line-height: 1.6;
    max-width: 620px;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Flèches héros */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.hero-arrow:hover { background: var(--vert-onaci); }
#heroPrev { left: 16px; }
#heroNext { right: 16px; }

/* Pastilles héros */
.hero-dots {
    position: absolute;
    bottom: 18px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .2s, border-radius .2s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* =============================================================
   MOT DU PRÉSIDENT — REDESIGN
   ============================================================= */
.pres-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1f10 0%, #14371e 45%, #0f2c18 100%);
    padding: 80px 0 90px;
}

/* Décorations de fond */
.pres-deco-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.pres-deco-cercle {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,123,60,.35) 0%, transparent 70%);
    pointer-events: none;
}

/* Layout principal */
.pres-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---- Colonne photo ---- */
.pres-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.pres-photo-frame {
    position: relative;
    width: 210px;
    height: 210px;
}
.pres-photo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(30,123,60,.6);
}
.pres-photo-ring-outer {
    inset: -14px;
    animation: presRingPulse 3s ease-in-out infinite;
}
.pres-photo-ring-inner {
    inset: -6px;
    border-color: rgba(247,127,0,.5);
}
@keyframes presRingPulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%       { transform: scale(1.04); opacity: 1; }
}
.pres-photo-img {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid #F77F00;
    box-shadow: 0 0 0 3px rgba(247,127,0,.2), 0 16px 48px rgba(0,0,0,.5);
    display: block;
}
.pres-photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(247,127,0,.15);
    border: 1px solid rgba(247,127,0,.4);
    color: #F77F00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ---- Colonne texte ---- */
.pres-text-col { padding: 8px 0; }

.pres-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30,123,60,.25);
    border: 1px solid rgba(30,123,60,.5);
    color: #5ee688;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.pres-titre {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: -.5px;
}
.pres-titre-accent {
    color: #F77F00;
    font-style: italic;
}

.pres-guillemet-open,
.pres-guillemet-close {
    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 0;
    color: rgba(247,127,0,.35);
    font-weight: 900;
    display: block;
    user-select: none;
}
.pres-guillemet-open  { margin-bottom: 4px; }
.pres-guillemet-close {
    text-align: right;
    margin-top: 4px;
    transform: rotate(180deg);
    display: block;
}

.pres-quote {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255,255,255,.88);
    font-style: italic;
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 3px solid #F77F00;
}

.pres-signature {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.pres-sig-trait {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #F77F00, #ffb347);
    border-radius: 2px;
    flex-shrink: 0;
}
.pres-sig-text { display: flex; flex-direction: column; gap: 2px; }
.pres-sig-nom {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
}
.pres-sig-fonction {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    letter-spacing: .03em;
}

.pres-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}
.pres-cta:hover {
    background: rgba(255,255,255,.1);
    border-color: #F77F00;
    color: #F77F00;
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .pres-section { padding: 56px 0 64px; }
    .pres-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .pres-photo-col { margin: 0 auto; }
    .pres-quote { padding: 0 0 0 14px; text-align: left; }
    .pres-signature { justify-content: center; }
    .pres-guillemet-close { display: none; }
}
@media (max-width: 480px) {
    .pres-photo-frame, .pres-photo-img { width: 170px; height: 170px; }
    .pres-photo-ring-outer { inset: -12px; }
    .pres-photo-ring-inner { inset: -5px; }
    .pres-quote { font-size: 15px; }
}
@media (max-width: 600px) {
    .hero-arrow { display: none; }
}

/* =============================================================
   BOUTONS GLOBAUX SUPPLÉMENTAIRES
   ============================================================= */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 14px; border-radius: 8px;
    padding: 11px 22px; text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: all .2s;
    white-space: nowrap;
}
.btn-green {
    background: #1E7B3C; color: #fff; border-color: #1E7B3C;
}
.btn-green:hover { background: #14552A; border-color: #14552A; color: #fff; }
.btn-orange {
    background: #F77F00; color: #fff; border-color: #F77F00;
}
.btn-orange:hover { background: #d96e00; border-color: #d96e00; color: #fff; }
.btn-outline-green {
    background: transparent; color: #1E7B3C; border-color: #1E7B3C;
}
.btn-outline-green:hover { background: #1E7B3C; color: #fff; }
.btn-outline-white {
    background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* =============================================================
   PAGE — MOT DU PRÉSIDENT
   ============================================================= */

/* Hero */
.mdp-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0a1f10 0%, #14371e 55%, #0f2c18 100%);
    padding: 64px 0 72px;
}
.mdp-hero-bg-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 32px 32px; pointer-events: none;
}
.mdp-hero-glow-left {
    position: absolute; top: -100px; left: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(30,123,60,.3) 0%, transparent 70%);
    pointer-events: none;
}
.mdp-hero-glow-right {
    position: absolute; bottom: -80px; right: -80px;
    width: 350px; height: 350px; border-radius: 50%;
    background: radial-gradient(circle, rgba(247,127,0,.2) 0%, transparent 70%);
    pointer-events: none;
}
.mdp-hero-inner { position: relative; z-index: 1; }

.mdp-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: rgba(255,255,255,.55);
    margin-bottom: 32px; flex-wrap: wrap;
}
.mdp-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.mdp-breadcrumb a:hover { color: #fff; }
.mdp-breadcrumb span { color: #F77F00; font-weight: 600; }

.mdp-hero-grid {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 56px; align-items: center;
}
.mdp-hero-photo-col { display: flex; flex-direction: column; align-items: center; gap: 0; }
.mdp-hero-photo-wrap { position: relative; width: 220px; height: 280px; }
.mdp-hero-photo-ring {
    position: absolute; border-radius: 16px; pointer-events: none;
}
.mdp-ring-1 {
    inset: -12px; border: 2px solid rgba(247,127,0,.4);
    animation: mdpRing 3s ease-in-out infinite;
}
.mdp-ring-2 { inset: -5px; border: 2px solid rgba(30,123,60,.5); border-radius: 18px; }
@keyframes mdpRing {
    0%,100% { opacity:.5; transform: scale(1); }
    50%      { opacity:1;  transform: scale(1.02); }
}
.mdp-hero-photo {
    width: 220px; height: 280px; border-radius: 14px;
    object-fit: cover; object-position: top center;
    border: 3px solid #F77F00;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    display: block;
}
.mdp-hero-photo-badge {
    position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
    background: #F77F00; color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    padding: 5px 14px; border-radius: 20px; white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 4px 14px rgba(247,127,0,.4);
}

.mdp-hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.85); font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.mdp-hero-h1 {
    font-size: clamp(34px, 5vw, 56px); font-weight: 900; color: #fff;
    line-height: 1.05; letter-spacing: -.5px; margin: 0 0 20px;
}
.mdp-hero-accent { color: #F77F00; font-style: italic; }
.mdp-hero-intro {
    font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.82);
    font-style: italic; margin: 0 0 28px;
    border-left: 3px solid #F77F00; padding-left: 18px;
}
.mdp-hero-signature {
    display: flex; align-items: center; gap: 16px;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
}
.mdp-sig-trait {
    width: 36px; height: 3px;
    background: linear-gradient(90deg, #F77F00, #ffb347);
    border-radius: 2px; flex-shrink: 0;
}
.mdp-sig-nom  { display: block; font-size: 16px; font-weight: 800; color: #fff; }
.mdp-sig-titre { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }

/* Corps */
.mdp-body {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 40px; padding-top: 48px; padding-bottom: 72px;
    align-items: start;
}
.mdp-main {}

.mdp-article {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
    overflow: hidden;
}
.mdp-article-header {
    padding: 32px 36px 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 24px; margin-bottom: 0;
}
.mdp-article-tag {
    display: inline-flex; align-items: center;
    background: #e8f5ee; color: #14552A;
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
    margin-bottom: 12px;
}
.mdp-article-h2 {
    font-size: 24px; font-weight: 800; color: #0f2318; margin: 0;
}
.mdp-article-body {
    padding: 32px 36px;
    font-size: 16px; line-height: 1.9; color: #374151;
}
.mdp-article-body p { margin: 0 0 18px; }
.mdp-article-body h3 {
    font-size: 19px; font-weight: 800; color: #0f2318;
    margin: 36px 0 14px; padding-top: 8px;
    border-top: 2px solid #f0f0f0;
}
.mdp-article-body strong { color: #0f2318; }
.mdp-article-body em { color: #14552A; font-style: italic; }

.mdp-bq {
    background: linear-gradient(135deg, #f8fdf9, #f0f9f3);
    border-left: 4px solid #1E7B3C; border-radius: 0 12px 12px 0;
    padding: 20px 24px; margin: 28px 0;
}
.mdp-bq p { font-size: 17px; font-style: italic; color: #14552A; margin: 0 0 10px; font-weight: 500; }
.mdp-bq cite { font-size: 13px; color: #666; font-style: normal; font-weight: 600; }

.mdp-liste {
    list-style: none; padding: 0; margin: 20px 0 28px;
    display: flex; flex-direction: column; gap: 16px;
}
.mdp-liste li {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fafafa; border: 1px solid #f0f0f0;
    border-radius: 12px; padding: 16px;
    font-size: 14px; color: #444; line-height: 1.6;
}
.mdp-liste li strong { display: block; color: #0f2318; font-size: 15px; margin-bottom: 3px; }
.mdp-liste li span { font-size: 13px; color: #666; }
.mdp-liste-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

/* Sidebar */
.mdp-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 80px; }

.mdp-side-card {
    background: #fff; border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,.07); padding: 22px;
}
.mdp-profil-card { text-align: center; }
.mdp-profil-photo {
    width: 90px; height: 110px; border-radius: 12px;
    object-fit: cover; object-position: top;
    border: 3px solid #F77F00; margin: 0 auto 12px; display: block;
    box-shadow: 0 6px 20px rgba(247,127,0,.2);
}
.mdp-profil-nom   { font-size: 16px; font-weight: 800; color: #0f2318; margin: 0 0 4px; }
.mdp-profil-titre { font-size: 12px; color: #666; margin: 0 0 14px; }
.mdp-profil-org {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #f8fdf9; border-radius: 8px; padding: 8px 12px;
    font-size: 11px; color: #14552A; font-weight: 600;
}

.mdp-side-titre {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 800; color: #0f2318;
    margin: 0 0 16px; padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mdp-side-stat {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid #f8f8f8;
}
.mdp-side-stat:last-child { border-bottom: none; }
.mdp-side-stat strong { font-size: 18px; font-weight: 900; color: var(--sstat-color); }
.mdp-side-stat span   { font-size: 12px; color: #777; }

.mdp-side-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mdp-side-links li a {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #444; text-decoration: none;
    padding: 7px 8px; border-radius: 8px; font-weight: 500;
    transition: background .15s, color .15s;
}
.mdp-side-links li a:hover { background: #e8f5ee; color: #14552A; }

.mdp-share-btns { display: flex; gap: 10px; }
.mdp-share-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; font-size: 12px; font-weight: 700;
    padding: 9px 12px; border-radius: 8px; text-decoration: none;
    transition: filter .2s;
}
.mdp-share-btn:hover { filter: brightness(.9); }
.mdp-share-fb { background: #1877F2; color: #fff; }
.mdp-share-wa { background: #25D366; color: #fff; }

/* CTA bas de page */
.mdp-cta-section {
    background: linear-gradient(135deg, #0a1f10 0%, #14552A 100%);
    padding: 56px 0;
}
.mdp-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}
.mdp-cta-h2 { font-size: 26px; font-weight: 900; color: #fff; margin: 0 0 8px; }
.mdp-cta-sous { font-size: 15px; color: rgba(255,255,255,.75); margin: 0; }
.mdp-cta-droite { display: flex; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1024px) {
    .mdp-body { grid-template-columns: 1fr; }
    .mdp-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .mdp-side-card { flex: 1 1 260px; }
}
@media (max-width: 768px) {
    .mdp-hero { padding: 48px 0 56px; }
    .mdp-hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .mdp-hero-photo-col { margin: 0 auto; }
    .mdp-hero-intro { text-align: left; }
    .mdp-hero-signature { justify-content: center; }
    .mdp-article-header, .mdp-article-body { padding-left: 20px; padding-right: 20px; }
    .mdp-cta-inner { flex-direction: column; text-align: center; }
    .mdp-cta-droite { justify-content: center; }
}
@media (max-width: 480px) {
    .mdp-hero-photo-wrap, .mdp-hero-photo { width: 180px; height: 230px; }
    .mdp-ring-1 { inset: -10px; }
}

/* =============================================================
   PAGE — QUI SOMMES-NOUS
   ============================================================= */

/* Hero */
.qsn-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2215 0%, #14552A 50%, #1E7B3C 100%);
    padding: 80px 0 72px;
    text-align: center;
}
.qsn-hero-deco-left {
    position: absolute;
    top: -80px; left: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,127,0,.18) 0%, transparent 70%);
    pointer-events: none;
}
.qsn-hero-deco-right {
    position: absolute;
    bottom: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,123,60,.3) 0%, transparent 70%);
    pointer-events: none;
}
.qsn-hero-inner { position: relative; z-index: 1; }
.qsn-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
    margin-bottom: 20px;
}
.qsn-hero-titre {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900; color: #fff; margin: 0 0 16px;
    line-height: 1.1; letter-spacing: -.5px;
}
.qsn-hero-sous {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,.8); line-height: 1.65;
    max-width: 620px; margin: 0 auto 40px;
}
.qsn-hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px; padding: 20px 32px; max-width: 680px; margin: 0 auto;
}
.qsn-hero-stat { padding: 8px 24px; text-align: center; }
.qsn-hero-stat strong { display: block; font-size: 26px; font-weight: 900; color: #fff; line-height: 1.1; }
.qsn-hero-stat span   { display: block; font-size: 12px; color: rgba(255,255,255,.65); margin-top: 3px; }
.qsn-hero-stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* Sections génériques */
.qsn-section { padding: 72px 0; }
.qsn-section-alt { background: #f8fdf9; }
.qsn-section-dark {
    background: linear-gradient(135deg, #0a2215 0%, #0f2c18 100%);
    padding: 72px 0;
}
.qsn-section-head { text-align: center; margin-bottom: 48px; }
.qsn-section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #e8f5ee; color: #14552A;
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
    margin-bottom: 14px;
}
.qsn-badge-light {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.85);
}
.qsn-section-titre {
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 800; color: #0f2318;
    margin: 0 0 12px; line-height: 1.2; letter-spacing: -.3px;
}
.qsn-section-sous {
    font-size: 16px; color: #666; max-width: 560px; margin: 0 auto;
}

/* Présentation */
.qsn-present-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center;
}
.qsn-present-img-wrap { position: relative; }
.qsn-present-img {
    width: 100%; border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,.14);
    display: block; object-fit: cover;
    aspect-ratio: 4/3;
}
.qsn-present-img-badge {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    background: rgba(10,34,21,.85); backdrop-filter: blur(8px);
    color: #fff; font-size: 12px; font-weight: 600;
    padding: 8px 14px; border-radius: 8px;
    display: flex; align-items: center; gap: 6px;
}
.qsn-present-para { font-size: 15px; line-height: 1.8; color: #444; margin: 0 0 14px; }
.qsn-present-para strong { color: #14552A; }
.qsn-present-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Mission & Vision */
.qsn-mv-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.qsn-mv-card {
    border-radius: 16px; padding: 36px 32px;
    position: relative; overflow: hidden;
}
.qsn-mv-mission {
    background: linear-gradient(135deg, #0f2318 0%, #14552A 100%);
    color: #fff;
}
.qsn-mv-vision {
    background: linear-gradient(135deg, #F77F00 0%, #e8650a 100%);
    color: #fff;
}
.qsn-mv-icon {
    width: 60px; height: 60px; border-radius: 14px;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.qsn-mv-titre {
    font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 14px;
}
.qsn-mv-texte {
    font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.85);
    margin: 0 0 20px;
}
.qsn-mv-liste {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.qsn-mv-liste li {
    font-size: 14px; color: rgba(255,255,255,.85);
    display: flex; align-items: flex-start; gap: 10px;
}
.qsn-mv-liste li::before {
    content: '✓';
    font-weight: 700; color: rgba(255,255,255,.6);
    flex-shrink: 0; margin-top: 1px;
}

/* Valeurs */
.qsn-valeurs-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.qsn-valeur-card {
    background: #fff; border-radius: 14px;
    padding: 28px 22px; text-align: center;
    border: 1.5px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
}
.qsn-valeur-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.qsn-valeur-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: color-mix(in srgb, var(--valeur-color) 12%, transparent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--valeur-color);
}
.qsn-valeur-titre {
    font-size: 17px; font-weight: 800; color: #0f2318;
    margin: 0 0 10px;
}
.qsn-valeur-texte { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }

/* Domaines */
.qsn-domaines-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.qsn-domaine-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; padding: 28px 22px;
    transition: background .2s, border-color .2s;
}
.qsn-domaine-card:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
}
.qsn-domaine-icon { width: 52px; height: 52px; margin: 0 0 18px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); border-radius: 14px; }
.qsn-domaine-icon svg { width: 28px; height: 28px; }
.qsn-domaine-titre {
    font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 10px;
}
.qsn-domaine-texte { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.7; margin: 0; }

/* Chiffres */
.qsn-chiffres-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.qsn-chiffre-card {
    background: #fff; border-radius: 14px; padding: 32px 20px;
    text-align: center; border: 1.5px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    position: relative; overflow: hidden;
}
.qsn-chiffre-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--chiffre-color);
}
.qsn-chiffre-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: color-mix(in srgb, var(--chiffre-color) 10%, transparent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; color: var(--chiffre-color);
}
.qsn-chiffre-nombre {
    font-size: 30px; font-weight: 900; color: var(--chiffre-color);
    line-height: 1; margin-bottom: 8px;
}
.qsn-chiffre-label { font-size: 13px; color: #666; font-weight: 500; }

/* CTA final */
.qsn-cta-section {
    background: linear-gradient(135deg, #F77F00 0%, #e8650a 100%);
    padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
.qsn-cta-deco {
    position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,.08); pointer-events: none;
}
.qsn-cta-inner { position: relative; z-index: 1; }
.qsn-cta-titre {
    font-size: clamp(22px, 3.5vw, 34px); font-weight: 900;
    color: #fff; margin: 0 0 14px; letter-spacing: -.3px;
}
.qsn-cta-sous {
    font-size: 16px; color: rgba(255,255,255,.85); max-width: 560px;
    margin: 0 auto 32px;
}
.qsn-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1024px) {
    .qsn-valeurs-grid  { grid-template-columns: repeat(2, 1fr); }
    .qsn-chiffres-grid { grid-template-columns: repeat(2, 1fr); }
    .qsn-domaines-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .qsn-hero { padding: 56px 0 52px; }
    .qsn-hero-stats { padding: 16px 20px; gap: 0; }
    .qsn-hero-stat { padding: 8px 14px; }
    .qsn-hero-stat-sep { display: none; }
    .qsn-present-grid { grid-template-columns: 1fr; gap: 32px; }
    .qsn-mv-grid { grid-template-columns: 1fr; }
    .qsn-valeurs-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }
    .qsn-domaines-grid { grid-template-columns: 1fr; }
    .qsn-chiffres-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .qsn-valeurs-grid  { grid-template-columns: 1fr; }
    .qsn-chiffres-grid { grid-template-columns: 1fr 1fr; }
    .qsn-mv-card { padding: 24px 20px; }
}

/* =============================================================
   PORTAIL AGRICULTEUR — MOBILE FIRST
   ============================================================= */

/* Header du portail */
.portail-header {
    background: linear-gradient(135deg, var(--vert-fonce), var(--vert-onaci));
    padding: 24px 0;
}
.portail-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.portail-header-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.4);
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.portail-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portail-header-info { flex: 1; min-width: 0; }
.portail-header-greeting { color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 2px; }
.portail-header-name {
    color: #fff;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portail-header-matricule {
    color: rgba(255,255,255,.85);
    font-size: 13px;
    font-family: monospace;
    margin: 4px 0 0;
}
.statut-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Flash portail */
.portail-flash { border-bottom: 2px solid; padding: 12px 0; }
.portail-flash-inner { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.portail-flash.success  { background: #dcfce7; border-color: #86efac; }
.portail-flash.success .portail-flash-inner { color: #166534; }

/* Navigation onglets portail */
.portail-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.portail-nav::-webkit-scrollbar { display: none; }
.portail-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    min-height: 44px;
    flex-shrink: 0;
}
.portail-tab:hover { color: var(--vert-onaci); }
.portail-tab.active { color: var(--vert-onaci); border-bottom-color: var(--vert-onaci); }
.portail-tab-logout { color: #dc2626 !important; }
.portail-tab-logout:hover { border-bottom-color: #dc2626 !important; }

/* Grille portail 2 colonnes → 1 sur mobile */
.portail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.portail-grid-full { grid-column: 1 / -1; }
@media (max-width: 600px) {
    .portail-grid { grid-template-columns: 1fr; }
    .portail-grid-full { grid-column: 1; }
}

/* Carte portail */
.portail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    overflow: hidden;
}
.portail-card-mb { margin-bottom: 20px; }
.portail-card-header { padding: 14px 20px; border-bottom: 1px solid #e8e8e8; }
.portail-card-header h2 { font-size: 14px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.portail-card-header.green  { background: #f0f9f4; border-bottom-color: #c8e8d3; }
.portail-card-header.green h2  { color: #14552A; }
.portail-card-header.orange { background: #fff9f0; border-bottom-color: #fcd34d; }
.portail-card-header.orange h2 { color: #b45309; }
.portail-card-header.yellow { background: #fffbeb; border-bottom-color: #fcd34d; }
.portail-card-header.yellow h2 { color: #b45309; }
.portail-card-header.purple { background: #f8f0fc; border-bottom-color: #e9d5f8; }
.portail-card-header.purple h2 { color: #7c3aed; }
.portail-card-body { padding: 16px 20px; }

/* Carte d'identité */
.portail-id-card {
    background: linear-gradient(135deg, var(--vert-onaci), var(--vert-fonce));
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.portail-id-info { flex: 1; min-width: 160px; }
.portail-id-org  { color: rgba(255,255,255,.7); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.portail-id-matricule { color: #fff; font-size: clamp(13px, 3.5vw, 20px); font-weight: 900; letter-spacing: 2px; font-family: monospace; }
.portail-id-name { color: rgba(255,255,255,.9); font-size: clamp(13px, 2.5vw, 15px); margin-top: 4px; }
.portail-id-meta { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 4px; }
.portail-id-photo { text-align: center; flex-shrink: 0; }
.portail-id-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.5);
    margin: 0 auto 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.portail-id-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 400px) {
    .portail-id-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
    .portail-id-photo { display: none; }
}

/* Tableau d'infos portail */
.portail-info-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.portail-info-table tr:nth-child(even) td { background: #fafafa; }
.portail-info-table td { padding: 8px 6px; vertical-align: top; }
.portail-info-table td:first-child { color: #666; padding-right: 12px; width: 45%; }
.portail-info-table td:last-child   { font-weight: 600; color: var(--texte); }

/* Tags */
.portail-tags { padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.portail-tag { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.portail-tag-green  { background: #E8F3EC; color: #14552A; border: 1px solid #a8d5b5; }
.portail-tag-lime   { background: #f0f9f4; color: #14552A; border: 1px solid #c8e8d3; }
.portail-tag-yellow { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }

/* Actions rapides portail */
.portail-actions { padding: 16px 20px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) {
    .portail-actions { flex-direction: column; }
    .portail-actions .btn { width: 100%; justify-content: center; }
}

/* Grille 2 colonnes formulaires */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-2 .col-full { grid-column: 1 / -1; }
@media (max-width: 600px) {
    .form-grid-2 { grid-template-columns: 1fr; }
    .form-grid-2 .col-full { grid-column: 1; }
}

/* Boutons de formulaire */
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
@media (max-width: 480px) {
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }
}

/* Avatar profil */
.profil-photo-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px; }
.profil-avatar-preview {
    width: 90px; height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--vert-onaci);
    flex-shrink: 0;
    background: #E8F3EC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.profil-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   RESPONSIVE GLOBAL — AMÉLIORATIONS MOBILES
   ============================================================= */
@media (max-width: 768px) { .topbar { display: none !important; } }

@media (max-width: 480px) {
    .section     { padding: 36px 0; }
    .section-sm  { padding: 24px 0; }
    .page-banner { padding: 32px 0 24px; }
    .bloc-inscription { padding: 24px 16px; border-radius: 6px; margin: 20px 0; }
    .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab-btn { flex-shrink: 0; padding: 10px 12px; font-size: 12px; }
    .search-overlay { padding-top: 60px; padding-left: 12px; padding-right: 12px; }
    .search-box { padding: 16px; }

    /* ── Héros mobile — taille équilibrée, espacement aéré ── */
    .hero-carousel {
        height: 54vh;
        height: 54dvh;
        min-height: 300px;
        max-height: 440px;
    }
    .hero-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-overlay {
        background: linear-gradient(to bottom,
            rgba(10,40,15,.20) 0%,
            rgba(10,40,15,.50) 45%,
            rgba(10,40,15,.82) 100%);
    }
    .hero-content {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 92%;
        max-width: 100%;
        padding: 20px 16px;
        text-align: center;
    }
    .hero-badge {
        font-size: 10px;
        padding: 4px 12px;
        margin-bottom: 14px;
        letter-spacing: .1em;
    }
    .hero-titre {
        font-size: clamp(22px, 5.5vw, 32px);
        margin-bottom: 14px;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }
    .hero-sous {
        font-size: clamp(13px, 3vw, 16px);
        line-height: 1.55;
        margin-bottom: 36px;
        opacity: .90;
        max-width: 100%;
    }
    .hero-cta {
        display: inline-flex;
        justify-content: center;
        padding: 14px 40px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 8px;
        letter-spacing: .02em;
        box-shadow: 0 4px 16px rgba(0,0,0,.25);
    }
    .hero-dots {
        bottom: 10px;
    }
}

@media (max-width: 400px) {
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 18px 10px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-steps { padding: 10px 12px; }
    .step-circle { width: 28px; height: 28px; font-size: 12px; }
    .step-label  { font-size: 10px; }
}

@media (max-width: 380px) {
    .header-logo img { height: 40px; }
    .header-brand-name { font-size: 15px; }
    .header-top { padding: 8px 0; }
    .container { padding: 0 12px; }
    .filieres-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

