/* --- CHARTE GRAPHIQUE CAMPAGNE & VILLAGE --- */
:root {
    /* Palette "Terroir et Nature" */
    --primary: #3f6212;
    /* Vert Olive/Forêt profond */
    --primary-light: #84cc16;
    /* Vert Pomme pour la vitalité */
    --primary-soft: #ecfccb;
    /* Vert très pâle (feuille tendre) */
    --secondary: #1f2937;
    /* Gris anthracite doux */
    --accent: #d97706;
    /* Orange courge/automnal chaleureux */
    --sky: #e0f2fe;
    /* Bleu Ciel */
    --white: #ffffff;
    --bg-page: #fefce8;
    /* Fond Crème / Beurre frais */

    /* Ombres douces */
    --shadow-card: 0 10px 15px -3px rgba(63, 98, 18, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(217, 119, 6, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--secondary);
    line-height: 1.7;
    background-color: var(--bg-page);
    overflow-x: hidden;
    background-image: radial-gradient(rgba(63, 98, 18, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

@keyframes drive {
    0% {
        transform: translateX(-150px) rotate(0deg);
    }

    100% {
        transform: translateX(100vw) rotate(0deg);
    }
}

@keyframes fly-birds {
    0% {
        transform: translateX(-100px) translateY(50px) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateX(100vw) translateY(-50px) scale(0.8);
    }
}

@keyframes buzz {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-2px, 2px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes float-cloud {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px) translateY(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes sun-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes sway {
    0% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(8deg);
    }

    100% {
        transform: rotate(-8deg);
    }
}

@keyframes wave-move {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(217, 119, 6, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(217, 119, 6, 0.8);
    }
}

@keyframes border-dance {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@keyframes falling-leaves {
    0% {
        transform: translateX(0) translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateX(100px) translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes falling-leaves-2 {
    0% {
        transform: translateX(0) translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateX(-80px) translateY(100vh) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes butterfly-flutter {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scaleX(1);
    }

    25% {
        transform: translateY(-10px) rotate(-20deg) scaleX(-1);
    }

    50% {
        transform: translateY(0) rotate(0deg) scaleX(1);
    }

    75% {
        transform: translateY(-10px) rotate(20deg) scaleX(-1);
    }
}

@keyframes gentle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes hop {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes sway-large {
    0% {
        transform: translateX(-5px) rotate(-2deg);
    }

    50% {
        transform: translateX(5px) rotate(2deg);
    }

    100% {
        transform: translateX(-5px) rotate(-2deg);
    }
}

@keyframes icon-pop {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.15) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes blink-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 20px rgba(217, 119, 6, 0.9);
        opacity: 0.9;
    }
}

@keyframes photo-glow {

    0%,
    100% {
        filter: brightness(0.98) contrast(1.05) saturate(1.12) drop-shadow(0 15px 35px rgba(63, 98, 18, 0.25));
    }

    50% {
        filter: brightness(1.02) contrast(1.08) saturate(1.18) drop-shadow(0 20px 45px rgba(217, 119, 6, 0.35));
    }
}

@keyframes subtle-zoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes photo-shimmer-shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes text-shine {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse-scrutin {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3), 0 0 0 0 rgba(217, 119, 6, 0.5);
    }

    50% {
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5), 0 0 0 8px rgba(217, 119, 6, 0.2);
    }
}

@keyframes spin-check {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes duck-paddle {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes swallow-fly {

    0%,
    100% {
        transform: translateX(0px) translateY(0px);
        opacity: 0.8;
    }

    25% {
        transform: translateX(15px) translateY(-12px);
        opacity: 1;
    }

    50% {
        transform: translateX(30px) translateY(0px);
        opacity: 0.8;
    }

    75% {
        transform: translateX(15px) translateY(10px);
        opacity: 1;
    }
}

@keyframes swallow-wink {

    0%,
    100% {
        transform: translateY(0) scaleX(1);
        opacity: 1;
    }

    10% {
        transform: translateY(-2px) scaleX(1);
        opacity: 1;
    }

    15% {
        transform: translateY(-2px) scaleX(0.3);
        opacity: 1;
    }

    20% {
        transform: translateY(-2px) scaleX(1);
        opacity: 1;
    }

    50% {
        transform: translateY(8px) scaleX(1) rotate(-5deg);
        opacity: 0.7;
    }

    100% {
        transform: translateY(0) scaleX(1) rotate(0deg);
        opacity: 1;
    }
}

/* --- BOUTONS --- */
.btn-soutenir {
    background: linear-gradient(135deg, var(--accent), #b45309);
    color: white !important;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 4px 0 #92400e, 0 8px 15px rgba(217, 119, 6, 0.3);
    transition: all 0.2s;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    top: 0;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-soutenir::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-soutenir:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #92400e, 0 12px 20px rgba(217, 119, 6, 0.5);
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-soutenir:hover::before {
    opacity: 1;
}

.btn-soutenir:active {
    top: 4px;
    box-shadow: 0 0 0 #92400e, 0 2px 5px rgba(217, 119, 6, 0.2);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white !important;
    border: 2px solid white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary-hero:hover {
    background: white;
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.btn-link-ext {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 3px 3px 0 var(--primary-light);
    font-size: 0.9rem;
}

.btn-link-ext:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--primary-light);
    background-color: var(--primary-soft);
}

/* --- NAVIGATION --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(63, 98, 18, 0.1);
    border-bottom: 4px solid var(--primary-light);
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 120px;
    gap: 30px;
    padding: 0 20px;
}

.logo {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent);
    animation: duck-paddle 2s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.logo:hover i {
    transform: scaleX(-1.2) scale(1.2);
}

.logo div {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.logo .swallow-wink {
    position: absolute;
    left: -35px;
    top: 15px;
    font-size: 1.4rem;
    animation: swallow-wink 3s ease-in-out infinite;
}

.logo div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo span {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.logo .swallow {
    position: absolute;
    right: -40px;
    top: 10px;
    font-size: 1.5rem;
    animation: swallow-fly 4s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    flex-grow: 1;
    justify-content: flex-start;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    transition: all 0.3s ease;
    padding: 11px 14px;
    border-radius: 6px;
    background: transparent;
    border: none;
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    background: rgba(132, 204, 22, 0.08);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a i {
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: rotate(10deg);
}

/* --- FEUILLES QUI TOMBENT & ANIMATIONS NATURELLES --- */
.leaf-fall {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.leaf-1 {
    animation: falling-leaves 15s linear infinite;
    top: -20px;
    left: 10%;
}

.leaf-2 {
    animation: falling-leaves-2 18s linear infinite 2s;
    top: -20px;
    left: 20%;
}

.leaf-3 {
    animation: falling-leaves 20s linear infinite 4s;
    top: -20px;
    left: 30%;
}

.leaf-4 {
    animation: falling-leaves-2 17s linear infinite 1s;
    top: -20px;
    left: 70%;
}

.leaf-5 {
    animation: falling-leaves 19s linear infinite 3s;
    top: -20px;
    left: 80%;
}

/* --- HERO SECTION --- */
.hero {
    height: 95vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
    background: #38bdf8;
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    opacity: 0.8;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0.4), rgba(63, 98, 18, 0.7));
    z-index: 1;
}

.sun-hero {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(#fde047, #facc15);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(250, 204, 21, 0.6);
    z-index: 1;
    animation: sun-spin 80s linear infinite;
}

.birds-container {
    position: absolute;
    top: 20%;
    left: -100px;
    z-index: 2;
    animation: fly-birds 25s linear infinite;
    opacity: 0.8;
}

.bird {
    font-size: 1.5rem;
    color: #1e293b;
    margin-right: 15px;
}

.hero-container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 25px;
    position: relative;
    z-index: 2;
    min-height: auto;
}

.hero-text {
    text-align: left;
    animation: fade-in-up 1s ease-out;
}

.hero-subtitle-box {
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 4px 12px rgba(63, 98, 18, 0.3);
    animation: fade-in-up 0.8s ease-out, gentle-bounce 2s ease-in-out infinite 1.5s;
    transition: all 0.3s ease;
}

.hero-subtitle-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(63, 98, 18, 0.5);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

.hero h1 span {
    animation: gentle-bounce 2.5s ease-in-out infinite 1s;
    display: inline-block;
}

.hero-slogan {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ecfccb;
    font-weight: 500;
    line-height: 1.6;
    max-width: 600px;
    animation: fade-in-up 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-portrait-wrapper {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in-up 1s ease-out 0.3s backwards;
}

.hero-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    border: 8px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(217, 119, 6, 0.4);
    transform: rotate(2deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 3;
}

.hero-portrait:hover {
    transform: rotate(0deg) scale(1.03) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(217, 119, 6, 0.6);
    filter: drop-shadow(0 0 15px rgba(132, 204, 22, 0.5));
}

.portrait-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: rotate(-2deg);
    animation: pulse-glow 2s infinite, gentle-bounce 2.5s ease-in-out infinite;
    border: 3px solid var(--accent);
}

.cloud {
    position: absolute;
    color: rgba(255, 255, 255, 0.85);
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: float-cloud 20s infinite alternate;
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
    animation: wave-move 6s ease-in-out infinite alternate;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-separator .shape-fill {
    fill: var(--bg-page);
}

/* --- SECTIONS --- */
.section-prog {
    padding: 100px 0;
    position: relative;
}

.bg-white {
    background: #ffffff;
}

.section-edito {
    padding: 100px 0;
    background: var(--bg-page);
}

.edito-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.edito-text h2 {
    position: relative;
    padding-bottom: 20px;
}

.edito-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 10px;
}

.edito-text strong {
    color: var(--primary);
    font-weight: 800;
}

.edito-text p {
    animation: fade-in-up 0.8s ease-out backwards;
}

.edito-text p:nth-of-type(2) {
    animation-delay: 0.1s;
}

.edito-text p:nth-of-type(3) {
    animation-delay: 0.2s;
}

.edito-text .signature {
    animation: fade-in-up 0.8s ease-out 0.3s backwards;
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-title .divider {
    height: 8px;
    width: 120px;
    background-color: var(--primary-light);
    margin: 0 auto;
    border-radius: 10px;
}

.edito-img img {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: border-dance 10s infinite, gentle-bounce 3s ease-in-out infinite;
    border: 5px solid white;
    box-shadow: 0 15px 30px rgba(63, 98, 18, 0.15), 0 0 40px rgba(132, 204, 22, 0.3);
    position: relative;
}

/* --- CARTES --- */
.prog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.prog-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    border-bottom: 8px solid var(--primary-soft);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.prog-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.prog-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary-light);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.prog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.prog-card h3 i.main-icon {
    background: var(--primary-soft);
    color: var(--primary);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.4s;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.prog-card:hover h3 i.main-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transform: rotate(360deg) scale(1.2);
    box-shadow: 0 8px 15px rgba(63, 98, 18, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.tractor-container {
    position: absolute;
    bottom: 10px;
    left: -150px;
    z-index: 5;
    opacity: 0.9;
    animation: drive 40s linear infinite;
    filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.1));
}

.tractor-container i {
    font-size: 60px;
    color: var(--accent);
}

.bee-icon {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 45px;
    color: #facc15;
    animation: buzz 3s infinite;
    z-index: 10;
    filter: drop-shadow(2px 4px 0 rgba(0, 0, 0, 0.1));
}

.wrench-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 80px;
    color: rgba(217, 119, 6, 0.1);
}

.bunting-flags {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    z-index: 5;
}

.flag {
    font-size: 35px;
    color: var(--accent);
    animation: sway 3s infinite;
    transform-origin: top center;
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.1));
}

.flag:nth-child(even) {
    color: var(--primary-light);
    animation-duration: 4s;
}

.flag:nth-child(3n) {
    color: #f43f5e;
    animation-duration: 3.5s;
}

/* --- FINANCE HIGHLIGHT --- */
.finance-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 50px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 15px 0 #365314;
    position: relative;
    transform: rotate(-1deg);
    border: 4px dashed rgba(255, 255, 255, 0.3);
}

.finance-item h3 {
    color: #ecfccb;
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    animation: icon-pop 0.6s ease-out;
}

.finance-item p {
    font-weight: 700;
    font-size: 1.1rem;
    animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

/* --- TROMBINOSCOPE --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-bottom: 15px;
    border: 4px solid var(--primary-soft);
    position: relative;
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-10px) rotate(-2deg) scale(1.05);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(63, 98, 18, 0.2);
}

.team-card:hover::after {
    opacity: 1;
}

.team-photo-placeholder {
    height: 240px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfccb 50%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 4rem;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.team-photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(132, 204, 22, 0.3), transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

.team-photo-placeholder i {
    position: relative;
    z-index: 2;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.team-info h3 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0 15px;
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
    color: white;
    padding: 100px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(132, 204, 22, 0.1), transparent 80%);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

footer h3 {
    color: var(--primary-light);
    font-size: 1.8rem;
    margin-bottom: 10px;
    animation: fade-in-up 0.8s ease-out;
}

footer p {
    animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

footer .container {
    position: relative;
    z-index: 2;
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- LIENS SOCIAUX ABH --- */
.social-link-abh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 15px rgba(217, 119, 6, 0.2);
    position: relative;
    border: 2px solid white;
}

.social-link-abh:hover {
    transform: translateY(-5px) scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.4);
    background: linear-gradient(135deg, #f59e0b, var(--accent));
}

.social-link-abh::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, var(--accent), #f59e0b);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link-abh:hover::after {
    opacity: 0.3;
}

.learn-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.learn-more:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.split-layout>div:not(.split-img-container) h3 {
    position: relative;
    padding-bottom: 15px;
}

.split-layout>div:not(.split-img-container) h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse>* {
    direction: ltr;
}

.split-img-container {
    position: relative;
    overflow: hidden;
}

.split-img-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 30% 50%, rgba(132, 204, 22, 0.2), transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.split-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(63, 98, 18, 0.1));
    pointer-events: none;
}

.split-img-container img {
    border-radius: 20px;
    border: 5px solid white;
    box-shadow: 0 15px 30px rgba(63, 98, 18, 0.15), inset 0 0 20px rgba(132, 204, 22, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.split-img-container:hover img {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 25px 40px rgba(63, 98, 18, 0.2), inset 0 0 20px rgba(132, 204, 22, 0.2);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-slogan {
        font-size: 1rem;
    }

    .hero-container-split {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 30px 15px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-portrait-wrapper {
        height: auto;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-portrait {
        max-width: 280px;
        height: 350px;
    }

    .edito-wrapper,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }

    .finance-box {
        transform: rotate(0deg);
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .prog-grid {
        grid-template-columns: 1fr;
    }
}

.learn-more {
    font-size: 0.8em;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
    margin-left: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.learn-more:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- SCROLL TO TOP --- */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}