/* ============================================================
   FORMATEUR51 — Feuille de style principale v2.0
   Cours d'informatique & internet — Reims et environs
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ---- Variables globales ---- */
:root {
  /* Palette bleue */
  --blue-950: #060F1E;
  --blue-900: #0D2137;
  --blue-800: #0D47A1;
  --blue-700: #1565C0;
  --blue-600: #1976D2;
  --blue-500: #2196F3;
  --blue-400: #42A5F5;
  --blue-300: #90CAF9;
  --blue-200: #BBDEFB;
  --blue-100: #E3F2FD;
  --blue-50:  #F0F7FF;

  /* Couleur d'accentuation verte (CTA) */
  --green-700: #2E7D32;
  --green-600: #388E3C;
  --green-500: #43A047;
  --green-400: #66BB6A;

  /* Textes */
  --text-dark:    #0D2137;
  --text-primary: #1A2F45;
  --text-secondary: #4A6580;
  --text-muted:   #7A95AA;
  --text-white:   #FFFFFF;

  /* Fonds */
  --bg-white: #FFFFFF;
  --bg-light: #F5F9FF;
  --bg-dark:  #0A1929;

  /* Bordures */
  --border:       #D6E4F7;
  --border-light: #EBF2FB;

  /* Typographie */
  --font-display: 'Raleway', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espacements */
  --section-y:    96px;
  --container:    1200px;
  --gap:          24px;

  /* Ombres */
  --shadow-xs: 0 1px 4px rgba(13,33,55,.06);
  --shadow-sm: 0 2px 8px rgba(13,33,55,.09);
  --shadow-md: 0 6px 20px rgba(13,33,55,.12);
  --shadow-lg: 0 16px 48px rgba(13,33,55,.16);
  --shadow-xl: 0 32px 80px rgba(13,33,55,.22);

  /* Rayons */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 40px;
  --r-full: 999px;

  /* Transitions */
  --tr:      .22s ease;
  --tr-slow: .45s ease;

  /* Navbar */
  --nav-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- Utilitaires ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.visually-hidden { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ============================================================
   NAVBAR — Sticky glassmorphism
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--tr);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-wrapper {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 12px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-700);
}
.brand-tagline {
  font-size: .72rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--blue-700);
  background: var(--blue-50);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-200);
  padding: 6px 14px;
  border-radius: var(--r-full);
  transition: background var(--tr), border-color var(--tr);
}
.nav-phone:hover { background: var(--blue-50); border-color: var(--blue-400); }
.nav-phone i { font-size: .8rem; }

.btn-espace {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  padding: 8px 16px;
  border-radius: var(--r-full);
  transition: transform var(--tr), box-shadow var(--tr), opacity var(--tr);
  box-shadow: 0 3px 12px rgba(33,150,243,.3);
}
.btn-espace:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(33,150,243,.4); }
.btn-espace i { font-size: .85rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-700);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 24px;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(33,150,243,.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(33,150,243,.38);
}
.btn-secondary {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-600);
}
.btn-secondary:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--bg-white);
  color: var(--blue-700);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--text-white);
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-green {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(67,160,71,.28);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67,160,71,.38); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: .8rem; }

/* ============================================================
   PAGE HEADER (HERO INTERNE — pages intérieures)
   ============================================================ */
.page-hero {
  margin-top: var(--nav-h);
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-500) 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at 10% 50%, rgba(33,150,243,.18) 0%, transparent 70%),
    radial-gradient(circle 400px at 90% 20%, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text-white);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
}
.page-hero.centered { text-align: center; }
.page-hero.centered p { margin: 0 auto; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: var(--section-y) 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-label::before { display: none; }
.section-bg-light { background: var(--bg-light); }

/* ============================================================
   CARTES
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-50);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue-600);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.card-text {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.card-list {
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.card-list li {
  font-size: .875rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
  font-size: .8rem;
}
.card-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* Carte "niveau" spécifique */
.level-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  border: 2px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-300); }
.level-card-header {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  position: relative;
  overflow: hidden;
}
.level-card-header::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.badge-debutant   { background: rgba(102,187,106,.25); color: #A5D6A7; }
.badge-inter      { background: rgba(33,150,243,.25);  color: #90CAF9; }
.badge-avance     { background: rgba(255,167,38,.25);  color: #FFD54F; }
.level-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 6px;
}
.level-card-header p { font-size: .875rem; color: rgba(255,255,255,.75); }
.level-card-body { padding: 24px 28px 28px; }
.level-card-body ul { display: flex; flex-direction: column; gap: 10px; }
.level-card-body li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-secondary);
}
.level-card-body li i { color: var(--blue-500); margin-top: 2px; font-size: .8rem; flex-shrink: 0; }
.level-card-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
}

