/* =======================================================
   SOMMAIRE DE LA FEUILLE DE STYLE (STYLE.CSS)
   =======================================================
   1. VARIABLES ET RÉINITIALISATION
   2. NAVIGATION ET EN-TÊTE
   3. COMPOSANTS GLOBAUX (Bannières, Titres, Bulles Info)
   4. SECTIONS SPÉCIFIQUES
      4.1. Accueil (Hero, Grille d'infos, Tableau)
      4.2. News (Vidéos, Sondages, Presse)
      4.3. Journal d'OYA (Cartes d'articles, Timeline, Carrousels)
      4.4. Contact (Formulaires)
   5. PIED DE PAGE (Footer)
   6. RESPONSIVE DESIGN (Mobiles & Tablettes)
   ======================================================= */

/* --- 1. VARIABLES ET RÉINITIALISATION --- */
:root {
    --oya-blue: #1A3A8F;
    --oya-green: #188A77;
    --oya-light1: #E2EEEF;
    --oya-light2: #E8ECF5;
    --oya-dark: #1F2A28;
    --oya-white: #FFFFFF;
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    padding: 0; 
    background-color: var(--oya-white); 
    font-family: 'Inter', sans-serif;
    color: var(--oya-dark); 
    overflow-x: hidden; 
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Décalage pour le défilement fluide */
.scroll-section {
    scroll-margin-top: 120px; 
}

/* --- 2. NAVIGATION ET EN-TÊTE --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3%;
    background-color: var(--oya-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--oya-light2);
}

/* Logo à gauche */
.nav-logo-container { display: flex; align-items: center; }
.logo-img { height: 70px; width: auto; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }

/* Liens principaux parfaitement centrés */
.center-links { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 1.5rem; 
    flex-grow: 1;
    margin: 0 2rem;
}

/* Langue et Contact à droite */
.right-actions { display: flex; align-items: center; }

.tab-btn {
    background: none; border: none; cursor: pointer; 
    color: var(--oya-blue);
    font-family: 'Oswald', sans-serif; font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 500; padding: 0.5rem 0;
    transition: color 0.3s ease; position: relative;
}
.tab-btn:hover { color: var(--oya-green); }
.tab-btn.active { color: var(--oya-blue); }
.tab-btn.active::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 100%; height: 2px; 
    background-color: var(--oya-green);
}

.btn-contact-header {
    background-color: var(--oya-blue); color: var(--oya-white);
    padding: 0.5rem 1.5rem; border: none; border-radius: 4px; cursor: pointer;
    font-family: 'Oswald', sans-serif; font-weight: 500; text-transform: uppercase;
    letter-spacing: 1px; transition: background-color 0.4s ease;
}
.btn-contact-header:hover { background-color: var(--oya-green); }

/* Sélecteur de langue */
.lang-selector {
    display: flex; align-items: center; gap: 0.5rem;
    margin-right: 1.5rem; border-left: 2px solid var(--oya-light2); padding-left: 1.5rem;
}

/* Bouton menu mobile (Masqué sur ordinateur) */
.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 2rem;
    color: var(--oya-blue); cursor: pointer; z-index: 1001;
}

/* Gestion des onglets */
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 3. COMPOSANTS GLOBAUX --- */
.section-padding { padding: 6rem 5%; }
.content-padding { padding: 0 5% 6rem; }
.max-width-container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }

/* Bannières Vertes */
.page-header-banner {
    position: relative; padding: 6rem 5%; text-align: center;
    background-color: var(--oya-green); margin-bottom: 4rem;
}
.page-header-banner .section-title { 
    color: var(--oya-white); font-size: 3.5rem; margin-bottom: 1rem; 
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15); 
}
.page-header-banner p { 
    color: var(--oya-light1); font-family: 'Cormorant Garamond', serif; 
    font-style: italic; font-size: 1.8rem; margin: 0;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.15); 
}

/* Sous-titres bleus */
.subtitle-blue-transition {
    font-family: 'Oswald', sans-serif; font-size: 2.2rem; 
    color: var(--oya-blue); text-align: center; margin-bottom: 3rem;
    max-width: 1000px; margin-left: auto; margin-right: auto; line-height: 1.3;
}

/* Bulles d'information unifiées */
.info-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; margin-top: 2rem; margin-bottom: 4rem;
}
.info-bubble { 
    background-color: var(--oya-light2); padding: 3rem 2rem; text-align: center; 
    border-radius: 32px; border: none; box-shadow: none; display: flex;
    flex-direction: column; justify-content: flex-start;
}
.info-bubble i { font-size: 2.5rem; color: var(--oya-green); margin-bottom: 1.5rem; }
.info-bubble h3 { 
    font-size: 1.6rem; color: var(--oya-green); margin-bottom: 1rem; 
    text-transform: uppercase; line-height: 1.2;
}
.info-bubble p { 
    color: var(--oya-blue); line-height: 1.6; font-size: 1.05rem; 
    font-weight: 500; margin: 0;
}

