/* --- Couleurs et Police --- */
:root {
  --primary-color: #003366; /* Bleu foncé */
  --secondary-color: #0056b3; /* Bleu moyen */
  --accent-color: #f8f9fa; /* Gris clair */
  --text-color: #333;
  --bg-color: #fff;
  --font-family: 'Montserrat', sans-serif;
}

/* --- Base --- */
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden; /* Empêche le défilement horizontal */
}

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

h1, h2, h3 {
  font-weight: 700;
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Mise en page (Conteneurs et Grilles) --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-full {
  width: 100%;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-secondary:hover {
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

/* --- Bouton taille réduite pour les cartes --- */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 15px;
    border-width: 1px; /* Bordure un peu plus fine pour l'élégance */
}

.btn-outline {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}
.btn-outline:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-text {
  color: var(--secondary-color);
  padding: 0;
  text-decoration: underline;
}

.btn-video {
  margin: 20px auto;
  display: block;
}

/* --- Section Hero --- */
.hero {
  height: 80vh; /* Hauteur de 80% de la fenêtre */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::before { /* Superposition pour la lisibilité du texte */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* --- Section Caractéristiques --- */
.features {
  padding: 60px 0;
  background-color: var(--accent-color);
}
.feature-box {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 5px solid transparent;
  transition: transform 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-5px);
}
.feature-box-active {
  border-top: 5px solid var(--secondary-color);
}
.feature-box i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}
.feature-box h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* --- Section Texte Central --- */
/* --- Section Texte Central --- */
.central-text {
    padding: 80px 0;
    color: var(--text-color); /* Utilise la couleur de texte par défaut, pas le bleu partout */
}

.central-text .intro-text {
    margin-bottom: 50px; /* Espace entre le titre et les colonnes */
}

.central-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.central-text .subtitle {
    font-size: 1.2rem;
    font-style: italic; /* Pour différencier le sous-titre */
    color: #666;
}

/* Grille pour les deux colonnes */
.text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
    gap: 60px; /* Bel espace entre les deux colonnes */
    text-align: left; /* Assure que le texte est bien aligné à gauche */
}

.text-columns p {
    line-height: 1.8; /* Aère le texte pour une lecture facile */
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* Le style des mots mis en valeur */
.text-highlight {
    color: var(--primary-color); /* Le bleu foncé */
    font-weight: 600; /* Gras */
}

/* --- Section Faire appel à evOrg --- */
.appel-evorg {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 50px;
}

/* Grille spécifique 2x2 */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* L'espace entre les blocs */
}

/* Style de base des cartes */
.info-card {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between permet de pousser le bouton toujours tout en bas, 
       même si un texte est plus court qu'un autre */
    justify-content: space-between; 
}

.info-card h3 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Le petit trait de séparation sous le titre */
.info-card .separator {
    width: 40px;
    height: 1px;
    margin: 0 auto 30px auto;
}

.info-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    flex-grow: 1; /* Le texte prend l'espace disponible */
}

/* --- Variantes de couleurs --- */
.card-light {
    background-color: #f4f5f7; /* Gris très clair */
    color: var(--primary-color);
}
.card-light .separator {
    background-color: #ccc;
}

.card-dark {
    background-color: #0b5081; /* Bleu type "evOrg" */
    color: #fff;
}
.card-dark .separator {
    background-color: rgba(255, 255, 255, 0.4);
}

/* --- Bouton style "Pilule" (Pill) --- */
.btn-pill {
    background-color: #fff;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px; /* Bords très arrondis */
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    align-self: center; /* Centre le bouton horizontalement */
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Légère ombre douce */
}

.btn-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Section Bandeau Contact --- */
.contact-banner {
    background-color: #0b5081; /* Le bleu evOrg */
    color: #fff;
    padding: 70px 20px;
    text-align: center;
}

.contact-banner h2 {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #fff; /* Force la couleur blanche pour ce titre */
}

.contact-banner p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    font-weight: 300;
}

/* On ajuste légèrement notre bouton pilule pour ce bandeau */
.contact-banner .btn-pill {
    display: inline-block; /* Nécessaire pour le centrer correctement ici */
    padding: 12px 40px; /* Un peu plus large pour faire respirer le mot CONTACT */
    color: #333; /* Texte du bouton un peu plus foncé comme sur ton image */
}

