/* ==========================================================================
   SPRINT GROUP — portail du groupe
   Palette : bleu foncé, jaune, blanc. Typo : Manrope (déjà chargée).
   Ce fichier ne touche pas à la feuille de Sprint Colis (style.css) : le
   portail a sa propre identité, plus sombre et plus corporate.
   ========================================================================== */

:root {
  --g-navy: #0a1f44;
  --g-navy-2: #12305f;
  --g-navy-soft: #e8eefb;
  --g-yellow: #ffd21e;
  --g-yellow-ink: #1a1500;
  --g-bg: #ffffff;
  --g-surface: #f5f7fc;
  --g-ink: #0a1f44;
  --g-muted: #4a5a75;
  --g-rule: #dde4f0;
  /* États : succès (places libres, paiement confirmé) et alerte. Déclinés en
     mode sombre pour rester lisibles sur les surfaces foncées. */
  --g-ok: #166534;
  --g-ok-ink: #14532d;
  --g-ok-soft: #f0fdf4;
  --g-danger: #b00020;
  --g-disabled-bg: #dde4f0;
  --g-disabled-ink: #4a5a75;
  --g-shadow: 0 1px 2px rgb(10 31 68 / 0.06), 0 18px 40px -18px rgb(10 31 68 / 0.28);
  --g-radius: 16px;
  --g-wrap: 1200px;
  --g-gutter: clamp(20px, 5vw, 72px);
  --g-section: clamp(56px, 8vw, 104px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --g-navy: #0b1526;
    --g-navy-2: #16233c;
    --g-navy-soft: #16233c;
    --g-bg: #080e1a;
    --g-surface: #0e1728;
    --g-ink: #eef3fb;
    --g-muted: #a7b6cd;
    --g-rule: #22304a;
    --g-ok: #7ef0a6;
    --g-ok-ink: #d6ffe4;
    --g-ok-soft: #0f2a1c;
    --g-danger: #ff9aa6;
    --g-disabled-bg: #22304a;
    --g-disabled-ink: #a7b6cd;
    --g-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 20px 44px -20px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }

body.g-body {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

.g-wrap {
  width: 100%;
  max-width: var(--g-wrap);
  margin-inline: auto;
  padding-inline: var(--g-gutter);
}

.g-body h1, .g-body h2, .g-body h3 {
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.g-body h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.g-body h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
.g-body h3 { font-size: clamp(1.08rem, 1.7vw, 1.28rem); letter-spacing: -0.012em; }
.g-body p { margin: 0 0 1em; }
.g-body p:last-child { margin-bottom: 0; }
.g-body a { color: var(--g-navy-2); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .g-body a { color: #9dc0ff; } }

.g-body :focus-visible {
  outline: 3px solid var(--g-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.g-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--g-yellow); color: var(--g-yellow-ink);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.g-skip:focus { left: 0; }

/* ---------- En-tête ---------- */
.g-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--g-navy);
  color: #fff;
  border-bottom: 3px solid var(--g-yellow);
}
.g-head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.g-brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: #fff;
  min-height: 44px;
}
.g-brand-mark {
  width: 58px; height: 58px; border-radius: 12px;
  display: block; object-fit: contain;
  background: #00122c;
  flex: 0 0 auto;
}
.g-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.g-brand-text strong { font-size: 1.32rem; font-weight: 800; letter-spacing: 0.02em; color: #fff; }
.g-brand-text small { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #b9c8e4; }
@media (max-width: 520px) {
  .g-brand-mark { width: 48px; height: 48px; border-radius: 10px; }
  .g-brand-text strong { font-size: 1.16rem; }
  .g-brand-text small { font-size: 0.64rem; letter-spacing: 0.12em; }
}

.g-nav { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 20px); font-size: 0.94rem; font-weight: 600; }
.g-nav a {
  color: #e7eefb; text-decoration: none;
  padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.g-nav a:hover { color: var(--g-yellow); border-bottom-color: var(--g-yellow); }
.g-nav a[aria-current="page"] { color: var(--g-yellow); border-bottom-color: var(--g-yellow); }
/* Le bouton « Calculer un prix » garde son texte sombre sur le jaune, en mode
   clair comme en mode sombre : sans cette règle, la couleur de lien du menu
   (bleu foncé) s'appliquait sur le fond bleu nuit de l'en-tête. */
.g-nav a.g-nav-cta,
.g-nav a.g-nav-cta:visited {
  background: var(--g-yellow); color: var(--g-yellow-ink);
  padding: 10px 18px; border-radius: 999px; border-bottom: 0;
  transition: transform .18s ease, filter .18s ease;
}
.g-nav a.g-nav-cta:hover { color: var(--g-yellow-ink); filter: brightness(1.06); transform: translateY(-1px); }
/* Comptes du groupe : liens discrets, encadrés pour se distinguer des
   activités. Le texte reste clair sur le bleu nuit de l'en-tête. */
.g-nav a.g-nav-account,
.g-nav a.g-nav-account:visited {
  color: #e7eefb;
  border: 1px solid rgb(255 255 255 / 0.32);
  border-radius: 999px;
  padding: 8px 14px;
}
.g-nav a.g-nav-account:hover { color: var(--g-yellow); border-color: var(--g-yellow); }

.g-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 10px; cursor: pointer; color: #fff;
}
.g-toggle-bars,
.g-toggle-bars::before,
.g-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.g-toggle-bars::before, .g-toggle-bars::after { content: ''; position: absolute; left: 0; }
.g-toggle-bars::before { top: -6px; }
.g-toggle-bars::after { top: 6px; }
.g-toggle[aria-expanded="true"] .g-toggle-bars { background: transparent; }
.g-toggle[aria-expanded="true"] .g-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.g-toggle[aria-expanded="true"] .g-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .g-toggle { display: inline-flex; }
  .g-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--g-navy); border-bottom: 3px solid var(--g-yellow);
    padding: 8px var(--g-gutter) 20px;
    box-shadow: var(--g-shadow);
    display: none;
  }
  .g-nav[data-open="true"] { display: flex; }
  .g-nav a { padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / 0.14); font-size: 1.02rem; }
  .g-nav a.g-nav-account { border: 1px solid rgb(255 255 255 / 0.32); border-radius: 10px; padding: 12px 14px; margin-top: 10px; justify-content: center; }
  .g-nav a.g-nav-cta { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* ---------- Boutons ---------- */
.g-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 13px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, filter .16s ease, background-color .16s ease, border-color .16s ease;
}
.g-btn-primary { background: var(--g-yellow); color: var(--g-yellow-ink); }
.g-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.g-btn-navy { background: var(--g-navy); color: #fff; }
.g-btn-navy:hover { filter: brightness(1.15); transform: translateY(-1px); }
.g-btn-ghost { background: transparent; color: var(--g-ink); border-color: var(--g-rule); }
.g-btn-ghost:hover { border-color: var(--g-navy); color: var(--g-navy); }
@media (prefers-color-scheme: dark) {
  .g-btn-ghost:hover { border-color: var(--g-yellow); color: var(--g-yellow); }
}
.g-btn-light { background: #fff; color: #0a1f44; }
.g-btn-light:hover { filter: brightness(0.96); transform: translateY(-1px); }

/* Les boutons gardent leur propre couleur de texte, y compris en mode sombre
   où le lien global serait trop clair sur le jaune ou sur le blanc. */
.g-body a.g-btn-primary,
.g-body a.g-btn-primary:hover { color: var(--g-yellow-ink); }
.g-body a.g-btn-navy,
.g-body a.g-btn-navy:hover { color: #fff; }
/* Bouton inactif (activité sans adresse) : il n'est pas un lien, il garde donc
   le texte gris sur fond clair défini plus haut. */
.g-body span.g-btn-navy[aria-disabled="true"] { color: var(--g-muted); }
.g-body a.g-btn-light,
.g-body a.g-btn-light:hover { color: #0a1f44; }
.g-btn-wide { width: 100%; }

/* ---------- Héros du portail ---------- */
.g-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 0%, rgb(255 210 30 / 0.16) 0, transparent 55%),
    linear-gradient(160deg, var(--g-navy) 0%, var(--g-navy-2) 100%);
  color: #fff;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.g-hero::after {
  content: '';
  position: absolute; inset: auto -10% -40% 55%;
  height: 70%;
  background: radial-gradient(circle, rgb(255 210 30 / 0.18) 0, transparent 65%);
  pointer-events: none;
}
.g-hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}
@media (max-width: 900px) { .g-hero-grid { grid-template-columns: 1fr; } }

.g-eyebrow {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--g-yellow); margin-bottom: 14px;
}
.g-hero h1 { color: #fff; margin-bottom: 18px; }
.g-hero .g-lede { color: #cfdcf2; font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 56ch; }
.g-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.g-hero-facts {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 0.92rem; color: #cfdcf2;
}
.g-hero-facts li { display: flex; align-items: baseline; gap: 7px; }
.g-hero-facts strong { color: #fff; font-size: 1.02rem; }

.g-hero-figure { margin: 0; }
.g-hero-figure img {
  width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
  border: 1px solid rgb(255 255 255 / 0.14);
}
.g-hero-figure figcaption {
  margin-top: 12px; font-size: 0.84rem; color: #b9c8e4;
}

/* ---------- Sections ---------- */
.g-section { padding-block: var(--g-section); }
.g-section-alt {
  padding-block: var(--g-section);
  background: var(--g-surface);
  border-block: 1px solid var(--g-rule);
}
.g-section-head { max-width: 64ch; margin-bottom: clamp(30px, 4vw, 48px); }
.g-section-head .g-eyebrow { color: var(--g-navy-2); }
@media (prefers-color-scheme: dark) { .g-section-head .g-eyebrow { color: var(--g-yellow); } }
.g-intro { color: var(--g-muted); font-size: 1.03rem; }

/* ---------- Cartes d'activités ---------- */
.g-activities {
  display: grid; gap: clamp(18px, 2.4vw, 26px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px) { .g-activities { grid-template-columns: 1fr; } }

.g-activity {
  display: flex; flex-direction: column;
  background: var(--g-bg);
  border: 1px solid var(--g-rule);
  border-radius: var(--g-radius);
  overflow: hidden;
  box-shadow: var(--g-shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.g-activity:hover { transform: translateY(-3px); border-color: var(--g-navy-2); }
.g-activity-media { position: relative; }
.g-activity-media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
}
.g-activity-tag {
  position: absolute; left: 14px; top: 14px;
  background: var(--g-yellow); color: var(--g-yellow-ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.g-activity-tag[data-state="soon"] {
  background: rgb(255 255 255 / 0.92); color: var(--g-navy);
}
.g-activity-body {
  padding: clamp(18px, 2.4vw, 26px);
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.g-activity-body h3 { margin: 0; }
.g-activity-body p { color: var(--g-muted); font-size: 0.97rem; margin: 0; }
.g-activity-list {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: grid; gap: 6px; font-size: 0.92rem; color: var(--g-muted);
}
.g-activity-list li { padding-left: 20px; position: relative; }
.g-activity-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--g-yellow);
}
.g-activity-actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
/* Bouton d'une activité dont l'adresse n'est pas encore renseignée : il reste
   visible mais inactif, et une note dit pourquoi. */
.g-activity-actions .g-btn[aria-disabled="true"] {
  background: var(--g-surface);
  color: var(--g-muted);
  border: 1px dashed var(--g-rule);
  cursor: not-allowed;
}
.g-activity-note {
  margin: 10px 0 0; font-size: 0.84rem; color: var(--g-muted);
  border-left: 3px solid var(--g-yellow); padding-left: 10px;
}

/* ---------- Bandeau chiffres ---------- */
.g-facts {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  list-style: none; padding: 0; margin: 0;
}
.g-facts li {
  padding: 18px 20px;
  border: 1px solid var(--g-rule);
  border-radius: 12px;
  background: var(--g-bg);
}
.g-facts strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.g-facts span { font-size: 0.92rem; color: var(--g-muted); }

/* ---------- Étapes ---------- */
.g-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: clamp(18px, 2.4vw, 26px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) { .g-steps { grid-template-columns: 1fr; } }
.g-steps li { border-top: 3px solid var(--g-yellow); padding-top: 16px; }
.g-step-num {
  display: block; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.14em; color: var(--g-navy-2); margin-bottom: 8px;
}
@media (prefers-color-scheme: dark) { .g-step-num { color: var(--g-yellow); } }
.g-steps p { color: var(--g-muted); font-size: 0.96rem; }

/* ---------- Page d'activité ---------- */
.g-page-hero {
  background: linear-gradient(160deg, var(--g-navy) 0%, var(--g-navy-2) 100%);
  color: #fff;
  padding-block: clamp(44px, 6vw, 80px);
  border-bottom: 3px solid var(--g-yellow);
}
.g-page-hero h1 { color: #fff; }
.g-page-hero .g-lede { color: #cfdcf2; max-width: 60ch; }
.g-page-hero .g-eyebrow { color: var(--g-yellow); }
.g-page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.g-split {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: start;
}
@media (max-width: 900px) { .g-split { grid-template-columns: 1fr; } }
.g-split p { color: var(--g-muted); max-width: 60ch; }

.g-cards {
  display: grid; gap: clamp(16px, 2.2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.g-card {
  border: 1px solid var(--g-rule);
  border-radius: var(--g-radius);
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--g-bg);
}
.g-card h3 { margin-bottom: 6px; }
.g-card p { color: var(--g-muted); font-size: 0.96rem; }
.g-card-spec {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--g-navy-2); margin-bottom: 10px;
}
@media (prefers-color-scheme: dark) { .g-card-spec { color: var(--g-yellow); } }

.g-notice {
  border-left: 4px solid var(--g-yellow);
  background: var(--g-surface);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin-top: clamp(24px, 3vw, 36px);
}
.g-notice h3 { font-size: 1rem; margin-bottom: 6px; }
.g-notice p { color: var(--g-muted); font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.g-faq { border-top: 1px solid var(--g-rule); }
.g-faq details { border-bottom: 1px solid var(--g-rule); }
.g-faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.02rem; min-height: 44px;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.g-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.g-faq details p { color: var(--g-muted); font-size: 0.97rem; padding: 0 0 22px; max-width: 72ch; }

/* ---------- Appel final ---------- */
.g-cta {
  background: linear-gradient(160deg, var(--g-navy) 0%, var(--g-navy-2) 100%);
  color: #fff;
  padding-block: clamp(44px, 6vw, 76px);
}
.g-cta h2 { color: #fff; }
.g-cta p { color: #cfdcf2; max-width: 60ch; }
.g-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Pied de page ---------- */
.g-foot {
  background: var(--g-navy);
  color: #cfdcf2;
  padding-block: clamp(36px, 5vw, 56px) 24px;
  border-top: 3px solid var(--g-yellow);
}
.g-foot-inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: flex-start;
}
.g-foot-brand { max-width: 42ch; }
.g-foot-brand .g-brand { margin-bottom: 10px; }
.g-foot-brand p { font-size: 0.92rem; color: #b9c8e4; }
.g-foot-nav {
  display: grid; gap: 6px 26px;
  grid-template-columns: repeat(2, minmax(120px, auto));
  font-size: 0.92rem; font-weight: 600;
}
.g-foot-nav a {
  color: #e7eefb; text-decoration: none;
  min-height: 40px; display: inline-flex; align-items: center;
}
.g-foot-nav a:hover { color: var(--g-yellow); text-decoration: underline; }
.g-foot-legal {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  font-size: 0.82rem; color: #b9c8e4;
}
.g-foot-legal p { margin: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .g-hero-copy > * { animation: g-rise .6s cubic-bezier(.2,.7,.3,1) both; }
  .g-hero-copy > *:nth-child(1) { animation-delay: .04s; }
  .g-hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .g-hero-copy > *:nth-child(3) { animation-delay: .2s; }
  .g-hero-copy > *:nth-child(4) { animation-delay: .28s; }
  .g-hero-copy > *:nth-child(5) { animation-delay: .36s; }
  .g-hero-figure { animation: g-rise .7s cubic-bezier(.2,.7,.3,1) .18s both; }
  @keyframes g-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-body *, .g-body *::before, .g-body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
