/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1.  VARIABLES (:ROOT)
   2.  FONTS & TYPOGRAPHY IMPORTS
   3.  RESET & GLOBAL STYLES
   4.  UTILITIES (Containers, Scroll, Helpers)
   5.  HEADER & NAVIGATION (Menu, Search, Hamburger)
   6.  UI COMPONENTS (Buttons, Arrows, Tags)
   7.  SECTION: HERO (SEO Title & Grid System)
   8.  SECTION: NEWS GRID (Tech & Futur / Actualités)
   9.  SECTION: VIDEO (Player & Playlist)
   10. SECTION: ARTICLES (Listes, Cartes, Carousels)
   11. SECTION: SHORTS (Vertical Cards)
   12. SECTION: TV VIGNETTES (Rétro)
   13. SECTION: PARTNERS, CONTACT & SHARE
   14. SECTION: ABOUT (À Propos & Socials)
   15. FOOTER
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES (:ROOT)
   ========================================================================== */
:root {
  /* --- Couleurs Primaires --- */
  --white: #ffffff;
  --black: #000000;
  --color-bg: #ffffff;
  --color-titre: #1a1a1a;
  --color-carte-bg: #f9f9f9;
  
  /* --- Palette Bleu --- */
  --blue: #0056b3;
  --darkblue: #00008B;
  --bleu-titre: #0A2540;
  --lightblue: #cce0ff;
  --color-tag-bg: #0056b3;
  
  /* --- Palette Accents --- */
  --orange: #ff6600;
  --orange-bouton: #ff4c4c;
  
  /* --- Palette Gris --- */
  --darkgray: #333;
  --gris-texte: #555555;
  --noir-header: #000000;

  /* --- Textes & Tags --- */
  --color-tag-text: #ffffff;

  /* --- Gradients & Ombres --- */
  --sous-titre: linear-gradient(180deg, rgba(0,0,10,0.35) 0%, rgba(0,0,0,0.6) 60%);
  --hover-gradient: linear-gradient(135deg, #1e90ff, #ff6600);
  --shadow: 0 8px 25px rgba(0,0,0,0.15);
  --overlay-text-bg: rgba(0, 0, 0, 0.6);

  /* --- Dimensions & Config --- */
  --fa-line-height: 1;
  --border-radius: 6px;
}

/* ==========================================================================
   2. FONTS & TYPOGRAPHY IMPORTS
   ========================================================================== */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v49-latin_latin-ext-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v49-latin_latin-ext-700.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}

.fas, .far, .fab {
  line-height: var(--fa-line-height);
}

/* ==========================================================================
   FIX FIREFOX FLASH (PRELOAD CLASS)
   ========================================================================== */
/* Cette classe bloque les transitions au chargement de la page */
body.preload * {
  transition: none !important;
  -webkit-transition: none !important;
  animation: none !important;
}


/* ==========================================================================
   3. RESET & GLOBAL STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, p, li {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--darkgray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

button, .caption {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   4. UTILITIES
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 10px;
}

.transition { transition: all 0.3s ease; }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--shadow); }
.blue { color: #00008B; }
.orange { color: #ff6600; }

/* Horizontal Scroll Générique */
.horizontal-scroll-container-wrapper {
  position: relative;
}

.horizontal-scroll-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Titres de Sections Standardisés */
.articles-accueil .section-title,
.articles-liste .section-title,
.shorts-accueil .section-title,
.video-header h2,
.tv-vignette-section .section-title {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bleu-titre);
  text-transform: uppercase;
  margin: 0;
  padding-left: 0px;
  text-align: left;
  line-height: 1.2;
}

.section-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

/* Ligne grise fine décorative */
.section-title-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #eee;
  z-index: 0;
}

/* Titre principal (Option Tech & Futur) */
.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 15px;
  margin: 0;
  z-index: 1;
}

/* Ligne dégradée sous le texte */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0056b3 0%, #00d4ff 100%);
  border-radius: 2px;
}

/* Marges spécifiques aux conteneurs de titre */
.articles-accueil .section-title-container { margin: 20px 5px 15px; }
.articles-liste .section-title-container { margin: 0 auto 0px; max-width: 1100px; padding: 30px 5px 0px; }
.shorts-accueil .section-title-container { margin-bottom: 10px; margin-top: 20px; padding: 0 15px; }
.tv-vignette-section .section-title-container { justify-content: left; margin-top: 30px; margin-bottom: 25px; }

@media (max-width: 768px) {
  .section-title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--noir-header);
  border-bottom: 1px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo img {
  height: auto;
  width: 140px;
  display: block;
}