.uppercase-btn {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Section Missions, Vision, Valeurs --- */
.core-values {
    padding: 80px 0;
    background-color: var(--bg-color); /* Fond blanc */
}

.value-card {
    display: flex;
    flex-direction: column;
}

/* Style des images "panoramiques" */
.value-card img {
    width: 100%;
    height: 140px; /* Force une hauteur identique pour toutes les images */
    object-fit: cover; /* Coupe l'image proprement si elle ne rentre pas, sans l'écraser */
    margin-bottom: 25px;
}

/* Titres centrés */
.value-card h3 {
    font-size: 2rem;
    color: var(--primary-color); /* Bleu foncé */
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

/* Contenu aligné à gauche */
.value-content {
    text-align: left;
    color: #555; /* Gris foncé pour la lisibilité */
}

.value-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Style de la liste à puces (Nos valeurs) */
.value-content ul {
    padding-left: 20px; /* Décale les puces vers la droite */
    margin-top: 0;
}

.value-content li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #555;
}

/* --- Section Statistiques --- */
.stats-banner {
    background-color: #0b5081; /* Le même bleu evOrg */
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Gère l'alignement du petit "+ de" et du gros chiffre */
.stat-number-wrapper {
    display: flex;
    align-items: baseline; /* Aligne le texte sur la ligne du bas */
    justify-content: center;
    margin-bottom: 5px;
}

.stat-prefix {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6); /* Blanc transparent pour l'effet gris/bleu clair */
    margin-right: 8px;
    font-weight: 300;
}

.stat-suffix {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 2px;
    font-weight: 300;
}

.stat-number {
    font-size: 4rem;
    font-weight: 400;
    color: #fff;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

/* --- Section Profil Fondateur --- */
.founder-profile {
    padding: 80px 0;
    background-color: #f9f9f9; /* Un fond très légèrement gris */
}

.founder-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.founder-name {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.founder-desc {
    font-size: 1.1rem;
    color: #666; /* Gris description */
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 80%; /* Pour ne pas être trop large sur grand écran */
    margin-left: auto;
    margin-right: auto;
}

/* --- Nouveau style réutilisable : Bouton Pilule Principal (Bleu) --- */
.btn-pill-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 35px; /* Un peu plus large */
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    display: inline-block; /* Pour le centrer avec text-center */
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-pill-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* --- Section Modèle EQ-i 2.0 --- */
.eqi-model {
    padding: 40px 0; /* Un peu moins de padding que les autres pour garder l'effet compact */
    background-color: var(--bg-color); /* Fond blanc */
}

.eqi-title {
    font-size: 1.8rem;
    color: #333; /* Gris très foncé */
    font-weight: 500;
    margin-bottom: 10px;
}

.eqi-subtitle {
    font-size: 2.2rem;
    color: var(--primary-color); /* Le bleu foncé evOrg */
    font-weight: 600;
    margin-bottom: 40px;
}

/* --- Style de l'image EQ-i --- */
.eqi-link {
    display: inline-block; /* Le lien s'adapte à la taille de l'image, pas plus ! */
    margin: 0 auto; /* Pour être bien centré */
}

/* --- Style de l'image (légèrement modifié pour ne pas entrer en conflit) --- */
.eqi-image {
    max-width: 100%; /* S'assure qu'elle ne dépasse pas de l'écran */
    width: 550px; /* Taille réduite */
    height: auto;
    
    /* MODIFICATION : On enlève 'display: block' et 'margin: 0 auto' ici,
       car c'est le lien parent (.eqi-link) qui gère maintenant le centrage. */
    
    transition: opacity 0.3s ease; /* Animation douce */
    border-radius: 5px; /* Petit arrondi */
}

/* L'effet de survol (déjà correct, on le garde) */
.eqi-link:hover .eqi-image {
    opacity: 0.75;
}

/* --- Le Séparateur Personnalisé (Ligne + Cercle) --- */
.custom-separator {
    position: relative;
    width: 100%;
    max-width: 400px; /* Longueur de la ligne */
    height: 1px; /* Épaisseur de la ligne */
    background-color: #ddd; /* Couleur de la ligne (gris clair) */
    margin: 40px auto; /* Centre la ligne et met de l'espace au-dessus et en dessous */
}

/* Le petit cercle au milieu de la ligne */
.custom-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre parfaitement le cercle */
    width: 12px;
    height: 12px;
    border-radius: 50%; /* Rend le carré rond */
    background-color: #fff; /* Fond du cercle pour cacher la ligne derrière */
    border: 1px solid #ddd; /* Bordure du cercle de la même couleur que la ligne */
}

/* --- Section Retours Clients --- */
.retour-client {
    padding: 80px 0;
    background-color: #fff; /* Fond blanc */
}

.retour-client h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 600;
}

/* Grille multi-colonnes */
/* --- Section Retours Clients --- */
.retour-client {
    padding: 80px 0;
    background-color: #fff;
}

.retour-client h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 600;
}

