/* =========================================================
   XPANZEE — Feuille de style principale
   Site statique (reconstruction propre, facile à éditer)
   ---------------------------------------------------------
   Couleurs et tailles modifiables ci-dessous (variables CSS)
   ========================================================= */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --gray: #5c5c5c;
  --light-gray: #f6f5fb;       /* fond clair légèrement teinté violet */
  --line: #e6e6e6;
  --white: #ffffff;

  /* ===== Palette de marque Xpanzee ===== */
  --green: #1fb89a;            /* vert "Sales" */
  --green-dark: #149c82;
  --purple: #6c4fe0;           /* violet "Tech" */
  --purple-deep: #4b33c9;      /* violet profond (badge Xpanzee) */
  --purple-light: #e3ddfa;     /* violet clair (bordures de cartes) */
  --blue: #3e9bf1;             /* bleu "International" */

  --accent: var(--purple-deep);   /* accent principal */
  --max-width: 1140px;
  --radius: 14px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset léger ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Conteneur ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--gray { background: var(--light-gray); }
.section--dark { background: var(--black); color: var(--white); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--gray); max-width: 720px; }
.muted { color: var(--gray); }
.center { text-align: center; }
strong { font-weight: 800; color: var(--ink); }
.section--dark strong { color: var(--white); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--purple-deep);
  color: var(--white);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid var(--purple-deep);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--white); color: var(--purple-deep); }
.btn--ghost { background: transparent; color: var(--purple-deep); }
.btn--ghost:hover { background: var(--purple-deep); color: var(--white); }
.section--dark .btn { background: var(--white); color: var(--purple-deep); border-color: var(--white); }
.section--dark .btn:hover { background: transparent; color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--purple), var(--blue)) 1;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav__logo img { height: 58px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__links a { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.nav__links a:hover { opacity: 0.6; }
.nav__lang { display: flex; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.nav__lang a { color: var(--gray); }
.nav__lang a.active { color: var(--purple-deep); text-decoration: underline; }
.nav__cta { margin-left: 6px; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__img { border-radius: var(--radius); overflow: hidden; }
.hero p { margin-top: 18px; }
.hero .btn { margin-top: 28px; }
.hero__note { margin-top: 16px; font-size: 0.95rem; color: var(--gray); }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1.5px solid var(--purple-light);
  border-radius: var(--radius);
  padding: 32px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); }
.card .emoji { font-size: 2rem; display: block; margin-bottom: 14px; }

/* ---------- Pilier / feature row ---------- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 40px; }
.feature .emoji { font-size: 1.8rem; }
.feature h3 { margin: 10px 0 6px; }
.feature p { color: var(--gray); }

/* ---------- Plans (Takeoff) ---------- */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 44px; }
.plan {
  border: 1.5px solid var(--purple-light);
  border-radius: var(--radius);
  padding: 42px 38px;
  display: flex; flex-direction: column;
  background: var(--white);
}
.plan__level { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 800; color: var(--purple-deep); }
.plan__emoji { font-size: 2.4rem; margin: 16px 0 8px; }
.plan__title { font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; }
.plan h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray); margin: 16px 0 6px; }
.plan p { color: var(--ink); font-size: 0.97rem; }
.plan .outcome { background: #effbf7; border-left: 3px solid var(--green); border-radius: 10px; padding: 12px 14px; margin: auto 0 0; font-size: 0.95rem; }
.plan .btn { margin-top: 14px; text-align: center; }

/* ---------- Plan central mis en avant ---------- */
.plan--featured { border: 2px solid var(--purple-deep); box-shadow: 0 12px 36px rgba(75,51,201,0.12); }
.plan--featured .plan__level { color: var(--green); }

/* ---------- Formulaires ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.field textarea { min-height: 120px; resize: vertical; }
.form-consent { font-size: 0.85rem; color: var(--gray); margin: 8px 0 18px; }
.form-consent a { text-decoration: underline; color: var(--purple-deep); }

/* ---------- Calendly ---------- */
.calendly-inline-widget { min-width: 320px; height: 700px; }

/* ---------- Liste contenu (offres / audit) ---------- */
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.checklist li { padding-left: 30px; position: relative; color: var(--ink); }
.checklist li::before { content: "→"; position: absolute; left: 0; font-weight: 800; color: var(--green); }

/* ---------- Pages légales (texte long) ---------- */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { text-decoration: underline; color: var(--purple-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 64px 0 36px; }
.site-footer h3 { color: var(--white); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: #d8d8d8; font-size: 0.95rem; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid #2a2a2a; margin-top: 40px; padding-top: 22px; font-size: 0.85rem; color: #9a9a9a; }

/* ---------- Section CTA ---------- */
.cta-band { text-align: center; }
.cta-band p { max-width: 640px; margin: 16px auto 0; }
.cta-band .btn { margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .features, .plans { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    gap: 18px; padding: 22px 24px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
}

/* =========================================================
   ANIMATIONS / DYNAMISME
   ========================================================= */

/* Apparition au défilement (scroll reveal) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Décalage progressif des éléments d'une même grille */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Survol des cartes : léger soulèvement */
.card, .plan { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover, .plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(75,51,201,0.14);
  border-color: var(--purple);
}

/* Header compact au défilement */
.site-header { transition: box-shadow 0.25s ease, background 0.25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.nav { transition: height 0.25s ease; }
.site-header.scrolled .nav { height: 72px; }
.site-header.scrolled .nav__logo img { height: 46px; transition: height 0.25s ease; }

/* Zoom doux sur les images au survol */
.hero__img { overflow: hidden; }
.hero__img img { transition: transform 0.5s ease; }
.hero__img:hover img { transform: scale(1.03); }

/* Respecte les préférences d'accessibilité (réduction des animations) */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .plan:hover, .hero__img:hover img { transform: none; }
}

/* =========================================================
   MARQUE SUR LA CARTE DU MONDE (bas de page d'accueil)
   ========================================================= */
.map-brand { position: relative; }
.map-brand__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 16px;
}
.brandmark__x {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--purple-deep); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.7rem; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(75,51,201,0.25);
}
.map-brand__overlay h3 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--purple-deep); margin: 0; }
.map-brand__overlay p { color: var(--ink); font-weight: 600; margin: 6px 0 0; }

/* =========================================================
   MISE EN PAGE DESKTOP (≥ 901px)
   - image hero plus grande
   - carte du monde plus grande
   - langues FR|EN + bouton audit poussés à l'extrême droite
   ========================================================= */
@media (min-width: 901px) {
  .nav__links { flex: 1; }
  .nav__links > li:first-child { margin-left: auto; }
  .nav__cta { margin-left: auto; order: 2; }
  .nav__lang { order: 3; margin-left: 18px; }

  .hero .hero__grid { grid-template-columns: 0.85fr 1.15fr; }
  #contact .contact-grid { grid-template-columns: 1.2fr 0.8fr; }

  /* Alignement des rangées entre les 3 cartes d'offres */
  .plan__title { min-height: 2.5em; }
  .plan > p:nth-of-type(1) { min-height: 4.8em; }
  .plan > p:nth-of-type(2) { min-height: 8em; }
}