/* --- Hamburger Menu --- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 35px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 50px;
  transition: all 0.4s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Menu Overlay --- */
.menu {
  position: fixed;
  top: 60px;
  right: 0;
  width: 100%;
  max-width: 900px;
  bottom: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), opacity 0.4s ease, visibility 0.4s;
  z-index: 1001;
}

.menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.menu a {
  font-size: clamp(1.3rem, 3.8vw, 1.5rem);
  font-weight: 400;
  color: var(--darkgray);
  padding: 15px 20px;
  border-radius: 10px;
  text-align: left;
  display: block;
  width: 90%;
  max-width: 450px;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.menu-footer-separator {
  width: 100%;
  height: 1px;
  margin: 5px 0;
  border-bottom: 1px solid; 
  border-image: linear-gradient(to right, var(--blue), #ff7a00) 1;
}

.menu a i {
  margin-right: 15px;
  color: var(--darkblue);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--white);
  background-color: var(--blue);
  transform: scale(1.05);
}

/* Menu Socials */
.menu-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 5px 0 10px;
  width: 100%;
}

.menu-socials .menu-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 30%;
  background-color: transparent;
  border: 1px solid var(--darkgray);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-socials .menu-social i {
  font-size: 1rem;
  color: var(--darkgray);
}

.menu-socials .menu-social:hover,
.menu-socials .menu-social:focus-visible {
  background-color: var(--darkgray);
  transform: scale(1.1);
}

.menu-socials .menu-social:hover i,
.menu-socials .menu-social:focus-visible i {
  color: var(--white);
}

.menu-footer-text {
  font-size: 0.75rem;
  color: var(--darkgray);
  text-align: center;
  margin-top: 1px;
  opacity: 0.8;
}

body.menu-open {
  overflow: hidden;
}

/* --- Barre de Recherche --- */
#search-toggle {
  position: fixed;
  top: 20px;
  right: 80px;
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  z-index: 10000;
  transition: color 0.3s ease;
}

#search-toggle:hover,
#search-toggle:focus-visible {
  color: #00bfff;
  outline: none;
}

#search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(5px);
  z-index: 9980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#search-bar-container {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 90vw;
  max-width: 500px;
  z-index: 9999;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

#search-bar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 35px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 25px;
  background: #f5f6f8;
  color: #222;
}

#search-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 8px;
}

#search-results-container {
  display: none;
  flex-direction: column;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

#search-results-container::-webkit-scrollbar {
  width: 6px;
}
#search-results-container::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}
#search-results-container::-webkit-scrollbar-track {
  background: transparent;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s, transform 0.15s;
}

.suggestion-item:hover {
  background-color: #eaf2ff;
  transform: translateX(2px);
}

.suggestion-item img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 1px solid #ddd;
}

.suggestion-item i {
  color: #003366;
  margin-right: 6px;
}

.suggestion-item span {
  flex: 1;
  font-size: 0.95rem;
  color: #222;
}

/* ==========================================================================
   6. UI COMPONENTS
   ========================================================================== */

/* --- Bouton "Voir Tout" --- */
.btn-voir-tout,
.video-header .see-more {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--darkblue) !important;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(0, 86, 179, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-voir-tout:hover,
.video-header .see-more:hover {
  background: transparent !important;
  color: var(--darkblue) !important;
  text-decoration-color: var(--orange) !important;
  transform: translateX(3px);
}

.video-header .see-more:hover {
    color: var(--blue) !important;
}

.btn-voir-tout::after,
.video-header .see-more::after {
  content: ' →';
  display: inline-block;
  margin-left: 4px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.btn-voir-tout:hover::after,
.video-header .see-more:hover::after {
  transform: translateX(3px);
}

/* --- Flèches de Navigation (Carousels) --- */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  padding: 0 0.5rem;
  color: #000;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  z-index: 10;
  transition: background 0.3s ease;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }

.articles-liste .horizontal-scroll-container-wrapper .arrow.left { left: 0; }
.articles-liste .horizontal-scroll-container-wrapper .arrow.right { right: 0; }

/* --- Boutons de Partage (Générique) --- */
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  text-align: center;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f5f7fa;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  color: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.share__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 30, 80, 0.06);
}

.share__btn:focus {
  outline: 3px solid rgba(11, 105, 255, 0.18);
  outline-offset: 2px;
}

.share__btn i {
  font-size: 16px;
  width: 16px;
  text-align: center;
}

@media (max-width: 520px) {
  .share__label { display: none; }
}

