:root {
  --bg-color-dark: #121212;
  --bg-color-light: #f4f2ef; /* Blanc cassé / Parchemin */
  --text-color-dark: #222222; /* Gris charbon, pas noir pur */
  --text-color-light: #e8e6e3;
  --accent-color: #e5aa44;
  --muted-color: #666666;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --font-serif: 'Lora', serif;
  --font-sans: 'Poppins', sans-serif;
  --bg-gradient: linear-gradient(135deg, #0d121c 0%, #0f172a 100%);
  --bg-gradient-light:linear-gradient(135deg, #e2e6ed 0%, #ffffff 100%);
  --bg-white: #ffffff;
  --white-alt:rgba(232, 230, 227, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.accent-color { color: var(--accent-color); }
/* --- THÈME CLAIR PAR DÉFAUT --- */
body {
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 120px 0; background: var(--bg-gradient-light); }
.bg-white { background-color: var(--bg-white); }
.bg-alt{background: var(--bg-color-light)}

/* --- Animations & Transitions --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- Image --- */
.img-fluid {
  width: 100%;
  height: auto;
}

/* --- Navigation --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 0;
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.main-nav.is-scrolled {
  /* MODIFICATION : Le fond devient semi-transparent pour que le flou soit visible */
  background-color: rgba(255, 255, 255, 0.85); 
  padding: 1rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  /* AJOUT : Effet de verre dépoli (blur) */
  -webkit-backdrop-filter: blur(8px); /* Pour la compatibilité avec Safari */
  backdrop-filter: blur(8px);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 768px) {
  /* AJOUT : Centrer le logo et créer un contexte de positionnement */
  .nav-content {
      justify-content: center; /* Centre l'élément principal (le logo) */
      position: relative; /* Nécessaire pour positionner le bouton hamburger */
  }

  .nav-links {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      height: 100vh;
      background-color: rgba(18, 18, 18, 0.95);
      backdrop-filter: blur(10px);
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      z-index: 1000;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .nav-links.is-active {
      transform: translateX(0);
  }

  .nav-menu {
      flex-direction: column;
      gap: 2.5rem;
      text-align: center;
  }

  .nav-menu a {
      font-size: 1.5rem;
  }

  .nav-toggle {
      display: block;
      /* AJOUT : Positionner le bouton sans affecter le centrage du logo */
      position: absolute;
      right: 0; /* Aligné à droite du .nav-content */
      top: 50%;
      transform: translateY(-50%);
  }

  .nav-toggle.is-active .hamburger {
      background-color: transparent;
  }
  .nav-toggle.is-active .hamburger::before {
      transform: rotate(45deg);
  }
  .nav-toggle.is-active .hamburger::after {
      transform: rotate(-45deg);
  }
  .main-nav.is-scrolled .nav-links.is-active .nav-menu a {
      color: var(--text-color-light);
  }
  
  /* Fait de même pour le bouton "Contact" pour qu'il garde son style initial */
  .main-nav.is-scrolled .nav-links.is-active .nav-menu a.cta {
      border-color: rgba(232, 230, 227, 0.3);
  }
}
.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--text-color-light);
  transition: color 0.4s ease;
  text-decoration: none;
  text-align: center;
}

.logo.logo-stacked {
  display: inline-flex; /* Utiliser flex pour un meilleur contrôle */
  flex-direction: column; /* Aligner les éléments verticalement */
  align-items: center; /* Aligner à gauche */
  justify-content: center;
  line-height: 1; /* Rapprocher les lignes */
  text-decoration: none;
  text-align: center;
}

.logo-groupe {
  font-family: var(--font-sans); /* Poppins, pour le contraste moderne */
  font-weight: 400; /* Poids normal ou léger */
  font-size: 0.6em; /* Environ 50% de la taille de 'DUBOIS' */
  letter-spacing: 0.25em; /* Espacement large pour un effet premium */
  /* AJOUT : Compense l'espacement du dernier caractère pour un centrage parfait */
  margin-right: -0.25em;
  color: var(--text-color-light); /* Couleur par défaut (dans le hero) */
  margin-bottom: 0.3em; /* Petit espace entre les deux mots */
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.logodot{
  font-size: 0.5em;
}

.logo-dubois {
  font-family: var(--font-serif); /* Lora, comme avant */
  font-weight: 600;
  font-size: 1.8rem; /* Taille de base du logo */
  color: var(--text-color-light); /* Couleur par défaut */
  transition: color 0.4s ease;
  margin-bottom: 2px;
}

/* --- Adaptation au scroll --- */
.main-nav.is-scrolled .logo-groupe,
.main-nav.is-scrolled .logo-dubois {
  color: var(--text-color-dark); /* Changement de couleur au scroll */
}

/* --- Ajustement pour l'ancien selecteur .logo --- */
/* On retire la taille de police pour qu'elle soit gérée par .logo-dubois */
.logo {
  font-size: inherit; 
}

.main-nav.is-scrolled .logo {
  color: var(--text-color-dark);
}

.nav-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-color-light);
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(232, 230, 227, 0.3);
  border-radius: 20px;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.nav-link:hover { background-color: var(--accent-color); color: var(--bg-color-dark); border-color: var(--accent-color); }

.nav-links ul {
margin: 0;
padding: 0;
list-style: none;
display: flex;
align-items: center;
gap: 2rem;
}

.nav-menu a {
color: var(--text-color-light);
text-decoration: none;
font-size: 0.9rem;
padding: 0.5rem 0;
position: relative;
transition: color 0.3s ease;
}

.main-nav.is-scrolled .nav-menu a {
  color: var(--text-color-dark);
}

.nav-menu a:not(.cta)::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 1px;
background-color: var(--accent-color);
transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-menu a:not(.cta):hover {
color: var(--text-color-light);
}
.main-nav.is-scrolled .nav-menu a:not(.cta):hover {
  color: var(--text-color-dark);
}

.nav-menu a:not(.cta):hover::after {
width: 100%;
}

.nav-menu a.cta {
padding: 0.6rem 1.2rem;
border: 1px solid rgba(232, 230, 227, 0.3);
border-radius: 20px;
transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.main-nav.is-scrolled .nav-menu a.cta {
  color: var(--text-color-dark);
  border-color: var(--text-color-dark);
}

.nav-menu a.cta:hover {
background-color: var(--accent-color);
color: var(--bg-color-dark);
border-color: var(--accent-color);
}
.nav-menu a.cta::after {
display: none;
}

.nav-toggle {
display: none;
background: transparent;
border: none;
cursor: pointer;
padding: 0.5rem;
z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
content: '';
display: block;
width: 28px;
height: 2px;
background-color: var(--text-color-light);
position: relative;
transition: transform 0.3s ease, background-color 0.4s ease;
}

.main-nav.is-scrolled .hamburger,
.main-nav.is-scrolled .hamburger::before,
.main-nav.is-scrolled .hamburger::after {
  background-color: var(--text-color-dark);
}

.hamburger::before {
transform: translateY(-8px);
}

.hamburger::after {
transform: translateY(8px);
}

@media (max-width: 768px) {
  .nav-links {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      height: 100vh;
      background-color: rgba(18, 18, 18, 0.95);
      backdrop-filter: blur(10px);
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      z-index: 1000;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .nav-links.is-active {
      transform: translateX(0);
  }

  .nav-menu {
      flex-direction: column;
      gap: 2.5rem;
      text-align: center;
  }

  .nav-menu a {
      font-size: 1.5rem;
  }

  .nav-toggle {
      display: block;
  }

  .nav-toggle.is-active .hamburger {
      background-color: transparent;
  }
  .nav-toggle.is-active .hamburger::before {
      transform: rotate(45deg);
  }
  .nav-toggle.is-active .hamburger::after {
      transform: rotate(-45deg);
  }
  .main-nav.is-scrolled .nav-links.is-active .nav-menu a {
      color: var(--text-color-light);
  }
  
  /* Fait de même pour le bouton "Contact" pour qu'il garde son style initial */
  .main-nav.is-scrolled .nav-links.is-active .nav-menu a.cta {
      border-color: rgba(232, 230, 227, 0.3);
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  background-image: url(../images/bg2.webp);
  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;
  color: var(--text-color-light);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(192, 167, 131, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 700px;
}
@media (min-width: 1024px){
  .hero-text h1:not(#mainslogan) {
    color: #ffffff;
    background-image: radial-gradient(circle, rgb(93 106 118) 0%, rgb(255 255 255) 69%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.hero-text h1 strong { color: var(--accent-color); font-weight: 600; }
.hero-text p {
  font-size: 1.1rem;
  color: rgba(232, 230, 227, 0.85);
  line-height: 1.8;
  max-width: 550px;
}
.pagehero{
  padding-top:150px;
  padding-bottom: 100px;
  min-height: auto;
}
@media (max-width: 360px) {
  .pagehero{
    padding-top:100px;
    padding-bottom: 50px;
    min-height: auto;
  }
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(232, 230, 227, 0.5);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  text-decoration: none;
  transition: color 0.3s ease;
}
.scroll-indicator:hover {
  color: var(--text-color-light);
}

/* --- Animation de texte "Typing" --- */
#typed-word.accent-color {
color: var(--accent-color);
font-weight: 600;
}
.cursor {
display: inline-block;
width: 3px;
height: 1em;
background-color: var(--accent-color);
margin-left: 8px;
animation: blink 1s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* --- Section Header (THÈME CLAIR) --- */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 1.5rem auto 0;
}
.section-header p {
  color: var(--muted-color);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* --- Ateliers (Services) --- */
#ateliers {
  background: var(--bg-gradient);
}

#ateliers .section-header h2 {
  color: var(--text-color-light);
}

#ateliers .section-header h2::after {
  background: var(--accent-color);
}
#ateliers .section-header p {
  color: var(--white-alt);
}
.ateliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.atelier-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.atelier-card:hover {
  background-color: var(--card-bg);
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.atelier-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.atelier-icon {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(192, 167, 131, 0.1);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.atelier-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-color-light);
  transition: color 0.4s ease;
}
.atelier-card:hover h3 {
  color: var(--text-color-dark);
}
.atelier-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--white-alt);
  transition: color 0.4s ease;
}
.atelier-card:hover p {
  color: var(--muted-color);
}

/* --- Expertises (Services Visuels) --- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.expertise-card {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.expertise-card.text-card {
  background-color: #f9f9f9;
  padding: 2.5rem;
  justify-content: center;
}
.expertise-card.text-card h3 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-color-dark);
  margin-bottom: 1rem;
}
.expertise-card.text-card p {
  color: var(--muted-color);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: auto;
  padding-bottom: 1.5rem;
}
.expertise-card.text-card .learn-more {
  font-family: var(--font-sans);
  text-decoration: none;
  color: var(--text-color-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.expertise-card.text-card .learn-more:hover {
  color: var(--accent-color);
}
.expertise-card.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.expertise-card.image-card:hover img {
  transform: scale(1.05);
}


/* --- Implications (Nos Entreprises) --- */
.implications-grid-alt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.implication-card-alt {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(8px);
}

.implication-card-alt:hover {
    background-color: var(--card-bg);
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-logo-container-alt {
    padding: 2.5rem;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-logo-container-alt img {
    max-height: 50px;
    width: auto;
    max-width: 180px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.implication-card-alt:hover .card-logo-container-alt img {
    opacity: 1;
    filter: none;
}

.card-content-alt {
    padding: 1.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-top-color 0.4s ease;
}

.implication-card-alt:hover .card-content-alt {
    border-top-color: var(--border-color);
}

.card-content-alt h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-color-light);
    font-family: var(--font-sans);
    transition: color 0.4s ease;
}

.implication-card-alt:hover .card-content-alt h3 {
    color: var(--text-color-dark);
}

/* --- Styles pour la page Implications / Projets --- */
#implications-details {
  background-color: var(--card-bg);
  overflow-x: hidden;
}

.projects-grid {
  display: grid;
  /* CORRECTION MAJEURE : Utiliser minmax(0, 1fr) au lieu de juste 1fr.
     Cela force la grille à ne pas dépasser la largeur de son parent,
     même si le contenu à l'intérieur essaye d'être plus large. */
  grid-template-columns: minmax(0, 1fr);
  width: 100%; /* Sécurité */
  gap: 2rem;
}

.implication-entry {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  /* MODIFICATION : Réduction du padding sur mobile (était probablement 2rem ou 2.5rem)
     Cela donne plus d'espace au texte pour ne pas pousser les bords. */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* S'assure que la carte ne dépasse jamais 100% de la colonne de grille */
  max-width: 100%;
  box-sizing: border-box; /* Normalement global, mais on s'assure qu'il est là */
}
.implication-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center; /* Centré sur mobile */
  width: 100%; /* S'assure que le contenu utilise l'espace */
}

.implication-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.implication-logo img {
  max-height: 45px;
  width: auto;
  /* S'assure que l'image ne force pas la largeur */
  max-width: 100%; 
}

.implication-content h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem; /* Légèrement réduit pour mobile */
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color-dark);
  /* Permet la césure des mots très longs si nécessaire */
  word-wrap: break-word; 
}

