/*
Feuille de Style Principale de BEDARA CONSULTING
Version : 1.2 (Variables nettoyées)

TABLE DES MATIÈRES
---------------------------
1.0 - Variables & Root
2.0 - Styles Généraux & Typographie de base
3.0 - Header & Navigation
4.0 - Sections Principales
5.0 - Composants Spécifiques
6.0 - Pied de Page (Footer)
7.0 - Utilitaires
8.0 - Responsive Design
---------------------------
*/

/* 1.0 - Variables & Root
------------------------------------------------- */
:root {
  /* Polices */
  --font-body: "Poppins", sans-serif;
  --font-heading: "Lora", serif;

  /* Palette de Couleurs */
  --background-color: #ffffff;
  --background-color-gray: #f8f9fa;
  --heading-color: #2c3e50;
  --default-color: #34495e;
  --contrast-color: #ffffff;

  /* Couleur d'accent principale */
  --accent-color: #8a07ab;
  --accent-color-rgb: 138, 7, 171;

  /* Couleurs pour les thèmes sombres (ex: Footer) */
  --dark-bg: #1a202c;
  --dark-text: #a0aec0;
  --dark-border: #2d3748;

  /* */
  --header-height: 90px;
}

/* 2.0 - Styles Généraux & Typographie de base
------------------------------------------------- */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--default-color);
  background-color: var(--background-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.25rem;
}

/* 3.0 - Header & Navigation
------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: height 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  height: calc(0.8 * var(--header-height));
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 60px;
  transition: max-height 0.4s ease;
}

.header.scrolled .logo img {
  max-height: 45px;
}

.navmenu ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.navmenu a:not(.login-button) {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading-color);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.5s ease;
}

.navmenu a:not(.login-button):hover,
.navmenu .active {
  color: var(--accent-color);
}

.navmenu .dropdown {
  position: relative;
}
.navmenu .dropdown ul {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 10px 10px;
  border: 1px solid #f0f0f0;
  padding: 10px 0;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.navmenu .dropdown:hover > ul {
  display: flex;
  opacity: 1;
  visibility: visible;
  align-items: flex-start;
  top: 100%;
}
.navmenu .dropdown:hover > ul.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.navmenu .dropdown ul > li {
  width: max-content;
  transition: transform 0.3s ease;
}
.navmenu .dropdown ul > li ~ li {
  margin-top: 5px;
}
.navmenu .dropdown ul > li:hover {
  transform: translateX(10px);
}
.navmenu .dropdown ul a {
  padding: 12px 20px;
  font-weight: 400;
  font-size: 0.8rem;
}
.navmenu .dropdown ul a:hover {
  color: var(--accent-color);
}

.login-button {
  font-family: var(--font-body);
  /* display: flex; */
  display: none;
  align-items: center;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 15px;
  white-space: nowrap;
}
.login-button:hover {
  background-color: var(--heading-color);
  transform: scale(1.05);
}

.mobile-nav-toggle {
  display: none;
}

/* 4.0 - Sections Principales
------------------------------------------------- */

/*--------------------------------------------------------------
# Section Héros
--------------------------------------------------------------*/

/* Conteneur principal */
.hero-main {
  position: relative;
  width: 100%;
  display: grid;
  /* On met l'image poster en arrière-plan. Elle est cachée par la vidéo au début. */
  background-image: url("/assets/img/poster-image.jpg");
  background-size: cover;
  background-position: center;
}