/* ==========================================================================
   NAVIGATION GRID MODERN (SVG Version)
   ========================================================================== */
.nav-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 10px;
}

.nav-card-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* --- Conteneur de l'icône (Le rond) --- */
.nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.1); /* Fond bleu très pâle */
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* --- Style du SVG interne --- */
.nav-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue); /* Couleur de l'icône par défaut */
    transition: color 0.3s ease, transform 0.3s ease;
}

/* --- Textes --- */
.nav-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nav-label {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-titre);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* --- Flèche SVG à droite --- */
.nav-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-arrow-icon svg {
    width: 20px;
    height: 20px;
    color: #ccc; /* Gris par défaut */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* ===========================
   HOVER EFFECTS
   =========================== */

/* La carte se soulève */
.nav-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.15);
    border-color: rgba(0, 86, 179, 0.2);
}

/* Le rond devient bleu plein */
.nav-card-item:hover .nav-icon {
    background-color: var(--blue);
    transform: scale(1.1); /* Léger grossissement du rond */
}

/* Le SVG devient blanc */
.nav-card-item:hover .nav-icon svg {
    color: var(--white);
}

/* La flèche devient bleue et bouge */
.nav-card-item:hover .nav-arrow-icon svg {
    color: var(--blue);
    transform: translateX(5px);
}

/* --- Responsive Mobile (Mode 2 Colonnes / Tuiles Verticales) --- */
@media (max-width: 600px) {
    .nav-grid-modern {
        /* Force 2 colonnes strictes */
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; /* Espacement réduit pour optimiser l'écran */
        padding: 0 10px;
    }
    
    .nav-card-item {
        /* On empile les éléments verticalement */
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 15px 10px;
        min-height: 130px; /* Hauteur minimale pour l'uniformité */
    }
    
    .nav-icon {
        margin-right: 0;      /* Plus de marge à droite */
        margin-bottom: 10px;  /* Marge en bas pour séparer du texte */
        width: 45px;          /* Légèrement plus petit */
        height: 45px;
    }
    
    .nav-info {
        width: 100%;
        align-items: center; /* Centre le contenu flex */
    }
    
    .nav-label {
        font-size: 0.95rem; /* Titre légèrement plus petit */
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .nav-desc {
        font-size: 0.75rem;
        line-height: 1.2;
        display: block; /* S'assure que le sous-titre est visible */
        opacity: 0.8;
    }
    
    /* On cache la flèche sur mobile pour épuré le design en 2 colonnes */
    .nav-arrow-icon {
        display: none;
    }
}



/* ==========================================================================
   FIX MOBILE: HIDE ARROWS
   ========================================================================== */
@media (max-width: 768px) {
  /* Masquer toutes les flèches de navigation sur mobile */
  .arrow,
  .arrow.left,
  .arrow.right,
  .shorts-accueil .arrow {
    display: none !important;
  }

  /* Optimisation de l'espace de scroll puisque les flèches ne sont plus là */
  .horizontal-scroll-container,
  .shorts-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    /* Assure que le scroll tactile est fluide */
    -webkit-overflow-scrolling: touch; 
  }
}

/* ==========================================================================
   7. SECTION: HERO (SEO & GRID)
   ========================================================================== */

/* --- H1 SEO (Design Sobre & Bleu) --- */
#seo-hero-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 96%;
  max-width: 1200px;
  margin: 20px auto 35px auto;
  padding: 25px 20px;
  background-color: #ffffff;
  border: 1px solid #e1e4e8;
  border-top: 5px solid var(--darkblue);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.hero-title-primary {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 3.5vw, 1.7rem);
  color: var(--bleu-titre);
  text-transform: capitalize;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-title-secondary {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #4a5568;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  #seo-hero-title {
    padding: 20px 5px;
    width: 94%;
    border-top-width: 4px;
  }
  .hero-title-primary {
    margin-bottom: 5px;
  }
}

