/* ========================================= */
/*          index.css - Complet            */
/* ========================================= */

/* Réinitialisation de base & Variables (Optionnel) */
/* ----------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem; /* Espace pour ancres si header fixe */
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
  font-size: 16px; /* Taille de police de base */
}

/* Conteneurs Généraux */
/* ----------------------------------------- */
.container {
  width: 95%; /* <= AUGMENTÉ (était 90%) */
  max-width: 1320px; /* <= AUGMENTÉ (était 1140px) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}


/* Header */
/* ----------------------------------------- */
header {
  background-color: #0066cc;
  color: white;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2rem;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #e0e0e0;
}


/* Layout Principal (Flex) */
/* ----------------------------------------- */
.main-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}


/* Sidebar */
/* ----------------------------------------- */
#sidebar {
  flex: 0 0 300px;
  background-color: #e9ecef;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

#sidebar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #0056b3;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
  font-weight: 700;
}

#sidebar ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

#sidebar li {
  margin-bottom: 0.75rem;
}

#sidebar a {
  text-decoration: none;
  color: #343a40;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

#sidebar a:hover {
  color: #0066cc;
  padding-left: 5px;
}


/* Contenu Principal (<main>) */
/* ----------------------------------------- */
main {
  flex: 1;
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  min-width: 0; /* TRÈS IMPORTANT */
}

section {
  margin-bottom: 2.5rem;
}

section:last-child {
    margin-bottom: 0;
}


/* Styles Typographiques du Contenu */
/* ----------------------------------------- */
h2 {
  color: #0066cc;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  border-left: 5px solid #0066cc;
  padding-left: 0.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #444;
  font-weight: 700;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
}

ul, ol {
  padding-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}


/* Image de Section - NOUVELLE TENTATIVE */
/* ----------------------------------------- */
.section-image {
  display: block;         /* Comportement de bloc */
  width: 100%;          /* <= MODIFIÉ: Essaye d'occuper 100% de la largeur dispo */
  max-width: 500px;       /* <= MODIFIÉ: Mais jamais plus de 500px */
  height: auto;           /* <= ESSENTIEL: Maintient les proportions */
  margin: 1.5rem auto;    /* Espace vertical et centrage horizontal */
  
  /* Styles visuels */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Vidéo HTML5 Spécifique (Vérification/Correction) */
/* ----------------------------------------- */
#WE4347136ec9,
.OEWEVideo { 
  max-width: 100%;      
  box-sizing: border-box; 
  margin-top: 1rem;       
  height: auto;          
  position: relative;    /* <= IMPORTANT */
  z-index: 5;            
  overflow: hidden;      /* <= Empêche débordement interne */
}

#WE4347136ec9 .OESZ,
#WE4347136ec9 .ContainerVideoHTML5 {
   height: auto;         
   position: static;     /* <= IMPORTANT */
}

#WE4347136ec9 video.TagVideoHTML5 {
  display: block;       
  width: 100%;          
  max-width: 100%;      
  height: auto;         /* <= CRUCIAL */
  border-radius: 8px;   
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); 
} 




/* Section Avis Clients */
/* ----------------------------------------- */
.avis-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.avis {
  background-color: #f8f9fa;
  border-left: 4px solid #0066cc;
  padding: 1rem;
  border-radius: 5px;
}

.avis p {
  margin-bottom: 0;
}

.avis p strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #0056b3;
    font-weight: 700;
}


/* Footer */
/* ----------------------------------------- */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

footer .container p {
    margin-bottom: 0.5rem;
    color: #fff;
}
footer .container p strong {
    font-weight: 700;
}

footer nav a {
  color: #ddd;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer nav a:hover {
  color: #fff;
}


/* Animation */
/* ----------------------------------------- */
.fade-in {
  animation: fadeIn ease 1s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================= */
/*            Styles Responsives             */
/* ========================================= */

/* Tablette (<= 992px) */
/* ----------------------------------------- */
@media (max-width: 992px) {
  .main-layout {
    flex-direction: column;
  }
  #sidebar {
    flex-basis: auto;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .container {
    max-width: 960px;
  }
}


/* Mobile (<= 768px) */
/* ----------------------------------------- */
@media (max-width: 768px) {
  header .container h1 { font-size: 1.8rem; }
  header nav ul { flex-direction: column; align-items: center; gap: 0.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  p, li { font-size: 0.95rem; line-height: 1.6; }
  ul, ol { padding-left: 1.2rem; }
  main { padding: 1.5rem; }
  .container { width: 95%; padding-left: 0.5rem; padding-right: 0.5rem; }
  .container.page-content { margin-top: 1rem; }
  #sidebar { padding: 1rem; }
  footer { padding: 1rem 0; }
  .section-image { margin: 1rem auto; } /* Marge image réduite */
  .avis-container { grid-template-columns: 1fr; }
}


/* Très Petits Écrans (<= 480px) */
/* ----------------------------------------- */
@media (max-width: 480px) {
   header .container h1 { font-size: 1.6rem; }
   h2 { font-size: 1.3rem; }
   h3 { font-size: 1.1rem; }
   p, li { font-size: 0.9rem; }
   ul, ol { padding-left: 1rem; }
   main { padding: 1rem; }
   .main-layout { gap: 1rem; }
   #sidebar { margin-bottom: 1rem; }
   .section-image { margin: 0.75rem auto; box-shadow: none; } /* Marge réduite, ombre enlevée */
   .avis { padding: 0.75rem; }
}