/* styles.css — COMPLETE */

:root{
  --bg: #ffffff;
  --tint: #f6f7fb;
  --text: #101828;
  --muted: #475467;
  --line: #e6e8ef;

  --primary: #1a56db;
  --primaryHover: #174bbf;

  --radius: 16px;
  --max: 1120px;

  --shadow: 0 10px 28px rgba(16,24,40,.10);
}

/* === HARDEN RESPONSIVE (no horizontal bugs) === */
html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}
*, *::before, *::after{ max-width: 100%; }
img, video, iframe{ max-width: 100%; height: auto; }

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(26,86,219,.06), transparent 60%),
    radial-gradient(700px 450px at -10% 10%, rgba(26,86,219,.04), transparent 55%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
.eei-container{ width:min(var(--max), calc(100% - 40px)); margin-inline:auto; }

/* Typography */
.eei-h2{
  margin:0 0 10px;
  letter-spacing:-.02em;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}
.eei-h3{ margin:0 0 8px; font-size:1.1rem; letter-spacing:-.01em; }
.eei-h4{ margin:0 0 6px; font-size:1rem; letter-spacing:-.01em; }

.eei-text{ margin:0 0 12px; color: var(--muted); }
.eei-text--small{ font-size:.95rem; }

.eei-kicker{
  margin:0 0 10px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
}

/* Prevent layout breaks due to long text/URLs */
.eei-container, .eei-card, .eei-cta, .eei-form, .eei-footer{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* HEADER (better separation) */
.eei-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(16,24,40,.08);
}
.eei-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.eei-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  min-width: 0;
}
.eei-brand__logo{
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-size: .9rem;
  flex: 0 0 auto;
}
.eei-brand__name{
  font-weight: 900;
  letter-spacing: -.01em;
  min-width: 0;
}

.eei-nav{ display:flex; gap: 18px; }
.eei-nav a{ color: var(--muted); font-weight: 700; font-size: .95rem; }
.eei-nav a:hover{ color: var(--text); }

.eei-header__actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Buttons */
.eei-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.eei-btn:hover{ transform: translateY(-1px); }

