/* ============================================================
   INTERNET CONSEIL RÉUNION — styles.css
   Homepage premium : hero sombre animé (fractal néon) + corps clair.
   Mobile-first, sans framework, intégrable WordPress / GeneratePress.
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABLES (tokens de design)
   ------------------------------------------------------------
   Système de rayons : surfaces = 16px, boutons = pilule.
   Accent unique : bleu électrique (#1f6ff5). Le turquoise n'apparaît
   que dans les dégradés décoratifs (écho du visuel fractal).
   ------------------------------------------------------------ */
:root {
  /* Couleurs */
  --bg:           #f7f9fc;   /* fond clair général */
  --bg-alt:       #eef2f9;   /* fond clair alterné */
  --surface:      #ffffff;   /* cartes */
  --ink:          #0c1222;   /* texte principal (bleu nuit, jamais #000) */
  --muted:        #4b5565;   /* texte secondaire */
  --line:         #dde4ef;   /* hairlines / bordures */

  --accent:       #1f6ff5;   /* bleu électrique : CTA, liens, détails */
  --accent-dark:  #1857c9;   /* hover */
  --accent-soft:  #e8f0fe;   /* fonds tintés */
  --accent-light: #69b4ff;   /* bleu clair lisible : accents sur fonds sombres */

  --dark:         #060a18;   /* surfaces sombres (hero, footer) */
  --dark-2:       #0a1230;
  --on-dark:      #eaf0fb;
  --on-dark-muted:#9fb0cd;

  /* Typo */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rayons */
  --r-surface: 16px;
  --r-pill: 999px;

  /* Ombres teintées (jamais de noir pur) */
  --shadow-sm: 0 2px 10px rgba(16, 38, 84, .07);
  --shadow-md: 0 14px 40px rgba(16, 38, 84, .12);

  /* Échelle z-index documentée */
  --z-header: 100;
  --z-menu: 110;
}

/* ------------------------------------------------------------
   2. RESET LÉGER & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* Ancres : compenser le header sticky */
section[id], footer[id], article[id] { scroll-margin-top: 90px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Accessibilité : focus visible cohérent */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   3. BOUTONS (pilule)
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .98rem;
  white-space: nowrap;            /* jamais de CTA sur 2 lignes */
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }

/* CTA principal : bleu plein, texte blanc (contraste AA) */
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

/* Secondaire sur fond sombre : contour clair lisible */
.btn-ghost {
  border: 1.5px solid rgba(234, 240, 251, .55);
  color: var(--on-dark);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* Bouton clair sur bandeau bleu */
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Contour sur fond clair (cartes projets) */
.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 10px 22px;
  font-size: .92rem;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ------------------------------------------------------------
   4. HEADER STICKY + NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(6, 10, 24, .55);            /* verre sombre sur le hero */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* Une fois le hero dépassé : header clair (classe posée en JS) */
.site-header.scrolled {
  background: rgba(255, 255, 255, .85);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;                                  /* < 80px : règle stricte */
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; }
.brand-name {
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -.01em;
  color: #fff;
  transition: color .3s ease;
}
.brand-sub { color: var(--accent-light); }
.site-header.scrolled .brand-name { color: var(--ink); }
.site-header.scrolled .brand-sub { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul {
  display: flex;
  gap: 19px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  font-size: .92rem;
  font-weight: 500;
  color: rgba(234, 240, 251, .85);
  transition: color .2s ease;
}
.site-nav ul a:hover { color: #fff; }
.site-header.scrolled .site-nav ul a { color: var(--muted); }
.site-header.scrolled .site-nav ul a:hover { color: var(--ink); }

.nav-cta { padding: 10px 20px; font-size: .9rem; }

/* Burger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.7rem;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.site-header.scrolled .nav-toggle { color: var(--ink); }

/* ------------------------------------------------------------
   5. HERO : image fractale + canvas particules + contenu
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100dvh;                /* jamais h-screen / 100vh seul */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  /* le header sticky est hors flux visuel : on remonte le hero dessous */
  margin-top: -68px;
  padding-top: 68px;
  color: var(--on-dark);
}

/* Couche 1 : l'image fractale fournie */
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--dark);
  background-image:
    /* voile radial derrière le bloc de texte (lisibilité AA sur le fractal) */
    radial-gradient(60% 74% at 24% 42%, rgba(4, 8, 20, .82) 0%, rgba(4, 8, 20, .40) 55%, transparent 78%),
    linear-gradient(180deg, rgba(4, 8, 20, .42) 0%, rgba(4, 8, 20, .08) 45%, rgba(4, 8, 20, .22) 100%),
    /* desktop : visuel fractal affiché EN ENTIER (contain), jamais rogné */
    url("../img/background.jpg");
  background-repeat: no-repeat;
  background-position: center, center, center;
  background-size: cover, cover, contain;   /* voiles plein cadre, image complète */
}