/* Grille à 4 colonnes */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: left; /* Aligne le contenu à gauche dans chaque colonne */
}

.client-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Le logo de l'entreprise (si séparé) */
.client-logo {
    height: 100px; /* Hauteur fixe pour que tous les logos soient alignés */
    width: auto;
    max-width: 100%;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Ton image fusionnée (Photo + Nom + Poste) */
.client-info-img {
    width: 100%; /* S'adapte parfaitement à la largeur de la colonne */
    height: auto;
    margin-bottom: 20px;
}

.client-testimonial {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* La vidéo */
.client-video-wrapper {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Petite ombre légère */
    margin-top: 10px;
}

.client-video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Réactivité --- */
/* Sur tablette (écrans moyens) on passe à 2 colonnes */
@media (max-width: 992px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Sur mobile, on passe à 1 seule colonne et on centre le tout */
@media (max-width: 768px) {
    .client-grid {
        grid-template-columns: 1fr;
    }
    .client-card {
        align-items: center;
        text-align: center;
    }
    .client-info-img {
        max-width: 280px; /* Évite que l'image soit gigantesque sur mobile */
    }
}

.client-image {
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    display: block;
}

/* Conteneur pour le profil du client (portrait, nom, titre) */
.client-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.client-portrait {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Portrait rond */
    object-fit: cover;
}

.client-details {
    flex-grow: 1;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.client-title {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Texte du témoignage */
.client-testimonial {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Style du lecteur vidéo */
.client-video-wrapper {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden; /* Pour que les coins soient arrondis */
}

.client-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Réactivité mobile */
@media (max-width: 992px) {
    .client-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}

/* --- Section Carte (Corrigée) --- */
.map-section {
    padding: 60px 0 80px 0; /* Espace en haut (60px) et gros espace en bas (80px) */
    background-color: #fff;
    /* Le trait séparateur intégral se place TOUT EN BAS, après les 80px d'espace */
    border-bottom: 1px solid #ddd; 
}

.map-wrapper {
    max-width: 1000px; /* Limite la largeur de la carte (ne touche pas les bords) */
    margin: 0 auto; /* Centre la carte horizontalement */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Petite ombre légère comme sur ton image */
}

.map-wrapper iframe {
    display: block; /* Supprime le petit espace blanc fantôme sous les iframes */
    width: 100%;
    height: 500px;
}

/* --- Section Contact --- */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 500;
}

/* --- Formulaire (Colonne Gauche) --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espace entre tous les champs */
}

.form-row {
    display: flex;
    gap: 15px; /* Espace entre Nom et Email */
}

.form-row input {
    flex: 1; /* Les deux champs prennent la même largeur */
}

/* Style de base pour les champs de saisie */
.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #e0e0e0; /* Bordure très claire */
    border-radius: 2px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: #333;
    outline: none; /* Enlève la bordure bleue par défaut des navigateurs */
    transition: border-color 0.3s ease;
}

/* Légère coloration de la bordure quand on clique sur le champ */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
}

/* Pour que les placeholders (textes d'exemple) soient bien gris */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

/* Le groupe Captcha */
.captcha-group {
    margin-top: 10px;
    margin-bottom: 5px;
}

.captcha-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.captcha-group input {
    width: 100%;
}

/* Bouton Envoyer spécifique au formulaire */
.btn-submit {
    align-self: flex-start; /* Aligne le bouton à gauche et non sur toute la largeur */
    padding: 12px 40px;
    border: none;
    border-radius: 2px;
}

/* --- Informations (Colonne Droite) --- */
.contact-info-container {
    padding-left: 20px; /* Petit décalage pour aérer */
}

.info-block {
    margin-bottom: 25px;
    line-height: 1.5;
}

.info-block p {
    margin: 0;
    font-size: 1.05rem;
    color: #555;
}

.highlight-text {
    color: var(--primary-color) !important; /* Force la couleur bleue */
    font-weight: 600;
}

.highlight-text a {
    color: var(--primary-color);
}

.contact-desc {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-image {
    width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- Réactivité Mobile pour le Formulaire --- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column; /* Nom et Email passent l'un sous l'autre */
        gap: 15px;
    }
    .contact-info-container {
        padding-left: 0;
        margin-top: 40px; /* Espace entre le bouton Envoyer et le titre des infos */
    }
}
/* --- Effet de fondu au défilement (Scroll-Fade-In) --- */
.scroll-fade-in {

  /* transition: opacity 0.6s ease, transform 0.6s ease; */
}
.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Fenêtre contextuelle vidéo (Modal) --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
}

/* --- RÉACTIVITÉ (Media Queries) --- */

/* Tablettes (et petits écrans d'ordinateur) */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .flex-audit {
    flex-direction: column;
    text-align: center;
  }
  .audit-image {
    width: 100%;
  }
}