/* Tous les enfants directs (vidéo, overlay, texte) sont dans la même case de la grille */
.hero-main > * {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

/* La vidéo est visible par défaut, avec une transition sur son opacité */
.hero-main video {
  width: 100%;
  height: auto;
  z-index: 2; /* Juste au-dessus du fond, en dessous de l'overlay */
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

/* La superposition sombre est aussi prête pour une transition */
.hero-main::before {
  content: "";
  background-color: rgba(44, 62, 80, 0);
  z-index: 3;
  transition: background-color 1s ease-in-out;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

/* Le contenu textuel est invisible et prêt à apparaître */
.hero-container {
  position: relative;
  z-index: 4;
  color: var(--contrast-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(20px);
  /* L'animation du texte est retardée pour se lancer APRES le fondu de la vidéo */
  transition: opacity 1.2s ease 0.5s, transform 1.2s ease 0.5s;
}

/* --- CLASSES DE CONTRÔLE AJOUTÉES PAR JAVASCRIPT --- */

/* Quand la vidéo est terminée, on la rend transparente */
.hero-main.video-ended video {
  opacity: 0;
}

/* Et on rend le conteneur de texte visible */
.hero-main.text-visible .hero-container {
  opacity: 1;
  transform: translateY(0);
}

/* Les styles pour le logo, h1, p, bouton, etc. restent les mêmes */
.hero-logo {
  max-height: 80px;
  margin-bottom: 20px;
}
.hero-container h1 {
  color: var(--heading-color);
  font-size: 3.5rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin: 0 0 20px 0;
}
.hero-container h1 span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
}
.hero-container p {
  font-family: var(--font-body);
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
}

/* Bouton d'appel à l'action principal */
.hero-cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(var(--accent-color-rgb), 0.3);
  transition: all 0.3s ease;
}

.hero-cta-button:hover {
  background-color: var(--contrast-color);
  color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.4);
}

main {
  width: 90vw;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 120px;
}

main > h2 {
  text-align: center;
  margin-bottom: 40px;
}

main > section {
  margin-bottom: 120px;
}

/* 5.0 - Composants Spécifiques
------------------------------------------------- */
/* ... (tous les styles des composants de 5.1 à 5.5 restent identiques) ... */

/*--------------------------------------------------------------
# Section Actualités - Cadrage du Carrousel
--------------------------------------------------------------*/
.actu-section {
  overflow: hidden;
}

.swipper {
  display: flex;
  gap: 30px;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.swipper-slide {
  flex-shrink: 0;
  background-color: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-basis: calc(33.333% - 20px);
}
.swipper-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.swipper-slide > a {
  display: block;
  height: 250px;
  width: 100%;
}
.swipper-slide img,
.swipper-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swipper-slide .card-content-swipper {
  padding: 20px;
}
.swipper-slide h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.slider-dots {
  text-align: center;
  margin-top: 30px;
}
.slider-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.slider-dots .dot.active,
.slider-dots .dot:hover {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

.stats-bar {
  /* On passe à CSS Grid */
  display: grid;
  /* STYLE DESKTOP : 4 colonnes de taille égale par défaut */
  grid-template-columns: repeat(4, 1fr);
  gap: 30px; /* Espace entre chaque bloc de statistique */

  background: linear-gradient(90deg, #8a07ab, #87359c);
  color: #ffffff;
  padding: 40px; /* Padding uniforme */
  margin-bottom: 100px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  /* Animation d'apparition (inchangée) */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.stats-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stat-item {
  text-align: center;
  /* Plus besoin de 'flex: 1' ou de 'position: relative' */
  transition: transform 0.3s ease;
}
.stat-item:hover {
  transform: scale(1.05);
}
.stat-icon {
  font-size: 2.5em;
  color: #db8a39;
  margin-bottom: 15px;
}
.stat-number {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 700;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}



/* Section Propositions */

/*--------------------------------------------------------------
# Section Appel à l'Action (CTA) - Version avec Image
--------------------------------------------------------------*/

.cta-section {
  /* On passe sur un fond clair pour un look plus ouvert et moderne */
  background-color: var(--background-color-gray);
  padding: 80px 0;
  margin-bottom: 100px;
  border-radius: 15px;
  overflow: hidden; /* Important pour les coins arrondis et les animations */
}
.cta-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* On crée deux colonnes de taille égale */
  grid-template-columns: 1fr 1fr;
  align-items: center; /* On centre verticalement le contenu des deux colonnes */
  gap: 60px; /* Espace entre l'image et le texte */
}
/* Colonne de l'image */
.cta-image-column img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* Colonne du texte */
.cta-text-column {
  /* Le texte est maintenant aligné à gauche sur desktop, plus professionnel */
  text-align: left;
}
.cta-text-column h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 0; /* On retire la marge du dessus par défaut */
  margin-bottom: 20px;
}
.cta-text-column p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}
.cta-button-large {
  font-family: var(--font-body);
  font-weight: 600;
  background-color: #db8a39;
  color: var(--contrast-color);
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.cta-button-large:hover {
  background-color: #ed9032;
  transform: translateY(-5px) scale(1.05);
}

/*--------------------------------------------------------------
# Section "Nos Domaines d'Intervention" (Onglets)
--------------------------------------------------------------*/

.offerings-section {
  padding: 60px 0;
  background-color: var(--background-color-gray);
}

.offerings-tabs-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
s

/* 1. Barre de navigation des onglets */
.offerings-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Permet aux onglets de passer à la ligne si nécessaire */
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--default-color);
  background-color: #e9ecef;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-link i {
  font-size: 1.1rem;
}

.tab-link:hover {
  background-color: #dee2e6;
  color: var(--heading-color);
}

/* Style de l'onglet actif */
.tab-link.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
  border-color: var(--accent-color);
}