/* --- Hero Grid System --- */
.hero-grid-wrapper {
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 0 5px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  height: 500px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-item.main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.hero-item.sub {
  grid-column: 2 / 3;
}

.hero-image {
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-item:hover .hero-image img {
  transform: scale(1.05);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  padding: 20px;
  color: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
}

.hero-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 5px 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  text-align: left;
}

.hero-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 5px 0;
  line-height: 1.3;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-content p {
  color: #ddd;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.hero-tag {
  background: linear-gradient(135deg, #ff4c4c, #d90000);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: inline-block;
}

.hero-tag.secondary {
  background: rgba(0, 86, 179, 0.9);
}

@media (max-width: 768px) {
  .hero-grid-wrapper { margin-top: 5px; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 15px;
  }
  .hero-item.main {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 16/9;
    height: auto;
    min-height: 220px;
  }
  .hero-item.sub {
    grid-column: 1;
    aspect-ratio: 2.5/1;
    height: auto;
    min-height: 120px;
  }
  .hero-content { padding: 15px; }
  .hero-content h2 { font-size: 1.3rem; }
  .hero-content h3 { font-size: 1rem; }
}

/* ==========================================================================
   8. SECTION: NEWS GRID (Actualités)
   ========================================================================== */
.news-section {
  padding: 10px 10px 30px 10px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
  align-items: stretch;
}

/* --- Carte Principale (Gauche) --- */
.news-card.main {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-decoration: none;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card.main:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.news-card.main .news-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.news-card.main .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card.main:hover .news-image img {
  transform: scale(1.05);
}

.news-card.main .news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card.main h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.news-card.main p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.news-meta {
  margin-top: auto;
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
}
.news-meta i { margin-right: 5px; color: var(--blue); }

.news-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

/* --- Grille Secondaire (Droite 2x2) --- */
.news-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.news-card.sub {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.news-card.sub:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.news-card.sub .news-image {
  height: 140px;
  width: 100%;
  overflow: hidden;
}

.news-card.sub .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card.sub:hover .news-image img {
  transform: scale(1.05);
}

.news-card.sub .news-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card.sub h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .news-sub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .news-sub-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .news-card.main .news-image { height: 220px; }
  .news-card.main h3 { font-size: 1.3rem; }
  .news-card.sub {
    flex-direction: row;
    align-items: center;
    height: auto;
  }
  .news-card.sub .news-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }
  .news-card.sub .news-content { padding: 10px 15px; }
}

/* ==========================================================================
   9. SECTION: VIDEO (Player & Playlist)
   ========================================================================== */
.video-section {
  padding: 10px 15px 40px 15px;
}

.video-grid-layout {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr;
  gap: 25px;
  align-items: flex-start;
}

/* --- Main Player --- */
.main-player-wrapper {
  display: flex;
  flex-direction: column;
}

#player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: #000;
  cursor: pointer;
}

#player-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

/* Bouton Play SVG */
#player-container button {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  opacity: 0.8;
  border: none;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7), 0 10px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#player-container button svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  margin-left: 0px;
  display: block;
}

#player-container:hover button {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), 0 15px 30px rgba(0,0,0,0.4);
}

#player-container button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

#player-container.video-playing button {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Overlay Principal */
.main-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 80px 20px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
  z-index: 4;
  pointer-events: none;
  text-align: left;
}

.main-overlay-info h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-weight: 700;
  line-height: 1.2;
}

.main-overlay-info p {
  color: #ddd;
  font-size: 1rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#player-container.video-playing .main-overlay-info,
#player-container.video-playing img,
#player-container.video-playing button {
  display: none;
}

/* --- Playlist Vignettes --- */
.side-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-content: start;
}

.side-video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 2;
}

.side-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.side-video-card:hover img {
  transform: scale(1.1);
}

.overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  pointer-events: none;
}

.overlay-content h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-icon-small {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.side-video-card:hover .play-icon-small {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 900px) {
  .video-grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .video-section {
    padding: 10px 10px 30px 10px;
  }
  .main-overlay-info h3 { font-size: 1.2rem; }
  .main-overlay-info p { font-size: 0.9rem; -webkit-line-clamp: 3; }
}
/* ==========================================================================
   11. SECTION: SHORTS ACCUEIL
   ========================================================================== */
.shorts-accueil {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0; 
  position: relative; 
  overflow-x: clip; 
}

.carousel-container.shorts-carousel {
  position: relative;
  width: 100%;
  padding-left: 5px;
  margin: 0; 
  touch-action: pan-y; 
}

.shorts-container {
  display: flex;
  gap: 20px;
  padding: 20px 15px 30px 15px; 
  overflow-x: auto;
  overflow-y: hidden; 
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y !important; 
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none; 
  -ms-overflow-style: none;
  cursor: grab;
}
.shorts-container::-webkit-scrollbar { display: none; }
.shorts-container:active { cursor: grabbing; }

/* Carte Short */
.short-item {
  flex: 0 0 auto;
  width: 240px;
  height: 380px;
  background: #000;
  border-radius: 16px;
  overflow: hidden; 
  position: relative;
  user-select: none;
  touch-action: pan-x pan-y !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  scroll-snap-align: start; 
}

.short-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent; 
  touch-action: pan-x pan-y !important;
}

