/* =====================================================================
   GENERATRONIC SERVICES — Feuille de style principale
   Palette dérivée du logo : bleu royal, bleu marine, bleu éclair, argent.
   Conçue pour être légère, rapide et responsive (mobile-first).
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  /* Couleurs de marque */
  --navy-900: #0a1f38;
  --navy-800: #0f2c4d;
  --navy-700: #123a63;
  --blue-700: #0e5ba5;   /* bleu principal du logo */
  --blue-600: #1570c4;
  --blue-500: #1e88e5;   /* bleu éclair */
  --blue-300: #5fa8e6;
  --blue-100: #e7f1fb;
  --steel:    #8fa6be;
  --silver:   #c8d4e0;

  /* Neutres */
  --ink:    #11233a;
  --body:   #4f6276;
  --muted:  #7d8ea0;
  --line:   #e4ebf3;
  --bg:     #ffffff;
  --bg-soft:#f4f8fc;
  --white:  #ffffff;

  /* Effets */
  --grad: linear-gradient(135deg, var(--blue-700) 0%, var(--navy-800) 100%);
  --grad-bright: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  --shadow-sm: 0 4px 14px rgba(15, 44, 77, .07);
  --shadow:    0 14px 40px rgba(15, 44, 77, .10);
  --shadow-lg: 0 26px 60px rgba(15, 44, 77, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; }
section { position: relative; }

/* --------------------------- Utilities ---------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.center { text-align: center; }
.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--body); }
.grad-text { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue-500); border-radius: 2px; }
.eyebrow.on-dark { color: var(--blue-300); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head.center { text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section-title.on-dark, .on-dark .section-title { color: #fff; }
.section-head p { margin-top: 14px; }
.on-dark p, .on-dark .lead { color: #c3d2e2; }

/* ---------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .98rem; padding: 14px 28px;
  border-radius: 999px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-bright); color: #fff; box-shadow: 0 10px 26px rgba(14, 91, 165, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 91, 165, .45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-3px); }

/* ---------------------------- Topbar ------------------------------ */
.topbar {
  background: var(--navy-900); color: #c9d6e5; font-size: .85rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 15px; height: 15px; color: var(--blue-300); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social svg { width: 15px; height: 15px; }

/* ---------------------------- Header ------------------------------ */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s, padding .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand-name { font-weight: 800; color: var(--navy-800); font-size: 1.18rem; line-height: 1; letter-spacing: -.02em; }
.brand-name small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .28em; color: var(--blue-600); margin-top: 3px; }