/* 2. Panneaux de contenu des onglets */
.offerings-tabs-content {
  position: relative;
}

.offering-tab-pane {
  display: none; /* Tous les panneaux sont cachés par défaut */
  background-color: var(--background-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Le panneau actif est visible avec une animation de fondu */
.offering-tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

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

/* 3. Mise en page interne de chaque panneau (Grille Image + Texte) */
.offering-pane-grid {
  display: grid;
  grid-template-columns: 40% 1fr; /* Image à 40%, texte le reste */
  align-items: center;
  gap: 50px;
}

.offering-image-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.offering-text-column h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.offering-text-column p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-weight: 500;
}

.services-list li i {
  color: var(--accent-color);
  margin-right: 12px;
  margin-top: 4px; /* Petit ajustement vertical */
}

.partners-carousel-section {
  background-color: var(--background-color-gray);
  padding: 60px 0;
  position: relative;
}
.partners-carousel-viewport {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  height: 100px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 15%,
    #000 85%,
    transparent
  );
}
.partners-carousel-track {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}
.partners-carousel-track img {
  height: 100px;
  margin: 0 40px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.4s ease;
}
.partners-carousel-viewport:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.partners-carousel-track img:hover {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Style de la Fenêtre Modale (Version Hauteur Contrôlée)
--------------------------------------------------------------*/

/* La superposition qui couvre toute la page */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* display: flex assure le centrage vertical et horizontal */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px; /* Ajoute un peu d'espace sur les bords de l'écran */

  /* Caché par défaut */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

/* La boîte de contenu de la modale */
.modal-content {
  position: relative;
  background-color: var(--background-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;

  /* CHANGEMENT CLÉ : On définit la hauteur et la gestion du contenu */
  height: 60vh;
  display: flex; /* On utilise flexbox pour la disposition interne */
  flex-direction: column; /* Les éléments s'empilent verticalement */

  transform: scale(0.95);
  transition: transform 0.4s ease;
}

/* --- L'état VISIBLE (contrôlé par JavaScript) --- */
.modal-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.modal-overlay.is-visible .modal-content {
  transform: scale(1);
}

/* Le bouton de fermeture (la croix '×') */
.modal-close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal-close-button:hover {
  color: var(--heading-color);
}

/* Style du header de la modale */
.modal-header {
  text-align: center;
  margin-bottom: 30px;
  flex-shrink: 0; /* Empêche le header de se rétrécir */
}
.modal-header h2 {
  margin-top: 0;
}

/* Corps de la modale (contenant le formulaire) */
.modal-body {
  /* CHANGEMENT CLÉ : Le corps prend l'espace restant et devient scrollable si besoin */
  flex-grow: 1;
  overflow-y: auto; /* Affiche une barre de défilement seulement si nécessaire */
  padding-right: 15px; /* Espace pour la barre de défilement */
  margin-right: -15px;
}

/* Le formulaire à l'intérieur de la modale */
.modal-body .form-group {
  margin-bottom: 15px;
}

/* PAGE Qui sommes nous? */

/*--------------------------------------------------------------
# Section Notre Équipe
--------------------------------------------------------------*/

.team-section .section-title {
  /* Assure que le titre de la section a un bon espacement en dessous */
  margin-bottom: 60px;
}

/* Grille principale pour les cartes */
.team-grid {
  display: grid;
  /* STYLE DESKTOP : 3 colonnes par défaut */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px; /* Espace entre les cartes */
}

/* Style de chaque carte de membre */
.team-card {
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Très important pour contenir le zoom de l'image */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Conteneur de l'image et de l'effet de survol */
.team-card-image {
  position: relative;
  overflow: hidden; /* Cache les parties de l'image qui dépassent lors du zoom */
}

.team-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* L'image zoome légèrement au survol de la carte */
.team-card:hover .team-card-image img {
  transform: scale(1.1);
}

/* Superposition sombre et réseaux sociaux (cachés par défaut) */
.team-card-image .social-links {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    44,
    62,
    80,
    0.7
  ); /* Utilise notre --heading-color avec transparence */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0; /* Caché par défaut */
  transition: opacity 0.4s ease;
}

/* La superposition et les liens apparaissent au survol */
.team-card:hover .team-card-image .social-links {
  opacity: 1;
}

.team-card-image .social-links a {
  color: var(--contrast-color);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.team-card-image .social-links a:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}

/* Contenu textuel de la carte */
.team-card-content {
  padding: 25px;
  text-align: center;
}

.team-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 5px;
}

.team-card-position {
  font-family: var(--font-body);
  color: var(--accent-color);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.team-card-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Section Notre ADN (Système d'onglets)
--------------------------------------------------------------*/

.dna-section .section-title {
  margin-bottom: 40px;
}

.tabs-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* 1. Navigation des onglets */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Permet aux onglets de passer à la ligne sur petits écrans */
}

.tab-link {
  padding: 12px 25px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading-color);
  background-color: var(--background-color-gray);
  border-radius: 50px; /* Forme de pilule */
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.tab-link:hover {
  background-color: #e9ecef;
  color: var(--accent-color);
}

/* Style de l'onglet actif */
.tab-link.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
}

/* 2. Contenu des onglets */
.tabs-content {
  position: relative;
}

.tab-pane {
  display: none; /* Tous les panneaux sont cachés par défaut */
  background-color: var(--background-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

/* Le panneau actif est visible avec une animation */
.tab-pane.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. Mise en page interne de chaque panneau */
.tab-pane-grid {
  display: grid;
  /* STYLE DESKTOP : 2 colonnes, image à 40% et texte à 60% */
  grid-template-columns: 40% 1fr;
  align-items: center;
  gap: 40px;
}

.tab-pane-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.tab-pane-text h3 {
  margin-top: 0;
  font-size: 2rem;
}

/* Style des listes à puces pour une meilleure lisibilité */
.tab-pane-text ul {
  list-style: none;
  padding: 0;
}

.tab-pane-text ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 15px;
}

.tab-pane-text ul li::before {
  content: "â"; /* Icône de validation */
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/*--------------------------------------------------------------
# Section Nos Flambeaux
--------------------------------------------------------------*/

.flambeaux-section .section-title {
  margin-bottom: 60px;
}

/* Grille principale des "flambeaux" */
.flambeaux-grid {
  display: grid;
  /* Grille responsive : le navigateur crée autant de colonnes qu'il peut,
     avec un minimum de 320px par colonne. */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Style de chaque carte */
.flambeau-card {
  display: block;
  position: relative; /* Contexte pour les éléments superposés */
  height: 450px;
  border-radius: 10px;
  overflow: hidden; /* Essentiel pour que les coins arrondis s'appliquent à l'image */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--contrast-color);
  text-decoration: none;
}

/* Image d'arrière-plan de la carte */
.flambeau-card .card-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* L'image couvre la carte sans se déformer */
  transition: transform 0.5s ease;
}

/* Superposition qui contient le texte */
.flambeau-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end; /* Aligne le contenu en bas de la carte */
  padding: 30px;

  /* Dégradé de fond (de transparent en haut à sombre en bas) */
  background: linear-gradient(
    to top,
    rgba(15, 22, 36, 0.85) 0%,
    rgba(15, 22, 36, 0.6) 40%,
    transparent 100%
  );

  /* État initial : invisible */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card-content {
  /* On prépare les animations du texte */
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.card-logo {
  max-height: 50px;
  max-width: 120px; /* Limite pour les logos larges */
  margin-bottom: 15px;
}

.card-content h3 {
  font-family: var(--font-heading);
  color: var(--contrast-color);
  font-size: 1.5rem;
  margin: 0 0 10px 0;
}

.card-content p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* --- LA MAGIE DU SURVOL (HOVER) --- */

.flambeau-card:hover .card-background-image {
  transform: scale(1.05); /* L'image zoome légèrement */
}

.flambeau-card:hover .card-overlay {
  opacity: 1; /* La superposition devient visible */
}

.flambeau-card:hover .card-content {
  transform: translateY(0); /* Le contenu remonte à sa place */
  opacity: 1; /* Le contenu devient visible */
  transition-delay: 0.2s; /* Léger délai pour que l'overlay apparaisse en premier */
}

/*--------------------------------------------------------------
# Page Services
--------------------------------------------------------------*/

/* Conteneur pour la liste des services */
.services-list-section .container {
  /* On utilise un display: grid pour empiler les blocs de service */
  display: grid;
  gap: 100px; /* Espace vertical généreux entre chaque service */
}

/* Bloc de présentation pour un service */
.service-feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes de taille égale */
  align-items: center;
  gap: 60px; /* Espace entre l'image et le texte */
}

/* Logique d'inversion pour les blocs avec la classe .reversed */
.service-feature-block.reversed .service-image-column {
  grid-column: 2; /* L'image passe dans la 2ème colonne */
  grid-row: 1; /* S'assure qu'elle reste sur la 1ère ligne */
}
.service-feature-block.reversed .service-text-column {
  grid-column: 1; /* Le texte passe dans la 1ère colonne */
}

/* Style de la colonne image */
.service-image-column img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Style de la colonne texte */
.service-text-column .service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  display: inline-block;
}

.service-text-column h2 {
  margin-top: 0;
  margin-bottom: 20px;
  /* La taille (2.5rem) est déjà définie par les styles généraux de h2 */
}

.service-text-column p {
  margin-bottom: 25px;
  color: var(--default-color);
}

/* Style de la liste à puces détaillée */
.service-text-column ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.service-text-column ul li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  font-weight: 500;
}

