@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===========================
   VARIABLES — valeurs extraites du Figma
   =========================== */
:root {
  /* Couleurs */
  --bg-hero:        #061629;
  --bg-header:      #07172a;
  --bg-dark:        #061629;
  --bg-footer:      #0a0a0a;
  --bg-light:       #f0f1f2;
  --bg-white:       #ffffff;

  --widget-1:       #08182b;
  --widget-2:       #0a1a2d;
  --widget-3:       #09192c;
  --form-field:     #192638;

  --text-white:     #ffffff;
  --text-dark:      #1d1d1f;
  --text-gray:      #7d7d7d;
  --text-muted:     #a8a8a8;
  --text-placeholder: #5e6875;
  --text-feat-desc: #65738c;
  --text-copyright: #65738c;

  --accent-blue:    #0073ea;
  --accent-green:   #25cd25;

  /* Typo */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--bg-white);
  color: var(--text-dark);
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ===========================
   HEADER — 1440x64, bg #07172a
   Logo left (x=23) + tagline left (x=145)
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--bg-header);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.logo-svg {
  flex-shrink: 0;
  width: 95px;
  height: 23px;
}

.header-tagline {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-white);
  white-space: nowrap;
}

/* ===========================
   HERO — 1440x769 dark bg
   Title: 78px centered
   Badge: pill at top
   CTAs: pill (r=36px) side by side
   =========================== */
#hero {
  margin-top: 64px;
  background: var(--bg-hero);
  padding: 38px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative circle — simplified from Figma vector */
#hero::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 523px;
  height: 523px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  border-radius: 36px;
  padding: 0 16px;
  height: 26px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 56px;
}

.hero-badge img {
  flex-shrink: 0;
}

.hero-title {
  font-size: 78px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-white);
  max-width: 1048px;
  margin: 0 auto 36px;
}

.hero-description {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-white);
  max-width: 850px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 19px;
  flex-wrap: wrap;
}

/* CTA1: white bg + dark text, pill */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 277px;
  height: 54px;
  background: var(--bg-white);
  color: #131313;
  font-size: 16px;
  font-weight: 500;
  border-radius: 36px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-hero-primary:hover { opacity: 0.9; }

/* CTA2: outlined, white text */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 277px;
  height: 54px;
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.14); }

/* ===========================
   CONSTAT — 1440x480, bg #f0f1f2
   Label + title centered
   3 stat groups (no cards) side by side
   =========================== */
#constat {
  background: var(--bg-light);
  padding: 28px 0 52px;
  text-align: center;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.label-blue  { color: var(--accent-blue); }
.label-gray  { color: var(--text-muted); }

.constat-title {
  font-size: 58px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 8px auto 0;
  max-width: 664px;
}

.constat-stats {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  margin-top: 48px;
  padding: 0 120px;
}

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

.stat-group.wide { width: 380px; }
.stat-group.narrow { width: 332px; }

.stat-label {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.stat-value {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  display: block;
  margin-top: 8px;
}

.stat-desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-gray);
  display: block;
  margin-top: 12px;
}

/* ECHEANCE: blue label + value */
.stat-group.highlight .stat-label,
.stat-group.highlight .stat-value { color: var(--accent-blue); }

/* HORSCADRES / EXPOSITION: gray label, dark value */
.stat-group.default .stat-label { color: var(--text-gray); }
.stat-group.default .stat-value { color: var(--text-dark); }

/* ===========================
   RISQUE — 1440x524, bg #ffffff (blanc!)
   All text centered
   =========================== */
#risque {
  background: var(--bg-white);
  padding: 59px 0 0;
  text-align: center;
}

.risque-title {
  font-size: 58px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding: 0 0;
  margin-top: 43px;
}

.risque-desc {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-gray);
  max-width: 757px;
  margin: 48px auto 82px;
  line-height: 1.55;
}

/* ===========================
   PLATEFORME — 1440x1092
   Haut 344px: blanc (continuation de RISQUE)
   Bas 748px: bg #061629
   =========================== */