.short-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 86, 179, 0.25);
  z-index: 5; 
}

.short-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
  pointer-events: none;
}
.short-item:hover .short-thumb { transform: scale(1.05); }

.short-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 15px 15px 15px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.short-title {
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.short-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* Badges Short */
.short-item span, 
.short-item .badge {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.short-item span:first-of-type {
  left: 12px;
  background: rgba(0, 86, 179, 0.9);
  color: #fff;
}
.short-item span:nth-of-type(2) {
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Flèches Short Spécifiques */
.shorts-accueil .arrow.left { left: 5px; }
.shorts-accueil .arrow.right { right: 5px; }
/* Container des squelettes pour s'aligner comme le carrousel */
.shorts-container {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Permet le scroll horizontal si besoin */
  padding-bottom: 10px;
}

/* Carte Squelette */
.short-card-skeleton {
  min-width: 280px; /* Largeur similaire à vos vraies cartes */
  width: 280px;
  background-color: #1a1a1a; /* Fond de carte sombre */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* L'image grise */
.sk-image {
  width: 100%;
  height: 160px; /* Hauteur approximative de vos images */
  background-color: #2d2d2d;
}

/* Le contenu texte */
.sk-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Les lignes de texte */
.sk-line {
  background-color: #2d2d2d;
  border-radius: 4px;
}

.sk-title {
  width: 85%;
  height: 20px;
}

.sk-meta {
  width: 40%;
  height: 15px;
  margin-top: 5px;
}

/* Animation de scintillement (Shimmer Effect) */
.short-card-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.05) 20%, /* Lumière très subtile pour mode sombre */
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Masquer le 4ème sur mobile pour gagner de la place si besoin */
@media (max-width: 768px) {
  .short-card-skeleton.mobile-hidden {
    display: none;
  }
}


@media (max-width: 768px) {
  .shorts-accueil { padding: 10px 0; }
  .shorts-accueil .section-title-container { padding: 0 15px; margin-bottom: 10px; }
  .shorts-container { gap: 15px; padding: 10px 15px 20px 15px; touch-action: pan-x pan-y !important; }
  .short-item { width: 160px; height: 280px; border-radius: 12px; }
  .short-info { padding: 40px 10px 10px 10px; }
  .short-title { font-size: 0.9rem; -webkit-line-clamp: 2; }
}

/* ==========================================================================
   12. SECTION: TV VIGNETTES (Live Stream) - CORRIGÉ
   ========================================================================== */

/* 1. On aligne la section comme le reste du site (.container) */
.tv-vignette-section {
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto 40px auto; 
  padding: 0 10px; /* Padding identique à .container pour l'alignement vertical */
  position: relative;
  box-sizing: border-box;
}

/* 2. On force le conteneur de scroll à commencer tout à gauche */
.tv-vignette-section .horizontal-scroll-container {
  padding-left: 0 !important;  /* Force le zéro padding gauche */
  margin-left: 0 !important;   /* Force le zéro marge gauche */
  justify-content: flex-start; /* Empêche le centrage automatique */
  gap: 20px; /* Espace entre les cartes */
}

/* 3. Style de la carte */
.tv-vignette {
  flex: 0 0 auto; 
  width: 300px; 
  /* PAS de margin-right ici, on utilise le gap du container au-dessus */
  margin-left: 0 !important; /* Sécurité pour la 1ère carte */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #1a1a1a; 
  border: 1px solid #333; 
  border-radius: 12px; 
  overflow: hidden; 
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

/* Sécurité absolue pour la première vignette */
.tv-vignette:first-child {
  margin-left: 0 !important;
}

.tv-vignette:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
  border-color: #00d2ff;
}

/* Container Image */
.tv-vignette-image {
  width: 100%;
  height: 160px; 
  background-color: #000;
  position: relative;
  overflow: hidden; 
}

.tv-vignette-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85; 
  transition: transform 0.4s ease, opacity 0.3s ease; 
}

.tv-vignette:hover .tv-vignette-image img {
  opacity: 1;
  transform: scale(1.05); 
}

/* === BADGE LIVE (Indicateur vert) === */
.live-badge {
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 0, 0, 0.4);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Le point vert */
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #ADFF2F;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 5px #ADFF2F;
  animation: live-pulse 1.5s infinite ease-in-out;
}

@keyframes live-pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Overlay icône Play */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 0px;
  height: 0px;
  background: rgba(0, 168, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.tv-vignette:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Contenu Texte */
.tv-vignette-content {
  padding: 15px;
  background: linear-gradient(to bottom, #1a1a1a, #151515);
  flex-grow: 1; 
}

.tv-vignette-titre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0f0f0;
  margin: 0 0 5px 0;
}

.tv-vignette-desc {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0;
  line-height: 1.4;
}
/* =========================================
   CENTRAGE DESKTOP (Largeur > 1024px)
   ========================================= */
@media (min-width: 1024px) {
  
  /* On cible le conteneur de scroll spécifiquement dans la section TV */
  .tv-vignette-section .horizontal-scroll-container {
    justify-content: center; /* Centre les éléments flex */
    
    /* On s'assure que le scroll reste inactif si tout rentre à l'écran */
    overflow-x: hidden; 
  }
}

/* =========================================
   SECURITÉ MOBILE (Largeur < 1024px)
   ========================================= */
@media (max-width: 1023px) {
    
  /* On force le comportement de scroll à gauche sur tablette/mobile */
  .tv-vignette-section .horizontal-scroll-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 10px !important; /* Petit décalage esthétique mobile */
  }
}


/* ==========================================================================
   REFONTE SECTION PARTENAIRES (DESIGN GRID 2 COL)
   ========================================================================== */

/* Ajustement du container global de la section */
.partners-section {
  padding: 20px 10px 40px 10px;
  background: transparent; /* On enlève le gris pour l'unifier ou le garder blanc */
  margin-top: 20px;
}

/* Grille Responsive : 2 colonnes par défaut (Mobile), 4 sur Desktop */
.partners-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Force 2 colonnes sur mobile */
  gap: 15px; /* Espace réduit pour mobile */
  margin-top: 15px;
}

