@import url('css/responsive.css');

/* Design ultra moderne, 3D et glassmorphism */

body {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  margin: 0;
  line-height: 1.7;
  background: linear-gradient(135deg, #e9eafc 0%, #f4f4f4 100%);
  color: #232946;
  min-height: 100vh;
  overflow-x: hidden;
}

body.dark-mode {
  background: linear-gradient(135deg, #181c2f 0%, #232946 100%);
  color: #e9eafc;
}

header {
  background: linear-gradient(120deg, #232946 0%, #3a4be7 60%, #6c63ff 100%);
  color: #fff;
  padding: 2.5rem 1rem 2rem 1rem;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(35,41,70,0.18), 0 1.5px 0 #fff2 inset;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

body.dark-mode header {
  background: linear-gradient(120deg, #181c2f 60%, #232946 100%);
  color: #fff;
  box-shadow: 0 8px 32px 0 #000a, 0 1.5px 0 #232946 inset;
}

header::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  width: 400px; height: 120px;
  background: radial-gradient(circle, #b8c1ec55 0%, transparent 80%);
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

header h1 {
  margin: 0.2em 0 0.1em 0;
  font-size: 2.7rem;
  letter-spacing: 1px;
  font-weight: 800;
  text-shadow: 0 4px 24px #6c63ff55, 0 1px 0 #fff2;
  position: relative;
  z-index: 2;
}

body.dark-mode header h1 {
  text-shadow: 0 4px 24px #23294699, 0 1px 0 #fff2;
}

.subtitle {
  font-size: 1.2rem;
  color: #b8c1ec;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

body.dark-mode .subtitle {
  color: #b8c1ec;
}

nav {
  margin-top: 1.2rem;
  position: relative;
  z-index: 2;
}

nav a {
  color: #fff;
  background: rgba(0,102,204,0.85);
  padding: 0.5em 1.2em;
  border-radius: 24px;
  margin: 0 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px 0 #0066cc33, 0 1.5px 0 #fff2 inset;
  display: inline-block;
  border: none;
  position: relative;
}

body.dark-mode nav a {
  background: rgba(35,41,70,0.85);
  color: #e9eafc;
  box-shadow: 0 2px 12px 0 #23294655, 0 1.5px 0 #fff2 inset;
}

nav a:hover {
  background: #b8c1ec;
  color: #232946;
  box-shadow: 0 8px 32px #0066cc55, 0 1.5px 0 #fff2 inset;
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.1);
}

body.dark-mode nav a:hover {
  background: #232946;
  color: #f7c873;
  box-shadow: 0 8px 32px #23294699, 0 1.5px 0 #fff2 inset;
}

main {
  margin-top: 2.5rem;
}

section {
  padding: 2.2rem 2rem;
  max-width: 850px;
  margin: 2rem auto 0 auto;
  background: rgba(255,255,255,0.75);
  border-radius: 22px;
  box-shadow: 0 8px 40px 0 rgba(35,41,70,0.18), 0 1.5px 0 #fff2 inset;
  border: 1.5px solid #e0e3f0cc;
  backdrop-filter: blur(8px) saturate(1.2);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

body.dark-mode section {
  background: rgba(35,41,70,0.85);
  color: #e9eafc;
  border: 1.5px solid #232946cc;
  box-shadow: 0 8px 40px 0 #000a, 0 1.5px 0 #232946 inset;
}

section:hover {
  box-shadow: 0 16px 64px 0 #0066cc33, 0 1.5px 0 #fff2 inset;
  transform: translateY(-4px) scale(1.01);
}

section h2 {
  color: #0066cc;
  margin-top: 0;
  font-size: 1.7rem;
  font-weight: 800;
  text-shadow: 0 2px 12px #b8c1ec33;
}

body.dark-mode section h2 {
  color: #f7c873;
  text-shadow: 0 2px 12px #23294699;
}

section ul {
  padding-left: 1.2em;
}

section li {
  margin-bottom: 0.5em;
  font-size: 1.08em;
  text-shadow: 0 1px 0 #fff2;
}

section a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1.5px dashed #b8c1ec;
  transition: color 0.2s, border-bottom 0.2s, box-shadow 0.2s, text-shadow 0.2s;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

section a:hover {
  color: #232946;
  border-bottom: 1.5px solid #0066cc;
  text-shadow: 0 2px 12px #0066cc33;
  box-shadow: 0 2px 12px #b8c1ec55;
}

body.dark-mode section a {
  color: #f7c873;
  border-bottom: 1.5px dashed #b8c1ec;
}

body.dark-mode section a:hover {
  color: #fff;
  border-bottom: 1.5px solid #f7c873;
  text-shadow: 0 2px 12px #f7c87399;
  box-shadow: 0 2px 12px #23294699;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  font-size: 1.08em;
  margin-bottom: 0.3em;
  text-shadow: 0 1px 0 #fff2;
}

body.dark-mode .footer-content {
  text-shadow: 0 1px 0 #232946;
}

.footer-content a {
  color: #b8c1ec;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

body.dark-mode .footer-content a {
  color: #b8c1ec;
}

.footer-content a:hover {
  color: #f7c873;
  text-shadow: 0 2px 12px #f7c87399;
}

body.dark-mode .footer-content a:hover {
  color: #f7c873;
  text-shadow: 0 2px 12px #f7c87399;
}

.footer-note {
  color: #f7c873;
  font-size: 1em;
  margin-bottom: 0.2em;
  font-style: italic;
  text-shadow: 0 1px 0 #fff2;
}

body.dark-mode .footer-note {
  color: #f7c873;
  text-shadow: 0 1px 0 #232946;
}

footer {
  background: linear-gradient(120deg, #232946 0%, #3a4be7 60%, #6c63ff 100%);
  color: #fff;
  padding: 2rem 1rem 1.2rem 1rem;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 3rem;
  box-shadow: 0 -8px 32px 0 rgba(35,41,70,0.18), 0 1.5px 0 #fff2 inset;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

body.dark-mode footer {
  background: linear-gradient(120deg, #181c2f 60%, #232946 100%);
  color: #e9eafc;
  box-shadow: 0 -8px 32px 0 #000a, 0 1.5px 0 #232946 inset;
}

footer::before {
  content: '';
  position: absolute;
  bottom: -40px; left: 50%;
  width: 400px; height: 120px;
  background: radial-gradient(circle, #b8c1ec55 0%, transparent 80%);
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

#theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 8px #23294622;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 10;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

#theme-toggle:hover {
  background: #f7c873;
  color: #232946;
  box-shadow: 0 4px 16px #f7c87399;
  transform: scale(1.08) rotate(-8deg);
}

#theme-icon {
  pointer-events: none;
}

/* --- INTRO HACKER/SPACE --- */
#hacker-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #181c2f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(.77,0,.18,1);
}

#hacker-intro.hide {
  opacity: 0;
  pointer-events: none;
}

#stars-bg {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  background: transparent;
}

.hacker-data {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  max-width: 90vw;
  height: 260px;
  max-height: 60vh;
  transform: translate(-50%,-50%);
  background: rgba(35,41,70,0.85);
  border-radius: 12px;
  box-shadow: 0 0 32px #6c63ff55, 0 2px 16px #000a;
  overflow-y: auto;
  padding: 1.2em 1.1em 1.2em 1.1em;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1.04em;
  color: #b8c1ec;
  z-index: 2;
  border: 1.5px solid #3a4be7;
  opacity: 0.98;
}

.hacker-line {
  line-height: 1.3;
  margin-bottom: 0.18em;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px #6c63ff55;
  white-space: pre;
}

.hacker-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.9);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 32px #6c63ff, 0 2px 8px #000a, 0 0 64px #3a4be7;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.7s, transform 0.7s cubic-bezier(.77,0,.18,1);
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.hacker-title.show {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1.08);
}

.lang-switch {
  position: fixed;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 0.3em;
  z-index: 20001;
  background: rgba(35,41,70,0.92);
  border-radius: 18px;
  padding: 0.15em 0.5em;
  box-shadow: 0 2px 8px #23294644;
  pointer-events: auto;
}

.lang-btn {
  font-size: 1.35em;
  background: none;
  border: none;
  cursor: pointer;
  filter: grayscale(0.2) brightness(0.95);
  transition: filter 0.2s, transform 0.2s;
  border-radius: 50%;
  padding: 0.1em 0.2em;
  color: #fff;
}

.lang-btn:hover, .lang-btn:focus {
  filter: none;
  background: #6c63ff33;
  transform: scale(1.15);
}

/* Déplacé depuis <style> de legal.html pour centralisation */
.brand-logo.ultra-modern {
  font-family: 'Orbitron', 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 3.5px;
  background: linear-gradient(90deg, #00ffb2 0%, #6c63ff 40%, #f7c873 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 48px #6c63ffcc, 0 2px 12px #00ffb299, 0 0 64px #f7c87399, 0 0 2px #fff, 0 0 8px #fff8;
  margin: 1.5rem 0 1rem 2.2rem;
  display: inline-block;
  filter: drop-shadow(0 2px 24px #00ffb2cc);
  animation: brand-glow 2.2s cubic-bezier(.77,0,.18,1) infinite alternate;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: filter 0.3s, text-shadow 0.3s;
  border-radius: 8px;
}
@keyframes brand-glow {
  0% { filter: drop-shadow(0 2px 24px #00ffb2cc); }
  100% { filter: drop-shadow(0 4px 48px #6c63ffcc); }
}
.brand-logo.ultra-modern:hover {
  filter: drop-shadow(0 4px 64px #f7c873cc);
  text-shadow: 0 0 64px #f7c873cc, 0 2px 12px #00ffb299, 0 0 2px #fff, 0 0 8px #fff8;
}
@media (max-width: 900px) {
  .brand-logo.ultra-modern { font-size: 1.3rem; margin-left: 1rem; }
}

@media (max-width: 600px) {
  header h1 { font-size: 1.3rem; }
  .subtitle { font-size: 1rem; }
  nav a { font-size: 0.98em; padding: 0.4em 0.7em; }
  section {
    padding: 1.3rem 0.2rem 1.7rem 0.2rem;
    max-width: 100vw;
  }
  .info-cle-card, .chiffre-cle-card {
    padding: 1.2rem 0.4rem 2.2rem 0.4rem;
    font-size: 1.08em;
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100%;
    margin-bottom: 1.7rem;
  }
  .info-cle-card-title, .chiffre-cle-card-title {
    font-size: 1.35em; /* réduit, avant 2.1em ou 1.5em selon contextes */
    color: #3a4be7;
  }
  .info-cle-card-desc, .chiffre-cle-card-desc {
    font-size: 1em; /* réduit, avant 1.08em ou 1.05em */
  }
  .join-project-box {
    padding: 1.2rem 0.3rem 1.2rem 0.3rem;
    font-size: 1.08em;
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  .apropos-chiffres-wrapper {
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.2rem;
    max-width: 99vw;
  }
  .apropos-col, .chiffres-col {
    max-width: 99vw;
    min-width: 0;
    margin: 0 auto;
    align-items: center;
  }
  .infos-cles-cards {
    gap: 1rem;
  }
  .info-cle-card, .chiffre-cle-card {
    max-width: 98vw;
    min-width: 0;
    padding: 1rem 0.7rem;
    font-size: 0.98em;
  }
  .info-cle-card-title, .chiffre-cle-card-title {
    font-size: 1.3em;
    word-break: break-word;
  }
}
@media (max-width: 600px) {
  .apropos-chiffres-wrapper {
    padding-left: 0.2em;
    padding-right: 0.2em;
  }
  .info-cle-card, .chiffre-cle-card {
    padding: 0.7rem 0.3rem;
    font-size: 0.93em;
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .info-cle-card-title, .chiffre-cle-card-title {
    font-size: 1.1em;
  }
}

/* Section Chiffres Clés — design moderne, épuré, responsive, dark mode */
/* Suppression des anciens styles chiffres clés pour harmonisation */
.chiffres-cles-section {
  background: none;
  box-shadow: none;
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
  margin-top: 0;
}
.chiffres-cles-section h2 {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #232946;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 24px #b8c1ec33;
}
body.dark-mode .chiffres-cles-section h2 {
  color: #f7c873;
  text-shadow: 0 2px 24px #23294699;
}
/* Harmonisation : chiffres clés = mêmes cartes que Notre Plateforme */
.chiffres-cles-cards, .infos-cles-apropos-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0 2.2rem 0;
}
.chiffre-cle-card, .info-cle-card {
  background: #fff;
  color: #232946;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 #b8c1ec33, 0 1.5px 0 #fff2 inset;
  padding: 1.2rem 1.5rem;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.08rem;
  font-weight: 500;
  border: 1.5px solid #e0e3f0cc;
  transition: box-shadow 0.3s, transform 0.3s;
}
.chiffre-cle-card:hover, .info-cle-card:hover {
  box-shadow: 0 8px 32px 0 #6c63ff55, 0 1.5px 0 #fff2 inset;
  transform: translateY(-4px) scale(1.03);
}
.chiffre-cle-nombre, .info-cle-card-title {
  font-size: 2.1em;
  font-weight: 900;
  margin-bottom: 0.3em;
  color: #3a4be7;
}
.chiffre-cle-label, .info-cle-card-desc {
  color: #232946;
  opacity: 0.92;
  font-size: 1.08rem;
}
.chiffre-cle-details {
  display: block;
  font-size: 0.98rem;
  color: #6c63ff;
  font-weight: 400;
  margin-top: 0.2rem;
  opacity: 0.85;
}
body.dark-mode .chiffre-cle-card, body.dark-mode .info-cle-card {
  background: linear-gradient(120deg, #232946 0%, #181c2f 100%);
  color: #f7c873;
  border: 1.5px solid #232946cc;
  box-shadow: 0 8px 40px 0 #000a, 0 1.5px 0 #232946 inset;
}
body.dark-mode .chiffre-cle-nombre, body.dark-mode .info-cle-card-title {
  color: #f7c873;
}
body.dark-mode .chiffre-cle-label, body.dark-mode .info-cle-card-desc {
  color: #e9eafc;
}
body.dark-mode .chiffre-cle-details {
  color: #b8c1ec;
}
@media (max-width: 700px) {
  .chiffres-cles-cards, .infos-cles-apropos-cards {
    flex-direction: column;
    gap: 1rem;
  }
  .chiffre-cle-card, .info-cle-card {
    max-width: 98vw;
    min-width: 0;
    padding: 1rem 0.7rem;
    font-size: 1em;
  }
}

/* Harmonisation des cartes infos (Notre Plateforme & Chiffres clés) */
.infos-cles-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0 2.2rem 0;
}
.info-cle-card {
  background: #fff;
  color: #232946;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 #b8c1ec33, 0 1.5px 0 #fff2 inset;
  padding: 1.2rem 1.5rem;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.08rem;
  font-weight: 500;
  border: 1.5px solid #e0e3f0cc;
  transition: box-shadow 0.3s, transform 0.3s;
}
.info-cle-card:hover {
  box-shadow: 0 8px 32px 0 #6c63ff55, 0 1.5px 0 #fff2 inset;
  transform: translateY(-4px) scale(1.03);
}
.info-cle-card-title {
  font-size: 1.35em; /* réduit, avant 2.1em ou 1.5em selon contextes */
  font-weight: 900;
  margin-bottom: 0.3em;
  color: #3a4be7;
}
.info-cle-card-desc {
  font-size: 1em; /* réduit, avant 1.08em ou 1.05em */
  color: #232946;
  opacity: 0.92;
}
body.dark-mode .info-cle-card {
  background: linear-gradient(120deg, #232946 0%, #181c2f 100%);
  color: #f7c873;
  border: 1.5px solid #232946cc;
  box-shadow: 0 8px 40px 0 #000a, 0 1.5px 0 #232946 inset;
}
body.dark-mode .info-cle-card_title {
  color: #f7c873;
}
body.dark-mode .info-cle-card-desc {
  color: #e9eafc;
}
@media (max-width: 700px) {
  .infos-cles-cards {
    flex-direction: column;
    gap: 1rem;
  }
  .info-cle-card {
    max-width: 98vw;
    min-width: 0;
    padding: 1rem 0.7rem;
    font-size: 1em;
  }
}

/* Wrapper pour aligner Notre Plateforme et Chiffres Clés côte à côte et plus large */
.apropos-chiffres-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  margin: 2.5rem auto 0 auto; /* centré horizontalement */
  max-width: 1400px;
  width: 98vw;
}
.apropos-col, .chiffres-col {
  flex: 1 1 520px;
  min-width: 380px;
  max-width: 700px;
  margin: 0 auto; /* centrer chaque colonne dans le wrapper */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; /* centrer le contenu de chaque colonne */
}
@media (max-width: 1200px) {
  .apropos-chiffres-wrapper {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.2rem;
    max-width: 98vw;
  }
  .apropos-col, .chiffres-col {
    max-width: 98vw;
    min-width: 0;
    margin: 0 auto;
    align-items: center;
  }
}

/* Encadré CTA rejoindre le projet */
.join-project-cta {
  display: flex;
  justify-content: center;
  margin: 2.2rem 0 0.5rem 0;
}
/* --- Modernisation de la box "join-project-box" (CTA) --- */
.join-project-box {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(7px) saturate(1.2);
  -webkit-backdrop-filter: blur(7px) saturate(1.2);
  color: #232946;
  border-radius: 20px;
  box-shadow: 0 6px 32px 0 #b8c1ec33, 0 1.5px 0 #fff2 inset;
  border: 1.5px solid #e0e3f0cc;
  padding: 1.7rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.18rem;
  font-weight: 600;
  gap: 0.7rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}
.join-project-box:hover {
  box-shadow: 0 12px 48px 0 #6c63ff33, 0 1.5px 0 #fff2 inset;
  transform: translateY(-4px) scale(1.04);
  background: rgba(255,255,255,0.97);
}
.join-title {
  font-size: 1.25em;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 0.2em;
}
.join-link {
  display: inline-block;
  margin-top: 0.2em;
  padding: 0.5em 1.3em;
  background: #3a4be7;
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08em;
  box-shadow: 0 2px 12px 0 #6c63ff33;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.join-link:hover {
  background: #f7c873;
  color: #232946;
  box-shadow: 0 8px 32px #f7c87399;
  transform: scale(1.06);
}
body.dark-mode .join-project-box {
  background: linear-gradient(120deg, #232946 0%, #181c2f 100%);
  color: #f7c873;
  border: 1.5px solid #232946cc;
  box-shadow: 0 8px 40px 0 #000a, 0 1.5px 0 #232946 inset;
}
body.dark-mode .join-link {
  background: #f7c873;
  color: #232946;
  box-shadow: 0 2px 12px 0 #f7c87355;
}
body.dark-mode .join-link:hover {
  background: #3a4be7;
  color: #fff;
  box-shadow: 0 8px 32px #6c63ff99;
}
@media (max-width: 600px) {
  .join-project-box {
    padding: 1rem 0.5rem;
    font-size: 1em;
    max-width: 98vw;
  }
}

/* Style synthétique pour la synthèse contact */
.contact-synthese {
  text-align: center;
  font-size: 1.18rem;
  color: #3a4be7;
  font-weight: 600;
  margin: 1.5rem auto 2.2rem auto;
  max-width: 600px;
  background: linear-gradient(120deg, #f7c87322 0%, #b8c1ec22 100%);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 12px 0 #b8c1ec22;
}
body.dark-mode .contact-synthese {
  color: #f7c873;
  background: linear-gradient(120deg, #23294655 0%, #181c2f55 100%);
}

/* --- Responsive global pour mobile et tablette --- */
@media (max-width: 900px) {
  header {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .header-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  }
  .brand-logo.ultra-modern {
    font-size: 1.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  nav {
    margin-top: 0.7rem;
  }
  nav a {
    font-size: 1em;
    padding: 0.4em 0.7em;
    margin: 0 4px;
  }
  section {
    padding: 1.3rem 0.2rem 1.7rem 0.2rem;
    max-width: 100vw;
  }
  .info-cle-card, .chiffre-cle-card {
    padding: 1.2rem 0.4rem 2.2rem 0.4rem;
    font-size: 1.08em;
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100%;
    margin-bottom: 1.7rem;
  }
  .info-cle-card-title, .chiffre-cle-card-title {
    font-size: 1.35em; /* réduit, avant 2.1em ou 1.5em selon contextes */
    color: #3a4be7;
  }
  .info-cle-card-desc, .chiffre-cle-card-desc {
    font-size: 1em; /* réduit, avant 1.08em ou 1.05em */
  }
  .join-project-box {
    padding: 1.2rem 0.3rem 1.2rem 0.3rem;
    font-size: 1.08em;
    max-width: 100vw;
  }
  .footer-content {
    flex-direction: column;
    gap: 0.5em;
    font-size: 1em;
  }
  footer {
    padding: 1.2rem 0.5rem 0.7rem 0.5rem;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
}
@media (max-width: 600px) {
  header h1 {
    font-size: 1.1rem;
  }
  .brand-logo.ultra-modern {
    font-size: 1.1rem;
    margin-left: 0.2rem;
    margin-right: 0.2rem;
  }
  nav a {
    font-size: 0.95em;
    padding: 0.3em 0.5em;
  }
  section {
    padding: 1.3rem 0.2rem 1.7rem 0.2rem;
    max-width: 100vw;
  }
  .info-cle-card, .chiffre-cle-card {
    padding: 1.2rem 0.4rem 2.2rem 0.4rem;
    font-size: 1.08em;
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100%;
    margin-bottom: 1.7rem;
  }
  .info-cle-card-title, .chiffre-cle-card-title {
    font-size: 1.1em;
  }
  .info-cle-card-desc, .chiffre-cle-card-desc {
    font-size: 1.05em;
  }
  .join-project-box {
    padding: 1.2rem 0.3rem 1.2rem 0.3rem;
    font-size: 1.08em;
    max-width: 100vw;
  }
  .footer-content {
    font-size: 0.95em;
  }
}

/* Correction responsive pour images et logos */
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
.header-socials img, .header-socials svg {
  height: 38px !important;
  max-width: 90px !important;
}
@media (max-width: 600px) {
  .header-socials img, .header-socials svg {
    height: 28px !important;
    max-width: 60px !important;
  }
}
/* Responsive pour la sidebar (si non déjà fait dans sidebar.css) */
@media (max-width: 900px) {
  .apprentissage-sidebar {
    max-width: 98vw;
    min-width: 0;
    padding: 0.7rem 0.2rem;
    font-size: 1em;
  }
}
@media (max-width: 600px) {
  .apprentissage-sidebar {
    padding: 0.5rem 0.1rem;
    font-size: 0.95em;
  }
}
@media (max-width: 900px) {
  section, .info-cle-card, .chiffre-cle-card, .join-project-box {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: auto;
  }
  .apropos-chiffres-wrapper, .infos-cles-cards, .chiffres-cles-cards {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: auto;
  }
  .info-cle-card-title, .chiffre-cle-card-title, .info-cle-card-desc, .chiffre-cle-card-desc {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .apprentissage-sidebar {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: auto;
  }
}
@media (max-width: 600px) {
  section, .info-cle-card, .chiffre-cle-card, .join-project-box {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: auto;
  }
  .apropos-chiffres-wrapper, .infos-cles-cards, .chiffres-cles-cards {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: auto;
  }
  .info-cle-card-title, .chiffre-cle-card-title, .info-cle-card-desc, .chiffre-cle-card-desc {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }
  .apprentissage-sidebar {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: auto;
  }
}

/* Forçage de l'empilement vertical des grilles de cartes sur mobile/tablette */
@media (max-width: 900px) {
  .infos-cles-cards, .chiffres-cles-cards, .infos-cles-apropos-cards {
    flex-direction: column !important;
    gap: 1.2rem;
    align-items: stretch !important;
  }
}
@media (max-width: 600px) {
  .infos-cles-cards, .chiffres-cles-cards, .infos-cles-apropos-cards {
    flex-direction: column !important;
    gap: 1.2rem;
    align-items: stretch !important;
  }
}

/* Suppression du jaune sur les titres/descriptions des cartes en dark mode */
body.dark-mode .info-cle-card-title, body.dark-mode .chiffre-cle-card-title {
  color: #f7c873 !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

body.dark-mode .info-cle-card-desc, body.dark-mode .chiffre-cle-card-desc {
  color: #e9eafc !important;
}