/* =========================================================
   🎨 ACTAGEN - STYLE 2025 (Version modernisée & optimisée)
   ========================================================= */

/* === PALETTE DE COULEURS === */
:root {
  --primary: #0C4D6E;
  --accent: #1BB3D4;
  --dark: #0A2430;
  --light: #F4FBFF;
  --muted: #7FA3B3;
  --text-dark: #1B2B33;
  --bg-gradient: linear-gradient(180deg, #E8F6FF 0%, #CDEDF7 100%);
}

/* === RESET GLOBAL === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Open Sans", Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* =========================================================
   🧭 HEADER & MENU
   ========================================================= */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo img {
  height: 54px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.main-nav a:hover {
  color: var(--accent);
}
.main-nav a:hover::after {
  width: 100%;
}

/* === MENU MOBILE === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 28px;
  cursor: pointer;
  z-index: 200;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 25px rgba(12,77,110,0.25);
    transition: right 0.4s ease;
  }
  .main-nav.open { right: 0; }
  .main-nav a {
    font-size: 1.2em;
    color: var(--dark);
    margin: 15px 0;
  }
}

/* =========================================================
   🧠 SECTIONS GÉNÉRALES
   ========================================================= */
section {
  padding: 80px 20px;
  background: #fff;
  transition: all 0.5s ease;
}
section:nth-of-type(even) {
  background: #F7FCFF;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
h1, h2, h3 {
  color: var(--primary);
  font-weight: 700;
}
h2 {
  font-size: 1.9em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 10px auto 0;
  border-radius: 3px;
}
h3 { margin-bottom: 10px; }

/* =========================================================
   💎 HERO
   ========================================================= */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  background: url("/assets/img/AI.jpeg") center/cover no-repeat;
  padding: 140px 20px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,77,110,0.7), rgba(10,36,48,0.9));
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.6em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 span { color: var(--accent); }
.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2em;
  color: #E8F6FF;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 35px;
}

/* =========================================================
   ✨ BOUTONS
   ========================================================= */
a.cta, button {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(27,179,212,0.3);
  transition: all 0.3s ease;
}
a.cta:hover, button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(27,179,212,0.4);
}
a.cta-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}
a.cta-outline:hover { background: #fff; color: var(--primary); }

/* =========================================================
   🔹 GRILLES (VALEURS, FONCTIONNALITÉS, SEGMENTS)
   ========================================================= */
.value-grid, .feature-grid, .pillar-grid, .audience-segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.value-item, .feature, .pillar, .segment {
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(27,179,212,0.15);
  transition: all 0.3s ease;
  text-align: center;
}
.value-item:hover, .feature:hover, .pillar:hover, .segment:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(27,179,212,0.25);
}
.icon-img, .feature-img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(27,179,212,0.3);
}

/* =========================================================
   📖 STORY & IMAGE SECTIONS
   ========================================================= */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.story-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* =========================================================
   📩 FORMULAIRES
   ========================================================= */
.contact-form {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.05);
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccdfea;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 1em;
  background: #fafdff;
  color: var(--dark);
}
.contact-form button {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,179,212,0.3);
}

/* =========================================================
   🚀 CTA FINAL
   ========================================================= */
.cta-final {
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  position: relative;
  padding: 100px 20px;
}
.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}
.cta-final > * { position: relative; z-index: 1; }

/* =========================================================
   🌈 ANIMATIONS & APPARITIONS
   ========================================================= */