/* On utilise l'icône de Bootstrap Icons comme puce personnalisée */
.service-text-column ul li::before {
  content: "\F26A"; /* Code pour l'icône "check-circle" de Bootstrap Icons */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--accent-color);
  font-weight: normal;
}

/*--------------------------------------------------------------
# Page Formations
--------------------------------------------------------------*/

.formations-section {
  padding: 60px 0;
}

/* Grille pour les fiches de formation */
.formations-grid {
  display: grid;
  /* STYLE DESKTOP : 2 colonnes par défaut */
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Style de chaque fiche de formation */
.formation-card {
  display: flex;
  flex-direction: column; /* Pour que le bouton soit toujours en bas */
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.formation-card-image {
  overflow: hidden;
  line-height: 0;
}

.formation-card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.formation-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Permet au contenu de s'étirer et de pousser le bouton en bas */
}

.card-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.formation-card-content h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 15px;
}

.card-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1; /* Pousse les éléments suivants (meta, bouton) vers le bas */
}

/* Meta-données de la formation (public, durée...) */
.formation-meta {
  list-style: none;
  padding: 20px 0 0 0;
  margin: 0 0 30px 0;
  border-top: 1px solid #e9ecef;
}

.formation-meta li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--default-color);
  margin-bottom: 10px;
}