#plateforme {
  position: relative;
  text-align: center;
}

.plateforme-top {
  background: var(--bg-white);
  height: 344px;
  position: relative;
  overflow: hidden;
}

/* Decorative circle at top of PLATEFORME (overlapping RISQUE above) */
.plateforme-top::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 523px;
  height: 523px;
  border-radius: 50%;
  border: 1px solid rgba(6,22,41,0.07);
  pointer-events: none;
}

.plateforme-dark {
  background: var(--bg-dark);
  padding: 0 0 80px;
}

.plateforme-label-wrap {
  padding-top: 78px;
}

.plateforme-title {
  font-size: 58px;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 695px;
  margin: 0 auto 64px;
}

.widgets-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 120px;
}

.widget {
  width: 332px;
  height: 307px;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.widget-1 { background: var(--widget-1); }
.widget-2 { background: var(--widget-2); }
.widget-3 { background: var(--widget-3); }

/* Decorative vector inside widget */
.widget::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.widget-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 59px;
  flex-shrink: 0;
}

.widget-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.widget-title {
  font-size: 38px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.widget-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===========================
   SOUVERAINETE — 1440x609, bg #ffffff (blanc!)
   Tout centré
   3 colonnes features en bas
   =========================== */
#souverainete {
  background: var(--bg-white);
  text-align: center;
  padding: 66px 0 80px;
}

.souverainete-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0;
}

.souverainete-title {
  font-size: 58px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 8px auto 0;
  max-width: 900px;
}

.souverainete-desc {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-gray);
  max-width: 860px;
  margin: 36px auto 60px;
  line-height: 1.6;
}

.features-row {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.feature-col {
  width: 262px;
  text-align: center;
}

.feature-icon-wrap {
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrap img {
  object-fit: contain;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-feat-desc);
  line-height: 1.55;
}

/* ===========================
   ECHANGEONS — 1440x769, bg #061629
   Titre + sous-titre centrés full width
   Formulaire centré 534px dessous
   =========================== */
#echangeons {
  background: var(--bg-hero);
  text-align: center;
  padding: 69px 0 80px;
}

.echangeons-title {
  font-size: 58px;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.echangeons-sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 24px auto 48px;
  max-width: 700px;
  line-height: 1.55;
}

.contact-form {
  width: 534px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.form-input,
.form-textarea {
  width: 100%;
  height: 50px;
  background: var(--form-field);
  border: none;
  border-radius: 10px;
  padding: 0 21px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-white);
  outline: none;
  transition: background 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-placeholder);
}

.form-input:focus,
.form-textarea:focus {
  background: #1e2f45;
}

.form-textarea {
  height: 114px;
  resize: vertical;
  padding: 14px 21px;
}

.form-submit {
  width: 100%;
  height: 50px;
  background: var(--bg-white);
  color: var(--text-placeholder);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  margin-top: 26px;
  transition: opacity 0.2s;
}

.form-submit:hover { opacity: 0.88; }

.form-success {
  display: none;
  font-size: 14px;
  color: var(--accent-green);
  text-align: center;
  padding: 12px;
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  background: rgba(37,205,37,0.08);
}

/* ===========================
   FOOTER — 1440x92, bg #0a0a0a
   Logo left + tagline center-left + copyright right
   =========================== */
.site-footer {
  background: var(--bg-footer);
  height: 92px;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

.footer-logo {
  flex-shrink: 0;
  width: 94px;
  height: 23px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-white);
  margin-left: 26px;
  flex: 1;
}

.footer-copy {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-copyright);
  flex-shrink: 0;
}

/* ===========================
   TYPOGRAPHIE FLUIDE — clamp(min, vw, max)
   S'adapte progressivement sans saut brutal
   =========================== */
.hero-title {
  font-size: clamp(36px, 5.5vw, 78px);
}
.constat-title,
.risque-title,
.plateforme-title,
.souverainete-title,
.echangeons-title {
  font-size: clamp(28px, 4vw, 58px);
}
.stat-value {
  font-size: clamp(36px, 4.5vw, 64px);
}
.stat-label {
  font-size: clamp(18px, 2vw, 29px);
}
.widget-title {
  font-size: clamp(22px, 2.65vw, 38px);
}
.hero-description {
  font-size: clamp(16px, 1.55vw, 22px);
}