.implication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center; /* Centré par défaut pour mobile */
}

.implication-tags span {
  background-color: rgba(229, 170, 68, 0.1);
  color: #b98b37;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.implication-content p {
  color: var(--muted-color);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.implication-content .btn-outline {
  margin-top: auto;
  align-self: center; /* Centré par défaut pour mobile */
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-color-dark);
  background-color: transparent;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--text-color-dark);
  border-radius: 4px;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--bg-color-dark);
  border-color: var(--accent-color);
}

/* --- Styles pour les écrans plus larges (tablettes et ordinateurs) --- */
@media (min-width: 768px) {
  .projects-grid {
      /* Retour à 2 colonnes, toujours avec minmax(0, 1fr) pour la sécurité */
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 2.5rem;
  }

  .implication-entry {
      /* On remet le grand padding confortable sur desktop */
      padding: 2.5rem;
  }

  .implication-content {
      text-align: left;
  }

  .implication-logo,
  .implication-tags {
      justify-content: flex-start;
  }
  
  .implication-content h3 {
      font-size: 2.2rem; /* Taille originale desktop */
  }

  .implication-content .btn-outline {
      align-self: flex-start;
  }
}

@media (max-width: 360px) {
  /* On réduit les marges du conteneur global sur cette page si besoin */
  #implications-details .container {
      padding: 0 1rem;
  }
  /* On réduit encore le padding interne de la carte */
  .implication-entry {
      padding: 1rem;
  }
}

