/* ==========================================================================
   SPE7 — Feuille de style partagée
   Palette calée sur les couleurs exactes du logo SPE7 (bleu #2C6290 et
   bleu clair #98BBCE), vert émeraude conservé en repère "validé".
   ========================================================================== */

:root {
  /* Couleurs exactes extraites du logo SPE7 */
  --brand-700: #2C6290;   /* bleu foncé du bloc "SPE" */
  --brand-800: #204A6E;   /* variante assombrie pour hover/CTA */
  --brand-200: #98BBCE;   /* bleu clair du bloc "7" */
  --brand-100: #E4EDF2;   /* tinte très claire pour fonds/tags */

  --navy-900: #14283A;    /* déduit du bleu foncé, pour fonds sombres (hero/footer) */
  --navy-800: #1B3A54;
  --navy-700: #24506F;
  --emerald-500: #10B981; /* conservé uniquement comme repère "validé" sur les listes */
  --bg: #F6F8FA;
  --card: #FFFFFF;
  --text: #10202E;
  --muted: #55677A;
  --border: #DCE6EC;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 6px 28px rgba(20, 40, 58, 0.07);
  --shadow-lift: 0 18px 44px rgba(20, 40, 58, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .brand-font {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 252, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-900);
}

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--navy-700);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--brand-700); }
.nav-links a.current { color: var(--brand-700); font-weight: 600; }
.nav-cta {
  background: var(--navy-900);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brand-700) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 11px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 10px 26px rgba(32,74,110,0.28); }
.btn-primary:hover { background: var(--brand-800); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { border-color: var(--emerald-500); color: var(--emerald-500); }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--border); color: var(--navy-900); }
.btn-outline-dark:hover { border-color: var(--brand-700); color: var(--brand-700); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 15% -10%, #1c2750 0%, var(--navy-900) 55%, #070B18 100%);
  color: #fff;
  padding: 128px 0 104px;
  position: relative;
}
.hero .eyebrow {
  display: inline-block;
  color: #AFCBE0;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 1200px;
  margin-bottom: 22px;
}
.hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #C3D3DE;
  max-width: 1000px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 620px;
}
.hero-stats .num { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: #fff; }
.hero-stats .label { font-size: 0.85rem; color: #9FB6C6; margin-top: 4px; }

/* small page hero for interior pages */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 88px 0 72px;
}
.page-hero .eyebrow { color: #AFCBE0; font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; display:block; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; line-height: 1.3; max-width: 1000px; }
.page-hero p { color: #C3D3DE; max-width: 620px; margin-top: 16px; font-size: 1.08rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: #EFF1F9; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { color: var(--brand-700); font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; color: var(--navy-900); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }

/* Cartes pleine largeur (solutions, engagements) avec panneau visuel */
.stack { display: flex; flex-direction: column; gap: 22px; }
.row-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.row-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.row-card:nth-child(even) { grid-template-columns: 1fr 300px; }
.row-card:nth-child(even) .row-visual { order: 2; }
.row-card:nth-child(even) .row-content { order: 1; }

.row-visual {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--brand-700) 100%);
}
.row-visual .visual-icon { font-size: 3.4rem; }
.row-visual::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.5;
}
.row-visual img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

.row-content { padding: 34px 38px; }
.row-content .tag {
  display: inline-block; background: var(--brand-100); color: var(--brand-700);
  padding: 5px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; margin-bottom: 14px;
}
.row-content h3 { font-size: 1.35rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.row-content p.desc { color: var(--muted); margin-bottom: 18px; font-size: 0.98rem; max-width: 620px; }
.row-content ul { list-style: none; margin-bottom: 22px; columns: 2; column-gap: 24px; max-width: 720px; }
.row-content li { padding-left: 22px; position: relative; margin-bottom: 9px; color: #334155; font-size: 0.93rem; break-inside: avoid; }
.row-content li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald-500); font-weight: 700; }

/* Cartes standards (fallback, encore utilisées ponctuellement) */
.card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-top-color: var(--brand-700); }
.card .tag {
  display: inline-block;
  background: var(--brand-100);
  color: var(--brand-700);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.32rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.card p.desc { color: var(--muted); margin-bottom: 20px; font-size: 0.97rem; }
.card ul { list-style: none; margin-bottom: 22px; }
.card li { padding-left: 24px; position: relative; margin-bottom: 9px; color: #334155; font-size: 0.94rem; }
.card li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald-500); font-weight: 700; }
.card .btn { font-size: 0.92rem; padding: 12px 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  margin-top: 20px;
}
.cta-band h2 { font-size: 1.7rem; font-weight: 600; margin-bottom: 14px; }
.cta-band p { color: #C3D3DE; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Form ---------- */
.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy-700); margin-bottom: 6px; }
.label-rgpd { display: inline !important } 
.field { margin-bottom: 18px; }
input, select, textarea {
  /*width: 100%;*/
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #F8FAFC;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-700);
  box-shadow: 0 0 0 4px rgba(32,74,110,0.13);
}
 select, textarea {
  width: 100%;
}

.form-note { text-align: center; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.form-note a { color: var(--brand-700); text-decoration: none; font-weight: 600; }

.form-rgpd { text-align: justify; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.form-rgpd a { color: var(--brand-700); text-decoration: none; font-weight: 600; }

/* ---------- Contact info blocks ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.info-item { display: flex; gap: 14px; }
.info-item .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-100); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.info-item h4 { font-size: 1rem; color: var(--navy-900); margin-bottom: 3px; }
.info-item p, .info-item a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.info-item a:hover { color: var(--brand-700); }

/* ---------- Footer ---------- */
footer { background: var(--navy-900); color: #9FB6C6; padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { max-width: 320px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 0.92rem; color: #86A0B2; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h5 { color: #fff; font-size: 0.85rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #9FB6C6; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--emerald-500); }
.footer-bottom { padding-top: 24px; font-size: 0.82rem; color: #71889C; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #93ACBE; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .row-card, .row-card:nth-child(even) { grid-template-columns: 1fr; }
  .row-card .row-visual, .row-card:nth-child(even) .row-visual { order: -1; min-height: 140px; }
  .row-content ul { columns: 1; }
}
@media (max-width: 720px) {
  header nav { position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 28px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta { display: inline-block; margin-top: 10px; text-align: center; }
  .hero { padding: 100px 0 72px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .footer-grid { flex-direction: column; }
}

.row-visual img.ai-badge {
  position: absolute;
  bottom: 4%;
  right: 4%;
  width: 25%;
  max-width: 90px;
  min-width: 36px;
  height: auto;
  object-fit: contain;   /* empêche tout recadrage du logo */
  pointer-events: none;
  z-index: 2;
}