.formation-meta li i {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-right: 10px;
}

/* Section "Nos Atouts" (Value Proposition) */
.value-prop-section {
  padding: 60px 0;
}

.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-prop-item {
  text-align: center;
  padding: 20px;
}

.value-prop-item h4 {
  margin-top: 15px;
  font-size: 1.2rem;
}

/*--------------------------------------------------------------
# Page Contact (Version Finale avec Responsive)
--------------------------------------------------------------*/

.contact-section {
  position: relative;
  padding-bottom: 60px;
}

/* Conteneur de la carte géographique */
.map-container {
  height: 500px;
  width: 100%;
}
#map {
  height: 100%;
  width: 100%;
  z-index: 1;
}

/* Carte flottante contenant les détails et le formulaire */
.contact-details-card {
  position: relative;
  z-index: 5;
  margin-top: -120px; /* Fait "flotter" la carte sur la map */
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  padding: 40px;
  /* On ajoute une marge sur les côtés pour les petits écrans */
  margin-left: 20px;
  margin-right: 20px;
}

/* Grille interne à la carte flottante */
.contact-grid {
  display: grid;
  /* Desktop: La colonne du formulaire est 1.5x plus large */
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

/* --- Colonne de gauche : Informations de contact --- */
.contact-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.contact-info > p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.contact-info i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 15px;
  margin-top: 5px;
}
.contact-info li strong {
  display: block;
  font-size: 1.1rem;
  color: var(--heading-color);
}
.contact-info li p {
  margin: 0;
  font-size: 1rem;
}

