/* ============================================================
   APHYCEM — Feuille de style principale
   Vert institutionnel évoquant la phytopathologie
   ============================================================ */

:root {
    --aphycem-green: #2E7D32;
    --aphycem-green-dark: #1B5E20;
    --aphycem-green-light: #4CAF50;
    --aphycem-green-pale: #E8F5E9;
    --aphycem-gold: #F9A825;
    --aphycem-ink: #1c2b1e;
    --aphycem-muted: #5b6b5d;
    --aphycem-bg: #f6f8f6;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    color: var(--aphycem-ink);
    background-color: #ffffff;
    line-height: 1.65;
}

a { color: var(--aphycem-green); text-decoration: none; }
a:hover { color: var(--aphycem-green-dark); text-decoration: underline; }

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--aphycem-green-dark); }

.section { padding: 4rem 0; }
.section-alt { background-color: var(--aphycem-bg); }

.text-green { color: var(--aphycem-green) !important; }
.bg-green { background-color: var(--aphycem-green) !important; }

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--aphycem-green), var(--aphycem-gold));
}
.section-title.text-center { display: block; }
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ---------- Boutons ---------- */
.btn-aphycem {
    background: linear-gradient(135deg, var(--aphycem-green), var(--aphycem-green-dark));
    color: #fff;
    border: none;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-aphycem:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46,125,50,.35);
    text-decoration: none;
}
.btn-outline-aphycem {
    border: 2px solid var(--aphycem-green);
    color: var(--aphycem-green);
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    background: transparent;
}
.btn-outline-aphycem:hover { background: var(--aphycem-green); color: #fff; text-decoration: none; }

/* ---------- Barre de navigation ---------- */
.aphycem-navbar {
    background: linear-gradient(135deg, var(--aphycem-green-dark), var(--aphycem-green));
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.aphycem-navbar .brand-text strong { font-size: 1.25rem; letter-spacing: .5px; }
.aphycem-navbar .brand-text small { font-size: .7rem; opacity: .85; margin-top: -3px; }
.aphycem-navbar .navbar-logo { background: #fff; border-radius: 50%; padding: 2px; }
.aphycem-navbar .nav-link { color: rgba(255,255,255,.9); font-weight: 500; padding: .5rem .9rem; }
.aphycem-navbar .nav-link:hover { color: #fff; text-decoration: none; }
.aphycem-navbar .btn-contact {
    background: var(--aphycem-gold);
    color: #3a2c00 !important;
    border-radius: 999px;
    font-weight: 600;
    padding: .4rem 1.1rem !important;
}

.lang-switcher .lang-btn {
    color: #fff;
    border: 1px solid rgba(255,255,255,.55);
    background: transparent;
    padding: .15rem .55rem;
    line-height: 1.2;
}
.lang-switcher form:first-child .lang-btn { border-radius: 6px 0 0 6px; }
.lang-switcher form:last-child .lang-btn { border-radius: 0 6px 6px 0; border-left: none; }
.lang-switcher .lang-btn.active { background: var(--aphycem-gold); color: #3a2c00; border-color: var(--aphycem-gold); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    padding: 6rem 0 5rem;
    background:
        linear-gradient(135deg, rgba(27,94,32,.92), rgba(46,125,50,.85)),
        url("../img/hero.bf1e20e64b53.jpg") center/cover no-repeat;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.hero .lead { font-size: 1.2rem; opacity: .95; max-width: 640px; }
.hero .badge-decl {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .85rem;
    margin-bottom: 1.2rem;
}

/* ---------- Cartes ---------- */
.card-aphycem {
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(27,94,32,.08);
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
    overflow: hidden;
    background: #fff;
}
.card-aphycem:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(27,94,32,.16); }

.axis-card { padding: 1.8rem; border-top: 4px solid var(--aphycem-green); }
.axis-card .axis-icon { font-size: 2.2rem; margin-bottom: .8rem; display: block; }

.objective-item {
    display: flex;
    gap: 1rem;
    padding: 1.3rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(27,94,32,.08);
    height: 100%;
}
.objective-item .obj-number {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--aphycem-green-pale);
    color: var(--aphycem-green-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* ---------- Articles ---------- */
.article-card .card-img-top { height: 200px; object-fit: cover; }
.article-card .card-body { padding: 1.4rem; }
.article-meta { font-size: .82rem; color: var(--aphycem-muted); }
.article-cover-lg { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--aphycem-green); margin-top: 2rem; margin-bottom: .75rem; }
.article-content ul,
.article-content ol { padding-left: 1.3rem; }
.article-content li { margin-bottom: .35rem; }
/* Tableaux insérés dans le contenu (budget, chronogramme, etc.) */
.article-content { overflow-x: auto; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: .95rem;
}
.article-content th,
.article-content td {
    border: 1px solid #d5ddd6;
    padding: .55rem .7rem;
    vertical-align: top;
}
.article-content thead th {
    background: var(--aphycem-green);
    color: #fff;
    text-align: left;
    font-weight: 600;
}
.article-content tbody tr:nth-child(even) { background: var(--aphycem-green-pale); }
.placeholder-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--aphycem-green-pale), #cfe8d1);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}

/* ---------- Galerie ---------- */
.gallery-filter .btn { margin: .2rem; }
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .8rem 1rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    font-size: .9rem;
}
.gallery-caption .cat { display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.5px; color: var(--aphycem-gold); }

/* ---------- Équipe ---------- */
.team-card { text-align: center; padding: 1.6rem; }
.team-photo {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 1rem;
    border: 4px solid var(--aphycem-green-pale);
}
.team-photo-placeholder {
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--aphycem-green-pale); color: var(--aphycem-green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; margin: 0 auto 1rem;
}
.team-role { color: var(--aphycem-green); font-weight: 600; font-size: .95rem; }

/* ---------- Stats / bandeau ---------- */
.stat-band { background: var(--aphycem-green-dark); color: #fff; }
.stat-band .stat-num { font-size: 2.4rem; font-weight: 800; color: var(--aphycem-gold); }

/* ---------- CTA ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--aphycem-green), var(--aphycem-green-light));
    color: #fff; border-radius: 20px; padding: 3rem;
}
.cta-band h2 { color: #fff; }

/* ---------- Pied de page ---------- */
.aphycem-footer {
    background: #12261a;
    color: #cfe0d2;
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
}
.aphycem-footer h5, .aphycem-footer .footer-title { color: #fff; }
.footer-title { font-size: 1rem; margin-bottom: 1rem; }
.footer-links a, .footer-contact a { color: #cfe0d2; }
.footer-links a:hover, .footer-contact a:hover { color: var(--aphycem-gold); text-decoration: none; }
.footer-links li { margin-bottom: .45rem; }
.footer-divider { border-color: rgba(255,255,255,.15); margin: 2rem 0 1rem; }

/* ---------- Formulaire de contact ---------- */
.contact-card { border-radius: 18px; box-shadow: 0 10px 30px rgba(27,94,32,.1); }
.form-control:focus { border-color: var(--aphycem-green-light); box-shadow: 0 0 0 .2rem rgba(76,175,80,.2); }

/* ---------- Fil d'Ariane ---------- */
.page-header {
    background: linear-gradient(135deg, var(--aphycem-green-dark), var(--aphycem-green));
    color: #fff; padding: 3rem 0;
}
.page-header h1 { color: #fff; margin-bottom: .3rem; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); margin: 0; }
.page-header .breadcrumb a { color: rgba(255,255,255,.85); }
.page-header .breadcrumb-item.active { color: #fff; }

@media (max-width: 575px) {
    .cta-band { padding: 2rem 1.2rem; }
    .section { padding: 2.8rem 0; }
}