.eei-btn--primary{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.eei-btn--primary:hover{ background: var(--primaryHover); border-color: var(--primaryHover); }

.eei-btn--secondary{
  background: #fff;
  color: var(--text);
}
.eei-btn--full{ width:100%; }

/* ===== Burger (center the whole icon) ===== */
.eei-burger{
  width: 44px;
  height: 44px;
  display:none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:#fff;
  cursor:pointer;
  padding: 0;

  /* ✅ centre le groupe complet */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eei-burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* espace naturel entre les barres (inchangé visuellement) */
.eei-burger span + span{
  margin-top: 4px;
}

/* HERO */
.eei-hero{ padding: 64px 0 40px; }
.eei-hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
.eei-hero__title{
  margin:0 0 12px;
  letter-spacing:-.03em;
  line-height:1.05;
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
}
.eei-hero__lead{
  margin:0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}
.eei-hero__cta{ display:flex; gap:12px; margin-top: 18px; flex-wrap:wrap; }

.eei-hero__highlights{
  margin-top: 22px;
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.eei-highlight{
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 180px;
}
.eei-highlight__value{ display:block; font-weight: 900; color: var(--text); }
.eei-highlight__label{ color: var(--muted); font-weight: 700; font-size: .95rem; }

.eei-hero__image{
  width: 100%;
  height: min(520px, 56vh);
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Better viewport handling on mobile browsers */
@supports (height: 100dvh) {
  .eei-hero__image,
  .eei-image{
    height: min(520px, 56dvh);
  }
}

/* SECTIONS */
.eei-section{ padding: 76px 0; }

/* Full width tint background (full-bleed robust) */
.eei-section--tint{
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eei-section--tint::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--tint);
  z-index:-1;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.eei-section__header{
  max-width: 820px;
  margin-bottom: 26px;
}
.eei-subtitle{ margin:0; color: var(--muted); }

/* Cards */
.eei-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.eei-card{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
}
.eei-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.eei-list li{ margin: 8px 0; }
.eei-list--check{
  list-style: none;
  padding-left: 0;
}
.eei-list--check li{
  padding-left: 28px;
  position: relative;
}
.eei-list--check li::before{
  content: "✓";
  position:absolute;
  left:0;
  top:0;
  color: var(--primary);
  font-weight: 900;
}

/* Split */
.eei-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}
.eei-split--reverse .eei-split__media{ order: 2; }
.eei-split--reverse .eei-split__content{ order: 1; }

.eei-image{
  width: 100%;
  height: min(520px, 56vh);
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Pillars */
.eei-pillars{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.eei-pillar{
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 14px;
  padding: 14px;
}

.eei-note{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

/* Bullets grid */
.eei-bullets{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.eei-bullet{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

/* CTA */
.eei-cta{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
}
.eei-cta__content{ max-width: 820px; }
.eei-cta__chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.eei-chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint);
  font-weight: 800;
  color: var(--muted);
}
.eei-cta__button{ flex: 0 0 auto; }

/* Contact */
.eei-contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:start;
}
.eei-form{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
}
.eei-field{ display:block; margin-bottom: 12px; }
.eei-field span{ display:block; font-weight: 900; margin-bottom: 6px; }
input, select, textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: rgba(26,86,219,.55);
  box-shadow: 0 0 0 4px rgba(26,86,219,.10);
}
.eei-form__hint{ margin: 10px 0 0; color: var(--muted); font-size: .95rem; }

/* Footer */
.eei-footer{
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 34px 0;
}
.eei-footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 18px;
  flex-wrap:wrap;
}
.eei-footer__title{ font-weight: 900; }
.eei-footer__tagline{ color: var(--muted); margin-top: 6px; }

.eei-footer__cols{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  min-width: min(520px, 100%);
}
.eei-footer__col h4{ margin:0 0 10px; }
.eei-footer__col a, .eei-footer__col span{
  display:block;
  padding: 6px 0;
  color: var(--muted);
  font-weight: 700;
}
.eei-footer__col a:hover{ color: var(--text); }

.eei-footer__bottom{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  color: var(--muted);
  font-weight: 700;
}

/* ===== Mobile Drawer (clean + visible) ===== */
.eei-drawer[hidden]{ display:none; }

.eei-drawer{
  position: fixed;
  inset: 0;
  z-index: 200;
}

.eei-drawer__overlay{
  position:absolute;
  inset:0;
  background: rgba(16,24,40,.70);
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 0;
}

.eei-drawer__panel{
  position:absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(16,24,40,.22);
  border-radius: 18px 0 0 18px;
  display:flex;
  flex-direction: column;
  padding: 16px;
  transform: translateX(102%);
  transition: transform .22s ease;
  z-index: 1;
  overflow: auto;
}

.eei-drawer__panel::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, var(--tint), #fff 42%);
  z-index: 0;
  pointer-events: none;
}
.eei-drawer__panel > *{
  position: relative;
  z-index: 1;
}

.eei-drawer.is-open .eei-drawer__panel{ transform: translateX(0); }
.eei-drawer.is-open .eei-drawer__overlay{ opacity: 1; }

.eei-drawer__top{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  position: relative;
}

.eei-drawer__top::before{
  content: "Menu";
  position: absolute;
  left: 0;
  font-weight: 900;
  color: var(--text);
}

.eei-drawer__close{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint);
  cursor:pointer;
  font-weight: 900;
}

.eei-drawer__nav{
  display:grid;
  gap: 10px;
  padding: 10px 0;
}

.eei-drawer__nav a{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
  color: var(--text);
}
.eei-drawer__nav a:hover{ background: var(--tint); }

.eei-drawer__cta{
  margin-top:auto;
  display:grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 980px){
  .eei-nav{ display:none; }
  .eei-burger{ display:flex; }

  .eei-brand__name{
    display:inline;
    font-size: .92rem;
    max-width: 52vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .eei-header__actions .eei-btn--secondary{ display:none; }

  .eei-container{ width: min(var(--max), calc(100% - 32px)); }
  .eei-hero{ padding: 52px 0 34px; }
  .eei-section{ padding: 64px 0; }

  .eei-hero__grid{ grid-template-columns: 1fr; }
  .eei-cards{ grid-template-columns: 1fr; }
  .eei-split{ grid-template-columns: 1fr; }
  .eei-split--reverse .eei-split__media{ order: 0; }

  .eei-bullets{ grid-template-columns: 1fr; }

  .eei-cta{
    flex-direction: column;
    align-items:flex-start;
  }
  .eei-contact{ grid-template-columns: 1fr; }
  .eei-footer__cols{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .eei-container{ width: min(var(--max), calc(100% - 24px)); }
  .eei-hero__highlights .eei-highlight{ min-width: 0; width: 100%; }
}

/* ================================
   Reveal animations (subtle, once)
================================ */

/* Respect accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-right{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Base reveal */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  will-change: opacity, transform;
}

/* Variants */
.reveal-up{ transform: translateY(16px); }
.reveal-left{ transform: translateX(-16px); }
.reveal-right{ transform: translateX(16px); }

/* Visible state */
.reveal.is-visible{
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* Stagger helpers (used by JS via style --d) */
.reveal[data-stagger]{
  transition-delay: var(--d, 0ms);
}

/* Optional: tiny pop for buttons only (very subtle) */
.eei-btn.reveal{
  transform: translateY(10px);
}
.eei-btn.reveal.is-visible{
  transform: translateY(0);
}

/* =========================
   Accordion smooth open/close
========================= */

.eei-acc__content{
  overflow: hidden; /* important pour l'animation */
}

/* petit feedback visuel sur le summary */
.eei-acc__summary{
  transition: background .15s ease;
}
.eei-acc[open] .eei-acc__summary{
  background: rgba(246,247,251,.65);
}

/* rotation déjà en place sur l’icone, on la garde */
.eei-acc__icon{
  transition: transform .18s ease;
}

/* Contact chips: lower + tighter spacing */
.eei-contact-badges{
  margin-top: 8px;     /* ↓ avant: 14px */
  gap: 8px;            /* un peu plus compact */
}

.eei-contact-badges .eei-chip{
  padding: 7px 10px;   /* un poil moins haut */
  font-size: .92rem;   /* discret */
  line-height: 1.1;
}

/* ===== Burger: hidden on desktop, shown only on mobile ===== */
.eei-burger{
  width: 44px;
  height: 44px;

  display: none;                 /* ✅ Desktop: hidden */

  border-radius: 999px;
  border: 1px solid var(--line);
  background:#fff;
  cursor:pointer;
  padding: 0;

  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eei-burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.eei-burger span + span{ margin-top: 4px; }

/* ✅ Mobile only */
@media (max-width: 980px){
  .eei-nav{ display:none; }
  .eei-burger{ display:flex; }
}

/* Consent checkbox — clean & centered */
.eei-consent{
  display: flex;
  align-items: center;     /* ✅ centre verticalement */
  gap: 10px;

  margin: 12px 0 16px;
  padding: 10px 12px;

  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);

  font-weight: 700;
  color: var(--muted);
}

.eei-consent input{
  width: 18px;
  height: 18px;
  margin: 0;               /* ❌ enlève le margin-top */
  flex-shrink: 0;          /* évite les déformations */
  cursor: pointer;
}

.eei-consent span{
  line-height: 1.3;
}


.eei-form__status{
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.eei-form__status.is-success,
.eei-form__status.is-error{
  display: block;
}

.eei-form__status.is-success{
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.eei-form__status.is-error{
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.eei-hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.eei-btn[disabled]{
  opacity: .75;
  cursor: wait;
  transform: none;
}