@media (min-width: 768px) {
  .partners-grid-modern {
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur tablette/desktop */
    gap: 25px;
  }
}

/* Design de la Carte */
.partner-card-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 15px 10px;
  text-align: center;
  height: 100%;
}

.partner-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.1);
  border-color: rgba(0, 86, 179, 0.2);
}

/* Zone Logo */
.partner-logo-box {
  width: 100%;
  height: 60px; /* Hauteur fixe pour alignement parfait */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.partner-logo-box img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%); /* Effet noir et blanc par défaut élégant */
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Couleur au survol */
.partner-card-modern:hover .partner-logo-box img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Textes */
.partner-content h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
}

.partner-content p {
  margin: 4px 0 0 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.2;
}

/* Ajustements Mobile Spécifiques */
@media (max-width: 480px) {
  .partners-grid-modern {
    gap: 10px;
  }
  
  .partner-card-modern {
    padding: 12px 5px;
  }
  
  .partner-logo-box {
    height: 45px; /* Logos plus petits sur mobile */
  }
  
  .partner-content h3 {
    font-size: 0.85rem;
  }
  
  .partner-content p {
    font-size: 0.7rem;
    display: none; /* Optionnel : masquer la description sur très petits écrans si trop chargé */
  }
}

/* Contact & Share Grid */
.share-contact-section {
  padding: 10px 0px;
  background-color: #fff;
  margin-top: 30px;
}

.share-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.share-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  border-radius: 15px;
  padding: 1px;
}

.share-image-wrapper {
  width: 100%;
  margin: 0 0 15px 0;
  padding: 0;
}

.share-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.contact-column {
  display: flex;
  flex-direction: column;
}

.contact-card {
    max-width: 750px;
    background-color: var(--white);
    margin: 15px auto;
    border-radius: 15px;
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.contact-card.compact {
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: var(--white);
}

.contact-card.compact .card-content {
  flex-grow: 1;
  justify-content: center;
  padding: 20px 15px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 50px 0;
    position: relative; 
    padding: 0 25px; 
    letter-spacing: 0.5px;
}
.contact-card.compact .card-title {
  font-size: 1.1rem;
  margin: 0 0 20px 0;
}

.card-title::before, .card-title::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px; 
    height: 100%; 
    background-color: var(--darkblue);
}
.card-title::before { left: 0; }
.card-title::after { right: 0; }