/* ============================================================
   BANDEAUX D'INFORMATION (STRIPS)
   ============================================================ */
.stats-strip {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--blue-400); }
.stat-label { font-size: .875rem; color: rgba(255,255,255,.65); }
.stat-icon { font-size: 1.4rem; color: var(--blue-400); margin-bottom: 10px; }

/* CTA Strip */
.cta-strip {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 500px at 50% 50%, rgba(255,255,255,.08), transparent);
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
  position: relative;
}
.cta-strip p {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}
.cta-strip .btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   SECTION WELCOME (bienvenue)
   ============================================================ */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.welcome-img-wrap {
  position: relative;
}
.welcome-img-wrap img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
}
.welcome-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.welcome-badge-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-700);
  line-height: 1;
}
.welcome-badge-float span { font-size: .78rem; color: var(--text-secondary); }
.welcome-text { font-size: 1rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; }
.welcome-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 32px; }
.welcome-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.welcome-list li .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-600);
  font-size: .95rem;
}
.welcome-list li .item-content strong { display: block; font-size: .9rem; color: var(--text-dark); margin-bottom: 2px; }
.welcome-list li .item-content span  { font-size: .84rem; color: var(--text-secondary); }

/* ============================================================
   BLOCS PRESTATIONS (accueil — 2 blocs)
   ============================================================ */
.prestations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.prestation-block {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 40px;
  transition: border-color var(--tr), box-shadow var(--tr);
  position: relative;
  overflow: hidden;
}
.prestation-block:hover { border-color: var(--blue-300); box-shadow: var(--shadow-lg); }
.prestation-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
}
.prestation-block.formations::before { background: linear-gradient(90deg, var(--blue-700), var(--blue-400)); }
.prestation-block.services::before  { background: linear-gradient(90deg, var(--green-700), var(--green-400)); }
.prestation-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.formations .prestation-icon { background: var(--blue-50); color: var(--blue-600); }
.services   .prestation-icon { background: #E8F5E9;         color: var(--green-600); }
.prestation-block h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.prestation-block p {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.prestation-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.prestation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-light);
  border-radius: var(--r-sm);
  transition: background var(--tr);
}
.prestation-item:hover { background: var(--blue-50); }
.prestation-item i { font-size: .9rem; color: var(--blue-500); width: 16px; text-align: center; flex-shrink: 0; }
.services .prestation-item i { color: var(--green-500); }
.prestation-item span { font-size: .875rem; color: var(--text-primary); }

/* ============================================================
   COURS À LA CARTE
   ============================================================ */
.carte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.carte-item {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  cursor: default;
}
.carte-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.carte-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--blue-600);
  flex-shrink: 0;
}
.carte-item-label { font-size: .875rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.carte-item-sub   { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-brand img {
  width: 52px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  filter: brightness(1.1);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}
.footer-brand-desc { font-size: .875rem; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--tr), padding-left var(--tr);
}
.footer-links a:hover { color: var(--blue-300); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  margin-bottom: 12px;
}
.footer-contact-item i { color: var(--blue-400); width: 16px; text-align: center; }
.footer-contact-item a { color: rgba(255,255,255,.75); }
.footer-contact-item a:hover { color: var(--blue-300); }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  transition: background var(--tr), color var(--tr);
}
.social-link:hover { background: var(--blue-600); color: var(--text-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.5); transition: color var(--tr); }
.footer-bottom-links a:hover { color: var(--blue-300); }

/* ============================================================
   FORMULAIRE
   ============================================================ */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.form-label .req { color: #E53935; }
.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 16px;
  transition: border-color var(--tr), box-shadow var(--tr);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(33,150,243,.12);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }

/* ============================================================
   ACCORDÉON (tarifs)
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--tr);
}
.accordion-item.open { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--tr);
}
.accordion-trigger:hover { background: var(--bg-light); }
.accordion-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--blue-600);
  flex-shrink: 0;
}
.accordion-trigger-text { flex: 1; }
.accordion-trigger-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}
.accordion-trigger-text span { font-size: .82rem; color: var(--text-muted); }
.accordion-chevron {
  font-size: .85rem;
  color: var(--text-muted);
  transition: transform var(--tr);
  flex-shrink: 0;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: var(--blue-600); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-item.open .accordion-content { max-height: 1000px; }
.accordion-body { padding: 0 24px 28px; }

/* Table tarifs */
.tarif-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.tarif-table th {
  background: var(--bg-light);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-secondary);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border-light);
}
.tarif-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: .875rem;
  color: var(--text-primary);
}
.tarif-table tr:last-child td { border-bottom: none; }
.tarif-table tr.recommended td { background: var(--blue-50); }
.tarif-table .price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-700);
  font-size: 1rem;
}
.tarif-table .recommended-badge {
  display: inline-block;
  background: var(--blue-700);
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-left: 6px;
  text-transform: uppercase;
}

/* ============================================================
   HERO ACCUEIL (index.html — plein écran)
   ============================================================ */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slideshow-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slideshow-bg .mySlides {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: block !important;
  transition: opacity 14s cubic-bezier(.25,.1,.25,1);
}
.hero-slideshow-bg .mySlides.active { opacity: 1; }
.hero-slideshow-bg .mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(6,15,30,.82) 0%,
    rgba(13,33,55,.70) 50%,
    rgba(21,101,192,.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--text-white);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: 24px;
  animation: fadeUp .8s ease both;
}
.hero-eyebrow i { color: var(--blue-300); }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp .8s ease .15s both;
}
.hero-h1 .accent { color: var(--blue-300); }
.hero-p {
  font-size: clamp(.95rem, 2.2vw, 1.15rem);
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  animation: fadeUp .8s ease .3s both;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .8s ease .45s both;
}
.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  padding: 10px 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  transition: opacity 6s ease;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.6);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll-hint .scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--text-white);
  animation: scrollLine 1.5s ease infinite;
}
@keyframes scrollLine {
  0%   { top: -50%; }
  100% { top: 150%; }
}

/* ============================================================
   SECTION QUICK FEATURES (après hero index)
   ============================================================ */
.features-strip {
  background: var(--bg-white);
  padding: 0;
  position: relative;
  z-index: 10;
}
.features-inner {
  background: var(--bg-white);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.feature-item {
  padding: 32px 28px;
  border-right: 1px solid var(--border-light);
  transition: background var(--tr);
  position: relative;
}
.feature-item:last-child { border-right: none; }
.feature-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
  transform: scaleX(0);
  transition: transform var(--tr);
  transform-origin: left;
}
.feature-item:hover::before { transform: scaleX(1); }
.feature-item:hover { background: var(--bg-light); }
.feature-item i {
  font-size: 1.6rem;
  color: var(--blue-500);
  margin-bottom: 14px;
  display: block;
}
.feature-item h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.feature-item p { font-size: .82rem; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-grid { grid-template-columns: 1fr; gap: 40px; }
  .welcome-img-wrap { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 900px) {
  :root { --section-y: 64px; }
  .nav-links { display: none; flex-direction: column; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .navbar { height: auto; padding: 0; }
  .nav-wrapper {
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 16px;
    align-items: center;
  }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    padding: 80px 24px 40px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--tr-slow);
    gap: 4px;
  }
  .nav-links.open { transform: translateX(0); display: flex; }
  .nav-link { padding: 10px 16px; font-size: 1rem; }
  .btn-espace span { display: none; }
  .btn-espace { padding: 8px 12px; }
  .nav-phone span { display: none; }
  .nav-phone { padding: 8px 12px; }
  .cards-grid-3 { grid-template-columns: 1fr 1fr; }
  .prestations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --section-y: 48px; }
  .cards-grid-2,
  .cards-grid-3 { grid-template-columns: 1fr; }
  .features-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-scroll-hint { display: none; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .level-card-footer { flex-direction: column; }
}

/* ============================================================
   IMPRESSION (styles tarifs)
   ============================================================ */
@media print {
  .navbar, .cta-strip, footer, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
  .page-hero { background: white; color: black; padding: 20px 0; }
  .page-hero h1, .page-hero p { color: black; }
  .card, .level-card { box-shadow: none; border: 1px solid #ddd; }
}