/* Mobile : on remplit l'écran (cover) en cadrant sur le vortex coloré,
   pour que le visuel soit bien visible plutôt que petit et centré */
@media (max-width: 640px) {
  .hero-bg {
    background-position: center, center, 40% 42%;
    background-size: cover, cover, cover;
  }
}

/* Couche 2 : particules lumineuses (voir main.js) */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Couche 3 : contenu */
.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  padding-block: 96px 72px;
}

.eyebrow {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-light);
  margin-bottom: 18px;
  text-shadow: 0 1px 10px rgba(4, 8, 20, .6);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}

/* Dégradé bleu > turquoise sur un seul mot, écho du visuel */
.grad-text {
  background: linear-gradient(92deg, #5aa2ff, var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.12rem;
  color: #dbe6f7;                                   /* plus clair = meilleure lisibilité sur le fractal */
  max-width: 56ch;
  margin-bottom: 34px;
  text-shadow: 0 1px 14px rgba(4, 8, 20, .7);       /* halo sombre pour détacher le texte */
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Visuel hero : cadre verre */
.hero-visual { align-self: center; }
.frame {
  margin: 0;
  border-radius: var(--r-surface);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 30px 80px rgba(2, 6, 18, .55);
  background: rgba(255, 255, 255, .06);
  padding: 10px;
}
.frame img { border-radius: calc(var(--r-surface) - 6px); }

/* ------------------------------------------------------------
   6. BÉNÉFICES (strip clair sous le hero)
   ------------------------------------------------------------ */
.benefits {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.benefits-row {
  display: grid;
  gap: 28px;
  padding-block: 44px;
}
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit > i {
  font-size: 1.9rem;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}
.benefit h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------
   7. SECTIONS GÉNÉRIQUES
   ------------------------------------------------------------ */
.section { padding-block: 96px; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.section-note {
  margin: 40px 0 0;
  font-weight: 500;
  color: var(--accent-dark);
}

/* ------------------------------------------------------------
   8. SECTION IA : bento 4 cellules asymétriques
   ------------------------------------------------------------ */
.bento { display: grid; gap: 20px; }

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: 32px 30px;
}
.bento-cell > i { font-size: 2rem; color: var(--accent); }
.bento-cell h3 { font-size: 1.18rem; margin: 14px 0 8px; }
.bento-cell p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Cellule vedette : sombre, écho du hero (diversité visuelle du bento) */
.bento-feature {
  background:
    radial-gradient(120% 140% at 85% 110%, rgba(31, 111, 245, .45), transparent 60%),
    radial-gradient(90% 110% at 10% -10%, rgba(105, 180, 255, .25), transparent 55%),
    var(--dark-2);
  border-color: rgba(255, 255, 255, .1);
  color: var(--on-dark);
}
.bento-feature > i { color: var(--accent-light); }
.bento-feature p { color: var(--on-dark-muted); }

/* Cellule tintée : bleu très clair */
.bento-tinted { background: var(--accent-soft); border-color: #cfdffc; }

/* ------------------------------------------------------------
   9. SERVICES : cartes
   ------------------------------------------------------------ */
.cards-grid { display: grid; gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c9d8f5;
}
.card > i { font-size: 2rem; color: var(--accent); }
.card h3 { font-size: 1.14rem; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .92rem;
}
.card-link i { transition: transform .2s ease; }
.card:hover .card-link i { transform: translateX(4px); }

/* ------------------------------------------------------------
   10. RÉALISATIONS : carrousel de vignettes (mission au survol)
   ------------------------------------------------------------ */
/* En-tête : le sous-titre tient sur une seule ligne en desktop */
.realisations-head { max-width: none; }
.realisations-head .real-intro { margin-bottom: 8px; }
@media (min-width: 980px) {
  .realisations-head .real-intro { white-space: nowrap; }
}
.real-tagline { margin: 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.real-tagline strong { color: var(--accent-dark); }

.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 6px 2px 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--line);
}
.carousel-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

.rcard {
  flex: 0 0 78%;                    /* ~1 carte visible sur mobile */
  max-width: 320px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9d8f5; }

/* Vignette + placeholder dégradé + initiales si visuel absent */
.rcard-media {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 100%, rgba(31, 111, 245, .55), transparent 60%),
    radial-gradient(100% 100% at 90% 0%, rgba(105, 180, 255, .35), transparent 55%),
    var(--dark-2);
}
.rcard-media::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(234, 240, 251, .8);
  z-index: 0;
}
.rcard-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.rcard-media img.is-broken { display: none; }

/* Overlay mission : visible au survol, fond sombre semi-opaque */
.rcard-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  color: var(--on-dark);
  background: linear-gradient(180deg, rgba(6, 10, 24, .25) 0%, rgba(6, 10, 24, .88) 70%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
}
.rcard-media:hover .rcard-overlay,
.rcard-media:focus-within .rcard-overlay { opacity: 1; }
.rcard-overlay h4 { font-size: 1.05rem; color: #fff; margin: 0; }
.rcard-overlay p { font-size: .9rem; line-height: 1.5; color: var(--on-dark); margin: 0; }
.rcard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--accent-light);
}
.rcard-link:hover { color: #fff; }

/* Pied de carte : surtitre + titre toujours visibles */
.rcard-foot { padding: 16px 18px 18px; }
.rcard-type {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 4px;
}
.rcard-foot h3 { font-size: 1.08rem; margin: 0; }

/* Flèches de navigation */
.carousel-nav {
  position: absolute;
  top: calc(50% - 34px);            /* centré sur la vignette (hors pied) */
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.carousel-nav:hover { background: var(--accent); color: #fff; }
.carousel-nav:active { transform: translateY(-50%) scale(.94); }
.carousel-nav.prev { left: -10px; }
.carousel-nav.next { right: -10px; }
.carousel-nav[disabled] { opacity: 0; pointer-events: none; }

.carousel-hint {
  margin: 18px 0 0;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
}

/* Pas de survol (tactile) : overlay toujours lisible (dégradé bas) */
@media (hover: none) {
  .rcard-overlay { opacity: 1; background: linear-gradient(180deg, rgba(6, 10, 24, 0) 30%, rgba(6, 10, 24, .9) 88%); }
  .carousel-nav { display: none; }
  .carousel-hint { display: none; }
}

/* ------------------------------------------------------------
   11. POURQUOI : 4 points, hairlines, sans cartes
   ------------------------------------------------------------ */
.why-grid { display: grid; gap: 36px; }

.why-item { border-top: 2px solid var(--accent); padding-top: 22px; }
.why-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.why-item h3 i { color: var(--accent); font-size: 1.35rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ------------------------------------------------------------
   12. BANDEAU AUDIT : fond bleu profond, très commercial
   ------------------------------------------------------------ */
.audit-band {
  background:
    radial-gradient(110% 160% at 85% 120%, rgba(105, 180, 255, .35), transparent 55%),
    linear-gradient(120deg, #123a8f, var(--accent-dark));
  color: #fff;
  padding-block: 88px;
}
.audit-inner { max-width: 760px; text-align: center; margin-inline: auto; }
.audit-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.audit-band p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.audit-band .btn { margin-block: 14px 18px; }
.audit-note { font-size: .92rem; color: rgba(255, 255, 255, .7); margin: 0; }

/* ------------------------------------------------------------
   13. PROCESS : timeline numérotée
   ------------------------------------------------------------ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
  counter-reset: step;
  position: relative;
}

.step { position: relative; padding-left: 64px; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1.05rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Ligne verticale reliant les étapes (mobile) */
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 20px;
  width: 2px;
  background: var(--line);
}

/* ------------------------------------------------------------
   14. FOOTER / CONTACT : sombre, écho du hero
   ------------------------------------------------------------ */
.site-footer {
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(31, 111, 245, .18), transparent 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(105, 180, 255, .12), transparent 55%),
    var(--dark);
  color: var(--on-dark-muted);
  padding-top: 96px;
}

.footer-cta {
  text-align: center;
  max-width: 680px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -.02em;
}
.footer-cta p { font-size: 1.05rem; margin-bottom: 28px; }

.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: 56px;
}
.footer-brand { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--accent-light); }
.footer-text { font-size: .93rem; margin: 0; max-width: 38ch; }

.footer-col h3 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col li { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.footer-col li i { color: var(--accent-light); }
.footer-col a { color: var(--on-dark-muted); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 22px;
  font-size: .87rem;
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------
   15. ANIMATIONS AU SCROLL (classe .reveal + JS IntersectionObserver)
   ------------------------------------------------------------ */
/* Masquage initial uniquement si JS est actif (classe .js posée sur <html>) :
   sans JS, tout le contenu reste visible */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* Décalage en cascade pour les éléments voisins */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }

/* ------------------------------------------------------------
   16. RESPONSIVE : tablette puis desktop (mobile-first)
   ------------------------------------------------------------ */
@media (min-width: 640px) {
  .benefits-row { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .bento { grid-template-columns: 1.35fr 1fr; }      /* asymétrique */
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  /* Timeline horizontale sur desktop */
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .step { padding-left: 0; padding-top: 64px; }
  .step-num { top: 0; left: 0; }
  .timeline::before {
    left: 22px;
    right: 22px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 64px;
    padding-block: 120px 96px;
  }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  /* Réalisations : projet vedette sur toute la hauteur à gauche */
  .projects-grid { grid-template-columns: 1.15fr 1fr; }
  .project-featured { grid-row: span 2; }
  .project-featured .project-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
}

/* Burger en dessous de 1160px (7 entrées : la nav complète ne tient plus) */
@media (max-width: 1160px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 20px 24px;
    background: rgba(8, 12, 28, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a {
    display: block;
    padding: 11px 4px;
    font-size: 1.05rem;
    color: var(--on-dark);
  }
  .nav-cta { text-align: center; margin-top: 8px; }

  /* Menu ouvert sur fond clair (page scrollée) : reste sombre, lisible */
  .site-header.scrolled .site-nav ul a { color: var(--on-dark); }
}

/* ------------------------------------------------------------
   17. LOGO IMAGE (picto tiré du visuel fractal)
   ------------------------------------------------------------ */
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(105, 180, 255, .45);
  box-shadow: 0 0 14px rgba(31, 111, 245, .35);
  flex: none;
}

/* ------------------------------------------------------------
   18. AUTRES RÉFÉRENCES : tuiles compactes sous les projets
   ------------------------------------------------------------ */
.refs-head {
  margin: 64px 0 28px;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.refs-grid { display: grid; gap: 18px; }

.ref {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ref:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.ref-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  /* Placeholder dégradé + initiales si visuel absent (cf. .project-media) */
  background:
    radial-gradient(120% 120% at 20% 100%, rgba(31, 111, 245, .5), transparent 60%),
    radial-gradient(100% 100% at 90% 0%, rgba(105, 180, 255, .3), transparent 55%),
    var(--dark-2);
}
.ref-media::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(234, 240, 251, .8);
}
.ref-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.ref-media img.is-broken { display: none; }

.ref-body { padding: 18px 20px 20px; }
.ref-body h4 { font-size: 1.02rem; margin: 0 0 4px; }
.ref-type {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.ref-body p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.ref-body a { font-weight: 600; font-size: .88rem; }

/* ------------------------------------------------------------
   19. CARROUSEL LOGOS "Ils nous ont fait confiance"
   Défilement infini en CSS pur (piste dupliquée dans le HTML).
   Remplacer les fichiers assets/logos/logo-01.png ... logo-10.png.
   ------------------------------------------------------------ */
.trust {
  padding-block: 72px;
  background: var(--surface);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.trust h2 {
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  margin-bottom: 40px;
  color: var(--ink);
}
.logo-marquee {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.logo-marquee:hover { animation-play-state: paused; }

.logo-track {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
}
.logo-track img {
  height: 72px;                 /* logos agrandis */
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .3s ease, opacity .3s ease;
}
.logo-track img:hover { filter: none; opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* la piste est dupliquée : -50% = boucle parfaite */
}

/* ------------------------------------------------------------
   20. POPUP DEVIS (design ic-run : carte sombre, halo fractal)
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;                       /* au-dessus de tout (échelle documentée) */
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  border-radius: var(--r-surface);
  padding: 40px 34px 32px;
  text-align: center;
  color: var(--on-dark);
  background:
    radial-gradient(120% 140% at 85% 110%, rgba(31, 111, 245, .5), transparent 60%),
    radial-gradient(90% 110% at 10% -10%, rgba(105, 180, 255, .28), transparent 55%),
    var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(2, 6, 18, .6);
  animation: modal-in .35s cubic-bezier(.16, 1, .3, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--on-dark-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.modal-close:hover { color: #fff; }

.modal-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.modal-card h3 { font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.modal-card p { color: var(--on-dark-muted); font-size: .98rem; margin-bottom: 22px; }
.modal-card .btn { display: block; width: 100%; }

.modal-dismiss {
  background: none;
  border: 0;
  margin-top: 14px;
  color: var(--on-dark-muted);
  font-size: .88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-dismiss:hover { color: #fff; }

/* ------------------------------------------------------------
   21. FORMULAIRE DE DEVIS (footer, fond sombre)
   Envoi par mailto vers nicolas@ic-run.com (voir main.js)
   ------------------------------------------------------------ */
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 56px 8px;
  display: grid;
  gap: 18px;
  text-align: left;
}
.form-row { display: grid; gap: 18px; }

.form-field { display: grid; gap: 7px; }
.form-field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--on-dark);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: .96rem;
  color: var(--on-dark);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(159, 176, 205, .75); }
.form-field select option { color: var(--ink); background: #fff; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px;
  border-color: transparent;
}
.form-field textarea { min-height: 130px; resize: vertical; }

.form-actions { text-align: center; margin-top: 6px; }
.form-actions .btn { min-width: 260px; }
.form-note {
  margin: 12px 0 0;
  font-size: .85rem;
  color: var(--on-dark-muted);
  text-align: center;
}

/* ------------------------------------------------------------
   22. RESPONSIVE des nouveaux blocs
   ------------------------------------------------------------ */
@media (min-width: 640px) {
  .refs-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .refs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------
   23. VISUEL HERO "Web + IA 2026" : tableau de bord animé en verre
   (remplace le placeholder photo, 100 % CSS, écho du fond fractal)
   ------------------------------------------------------------ */
.hero-figure {
  position: relative;
  border-radius: 22px;
  padding: 24px 24px 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 30px 80px rgba(2, 6, 18, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hf-float 7s ease-in-out infinite;
}
@keyframes hf-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hf-title { font-weight: 600; font-size: .98rem; color: #fff; }
.hf-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: var(--accent-light);
}
.hf-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46e08a;
  box-shadow: 0 0 0 0 rgba(70, 224, 138, .6);
  animation: hf-pulse 2s ease-out infinite;
}
@keyframes hf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(70, 224, 138, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(70, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 224, 138, 0); }
}

/* Graphique à barres montantes */
.hf-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.hf-bar {
  flex: 1;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  transform: scaleY(0);
  transform-origin: bottom;
  animation: hf-grow 1.5s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hf-bar:nth-child(1) { height: 38%; animation-delay: .15s; }
.hf-bar:nth-child(2) { height: 52%; animation-delay: .3s; }
.hf-bar:nth-child(3) { height: 46%; animation-delay: .45s; }
.hf-bar:nth-child(4) { height: 70%; animation-delay: .6s; }
.hf-bar:nth-child(5) { height: 84%; animation-delay: .75s; }
.hf-bar:nth-child(6) { height: 100%; animation-delay: .9s; opacity: 1; }
@keyframes hf-grow { to { transform: scaleY(1); } }

.hf-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
}
.hf-caption span { font-size: .82rem; color: var(--on-dark-muted); }
.hf-caption strong { font-size: 1.5rem; color: #fff; font-weight: 700; letter-spacing: -.02em; }

/* Puces flottantes autour du panneau */
.hf-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: rgba(10, 18, 48, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(2, 6, 18, .4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: hf-float 6s ease-in-out infinite;
}
.hf-chip i { color: var(--accent-light); font-size: 1rem; }
.hf-chip-1 { top: -16px; right: 26px; animation-delay: .4s; }
.hf-chip-2 { bottom: 64px; left: -26px; animation-delay: 1.4s; }
.hf-chip-3 { bottom: -16px; right: 40px; animation-delay: .9s; }

/* ------------------------------------------------------------
   24. OFFRE INÉDITE : maquette gratuite (carte premium sombre)
   ------------------------------------------------------------ */
.offer { padding-block: 96px; background: var(--bg); }

.offer-card {
  position: relative;
  max-width: 1000px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 24px;
  padding: 56px clamp(28px, 5vw, 64px);
  text-align: center;
  color: var(--on-dark);
  background:
    radial-gradient(90% 120% at 90% 0%, rgba(31, 111, 245, .5), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(105, 180, 255, .3), transparent 55%),
    var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 90px rgba(2, 6, 18, .45);
}
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.offer-card h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 16px;
  text-wrap: balance;
}
.offer-card > p {
  max-width: 60ch;
  margin: 0 auto 34px;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
}
.offer-steps {
  display: grid;
  gap: 22px;
  margin-bottom: 38px;
  text-align: left;
}
.offer-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.offer-step .num {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--accent-light);
  font-weight: 700;
}
.offer-step h3 { font-size: 1.02rem; color: #fff; margin: 4px 0 4px; }
.offer-step p { margin: 0; font-size: .92rem; color: var(--on-dark-muted); }
/* Bandeau d'urgence : offre à durée limitée */
.offer-urgent {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 640px;
  margin: 0 auto 26px;
  padding: 13px 22px;
  border-radius: 14px;
  background: rgba(105, 180, 255, .14);
  border: 1px solid rgba(105, 180, 255, .45);
  color: #fff;
  font-size: .94rem;
  line-height: 1.45;
  text-align: left;
}
.offer-urgent i { color: var(--accent-light); font-size: 1.45rem; flex: none; }
.offer-urgent strong { color: var(--accent-light); }

.offer-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.offer-note { font-size: .9rem; color: var(--on-dark-muted); margin: 0; }
.offer-note a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------
   25. À PROPOS : parcours (texte + chiffres)
   ------------------------------------------------------------ */
.about { padding-block: 96px; }
.about-copy { max-width: 760px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-copy p strong { color: var(--ink); }
.about-sign {
  margin-top: 18px;
  font-weight: 600;
  color: var(--ink);
}
.about-sign span { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); }

/* 3 blocs chiffrés (style fiche fondateur de la PJ) */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.hl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: 30px 22px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hl-card .num {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
  line-height: 1.05;
}
.hl-card p {
  margin: 8px 0 0;
  font-size: .92rem;
  color: var(--muted);
}

/* ------------------------------------------------------------
   26. CATÉGORIES DE RÉFÉRENCES
   ------------------------------------------------------------ */
.ref-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.ref-cat::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

/* ------------------------------------------------------------
   27. RESPONSIVE des sections 24-25
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  .offer-steps { grid-template-columns: repeat(3, 1fr); }
}

/* 3 blocs chiffrés : compacter sur très petits écrans (restent sur 1 ligne) */
@media (max-width: 420px) {
  .about-highlights { gap: 10px; }
  .hl-card { padding: 22px 10px; }
}

/* ------------------------------------------------------------
   28. ACCESSIBILITÉ : réduction des animations
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .rcard, .rcard-overlay, .btn { transition: none; }
  .carousel-track { scroll-behavior: auto; }
  .hero-bg { transform: none; }
  .hero-canvas { display: none; }      /* particules désactivées (voir aussi main.js) */
  .logo-marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logo-track:last-child { display: none; }   /* pas de doublon si marquee figé */
  .modal-card { animation: none; }
  /* Visuel hero : figer toutes les animations, barres pleines */
  .hero-figure, .hf-chip { animation: none; }
  .hf-bar { transform: scaleY(1); animation: none; }
  .hf-live::before { animation: none; }
}