section, .feature, .value-item, .pillar, .segment {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
section.visible, .feature.visible, .value-item.visible, .pillar.visible, .segment.visible {
  opacity: 1;
  transform: translateY(0);
}
img {
  opacity: 1 !important;
  transform: none !important;
}

/* =========================================================
   🦶 FOOTER
   ========================================================= */
.site-footer {
  background: #fff;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { text-decoration: underline; }

/* =========================================================
   📱 RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero { padding: 100px 20px; }
  .value-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 80px 15px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .value-grid, .feature-grid { grid-template-columns: 1fr; }
}
/* =========================================================
   ⚙️ PAGE FONCTIONNALITÉS – DESIGN IMMERSIF EN GRILLE
   ========================================================= */

.page-header {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(180deg, rgba(12,77,110,0.08), rgba(27,179,212,0.05));
}
.page-header h1 {
  font-size: 2.4em;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.3;
}
.page-header p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.1em;
  color: var(--dark);
  opacity: 0.9;
}

/* === Grille de fonctionnalités === */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}
.feature-block {
  background: #fff;
  border-radius: 16px;
  padding: 35px 28px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  border: 1px solid rgba(27,179,212,0.12);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.feature-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(27,179,212,0.25);
}
.feature-block .icon {
  font-size: 2.5em;
  color: var(--accent);
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}
.feature-block:hover .icon {
  transform: scale(1.2);
}
.feature-block h2 {
  font-size: 1.35em;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature-block p {
  color: var(--text-dark);
  font-size: 1em;
  line-height: 1.7;
  opacity: 0.95;
}

/* === Animation d’apparition === */
.feature-block {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.feature-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Section "Souveraineté" immersive === */
.sovereignty-highlight {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(180deg, #e9f9ff 0%, #d9f2f8 100%);
}
.sovereignty-highlight h2 {
  color: var(--primary);
  font-size: 2em;
  margin-bottom: 15px;
}
.sovereignty-highlight p {
  max-width: 850px;
  margin: 10px auto;
  color: var(--dark);
  font-size: 1.1em;
  line-height: 1.7;
}

/* === CTA finale harmonisée === */
.cta-final {
  background: linear-gradient(180deg, #0C4D6E 0%, #1BB3D4 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.cta-final h2 {
  font-size: 2em;
  margin-bottom: 12px;
}
.cta-final p {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}
.cta-final .cta {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border-radius: 10px;
  padding: 14px 28px;
  transition: all 0.3s ease;
}
.cta-final .cta:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

/* === Responsive === */
@media (max-width: 900px) {
  .page-header h1 {
    font-size: 2em;
  }
  .feature-block {
    padding: 30px 22px;
  }
}
@media (max-width: 600px) {
  .features-list {
    grid-template-columns: 1fr;
    padding: 50px 10px;
  }
  .feature-block {
    padding: 28px 20px;
  }
}
.features-list .feature-block {
  opacity: 1 !important;
  transform: none !important;
}
/* === SECTION : Pourquoi nous contacter === */
.contact-reasons {
  background: #f0f9ff;
  text-align: center;
  padding: 80px 20px 60px;
}

.contact-reasons h2 {
  color: var(--primary);
  margin-bottom: 40px;
  font-size: 1.9em;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.reason-card {
  background: #fff;
  border: 1px solid #d9e8f2;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(27, 179, 212, 0.25);
}

.reason-icon {
  font-size: 2.2em;
  margin-bottom: 12px;
  color: var(--accent);
}

.reason-card h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.reason-card p {
  color: var(--text-dark);
  font-size: 0.95em;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 700px) {
  .reasons-grid {
    grid-template-columns: 1fr;
  }
}
/* === FORMULAIRE DE CONTACT PROFESSIONNEL === */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccdfea;
  background: #fafdff;
  color: var(--dark);
  font-size: 0.95em;
  transition: all 0.2s ease-in-out;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,179,212,0.15);
}

.contact-form button.cta {
  align-self: flex-start;
  margin-top: 10px;
}

/* Responsive pour petits écrans */
@media (max-width: 800px) {
  .contact-grid {
    flex-direction: column;
  }
}
.flash {
  background: var(--accent);
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(27,179,212,0.2);
}

/* Amélioration visuelle du formulaire */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccdfea;
  background: #fafdff;
  color: var(--dark);
  transition: all 0.2s ease-in-out;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,179,212,0.15);
}
/* === HERO PAGE VISION === */
.vision-hero {
  background: url("/assets/img/Vision.png") center/cover no-repeat;
  color: #fff;
  position: relative;
}

.vision-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 36, 48, 0.6); /* overlay foncé */
  z-index: 0;
}

.vision-hero > * {
  position: relative;
  z-index: 1;
}

/* Ajustement des titres */
.vision-hero h1, 
.vision-hero h2, 
.vision-hero p {
  color: #fff; /* Texte en blanc */
}
/* === FORMULAIRE COMPACT POUR CAPTURE === */
.compact-form {
  display: grid;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.compact-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #ccdfea;
  background: #fafdff;
  font-size: 1em;
  color: var(--dark);
  transition: all 0.2s ease;
}

.compact-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,179,212,0.15);
  outline: none;
}

.compact-form button.cta {
  margin-top: 8px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.compact-form button.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,179,212,0.3);
}
/* === TEXTE CENTRÉ POUR LA PAGE À PROPOS === */
.about-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--dark);
}
.title-with-seal {
  position: relative;
  text-align: center;
  font-size: 2em;
  color: var(--primary);
  font-weight: 700;
}

.title-with-seal .seal-icon {
  display: block;
  margin: 0 auto 15px;
  width: 100px;
  opacity: 0.2;
  transform: rotate(-8deg);
}

@media (max-width: 600px) {
  .title-with-seal .seal-icon {
    width: 70px;
    opacity: 0.25;
  }
}