.card-description {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 24px 0;
    opacity: 0.9;
}
.card-icon { color: #000; margin-bottom: 20px; }
.card-button {
    display: block;
    background-color: var(--darkblue);
    color: var(--white);
    padding: 18px;
    text-align: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.card-button:hover { background-color: var(--orange); }

@media (min-width: 1024px) {
  .partners-section h2 { display: block; margin: 0 auto; text-align: center; }
}
@media (min-width: 768px) {
  .partners-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .share-contact-grid { grid-template-columns: 1fr; gap: 25px; }
  .share-column, .contact-column { width: 100%; }
}

/* ==========================================================================
   14. SECTION: ABOUT (À Propos & Socials)
   ========================================================================== */
#a-propos-section {
    background-color: #0d0d0d; 
    padding-top: 10px;
    padding-bottom: 20px;
    margin-top: 0px;
}

#a-propos-section .content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0px;
    text-align: center;
}

#a-propos-section .section-title {
    display: inline-block;
    position: relative;
    color: #fff; 
    font-size: 1.2em; 
    font-weight: 700;
    margin-top: 0px;
    margin-bottom: 35px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

#a-propos-section p {
    color: #bbb;
    font-size: 1.0em;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.about-links {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; 
}

.about-links .read-more-button {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    background-color: #222; 
    color: #fff;
    border: 1px solid #333;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.about-links .read-more-button:hover {
    background-color: #333;
    border-color: #ADFF2F;
}

/* Réseaux Sociaux */
.reseaux-title {
  display: inline-block;              
  text-align: center;                 
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--darkblue, #0a2f6e);
  padding: 5px 10px;
  border: 1px solid var(--darkblue, #0a2f6e);
  border-radius: 8px;
  margin: 20px auto;                  
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}

.reseaux-title:hover {
  background-color: var(--darkblue, #0a2f6e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.reseaux-container { text-align: center; }

figure {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px auto;
}

figure img {
  width: 100%;
  max-width: 400px;
  height: auto;      
  object-fit: contain;
  display: block;
}

figure.fixed-size { height: 250px; }
figure.fixed-size img { height: 100%; width: auto; }

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: #0a0a0a;
  color: #ccc;
  text-align: center;
  margin-top: 1rem;
  padding: 2rem 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: system-ui, sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  max-width: 100px;
  height: auto;
  filter: brightness(1.2);
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ccc;
  font-size: 1.2rem;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: scale(1.15);
  color: var(--white);
  background-color: #e53935;
  box-shadow: 0 0 12px rgba(229, 57, 53, 0.5);
}

.share-facebook:hover {
  background-color: #1877f2;
  box-shadow: 0 0 12px rgba(24,119,242,0.5);
}
.share-twitter:hover {
  background-color: #000;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}
.share-linkedin:hover {
  background-color: #0077b5;
  box-shadow: 0 0 12px rgba(0,119,181,0.5);
}
.share-whatsapp:hover {
  background-color: #25d366;
  box-shadow: 0 0 12px rgba(37,211,102,0.5);
}
.share-instagram:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 0 14px rgba(253,89,73,0.6);
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--white);
}

.footer-legal a {
  color: var(--white);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .share-btn { width: 38px; height: 38px; font-size: 1rem; }
  .footer-legal { font-size: 0.8rem; }
}

/* ==========================================================================
   SECTION: ARTICLES LISTE (MODERN DESIGN)
   ========================================================================== */

/* Conteneur principal */
.articles-liste.modern-list {
  max-width: 1200px;
  margin: 0px auto 10px;
  padding: 0 0px;
}

/* Scroll Container avec effet "Snap" */
.articles-liste .horizontal-scroll-container.snap-scroll {
  padding: 20px 5px 40px 5px; /* Padding bas pour l'ombre */
  gap: 25px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 5px;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- La Carte Moderne --- */
.modern-card {
  flex: 0 0 300px; /* Largeur fixe de la carte */
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px; /* Coins plus arrondis */
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Ombre douce et large */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  scroll-snap-align: start;
  height: auto; /* Laisse le contenu définir la hauteur */
  border: 1px solid rgba(0,0,0,0.03);
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 86, 179, 0.15); /* Ombre bleutée au survol */
}

/* Zone Image */
.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10; /* Format rectangulaire moderne */
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.modern-card:hover .card-image-wrapper img {
  transform: scale(1.08); /* Zoom fluide au survol */
}

/* Le Tag (flottant sur l'image) */
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px; /* Tag en pilule */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 2;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}

/* Contenu Texte */
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Date */
.card-meta {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.card-meta i { margin-right: 5px; color: var(--blue); }

/* Titre */
.card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-titre);
  line-height: 1.3;
  margin: 0 0 10px 0;
  /* Limite à 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-card:hover .card-title {
  color: var(--blue); /* Le titre devient bleu au survol */
  transition: color 0.2s ease;
}

