/* ========================================
   STYLES GÉNÉRAUX
   ======================================== */

/* Réinitialisation des marges et paddings pour tous les éléments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuration générale du body */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f6e3df; /* Couleur de fond beige/rose clair */
}

/* ========================================
   HEADER ET NAVIGATION
   ======================================== */

/* Barre de navigation principale */
header {
    background-color: #cc867c; /* Couleur rose/saumon de la barre de navigation */
    padding: 15px 0;
    position: sticky; /* Menu qui reste en haut lors du scroll */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Conteneur de la navigation */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menu de navigation horizontal (visible sur PC) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px; /* Espace entre les éléments du menu */
}

/* Liens du menu */
.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s; /* Animation au survol */
}

/* Effet au survol des liens */
.nav-menu a:hover {
    opacity: 0.7;
}

/* Lien actif (page courante) */
.nav-menu a.active {
    text-decoration: underline;
}

/* Section des icônes réseaux sociaux dans le header */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Images des icônes sociales */
.social-icons img {
    width: 25px;
    height: 25px;
    transition: opacity 0.3s;
}

.social-icons img:hover {
    opacity: 0.7;
}

/* Bouton burger (caché par défaut sur PC) */
.burger-menu {
    display: none; /* Caché sur grand écran */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

/* Barres du burger menu */
.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

/* ========================================
   CONTENEUR PRINCIPAL
   ======================================== */

/* Conteneur pour tout le contenu principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   LOGO ET TITRE (visible sur toutes les pages sauf accueil) */
   ======================================== */

/* Section logo + titre de la ferme */
.logo-title {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

/* Lien du logo (pas de soulignement) */
.logo-title a {
    display: inline-block;
    line-height: 0;
}

/* Logo + titre combinés (pages intérieures) */
.logo-title-img {
    width: 350px; /* Ajuster selon la taille souhaitée */
    max-width: 100%;
    height: auto;
}

/* ========================================
   PAGE ACCUEIL
   ======================================== */

/* Hero section de la page d'accueil avec vidéo de fond */
.hero-section {
    position: relative;
    height: 100vh; /* 100% de la hauteur de l'écran */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Vidéo de fond du hero */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Overlay pour assombrir légèrement la vidéo de fond */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

/* Contenu du hero (titre + logo) */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

/* Lien du logo dans le hero (pas de soulignement) */
.hero-content a {
    display: inline-block;
    line-height: 0;
}

/* Logo au centre de l'accueil */
.hero-logo-center {
    width: 250px;
    max-width: 90%;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3)); /* Ombre pour la lisibilité */
}

/* Titre "Ferme de la Sauvagerie" en haut à gauche */
.hero-title-left {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
}

.hero-title-left img {
    width: 560px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Logo en haut au centre */
.hero-logo-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-logo-top a {
    display: inline-block;
    line-height: 0;
}

/* Bouton Cagnotte solidaire (sous le titre en haut à droite) */
.cagnotte-button {
    position: absolute;
    top: 100px;
    right: 20px;
    background-color: white;
    color: #2d7b6a; /* Couleur verte */
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    z-index: 3;
}

.cagnotte-button:hover {
    transform: translateY(-2px); /* Léger mouvement vers le haut au survol */
}

/* Coeur vert dans le bouton */
.cagnotte-button::after {
    content: " 💚";
}

/* ========================================
   PAGE FERME
   ======================================== */

/* Section contenu de la page Ferme (texte + vidéo) */
.ferme-content {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 texte, 2/3 vidéo */
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}

/* Texte de présentation de la ferme */
.ferme-text {
    padding: 20px;
}

/* Logo dans la colonne gauche de la page ferme */
.ferme-text .logo-title {
    margin: 0 0 20px 0;
}

.ferme-text p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Illustrations légumes sous le texte */
.ferme-illus {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.ferme-illus img {
    width: 60px;
    height: auto;
}

/* Conteneur vidéo */
.ferme-video {
    width: 100%;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ferme-video video {
    width: 100%;
    border-radius: 5px;
}

/* Bouton Soutenez-nous */
.support-button {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: white;
    color: #2d7b6a;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    border: 2px solid #2d7b6a;
}

.support-button:hover {
    transform: translateY(-2px);
}

.support-button::after {
    content: " 💚";
}

/* ========================================
   PAGE MARCHÉS
   ======================================== */

/* Titre "Les Marchés" en image */
.marches-title {
    margin: 30px 0;
}

.marches-title img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

/* Layout principal : 3 colonnes (gauche + centre + droite) */
.marches-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr; /* Gauche, Centre (plus large), Droite */
    gap: 30px;
    margin: 20px 0 40px 0;
    align-items: start;
}

/* Colonne gauche (Logo + Titre + Milly) */
.marches-gauche {
    display: flex;
    flex-direction: column;
}

/* Logo et titre dans la colonne gauche de la page marchés */
.marches-gauche .logo-title {
    margin: 0 0 20px 0;
}

.marches-gauche .marches-title {
    margin: 0 0 30px 0;
}

/* Colonne centre (Carte de France) */
.marches-centre {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.carte-france {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Colonne droite (Charonne + Vincennes) */
.marches-droite {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Carte de chaque marché */
.marche-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Disposition horizontale : photo à gauche, texte à droite (colonne droite uniquement) */
.marche-horizontal {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Conteneur du texte à droite de la photo */
.marche-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Photo du marché */
.marche-photo {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Photo dans la disposition horizontale (colonne droite) */
.marche-horizontal .marche-photo {
    width: 150px;
    max-width: 150px;
    flex-shrink: 0;
}

/* Conteneur du titre (image du nom + légume) */
.marche-titre {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

/* Image du nom du marché (Milly.png, Charonne.png, Vincennes.png) */
.marche-nom-img {
    height: 35px;
    width: auto;
}

/* Illustration légume (Aubergine, Radis, Carotte) */
.marche-veggie {
    width: 40px;
    height: auto;
}

/* Horaires en rose */
.marche-horaires {
    color: #cc3366; /* Rose */
    font-weight: bold;
    margin: 5px 0;
}

/* Description */
.marche-description {
    margin: 5px 0;
    line-height: 1.6;
    font-size: 14px;
}

/* ========================================
   PAGE ÉQUIPE
   ======================================== */

/* Layout principal : 2 colonnes */
.equipe-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 20px 0;
    align-items: start;
}

/* ========================================
   COLONNE GAUCHE - L'ÉQUIPE
   ======================================== */

.equipe-gauche {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.equipe-gauche .logo-title {
    margin: 0;
}

/* Titre "L'équipe" en image */
.equipe-title {
    margin: 20px 0;
}

.equipe-title img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

/* Texte de présentation */
.equipe-text {
    text-align: center;
}

.equipe-text p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Photo de l'équipe au travail */
.equipe-photo {
    margin: 20px 0;
    text-align: center;
}

.equipe-photo img {
    width: 100%;
    max-width: 400px;
}

/* ========================================
   COLONNE DROITE - LES FONDATEURS
   ======================================== */

.equipe-droite {
    display: flex;
    flex-direction: column;
}

/* Titre "Les Fondateurs" en image */
.fondateurs-title {
    text-align: center;
    margin-bottom: 30px;
}

.fondateurs-title img {
    width: 400px;
    max-width: 100%;
    height: auto;
}

/* Grille des fondateurs : 2 sous-colonnes */
.fondateurs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Carte de chaque fondateur */
.fondateur-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Photo du fondateur */
.fondateur-photo {
    text-align: center;
}

.fondateur-photo img {
    width: 100%;
}

/* Texte du fondateur */
.fondateur-text {
    text-align: center;
}

.fondateur-text p {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ========================================
   PAGE CONTACT
   ======================================== */

/* Container contact avec texte + carte */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin: 40px 0;
    align-items: center;
}

/* Section gauche avec informations */
/* Titre Contact en image */
.contact-title-img {
    width: 200px; /* Ajuster selon la taille souhaitée */
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.contact-info h3 {
    font-size: 20px;
    margin: 30px 0 10px 0;
}

.contact-info p {
    margin: 5px 0;
    line-height: 1.8;
}

/* Liens colorés dans la section contact */
.contact-info .mail-link {
    color: #cc867c; /* Rose saumon */
    text-decoration: none;
}

.contact-info .facebook-link {
    color: #cc867c;
    text-decoration: none;
}

.contact-info .instagram-link {
    color: #cc867c;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Carte de France */
.contact-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-map img {
    width: 100%;
    max-width: 700px;
}

/* ========================================
   RESPONSIVE - TABLETTE (max 768px)
   ======================================== */

@media screen and (max-width: 768px) {

    /* Navigation passe en mode burger */
    .burger-menu {
        display: flex; /* Afficher le bouton burger */
    }

    /* Menu navigation devient vertical et caché par défaut */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #cc867c;
        flex-direction: column;
        padding: 0;
        gap: 15px;
        max-height: 0; /* Caché par défaut */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    /* Menu ouvert */
    .nav-menu.active {
        max-height: 400px; /* Taille suffisante pour afficher tous les liens */
        padding: 20px;
    }

    /* Bouton Soutenez-nous : ajuster la position pour mode mobile */
    .support-button {
        top: 90px; /* Position ajustée pour éviter le masquage par le header en mode mobile */
    }

    /* Page Accueil - Éléments responsive */
    .hero-logo-center {
        width: 180px;
    }

    .hero-title-left img {
        width: 150px;
    }

    .hero-logo-top {
        top: 15px;
    }

    .cagnotte-button {
        top: 80px; /* Ajusté pour être sous le titre */
    }

    /* Pages intérieures */
    .logo-title-img {
        width: 280px;
    }

    /* Page Ferme - Passe en 1 colonne */
    .ferme-content {
        grid-template-columns: 1fr;
    }

    /* Page Marchés - Passe en 1 colonne */
    .marches-layout {
        grid-template-columns: 1fr;
    }

    /* Marchés responsive : réduire les tailles */
    .marches-title img {
        width: 200px;
    }

    .marche-nom-img {
        height: 25px;
    }

    .marche-veggie {
        width: 30px;
    }

    /* Page Équipe - Passe en 1 colonne */
    .equipe-layout {
        grid-template-columns: 1fr;
    }

    .fondateurs-grid {
        grid-template-columns: 1fr;
    }

    /* Page Contact - Passe en 1 colonne */
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max 480px)
   ======================================== */

@media screen and (max-width: 480px) {

    /* Réduction des tailles - Page Accueil */
    .hero-logo-center {
        width: 150px;
    }

    .hero-title-left img {
        width: 120px;
    }

    .hero-logo-top {
        top: 10px;
    }

    .cagnotte-button {
        top: 70px;
        padding: 10px 15px;
        font-size: 12px;
    }

    /* Pages intérieures */
    .logo-title-img {
        width: 220px;
    }

    /* Marchés mobile : tailles encore plus petites */
    .marches-title img {
        width: 180px;
    }

    .marche-nom-img {
        height: 20px;
    }

    .marche-veggie {
        width: 25px;
    }

    /* Réduction des marges et paddings */
    .container {
        padding: 10px;
    }

    /* Illustrations plus petites */
    .ferme-illus img {
        width: 40px;
    }
}