/* ===========================
   PADDING HORIZONTAL FLUIDE
   Sections sans container explicite
   =========================== */
#hero,
#constat,
#risque,
#souverainete,
#echangeons {
  padding-left:  clamp(20px, 8vw, 196px);
  padding-right: clamp(20px, 8vw, 196px);
}

.constat-stats,
.widgets-row {
  padding-left:  0;
  padding-right: 0;
}

/* ===========================
   FORMULAIRE — largeur fluide
   =========================== */
.contact-form {
  width: min(534px, 100%);
}

/* ===========================
   RESPONSIVE — 1100px (laptop étroit / tablette landscape)
   =========================== */
@media (max-width: 1100px) {

  /* Widgets : wrap au lieu de colonne brutale */
  .widgets-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .widget {
    width: clamp(280px, 45%, 332px);
    height: auto;
    min-height: 260px;
  }

  /* Stats : wrap si besoin */
  .constat-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
  }
  .stat-group.wide,
  .stat-group.narrow {
    width: auto;
    min-width: 220px;
  }

  /* Features : 3 colonnes jusqu'à 900px */
  .features-row {
    gap: 24px;
  }
  .feature-col {
    width: 200px;
  }

  /* Plateforme top réduit */
  .plateforme-top { height: 220px; }
}

/* ===========================
   RESPONSIVE — 768px (tablette portrait)
   =========================== */
@media (max-width: 768px) {

  /* Header */
  .header-tagline { display: none; }

  /* Hero */
  #hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .hero-badge { font-size: 12px; }
  .hero-subtitle { font-size: 14px; }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 340px;
  }

  /* Widgets : 1 par ligne */
  .widget {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: auto;
  }
  .widget-icon { margin-bottom: 24px; }

  /* Stats : 1 par ligne */
  .constat-stats {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .stat-group.wide,
  .stat-group.narrow { width: 100%; max-width: 380px; }

  /* RISQUE */
  .risque-desc { font-size: 18px; margin-bottom: 56px; }

  /* Features : colonnes + étroites */
  .features-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }
  .feature-col { width: clamp(140px, 40%, 220px); }

  /* Plateforme top */
  .plateforme-top { height: 120px; }
  .plateforme-label-wrap { padding-top: 40px; }
  .plateforme-title { margin-bottom: 40px; }

  /* Souveraineté */
  .souverainete-desc { font-size: 17px; }

  /* Footer */
  .site-footer { height: auto; padding: 20px 24px; }
  .footer-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .footer-tagline {
    flex: 1 1 100%;
    margin-left: 0;
    order: -1;
    font-size: 13px;
  }
  .footer-logo { order: -2; }
  .footer-copy { width: 100%; text-align: left; }
}

/* ===========================
   RESPONSIVE — 480px (mobile)
   =========================== */
@media (max-width: 480px) {

  /* Hero */
  .hero-badge { font-size: 11px; padding: 0 12px; }
  .hero-description { font-size: 15px; }
  .hero-subtitle { font-size: 13px; }

  /* Constat */
  #constat { padding-top: 24px; padding-bottom: 40px; }
  .stat-group.wide,
  .stat-group.narrow { max-width: 100%; }

  /* Risque */
  .risque-desc { font-size: 16px; margin-bottom: 40px; }

  /* Plateforme */
  .plateforme-top { height: 60px; }
  .plateforme-label-wrap { padding-top: 28px; }
  .widgets-row { gap: 12px; }

  /* Features : pleine largeur */
  .feature-col { width: 100%; max-width: 100%; }
  .features-row { gap: 28px; }

  /* Échangeons */
  #echangeons { padding-top: 48px; padding-bottom: 48px; }
  .echangeons-sub { font-size: 16px; }

  /* Footer */
  .footer-tagline { font-size: 12px; }
}