/* Mobiles (petits écrans) */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .hero {
    height: 70vh;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .grid-2, .grid-3, .grid-4, .grid-2x2 {
    grid-template-columns: 1fr;
  }
  .features, .blog, .offers, .news {
    padding: 50px 0;
  }
  .central-text h2 {
    font-size: 2rem;
  }
  .audit {
    padding: 50px 0;
  }
  .news-item {
    flex-direction: column;
    text-align: center;
  }
  .text-columns {
    grid-template-columns: 1fr; /* Passe à une seule colonne sur mobile */
    gap: 30px; /* Réduit l'espace entre les paragraphes */
  }
}

/* --- Carrousel Hero : Structure --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 80vh; /* Hauteur de 80% de la fenêtre */
    overflow: hidden; /* Cache les images qui dépassent sur les côtés */
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out; /* Vitesse de glissement de l'image */
}

.carousel-slide {
    min-width: 100%; /* Chaque image prend 100% de la largeur */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* --- Container Management within Slide --- */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Desktop layout: bottom right of the container */
    justify-content: flex-end; /* Vertically to bottom */
    align-items: flex-start; /* Horizontally to right */
    padding-bottom: 50px; /* Some padding from the very bottom edge */
}

/* Style for hero-content (Desktop layout) */
.hero-content {
    background-color: rgba(0, 0, 0, 0.6); /* Fond noir presque transparent */
    padding: 15px;
    border-radius: 10px; /* Bords légèrement arrondis */
    color: #fff;
    text-align: left; 
    max-width: 100%; 
    backdrop-filter: blur(5px);
}

/* --- Base styles for animations (Hidden by default) --- */
.animated-word, .animated-subtext {
    opacity: 0; 
    margin: 0;
}

.animated-word {
    font-size: 4rem;
    margin-bottom: 10px;
}
.animated-subtext {
    font-size: 1.2rem;
}
.carousel-slide.active .animated-word {
    /* animation: nom_animation durée timing delai forwards */
    animation: slideInLeft 0.5s ease-out 0.5s forwards; 
}

.carousel-slide.active .animated-subtext {
    /* Arrive un tout petit peu après le mot (0.7s) */
    animation: slideInLeft 0.5s ease-out 0.7s forwards; 
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px); /* Part de la gauche */
    }
    100% {
        opacity: 1; /* Devient visible */
        transform: translateX(0); /* Arrive à sa place */
    }
}

/* --- Boutons Flèches --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* --- Mobile Specific Overrides --- */
/* --- Mobile Specific Overrides --- */
@media (max-width: 768px) {
    .hero-carousel {
        /* On retire la hauteur fixe de 60vh qui forçait le zoom */
        height: auto; 
        /* On force le conteneur à adopter un format paysage (16:9) pour respecter l'image */
        aspect-ratio: 16 / 9; 
        /* Sécurité pour que ça ne devienne pas microscopique sur un très vieux téléphone */
        min-height: 250px; 
    }

    .carousel-slide {
        /* L'image tiendra maintenant parfaitement dans son nouveau cadre paysage */
        background-size: cover; 
        background-position: center;
    }

    .hero-content-wrapper {
        justify-content: center; 
        align-items: center; 
        padding-bottom: 0; 
    }

    .hero-content {
        text-align: center; 
        align-self: center; 
        max-width: 90%; 
        padding: 8px 15px; /* L'encadré noir devient un peu plus fin */
    }

    .animated-word {
        /* 🪄 L'ASTUCE MAGIQUE : vw = Viewport Width. 
           La taille de la police s'adapte à la largeur de l'écran. 
           Si l'écran rétrécit, le mot rétrécit proportionnellement avec l'image ! */
        font-size: 8vw; 
        margin-bottom: 0;
    }
}