/* Carrousels */
.carousel-container { 
    width: 100%; height: 60vh; position: relative; overflow: hidden; 
    background-color: transparent; border-radius: 12px; margin-bottom: 4rem; 
}
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; display: flex; justify-content: center; align-items: center; }
.slide.active { opacity: 1; }
.slide img { 
    max-width: 100%; max-height: 100%; width: auto; height: auto; 
    object-fit: contain; border-radius: 32px;
}

/* Vidéos */
.video-wrapper { max-width: 900px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-radius: 12px; overflow: hidden; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
/* Styles spécifiques pour les vidéos verticales (YouTube Shorts) */
.video-wrapper.portrait { max-width: 320px; }
.video-container.portrait { padding-bottom: 177.77%; }

/* --- 4.1. SECTION ACCUEIL --- */
.hero {
    min-height: 85vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; position: relative; padding: 3rem 5%;
}
.hero-text { text-align: center; z-index: 10; margin-bottom: 2rem; }
.hero-text h1 { font-size: clamp(3rem, 7vw, 5.5rem); color: var(--oya-green); line-height: 1; margin-bottom: 0.5rem; }
.hero-text p { color: var(--oya-blue); font-size: 1.2rem; letter-spacing: 3px; }

.video-front-container {
    width: 100%; max-width: 1000px; border-radius: 12px; overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); margin: 0 auto;
}
.video-front-container video { width: 100%; height: auto; display: block; margin-top: -1%; margin-bottom: -3.7%; }

.partners-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6rem; margin-top: 3rem; }
.partners-grid img { height: 60px; object-fit: contain; }