/* --- Colonne de droite : Formulaire de contact --- */
.contact-form h3 {
  margin-top: 0;
  margin-bottom: 25px;
}
.form-group {
  margin-bottom: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
}
.contact-form button {
  border: none;
  cursor: pointer;
}

/*--------------------------------------------------------------
# Page Connexion
--------------------------------------------------------------*/

/* Conteneur principal qui crée les 2 volets et prend toute la hauteur */
.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* CHANGEMENT CLÉ : On définit la hauteur exacte de la page */
  height: 100vh; /* Fallback pour les anciens navigateurs */
  height: 100dvh; /* Unité dynamique moderne pour une hauteur parfaite */
  margin-top: -120px;
}

/* Volet de gauche (Accueil) */
.login-welcome-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--accent-color), #5e0474);
  color: var(--contrast-color);
}

.login-welcome-content {
  text-align: center;
}

.login-logo img {
  max-width: 150px;
  margin-bottom: 30px;
}

.login-welcome-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--contrast-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.login-welcome-content p {
  font-size: 1.1rem;
  max-width: 400px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Volet de droite (Formulaire) */
.login-form-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.login-form-content {
  width: 100%;
  max-width: 450px;
}

.login-form-header {
  text-align: center;
  margin-bottom: 30px;
}
.login-form-header h2 {
  margin-top: 0;
}
.login-form-header p {
  font-size: 1rem;
}

/* Style des champs de formulaire */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.2);
}

/* Wrapper pour le mot de passe et l'icône */
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 50px; /* Espace pour l'icône */
}
#togglePassword {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}

/* Options supplémentaires (souvenir, mot de passe oublié) */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 25px;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Séparateur "OU" */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #aaa;
  margin: 30px 0;
}
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}
.separator span {
  padding: 0 15px;
}

/* Boutons de connexion sociale */
.social-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-decoration: none;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.social-login-button i {
  font-size: 1.2rem;
  margin-right: 10px;
}
.social-login-button.google-login:hover {
  border-color: #db4437;
  color: #db4437;
}
.social-login-button.linkedin-login:hover {
  border-color: #0a66c2;
  color: #0a66c2;
}

/* Bouton principal */
.full-width {
  width: 100%;
  padding-top: 15px;
  padding-bottom: 15px;
}

/* 6.0 - Pied de Page (Footer)
------------------------------------------------- */
.footer {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  font-size: 0.95rem;
  padding: 80px 0;
}
.footer .footer-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}
.footer .footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--dark-border);
}
.footer .footer-column h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--contrast-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer .footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer .footer-column ul li {
  margin-bottom: 12px;
}
.footer .footer-column ul a {
  color: var(--dark-text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 14px;
}
.footer .footer-column ul a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}
.footer .footer-column ul a:hover {
  color: var(--contrast-color);
  padding-left: 18px;
}
.footer .social-links {
  display: flex;
  gap: 15px;
}
.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--contrast-color);
  transition: all 0.3s ease;
}
.footer .social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}
.footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer .credits a {
  color: var(--dark-text);
}

/* 7.0 - Utilitaires
------------------------------------------------- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  color: var(--contrast-color);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Page de Remerciement (Merci)
--------------------------------------------------------------*/