.card-tags-alt {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-tags-alt span {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(232, 230, 227, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.4s ease, background-color 0.4s ease;
}

.implication-card-alt:hover .card-tags-alt span {
    background-color: rgba(229, 170, 68, 0.1);
    color: #b98b37;
}

.card-content-alt p {
    color: var(--white-alt);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: auto;
    transition: color 0.4s ease;
}

.implication-card-alt:hover .card-content-alt p {
    color: var(--muted-color);
}

/* --- Fondateur Profiles --- */
.fondateurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.fondateur-profile {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fondateur-profile:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.fondateur-avatar {
    width: 180px; /* Taille de l'avatar */
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fondateur-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fondateur-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fondateur-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color-dark);
}

.fondateur-info h4 {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fondateur-info p {
    color: var(--muted-color);
    font-size: 1rem;
    line-height: 1.8;
}

.fondateur-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.fondateur-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--bg-color-dark); /* Fond sombre pour les icônes */
    color: var(--accent-color); /* Couleur de l'icône */
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.fondateur-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color-dark);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: var(--text-color-light); /* Cette couleur n'est plus utilisée directement mais on la garde */
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--bg-color-dark); /* De même ici */
}

/* C'est ici que la magie opère ! */
.social-icon {
  display: block;
  width: 20px;
  height: 20px;
  background-color: #ffffff; /* La couleur de base de votre icône */
  transition: background-color 0.3s ease;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-linkedin {
  -webkit-mask-image: url(/assets/images/linkedin.svg);
  mask-image: url(/assets/images/linkedin.svg);
}

.icon-facebook {
  -webkit-mask-image: url(/assets/images/facebook.svg);
  mask-image: url(/assets/images/facebook.svg);
}


.icon-web {
  -webkit-mask-image: url(/assets/images/globe.svg);
  mask-image: url(/assets/images/globe.svg);
}

.icon-instagram {
  -webkit-mask-image: url(/assets/images/instagram.svg);
  mask-image: url(/assets/images/instagram.svg);
}

/* Changement de couleur au survol */
.social-links a:hover .social-icon {
  background-color: var(--bg-color-dark); /* Devient noir au survol */
}
 
.philosophie-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--muted-color);
}

