:root {
  --bg: #0b0c10;
  --panel: #121318;
  --txt: #e9eef4;
  --muted: #9aa6b2;
  --brand: #4f8cff;
  --brand-2: #8fcbff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);

  /* header mobile */
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* Layout helpers */
.container { width: min(1100px, 92%); margin: 0 auto; }
.flex { display: flex; gap: 16px; }
.between { justify-content: space-between; }
.center-v { align-items: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ========= Header & Nav (desktop par défaut) ========= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,12,16,0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1b1c22;
  padding: 20px 0;
}
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--txt); font-weight: 700; }

.nav { display: flex; gap: 18px; align-items: center; }   /* desktop */
.nav a { color: var(--txt); text-decoration: none; opacity: 0.9; }
.nav a:hover { opacity: 1; }

.burger {
  display: none;                   /* desktop: caché */
  background: transparent;
  border: 0;
  color: var(--txt);
  font-size: 24px;
  line-height: 1;
}

.nav-close { display: none; }      /* desktop: croix cachée */


/* ====== NAV MOBILE : tiroir gauche (override fort) ====== */
@media (max-width: 900px) {
  .site-header .nav { display:none !important; }

  .site-header.is-open .nav {
    display:flex !important;
    flex-direction:column !important;

    position:fixed !important;
    top:0 !important; left:0 !important; right:auto !important; bottom:0 !important;

    width:78% !important; max-width:320px !important; height:100vh !important;
    background:#0f1117 !important; border-right:1px solid #222 !important;
    padding:80px 20px 24px !important; gap:14px !important;
    box-shadow:10px 0 30px rgba(0,0,0,.45) !important;

    transform:translateX(-100%) !important;
    transition:transform .35s ease !important;
    z-index:1001 !important;
  }
  .site-header.is-open .nav { transform:translateX(0) !important; }

  .site-header .nav-close { display:none !important; }
  .site-header.is-open .nav-close {
    display:block !important; position:absolute !important; top:18px; right:16px;
    background:transparent; border:0; color:#fff; font-size:26px; line-height:1;
  }

  .site-header.is-open .nav a {
    display:block !important; width:100% !important; padding:12px 8px !important;
    border-radius:10px !important; color:#e9eef4 !important; font-size:18px !important;
    text-decoration:none !important;
  }
  .site-header.is-open .nav a:hover { background:#2a2c34 !important; }

  .nav-backdrop {
    position:fixed !important; inset:0 !important;
    background:rgba(0,0,0,.55) !important;
    opacity:0; pointer-events:none; transition:opacity .2s ease !important; z-index:1000 !important;
  }
  .site-header.is-open + .nav-backdrop { opacity:1; pointer-events:auto; }

  /* Surtout ne pas masquer le logo/le burger */
  .site-header.is-open .brand,
  .site-header.is-open .burger { opacity:1 !important; pointer-events:auto !important; }

      /* Bloquer le scroll du fond quand ouvert */
  body.no-scroll { overflow: hidden; }
}

/* Hero */
.hero { padding: 72px 0; background: linear-gradient(180deg, rgba(79,140,255,0.08), transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 16px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 55ch; }
.cta { display: flex; gap: 12px; margin-top: 18px; }

/* Sections / backgrounds alternés */
.section { padding: 56px 0; }
.section.alt { background: #0e1016; border-top: 1px solid #191b22; border-bottom: 1px solid #191b22; }
.section h2 { font-size: 28px; margin: 0 0 18px; }

.section-bg-down { background: linear-gradient(to bottom, #1c1e24, #0f1014); }
.section-bg-up   { background: linear-gradient(to top,    #1c1e24, #0f1014); }

/* Couche dégradé animée (fondu) */
section { position: relative; }
section > * { position: relative; z-index: 1; }
.section-bg-up::before,
.section-bg-down::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  opacity: 0; transition: opacity 600ms ease; pointer-events: none;
}
.section-bg-down::before { background: linear-gradient(to bottom, #0d0e13 0%, #0b0c10 100%); }
.section-bg-up::before   { background: linear-gradient(to top,    #0d0e13 0%, #0b0c10 100%); }
.section-bg-up.is-active::before,
.section-bg-down.is-active::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .section-bg-up::before, .section-bg-down::before { transition: none; opacity: 1; }
}

/* Cards / lists */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid #1a1d27; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }

.work { margin: 0; }
.work figcaption { margin-top: 8px; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 12px; background: var(--panel); border: 1px solid #1a1d27; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form input, .form textarea { width: 100%; padding: 12px; background: #0f1117; border: 1px solid #252836; border-radius: 12px; color: var(--txt); }
.form textarea { min-height: 140px; resize: vertical; }
.form label { display: grid; gap: 8px; font-weight: 600; }
.form .consent { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.form .hp { position: absolute; left: -5000px; opacity: 0; }
.form .form-status { min-height: 22px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 14px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-weight: 700; }
.btn-primary { background: var(--brand); color: #0a0b0f; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--txt); border-color: #2a2f3c; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  border-top: none;
  padding: 40px 0;
}
.site-footer a { color: #fff; } /* (fix) supprime la règle #111 */
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--txt); }

/* ===== Pourquoi nous choisir ===== */
.why {
  background: linear-gradient(to top, #0d0e13 0%, #0b0c10 100%);
  border-top: 1px solid #191b22;
  border-bottom: 1px solid #191b22;
}
.why-sub { color: var(--muted); margin: -4px 0 20px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: var(--panel); border: 1px solid #1a1d27; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform 200ms ease; }
.why-card:hover { transform: translateY(-2px); }
.why-card h3 { margin: 8px 0 6px; }
.why-card p { margin: 0; color: var(--muted); }
.why-icon {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
  background: rgba(79,140,255,0.15); border: 1px solid #24324a; color: var(--brand);
}

/* ===== À propos ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 300px; align-items: center; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-text { order: 1; }
  .about-tech { order: 2; }
}
.about-text p { margin-bottom: 16px; color: var(--muted); }
.about-tech h3 { margin-bottom: 12px; }
.tech-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tech-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--txt); }
.tech-list img { width: 24px; height: 24px; }

/* ===== Timeline (style bordure gauche + pastille) ===== */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr; } }
@media (min-width: 701px) { .timeline { grid-template-columns: 1fr 1fr; } }

.timeline-item {
  background: none;
  border-left: 4px solid var(--brand);
  padding: 20px 20px 10px 24px;
  margin-left: 20px;
  position: relative;
  transition: transform .3s ease;
}
.timeline-item:hover { transform: translateY(-4px); }
.timeline-item .dot {
  position: absolute;
  left: -12px; top: 20px;
  width: 24px; height: 24px;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: bold;
}
.timeline-item h3 { margin-top: 0; font-size: 1.2rem; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.5; }

/* ===== Packs (page packs) ===== */
.page-packs main.section { padding-top: 32px; }
.page-packs main.section {
  background-image: url("/assets/img/bg_illustration.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  position: relative;
}
.page-packs main.section::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 0;
}
.page-packs main.section > * { position: relative; z-index: 1; }

.card.pack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  text-align: left;
}

/* Contenu en haut */
.card.pack .pack-content {
  flex-grow: 1;
}

/* Ligne cible */
.pack-target {
  margin-top: auto;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #9aa6b2;
  text-align: center;
  min-height: 40px;   
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prix toujours collé en bas */
.card.pack .price {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.card.pack h2 { text-align: center; margin-bottom: 16px; }
.card.pack ul { padding-left: 18px; margin: 0; list-style: disc; }
.card.pack .price { margin-top: 20px; font-size: 20px; font-weight: 700; color: var(--brand); }

/* CTA blocs */
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 24px; margin-bottom: 24px; }
.cta-services { margin-top: 24px; text-align: center; }
.cta-contact {
  background: linear-gradient(135deg, #1c284d33, #03315822);
  border-top: 1px solid #1a1d27; border-bottom: 1px solid #1a1d27; padding: 32px 0;
}
.cta-contact h2 { margin-bottom: 8px; font-size: 26px; }
.cta-contact p { margin-bottom: 18px; color: var(--muted); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(2px);
  transition: opacity 600ms ease, transform 600ms ease, filter 600ms ease;
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal.slide-left { opacity: 0; transform: translateX(-50px); }
.reveal.slide-left.is-visible { opacity: 1; transform: translateX(0); transition: transform .8s ease, opacity .8s ease; }
.reveal.slide-right { opacity: 0; transform: translateX(80px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.slide-right.is-visible { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; filter: none; }
}

/* ====== RGPD (consentement) ====== */
/* La ligne RGPD occupe toute la largeur du formulaire */
.form .consent {
  grid-column: 1 / -1;        
  margin: 8px 0 12px;
}

/* Case + texte collés et centrés */
.form .consent label,
.form .consent input[type="checkbox"] + label {   
  display: inline-flex;
  align-items: center;
  gap: 10px;                  
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

/* Style de la case à cocher */
.form .consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  vertical-align: middle;
  accent-color: var(--brand); 
}


.form .consent { display: block; }


/* ==== Mobile fixes ==== */
html, body { overflow-x: hidden; }                
input, select, textarea { font-size: 16px; }      
.container-full { width: 100%; }                  
.section-full { min-height: 100dvh; }            