.comparison-table { width: 100%; border-collapse: collapse; margin-top: 4rem; background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.comparison-table th { background-color: var(--oya-green); color: white; padding: 1.5rem; text-align: left; font-family: 'Oswald', sans-serif; font-size: 1.2rem; letter-spacing: 1px; }
.comparison-table td { padding: 1.5rem; border-bottom: 1px solid var(--oya-light1); color: #444; }
.comparison-table tr td:last-child { font-weight: 600; color: var(--oya-green); background-color: rgba(24, 138, 119, 0.05); }

/* --- 4.2. SECTION NEWS --- */
.media-grid-news { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.media-grid-news .video-wrapper { flex: 1; min-width: 300px; max-width: 500px; margin: 0; }

.survey-stats-container { background-color: var(--oya-light2); border-radius: 20px; padding: 2.5rem 2rem; margin-bottom: 4rem; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.survey-stats { display: flex; justify-content: center; align-items: stretch; gap: 2rem; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 250px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stat-number { font-family: 'Oswald', sans-serif; font-size: 3.5rem; color: var(--oya-green); line-height: 1; margin-bottom: 0.5rem; }
.stat-text { font-size: 1.05rem; color: var(--oya-blue); font-weight: 500; line-height: 1.4; }
.survey-context { text-align: center; font-size: 0.85rem; color: #777; font-style: italic; margin-top: 2rem; }

.bubble-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.article-bubble { 
    background-color: var(--oya-light2); border-radius: 20px; padding: 1.5rem; width: 360px; 
    text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.article-bubble:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.source-tag { font-family: 'Oswald', sans-serif; font-size: 0.9rem; color: var(--oya-green); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.article-bubble h4 { font-family: 'Inter', sans-serif; font-size: 1rem; margin: 0; line-height: 1.4; color: var(--oya-dark); font-weight: 600; text-transform: none; letter-spacing: normal; }

/* --- 4.3. SECTION JOURNAL D'OYA --- */
.journal-oya-section { margin: 0 auto; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.journal-card { 
    display: flex; flex-direction: column; text-decoration: none; color: inherit; 
    background: #ffffff; padding: 25px; border-radius: 12px; border: 1px solid #eaeaea; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.journal-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.journal-date { 
    font-size: 0.8rem; color: #666; margin-bottom: 12px; font-weight: 600; letter-spacing: 0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.journal-title { font-size: 1.25rem; line-height: 1.4; margin-bottom: 25px; color: #111; flex-grow: 1; text-transform: none; }
.journal-image-wrapper { width: 100%; height: 200px; overflow: hidden; border-radius: 8px; }
.journal-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.journal-card:hover .journal-image { transform: scale(1.03); }

/* Timeline (Histoire) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 5rem; position: relative; }
.timeline::before { content: ''; position: absolute; top: 20px; left: 0; width: 100%; height: 2px; background: var(--oya-light1); z-index: 0; }
.timeline-step { position: relative; z-index: 1; text-align: center; }
.timeline-dot { width: 40px; height: 40px; background: var(--oya-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-family: 'Oswald', sans-serif; font-weight: 600; }
.timeline-content p { font-size: 0.95rem; color: #555; line-height: 1.4; margin: 0; }
.timeline-content h4 { color: var(--oya-green); margin-bottom: 0.5rem; }

/* --- 4.4. CONTACT & FORMULAIRES --- */
.forms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 4rem; }
.form-box { background: white; padding: 3rem; border-top: 4px solid var(--oya-dark); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-box.blue-top { border-color: var(--oya-blue); }
.form-box.green-top { border-color: var(--oya-green); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; color: #555; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid #CCC; font-family: 'Inter', sans-serif; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--oya-blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { background-color: var(--oya-blue); color: white; padding: 1.2rem 2rem; border: none; width: 100%; font-family: 'Oswald', sans-serif; font-size: 1.1rem; text-transform: uppercase; cursor: pointer; transition: background-color 0.3s ease; }
.submit-btn:hover { background-color: var(--oya-dark); }
.btn-green { background-color: var(--oya-green); }
.btn-green:hover { background-color: var(--oya-dark); }
.direct-contact { margin-top: 4rem; text-align: center; padding-top: 3rem; border-top: 1px solid var(--oya-light1); }

/* --- 4.5. ARTICLE MODÈLE (article.html) --- */
.article-container { max-width: 800px; margin: 4rem auto; padding: 0 20px; min-height: 50vh; }
.article-header { text-align: center; margin-bottom: 3rem; }
.article-date-category { color: var(--oya-green); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 1px; }
.article-title { font-size: 3rem; color: var(--oya-blue); line-height: 1.2; margin-bottom: 2rem; }
.article-hero-image { max-width: 100%; max-height: 450px; width: auto; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 0 auto 3rem auto; display: block; }
.article-body p { font-size: 1.15rem; line-height: 1.8; color: #444; margin-bottom: 1.5rem; }
#error-message { display: none; text-align: center; color: red; font-size: 1.5rem; margin-top: 5rem; }
/* Bouton de retour (Article) */
.btn-retour {
    background-color: var(--oya-blue);
    color: var(--oya-white);
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.4s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-retour:hover { 
    background-color: var(--oya-green); 
}

/* --- 5. PIED DE PAGE --- */
footer { padding: 4rem 5%; background-color: var(--oya-dark); color: white; text-align: center; }
.footer-logo-container { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.footer-logo { height: 70px; width: auto; display: inline-block; filter: grayscale(100%) invert(100%) brightness(500%); mix-blend-mode: screen; }

/* ========================================= */
/* --- 6. MEDIA QUERIES (MOBILES & TABLETTES) --- */
/* ========================================= */
@media (max-width: 992px) {
    nav { flex-wrap: wrap; padding: 1rem 5%; }
    .nav-logo-container { order: 1; }
    .mobile-menu-btn { display: block; order: 2; }
    .center-links, .right-actions { display: none; flex-direction: column; align-items: center; gap: 0; width: 100%; margin: 0; }
    nav.menu-open .center-links, nav.menu-open .right-actions { display: flex; }
    .center-links { order: 3; margin-top: 1rem; }
    .right-actions { order: 4; }
    .tab-btn, .btn-contact-header { font-size: 1.1rem; padding: 1rem 0; width: 100%; text-align: center; }
    .btn-contact-header { margin-top: 1rem; padding: 1rem; }
    .tab-btn.active::after { width: 50%; left: 25%; bottom: 5px; }
    .lang-selector { border-left: none; padding-left: 0; margin: 1rem 0 0 0; justify-content: center; width: 100%; }
    .survey-stats { flex-direction: column; gap: 3rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 4rem 5%; }
    .content-padding { padding: 0 5% 4rem; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text p { font-size: 1rem; letter-spacing: 2px; }
    .page-header-banner { padding: 4rem 5%; }
    .page-header-banner .section-title { font-size: 2.5rem; }
    .page-header-banner p { font-size: 1.3rem; }
    .subtitle-blue-transition { font-size: 1.6rem; }
    .partners-grid { gap: 2rem; flex-direction: column; }
    .comparison-table { display: block; overflow-x: auto; white-space: normal; }
    .comparison-table th, .comparison-table td { padding: 0.8rem 0.5rem; font-size: 0.85rem; }
    .comparison-table th { font-size: 1rem; }
    .timeline { grid-template-columns: 1fr; gap: 2rem; }
    .timeline::before { left: 20px; top: 0; width: 2px; height: 100%; }
    .timeline-step { display: flex; text-align: left; align-items: flex-start; gap: 1.5rem; }
    .timeline-dot { margin: 0; flex-shrink: 0; }
    .carousel-container { height: 40vh; }
    .forms-grid { grid-template-columns: 1fr; }
    .form-box { padding: 2rem 1.5rem; }
    .journal-grid { grid-template-columns: 1fr; }
}