.intro-separator {
  width: 100px;
  height: 2px;
  background-color: var(--border-color);
  margin: 4rem auto;
}

/* --- CTA --- */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #0d121c 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(173, 216, 230, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .section-header h2 {
    color: var(--text-color-light);
}
.cta-section .section-header p {
    color: var(--white-alt);
}
.cta-section .section-header h2::after {
    background: var(--accent-color);
}

.cta-button {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--bg-color-dark);
    background-color: var(--accent-color);
    padding: 1.2rem 3rem;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 170, 68, 0.2);
    filter: brightness(1.1);
}

/* --- NOUVEAU FOOTER --- */
.main-footer {
    background-color: #0d121c; /* Dark blue from the gradient */
    color: var(--white-alt);
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text-color-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--text-color-light);
    text-decoration: none;
    display: block;
    margin-bottom: 1.5rem;
}

.footer-column.about p {
    line-height: 1.8;
    max-width: 350px;
    margin-bottom: 2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--white-alt);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-column.contact p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    color: var(--text-color-light);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color-dark);
}

.icon-facebook::before { content: ''; font-family: "Font Awesome 5 Brands"; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #8A91A0;
}

.footer-bottom-links a {
    color: #8A91A0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}


.map-container {
  width: 100%;
  /* Hauteur par défaut pour les mobiles. 400px est une bonne base. */
  height: 400px; 
  /* Couleur de fond sombre pour éviter un flash blanc pendant le chargement */
  background-color: #0d121c; 
}

#map-canvas {
  width: 100%;
  height: 100%;
}