.thank-you-section {
  text-align: center;
  padding: 120px 20px;
  min-height: 70vh; /* Pour que la section prenne une bonne hauteur */
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-icon {
  font-size: 5rem; /* ~80px */
  color: #28a745; /* Une couleur verte pour le succès */
}

.thank-you-title {
  margin-top: 30px;
  font-size: 2.5rem; /* ~40px */
}

.thank-you-message {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 15px auto 40px;
}

.thank-you-button {
  margin-top: 20px;
}

/* ===============================================================
   8.0 - Responsive Design - VERSION UNIFIÉE
   =============================================================== */

/*
  Breakpoint 1 : GRANDS ÉCRANS (Tablettes larges -> Desktop)
  Se déclenche quand l'écran fait 1260px ou moins.
*/
@media (max-width: 1260px) {
  .navmenu > ul > li a:not(.login-button) {
    font-size: 0.9rem;
  }
  .navmenu .login-button {
    font-size: 0.9rem;
    padding: 8px 20px;
  }
}
@media (max-width: 1199px) {
  /* Le header passe en mode mobile */
  .navmenu .dropdown:hover > ul.scrolled {
    background: none;
    box-shadow: none;
    border: none;
  }

  .navmenu .dropdown ul > li:hover {
    transform: scale(1.1);
  }
  .navmenu {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: var(--heading-color);
  }

  /* Le carrousel d'actualités passe à 2 slides */
  .swipper-slide {
    flex-basis: calc(50% - 15px);
  }

  /* Styles spécifiques au menu mobile ACTIF (ne changent pas) */
  .mobile-nav-active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Noir avec 60% d'opacité */
    z-index: 998; /* Juste en dessous du menu */
  }
  .mobile-nav-active .navmenu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 90vw;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 999;
    text-align: center;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    transition: transform 0.4s ease;
  }
  .navmenu {
    transform: translateX(100%);
  }
  .mobile-nav-active .navmenu ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .mobile-nav-active .navmenu a {
    width: 100%;
    text-align: center;
  }
  .mobile-nav-active .navmenu a:not(.login-button) {
    font-size: 1rem;
  }
  .mobile-nav-active .login-button {
    /* display: inline-block; */
    display: none;
    width: auto;
    margin: 10px 0 0 0;
    padding: 10px 25px;
    font-size: 1rem;
  }
  .mobile-nav-active .navmenu .dropdown ul {
    position: static;
    display: flex;
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    border: none;
    text-align: center;
  }
  .mobile-nav-active .navmenu .dropdown:hover > ul {
    align-items: center;
  }
  .mobile-nav-active .navmenu .dropdown ul a {
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.9rem;
  }
  .mobile-nav-active .mobile-nav-toggle {
    position: fixed;
    transform: scale(1.3);
    top: 25px;
    right: 25px;
    z-index: 1001;
    color: var(--heading-color);
  }
}
/*
  Breakpoint 2 : ÉCRANS MOYENS (Tablettes verticales)
  Se déclenche quand l'écran fait 992px ou moins.
*/
@media (max-width: 992px) {
  /* --- Section Héros sur Tablette --- */
  .hero-container h1 {
    font-size: 3rem;
  }
  .hero-container h1 span {
    font-size: 1.3rem;
  }
  .hero-container p {
    font-size: 1.1rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  /* On empile l'image et le texte sur tablette */
  .offering-pane-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Sur tablette, on réduit un peu l'espacement et la taille du texte */
  .cta-container {
    gap: 40px;
  }
  .cta-text-column h2 {
    font-size: 2.4rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* On passe à 2 colonnes */
  }

  .tab-pane-grid {
    /* Sur tablette, les colonnes deviennent plus équilibrées */
    grid-template-columns: 1fr 1fr;
  }

  /* Sur tablette et mobile, on empile les colonnes */
  .service-feature-block {
    grid-template-columns: 1fr; /* Passage à une seule colonne */
    gap: 40px;
  }

  /* On annule la logique d'inversion car elle n'a plus de sens */
  .service-feature-block.reversed .service-image-column,
  .service-feature-block.reversed .service-text-column {
    grid-column: auto;
    grid-row: auto;
  }

  /* On centre le texte sur les petits écrans */
  .service-text-column {
    text-align: center;
  }

  .service-text-column ul {
    /* Pour que la liste reste alignée à gauche même si le reste est centré */
    text-align: left;
    display: inline-block;
    max-width: 100%;
  }

  /* On empile les atouts sur tablette */
  .value-prop-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-details-card {
    /* La carte se superpose un peu moins sur tablette */
    margin-top: -80px;
    padding: 30px;
  }
  /* LA CORRECTION CLÉ : On passe à une seule colonne ! */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px; /* On augmente l'espace vertical entre les deux blocs */
  }

  /* On empile les deux volets l'un sur l'autre */
  .login-container {
    grid-template-columns: 1fr;
  }
  .login-welcome-panel {
    /* Le panneau d'accueil devient plus petit sur tablette */
    padding: 60px 20px;
    min-height: 300px;
  }
  .login-form-panel {
    padding: 60px 20px;
  }

  /* Le footer passe à 2 colonnes */
  .footer .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  /* --- Responsive pour les Boutons dans les Cartes et Blocs --- */
  .service-card .card-button,
  .formation-card .card-button,
  .service-feature-block .card-button {
    display: block; /* Le bouton se comporte comme un bloc */
    width: 100%; /* Il prend toute la largeur de son parent */
    text-align: center; /* On s'assure que son texte est bien centré */
    margin-top: auto; /* Astuce pour le pousser en bas s'il est dans un flex container */
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/*
  Breakpoint 3 : PETITS ÉCRANS (Mobiles)
  Se déclenche quand l'écran fait 768px ou moins.
*/
@media (max-width: 768px) {
  /* --- Section Héros sur Mobile (Comportement statique) --- */
  .hero-main {
    /* On définit l'image "poster" comme fond statique */
    background-image: url("/assets/img/poster-image.jpg");
    background-size: cover;
    background-position: center;
    height: auto; /* La hauteur s'adapte au contenu textuel */
    min-height: 80vh; /* Hauteur minimale pour un bel effet */
    display: flex; /* On revient à flex pour bien positionner le texte */
  }

  /* On cache complètement la balise vidéo sur mobile */
  .hero-main video {
    display: none;
  }

  /* On s'assure que le texte est bien visible et positionné par défaut */
  .hero-main .hero-container {
    opacity: 1;
    transform: none;
  }

  /* On s'assure que la superposition est bien présente sur mobile */
  .hero-main::before {
    background-color: rgba(
      44,
      62,
      80,
      0.6
    ); /* On assombrit un peu plus pour le contraste sur image fixe */
  }

  /* On réduit la taille du logo */
  .hero-logo {
    max-height: 50px;
    margin-bottom: 15px;
  }

  /* On réduit drastiquement la taille des textes */
  .hero-container h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }
  .hero-container h1 span {
    font-size: 1.1rem;
    margin-top: 5px;
  }
  .hero-container p {
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 100%; /* Le paragraphe peut prendre plus de largeur */
  }
  .hero-cta-button {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  /* Carrousel d'actualités passe à 1 slide */
  .swipper-slide {
    flex-basis: 100%;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  .stat-number {
    font-size: 2.5rem;
  }

  /* On ajuste les espacements et les polices pour mobile */
  .offerings-tabs-nav {
    gap: 8px;
  }
  .tab-link {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .offering-tab-pane {
    padding: 30px 20px;
  }
  .offering-text-column h3 {
    font-size: 1.5rem;
  }
  .offering-text-column p {
    font-size: 1rem;
  }

  .cta-section {
    padding: 60px 0;
  }
  /* Sur mobile, on passe à une seule colonne */
  .cta-container {
    grid-template-columns: 1fr;
  }
  .cta-text-column {
    /* On re-centre le texte sur mobile pour un meilleur impact */
    text-align: center;
  }

  .team-grid {
    grid-template-columns: 1fr; /* On passe à 1 seule colonne */
  }

  .tab-pane {
    padding: 30px 20px;
  }
  /* Sur mobile, on empile l'image et le texte */
  .tab-pane-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tab-pane-text h3 {
    font-size: 1.5rem;
  }

  .flambeau-card {
    height: 400px;
  }

  .service-text-column h2 {
    font-size: 2rem; /* On réduit la taille des titres sur mobile */
  }

  /* On empile les fiches de formation sur mobile */
  .formations-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 400px; /* La carte est un peu moins haute sur mobile */
  }
  .contact-details-card {
    /* Sur mobile, on enlève les marges latérales pour que la carte prenne toute la largeur du .container */
    margin-left: 0;
    margin-right: 0;
    padding: 25px;
  }

  /* Footer passe à 1 colonne et se centre */
  .footer .footer-top {
    grid-template-columns: 1fr;
  }
  .footer .footer-column {
    text-align: center;
  }
  .footer .footer-column ul a::before {
    display: none;
  }
  .footer .social-links {
    justify-content: center;
  }
  .footer .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }

  /* Désactivation du délai des animations AOS pour une meilleure perf mobile */
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* --- Responsive Design pour la Modale --- */
@media (max-width: 768px) and (orientation: landscape) {
  /* Cas spécifique des téléphones en mode paysage où la hauteur est très faible */
  .modal-content {
    height: 90vh; /* On prend plus de hauteur disponible */
    padding: 25px;
  }
}