.menu { display: flex; align-items: center; gap: 6px; }
.menu a {
  font-weight: 600; font-size: .96rem; color: var(--navy-800); padding: 10px 16px;
  border-radius: 10px; position: relative; transition: color .2s, background .2s;
}
.menu a:hover, .menu a.active { color: var(--blue-700); background: var(--blue-100); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); color: var(--navy-800); }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* ----------------------------- Hero ------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #1b4f8a 0%, transparent 60%), var(--grad);
  padding: clamp(70px, 11vw, 140px) 0 clamp(80px, 12vw, 150px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .6; pointer-events: none;
}
.hero-bolt { position: absolute; right: -60px; top: -40px; width: 520px; opacity: .12; color: var(--blue-300); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero h1 .grad-text { background: linear-gradient(120deg, #7fc0ff, #cfe6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #cfe0f2; margin: 22px 0 32px; font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 560px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-size: 1.7rem; color: #fff; font-weight: 800; }
.hero-trust span { font-size: .85rem; color: #a9c2db; }

/* Visuel hero : carte vitrée avec pôles */
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px; padding: 26px; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.hero-card .muted { color: #a9c2db; font-size: .85rem; margin-bottom: 18px; }
.hero-poles { display: grid; gap: 12px; }
.hero-pole { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px; transition: background .2s, transform .2s; }
.hero-pole:hover { background: rgba(255,255,255,.13); transform: translateX(4px); }
.hero-pole .ic { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--grad-bright); }
.hero-pole .ic svg { width: 22px; height: 22px; color: #fff; }
.hero-pole b { color: #fff; font-size: .95rem; font-weight: 700; }
.hero-pole small { display: block; color: #a9c2db; font-size: .78rem; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; color: var(--bg); }

/* --------------------- Bande logos / confiance -------------------- */
.marquee { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.marquee .container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; padding-block: 26px; }
.marquee span { font-weight: 700; color: var(--muted); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.marquee b { color: var(--navy-800); font-weight: 800; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 8px; }
.marquee b svg { width: 20px; height: 20px; color: var(--blue-600); }

/* --------------------------- Pôles grid --------------------------- */
.poles { background: var(--bg); }
.poles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pole {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pole::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--grad-bright); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pole:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.pole:hover::after { transform: scaleX(1); }
.pole-ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); margin-bottom: 22px; transition: background .3s, color .3s; }
.pole-ic svg { width: 32px; height: 32px; }
.pole:hover .pole-ic { background: var(--grad-bright); color: #fff; }
.pole h3 { font-size: 1.28rem; margin-bottom: 10px; }
.pole p { font-size: .96rem; }
.pole .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 700; color: var(--blue-700); font-size: .9rem; }
.pole .more svg { width: 16px; height: 16px; transition: transform .25s; }
.pole:hover .more svg { transform: translateX(4px); }

/* ---------------------------- About ------------------------------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-visual { position: relative; }
.about-visual .frame {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--grad); aspect-ratio: 4/3; display: grid; place-items: center; color: #fff; padding: 30px;
}
.about-visual .frame svg { width: 120px; height: 120px; opacity: .9; color: var(--blue-300); }
.about-badge {
  position: absolute; right: -14px; bottom: -22px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px 22px; display: flex; gap: 14px; align-items: center;
  border: 1px solid var(--line);
}
.about-badge .n { font-size: 2rem; font-weight: 800; color: var(--blue-700); line-height: 1; }
.about-badge small { color: var(--muted); font-size: .82rem; }
.checklist { display: grid; gap: 14px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--blue-600); margin-top: 1px; }

/* ----------------------------- Stats ------------------------------ */
.stats { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.stats::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.stat { text-align: center; }
.stat .num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: #fff; }
.stat .num .grad-text { background: linear-gradient(120deg,#7fc0ff,#cfe6ff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat p { color: #a9c2db; font-weight: 600; margin-top: 4px; }

/* ----------------------------- Why -------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s, transform .3s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.feature .fic { width: 52px; height: 52px; flex: none; border-radius: 13px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.feature .fic svg { width: 26px; height: 26px; }
.feature h4 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; }

/* --------------------------- Process ------------------------------ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .step-n { font-size: .82rem; font-weight: 800; letter-spacing: .12em; color: var(--blue-600); }
.step .step-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--grad-bright); color: #fff; display: grid; place-items: center; margin: 12px 0 18px; }
.step .step-ic svg { width: 28px; height: 28px; }
.step h4 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .92rem; }

/* ----------------------------- CTA -------------------------------- */
.cta-band { padding: clamp(48px, 7vw, 84px) 0; }
.cta-inner {
  background: radial-gradient(900px 400px at 90% -20%, #1b4f8a 0%, transparent 60%), var(--grad);
  border-radius: 26px; padding: clamp(38px, 6vw, 66px); color: #fff; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-inner::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); position: relative; }
.cta-inner p { color: #cfe0f2; max-width: 580px; margin: 16px auto 30px; position: relative; }
.cta-inner .hero-cta { justify-content: center; position: relative; }

/* ------------------- Services page (détail pôles) ----------------- */
.breadcrumb {
  background: var(--grad); color: #fff; padding: clamp(56px, 9vw, 110px) 0 clamp(40px,6vw,70px);
  text-align: center; position: relative; overflow: hidden;
}
.breadcrumb::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; }
.breadcrumb h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); position: relative; }
.breadcrumb .crumbs { margin-top: 14px; color: #bcd2e8; font-weight: 600; position: relative; display: inline-flex; gap: 8px; align-items: center; }
.breadcrumb .crumbs a:hover { color: #fff; }
.breadcrumb .crumbs svg { width: 16px; height: 16px; }

.pole-block { padding: clamp(48px, 7vw, 90px) 0; border-bottom: 1px solid var(--line); }
.pole-block:nth-child(even) { background: var(--bg-soft); }
.pole-block-head { display: flex; gap: 22px; align-items: center; margin-bottom: 40px; max-width: 820px; }
.pole-block-head .big-ic { width: 78px; height: 78px; flex: none; border-radius: 20px; background: var(--grad-bright); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(14,91,165,.3); }
.pole-block-head .big-ic svg { width: 40px; height: 40px; }
.pole-block-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.pole-block-head p { margin-top: 6px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s; }
.pole-block:nth-child(even) .svc-card { background: #fff; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card h3 { font-size: 1.12rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.svc-card h3 svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; }
.svc-card li { position: relative; padding: 7px 0 7px 26px; font-size: .94rem; }
.svc-card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue-500); }

/* ---------------------------- Values ------------------------------ */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value .vic { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; margin-bottom: 18px; }
.value .vic svg { width: 28px; height: 28px; }
.value h4 { font-size: 1.15rem; margin-bottom: 8px; }

/* --------------------------- Contact ------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.cinfo { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .3s, transform .3s; }
.cinfo:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.cinfo .cic { width: 50px; height: 50px; flex: none; border-radius: 13px; background: var(--grad-bright); color: #fff; display: grid; place-items: center; }
.cinfo .cic svg { width: 24px; height: 24px; }
.cinfo h4 { font-size: 1.02rem; margin-bottom: 3px; }
.cinfo p, .cinfo a { color: var(--body); font-size: .95rem; }
.cinfo a:hover { color: var(--blue-700); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: .96rem; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 26px; filter: grayscale(.2); }

/* ----------------------------- FAQ -------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.qa { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 20px; height: 20px; color: var(--blue-600); transition: transform .3s; flex: none; }
.qa[open] summary svg { transform: rotate(45deg); }
.qa .qa-body { padding: 0 24px 22px; color: var(--body); font-size: .96rem; }

/* ---------------------------- Footer ------------------------------ */
.footer { background: var(--navy-900); color: #b7c6d8; padding-top: clamp(56px, 8vw, 90px); position: relative; overflow: hidden; }
.footer::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 26px 26px; pointer-events:none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; padding-bottom: 50px; }
.footer h5 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; }
.footer-brand img { height: 56px; background: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .25s, transform .25s; }
.footer-social a:hover { background: var(--grad-bright); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: .94rem; transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: .94rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--blue-300); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .88rem; position: relative; }
.footer-bottom a:hover { color: #fff; }

/* --------------------- Animations au scroll ----------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------- Bouton WhatsApp flottant ----------------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.45);
  transition: transform .25s; animation: fab-pulse 2.4s infinite;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; color: #fff; }
@keyframes fab-pulse { 0%,100% { box-shadow: 0 12px 28px rgba(37,211,102,.45); } 50% { box-shadow: 0 12px 38px rgba(37,211,102,.7); } }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .poles-grid, .why-grid, .value-grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 520px; }
}
@media (max-width: 720px) {
  .menu, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .menu.open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
    box-shadow: var(--shadow);
  }
  .menu.open a { padding: 14px 16px; }
  .header { position: sticky; }
  .nav { position: relative; }
  .poles-grid, .why-grid, .value-grid, .svc-grid, .process-grid, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-info { gap: 14px; }
  .pole-block-head { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero-trust { gap: 18px; }
}
@media (max-width: 420px) {
  .topbar-social { display: none; }
}

/* =====================================================================
   AJOUTS : photos, galerie, boutique, réalisations
   ===================================================================== */

/* Hero : photo en arrière-plan avec voile bleu */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(27,79,138,.7) 0%, transparent 60%),
    linear-gradient(120deg, rgba(10,31,56,.92) 0%, rgba(15,44,77,.86) 55%, rgba(14,91,165,.78) 100%),
    url("../img/photos/energie.jpg") center/cover no-repeat;
}

/* Vedette photo dans le hero */
.hero-showcase { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14); }
.hero-showcase img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.1; display: block; }
.hero-showcase-badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(10,31,56,.62); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 14px 16px;
}
.hero-showcase-badge .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad-bright); display: grid; place-items: center; }
.hero-showcase-badge .ic svg { width: 24px; height: 24px; color: #fff; }
.hero-showcase-badge b { color: #fff; font-size: 1rem; }
.hero-showcase-badge small { display: block; color: #bcd2e8; font-size: .8rem; margin-top: 2px; }

/* Cadre photo générique */
.frame.photo { padding: 0; background: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Vignette photo dans l'en-tête de pôle (page services) */
.pole-block-media { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-bottom: 44px; }
.pole-block-media .pole-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.pole-block-media .pole-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; aspect-ratio: 16/11; transition: transform .6s var(--ease); }
.pole-block-media .pole-photo:hover img { transform: scale(1.05); }
.pole-block-media .pole-block-head { margin-bottom: 0; }
.pole-block:nth-child(even) .pole-block-media { direction: rtl; }
.pole-block:nth-child(even) .pole-block-media > * { direction: ltr; }

/* Galerie "activités en images" */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.g-item { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.08); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,31,56,.78) 0%, transparent 55%); opacity: .85; transition: opacity .3s; }
.g-item:hover::after { opacity: 1; }
.g-item span { position: absolute; left: 16px; bottom: 14px; right: 16px; color: #fff; font-weight: 700; font-size: 1rem; z-index: 1; }
.g-item span small { display: block; font-weight: 600; font-size: .78rem; color: #bcd2e8; }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }

/* Boutique : cartes produits */
.shop-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 50px; }
.shop-cat { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-weight: 700; color: var(--ink); font-size: .92rem; transition: border-color .25s, box-shadow .25s, transform .25s; }
.shop-cat:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.shop-cat .sic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.shop-cat .sic svg { width: 22px; height: 22px; }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product-media img { transform: scale(1.07); }
.product-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--blue-700); font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-body p { font-size: .92rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
.product-foot .price { font-weight: 800; color: var(--blue-700); font-size: .95rem; }
.product .btn { padding: 11px 20px; font-size: .9rem; }

/* Réalisations : filtre + grille projets */
.filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter button { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--body); transition: all .25s; }
.filter button:hover { border-color: var(--blue-500); color: var(--blue-700); }
.filter button.active { background: var(--grad-bright); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(14,91,165,.3); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3.2; transition: box-shadow .3s, transform .3s; }
.work-card.hide { display: none; }
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover img { transform: scale(1.08); }
.work-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,31,56,.9) 5%, rgba(10,31,56,.25) 45%, transparent 70%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.work-card .tag { align-self: flex-start; background: var(--grad-bright); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; transform: translateY(8px); opacity: 0; transition: .35s; }
.work-card:hover .tag { transform: none; opacity: 1; }
.work-card h3 { color: #fff; font-size: 1.18rem; }
.work-card p { color: #c3d2e2; font-size: .88rem; margin-top: 4px; }

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shop-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-intro { grid-template-columns: repeat(2, 1fr); }
  .pole-block-media { grid-template-columns: 1fr; gap: 26px; }
  .pole-block:nth-child(even) .pole-block-media { direction: ltr; }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .g-item.wide { grid-column: span 2; }
  .shop-grid, .work-grid, .shop-intro { grid-template-columns: 1fr; }
}

/* =====================================================================
   AJOUTS 3 : carte cliquable, vignette illustrée, modal quick-view
   ===================================================================== */

/* Indice "voir plus" + curseur sur cartes cliquables */
.product, .work-card { cursor: pointer; }
.product-media .quickview, .work-card .quickview {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--blue-700);
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s;
}
.product:hover .quickview, .work-card:hover .quickview { opacity: 1; transform: none; }
.product-media .quickview svg, .work-card .quickview svg { width: 20px; height: 20px; }

/* Vignette illustrée (produit sans photo) */
.product-media.illus { display: grid; place-items: center; background: var(--grad); }
.product-media.illus .illus-art svg { width: 92px; height: 92px; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.product-media.illus::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,20,36,.66); backdrop-filter: blur(6px); animation: fade .3s ease; }
.modal-dialog {
  position: relative; width: 100%; max-width: 940px; max-height: 90vh; overflow: auto;
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.05fr 1fr; animation: pop .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px;
  border-radius: 12px; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: background .2s, transform .2s;
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close svg { width: 22px; height: 22px; }

.modal-gallery { background: var(--bg-soft); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.modal-main { border-radius: 14px; overflow: hidden; background: #fff; aspect-ratio: 4/3.4; }
.modal-main img { width: 100%; height: 100%; object-fit: cover; }
.modal-main.illus { display: grid; place-items: center; background: var(--grad); }
.modal-main.illus svg { width: 120px; height: 120px; color: rgba(255,255,255,.92); }
.modal-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-thumbs button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.modal-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs button.active, .modal-thumbs button:hover { opacity: 1; border-color: var(--blue-500); }

.modal-info { padding: clamp(24px, 4vw, 38px); display: flex; flex-direction: column; }
.modal-info .badge { align-self: flex-start; background: var(--blue-100); color: var(--blue-700); font-weight: 700; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; }
.modal-info h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; }
.modal-info .desc { color: var(--body); margin-bottom: 20px; }
.modal-features { display: grid; gap: 10px; margin-bottom: 26px; }
.modal-features li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: .95rem; }
.modal-features svg { width: 20px; height: 20px; flex: none; color: var(--blue-600); margin-top: 1px; }
.modal-actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .price { font-weight: 800; color: var(--blue-700); align-self: center; }
body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .modal-dialog { grid-template-columns: 1fr; }
  .modal-main { aspect-ratio: 16/12; }
}

/* Notre équipe */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3/4; }
.team-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover img { transform: scale(1.06); }
.team-card .cap { position: absolute; inset: auto 0 0 0; padding: 34px 16px 16px; background: linear-gradient(to top, rgba(10,31,56,.86), transparent); color: #fff; font-weight: 700; font-size: .95rem; }
.team-card .cap small { display: block; font-weight: 600; color: #bcd2e8; font-size: .78rem; margin-top: 2px; }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