/* --- Media Query pour les écrans plus larges (tablettes et ordinateurs) --- */
@media (min-width: 768px) {
  .map-container {
      /* On remet la hauteur originale pour les écrans plus grands */
      height: 500px; 
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
      grid-template-columns: 1fr;
      text-align: center;
  }
  .hero-text {
      order: 2;
  }
  .animation-container {
      width: 300px;
      height: 300px;
  }
}
@media (max-width: 992px) {
  .references-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid {
      grid-template-columns: 1fr 1fr;
  }
  .footer-column.about {
      grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero-text h1 { text-align: center; }
  .hero-text p { text-align: center; max-width: 100%; }
  .footer-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
  .footer-bottom {
      flex-direction: column;
      gap: 1rem;
  }
  .footer-links { margin-top: 1rem; }
  .footer-links a { margin: 0 0.75rem; }
  .expertise-grid { grid-template-columns: 1fr; }

  /* Ajustement pour les profils sur mobile */
  .fondateurs-grid {
      grid-template-columns: 1fr;
  }
  .fondateur-profile {
      padding: 2rem;
  }
  .fondateur-avatar {
      width: 140px;
      height: 140px;
  }
}

/* --- ... (tout votre CSS existant) ... --- */


/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.contact-card {
  background-color: var(--card-bg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px var(--shadow-color);
  border-top: 4px solid var(--accent-color);
  text-align: center;
}
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color-dark);
}
.contact-card p, .contact-card a {
  color: var(--muted-color);
  font-size: 1rem;
  line-height: 1.8;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-card a:hover {
  color: var(--accent-color);
}

/* Styles pour la nouvelle section de la carte */
#map-section {
  padding-top: 0; /* On enlève le padding du haut pour que ça suive la section des contacts */
}
.introcard{
  margin-top: 50px;
}

/* Le conteneur de la carte prendra toute la largeur après le conteneur du titre */
.map-container {
  width: 100%;
  height: 500px; /* Hauteur par défaut pour les grands écrans */
  background-color: #0d121c; 
}

#map-canvas {
width: 100%;
height: 100%;
}

@media (max-width: 768px) {
.map-container {
    height: 400px; /* Hauteur réduite pour les mobiles */
}
}

/* --- Breadcrumbs (Fil d'Ariane) --- */
.breadcrumb-container {
  padding: 1.5rem 0;
  background-color: var(--card-bg); /* Utilise un fond blanc pour se détacher du header */
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap; /* Pour une meilleure gestion sur mobile */
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

/* Style du séparateur '>' */
.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin: 0 0.75rem;
  color: var(--muted-color);
  font-size: 1.2rem;
}

.breadcrumb-list a {
  color: var(--muted-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
  color: var(--accent-color);
}

/* Style pour la page actuelle (non cliquable) */
.breadcrumb-list li[aria-current="page"] {
  color: var(--text-color-dark);
  font-weight: 500;
}