/* Extrait (Paragraphe) */
.card-excerpt {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1;
  /* Limite à 3 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.9;
}

/* Lien "Lire l'article" en bas */
.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--darkblue);
  text-transform: uppercase;
  margin-top: auto;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.card-link i {
  margin-left: 6px;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.modern-card:hover .card-link i {
  transform: translateX(5px);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
  .modern-card {
    flex: 0 0 260px; /* Plus petit sur tablette */
  }
  .card-content { padding: 15px; }
  .card-title { font-size: 1.05rem; }
  .card-excerpt { font-size: 0.9rem; -webkit-line-clamp: 3; }
}

@media (max-width: 480px) {
  .modern-card {
    flex: 0 0 240px; /* Adapté au mobile */
  }
  .articles-liste .horizontal-scroll-container.snap-scroll {
    padding-left: 15px; /* Marge gauche pour voir le début */
    padding-right: 15px;
  }
}
/* ==========================================================================
   CARTE RÉSEAUX SOCIAUX (MODERN DESIGN)
   ========================================================================== */

/* Ajustement du conteneur spécifique */
.contact-card.social-card {
  background: var(--white);
  padding: 0; /* On laisse le contenu gérer le padding */
}

.social-network-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f4f6f9;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 12px 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* Effet Hover Global */
.social-row:hover {
  transform: translateX(5px);
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  border-color: transparent;
}

/* --- Identité Visuelle des Réseaux --- */
/* Facebook */
.social-row.fb:hover { border-left: 5px solid #1877f2; }
.social-row.fb .social-icon-box { background: #1877f2; color: #fff; }
.social-row.fb:hover .social-btn-action { background: #1877f2; color: #fff; border-color: #1877f2; }

/* X (Twitter) */
.social-row.x:hover { border-left: 5px solid #000000; }
.social-row.x .social-icon-box { background: #000000; color: #fff; }
.social-row.x:hover .social-btn-action { background: #000000; color: #fff; border-color: #000000; }

/* LinkedIn */
.social-row.li:hover { border-left: 5px solid #0077b5; }
.social-row.li .social-icon-box { background: #0077b5; color: #fff; }
.social-row.li:hover .social-btn-action { background: #0077b5; color: #fff; border-color: #0077b5; }


/* --- Icone (Gauche) --- */
.social-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.social-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Texte (Centre) --- */
.social-meta {
  flex-grow: 1;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.2;
}

.social-stats {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

.highlight-stat {
  color: var(--orange);
  font-weight: 700;
}

/* --- Bouton (Droite) --- */
.social-btn-action {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #d0d0d0;
  color: #555;
  background: transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Adaptation Mobile */
@media (max-width: 400px) {
  .social-meta { padding: 0 10px; }
  .social-stats { font-size: 0.7rem; }
}

/* ==========================================================================
   WIDGET TRUSTPILOT (VERSION IMAGE)
   ========================================================================== */
.trustpilot-widget-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  background-color: #f9f9f9;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 10px 10px;
  margin: 10px auto;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.trustpilot-widget-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Gestion de l'image trust.webp */
.trustpilot-visual img {
  display: block;
  height: 90px; /* Hauteur ajustée pour correspondre au visuel standard */
  width: auto;  /* Conserve le ratio */
  max-width: 100%;
}

/* Le Bouton CTA */
.trustpilot-btn {
  display: inline-block;
  background-color: var(--darkblue, #00008B);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.trustpilot-btn:hover {
  background-color: var(--orange, #ff6600);
  transform: scale(1.05);
  color: #ffffff;
}

/* Responsive Mobile */
@media (max-width: 1024px) {
  .trustpilot-widget-container {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .trustpilot-visual img {
    height: 100px; /* Légèrement plus petit sur mobile */
  }
  
  .trustpilot-btn {
    width: 100%;
    text-align: center;
  }
}

/* Style pour le cercle du logo dans la carte contact */
.contact-logo-wrapper {
  width: 90px;               /* Taille du cercle */
  height: 90px;
  margin: 0 auto 20px auto;  /* Centré horizontalement + Marge basse */
  border-radius: 50%;        /* Rend le bloc parfaitement rond */
  background-color: #000; /* Fond blanc propre */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Ombre pour le relief */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;          /* Coupe l'image si elle dépasse */
  border: 2px solid rgba(0, 86, 179, 0.1); /* Légère bordure bleutée (optionnel) */
}

.contact-logo-wrapper img {
  width: 75%;                /* Taille du logo à l'intérieur du cercle */
  height: auto;
  object-fit: contain;
  display: block;
}
