:root {
  --nuit: #100446;
  --nuit-2: #1a0d5c;
  --nuit-3: #241673;
  --ambre: #f5a623;
  --ambre-2: #ffbe55;
  --creme: #f7f4ee;
  --encre: #1e1e24;
  --gris: #5b5967;
  --clair: #cfcbe6;
  --trait: #e4ded2;
  --titres: "Bricolage Grotesque", system-ui, sans-serif;
  --texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texte); font-size: 1.0625rem; line-height: 1.6; color: var(--encre); background: var(--creme); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--titres); line-height: 1.05; margin: 0; letter-spacing: -.025em; color: var(--nuit); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; max-width: 16ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 6px; }

.cadre { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ambre); color: var(--nuit); padding: .6rem 1rem; border-radius: 8px; }
.evitement:focus { top: 1rem; }

/* En-tête */
.entete { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s var(--ease), box-shadow .35s; }
.entete--defile { background: rgba(16, 4, 70, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.entete__ligne { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.marque { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; }
.marque img { height: 34px; width: auto; }
.marque span { font-family: var(--titres); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.entete nav { margin-left: auto; display: none; }
.menu { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.menu a { display: block; padding: .55rem .85rem; border-radius: 999px; color: var(--clair); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.entete .bouton--petit { margin-left: auto; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.bouton {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 50px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton--ambre { background: var(--ambre); color: var(--nuit); }
.bouton--ambre:hover { background: var(--ambre-2); }
.bouton--fantome { border-color: rgba(255, 255, 255, .35); color: #fff; }
.bouton--fantome:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.bouton--petit { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.icone { width: 1.2em; height: 1.2em; }

/* Héros */
.heros { position: relative; background: var(--nuit); color: #fff; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 7rem 0 0; }
.heros::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.heros__grille { position: relative; display: grid; gap: 3rem; align-items: center; flex: 1; }
.heros h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.ligne > span { display: block; animation: monte 1s var(--ease) both; }
.ligne:nth-child(2) > span { animation-delay: .12s; }
.ligne:nth-child(3) > span { animation-delay: .24s; }
.heros__chapo { margin-top: 1.75rem; max-width: 34em; font-size: 1.15rem; color: var(--clair); animation: apparait 1s .5s var(--ease) both; }
.heros .actions { animation: apparait 1s .65s var(--ease) both; }
.heros__visuel { position: relative; display: none; justify-self: center; width: min(290px, 100%); }
.heros__logo { position: relative; z-index: 1; display: block; width: 100%; height: auto; animation: devoile 1.4s .3s var(--ease) backwards; }
.heros__visuel { animation: flotte 7s 2s ease-in-out infinite; }
.halo { position: absolute; left: 50%; top: 55%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.42) 0%, rgba(245,166,35,.12) 35%, transparent 65%); filter: blur(10px);
  animation: respire 6s ease-in-out infinite; }

.defile { position: relative; margin-top: 4rem; border-top: 1px solid rgba(255,255,255,.1); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defile__piste { list-style: none; margin: 0; padding: 1.4rem 0; display: flex; width: max-content; animation: defile 38s linear infinite; }
.defile:hover .defile__piste { animation-play-state: paused; }
.defile li { font-family: var(--titres); font-weight: 500; font-size: 1.15rem; color: var(--clair); padding: 0 2rem; white-space: nowrap; display: flex; align-items: center; gap: 2rem; }
.defile li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ambre); margin-left: 2rem; }

/* Offres */
.offres { padding: 6.5rem 0; }
.onglets { margin-top: 3rem; display: grid; gap: 2rem; }
.onglets__liste { display: grid; gap: .5rem; }
[role="tab"] {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .2rem; padding: 1.2rem 1.4rem; border-radius: 18px;
  border: 1px solid var(--trait); background: #fff; transition: background .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
[role="tab"]:hover { border-color: var(--nuit); }
[role="tab"]:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; }
[role="tab"][aria-selected="true"] { background: var(--nuit); border-color: var(--nuit); }
.onglet__titre { font-family: var(--titres); font-weight: 700; font-size: 1.25rem; color: var(--nuit); letter-spacing: -.015em; }
.onglet__resume { color: var(--gris); font-size: .95rem; }
[aria-selected="true"] .onglet__titre { color: #fff; }
[aria-selected="true"] .onglet__resume { color: var(--clair); }
.onglets__panneaux { background: #fff; border-radius: 24px; border: 1px solid var(--trait); padding: 2.2rem; }
.panneau:not([hidden]) { animation: apparait .55s var(--ease) both; }
.panneau__intro { font-size: 1.2rem; color: var(--encre); max-width: 32em; }
.puces { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .1rem; }
.puces li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--trait); font-weight: 500; }
.puces li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ambre); flex: none; }
.panneau__note { margin-top: 1.25rem; color: var(--gris); font-size: .92rem; }

/* Publics */
.publics { padding: 0 0 6.5rem; }
.publics__grille { margin-top: 2.5rem; display: grid; gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: 24px; overflow: hidden; }
.public { background: var(--creme); padding: 2rem 1.75rem; transition: background .3s var(--ease); }
.public:hover { background: #fff; }
.public h3 { font-size: 1.4rem; }
.public p { margin-top: .75rem; color: var(--gris); }

/* Méthode */
.methode { background: #fff; padding: 6.5rem 0; border-top: 1px solid var(--trait); }
.etapes { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2rem; position: relative; counter-reset: etape; }
.etapes li { position: relative; padding-left: 2.25rem; counter-increment: etape; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: .1rem; font-family: var(--titres); font-weight: 700; color: var(--ambre); }
.etape__point { display: none; }
.etapes p { margin-top: .4rem; color: var(--gris); }

/* Final */
.final { background: var(--nuit); color: #fff; padding: 6.5rem 0 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.2), transparent 65%); }
.final__grille { position: relative; display: grid; gap: 3.5rem; }
.final h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; }
.final__texte { margin-top: 1.25rem; color: var(--clair); max-width: 30em; font-size: 1.1rem; }
.equipe__titre { color: var(--clair); font-family: var(--texte); font-weight: 500; font-size: 1rem; letter-spacing: 0; }
.equipe ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.equipe li { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.equipe li > span:last-child { display: grid; color: var(--clair); font-size: .95rem; line-height: 1.35; }
.equipe strong { color: #fff; font-weight: 600; }
.pastille { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--nuit-3); color: var(--ambre); font-weight: 700; font-size: .85rem; }
.pied { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 5rem; padding: 1.75rem 0 2rem; border-top: 1px solid rgba(255,255,255,.1); color: var(--clair); font-size: .9rem; }

/* Animations */
@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes devoile { from { opacity: 0; transform: translateY(40px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes respire { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
@keyframes defile { to { transform: translateX(-50%); } }

/* Grands écrans */
@media (min-width: 720px) {
  .publics__grille { grid-template-columns: repeat(3, 1fr); }
  .etapes { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 2.5rem; }
  .etapes::before, .etapes::after { content: ""; position: absolute; left: 0; top: .45rem; height: 2px; }
  .etapes::before { right: 0; background: var(--trait); }
  .etapes::after { width: 100%; background: var(--ambre); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
  .etapes.vu::after { transform: scaleX(1); }
  .etapes li { padding-left: 0; }
  .etapes li::before { position: static; display: block; margin-bottom: .6rem; }
  .etape__point { display: block; position: absolute; top: -2.5rem; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--trait); transition: border-color .4s, background .4s; }
  .etapes.vu .etape__point { border-color: var(--ambre); background: var(--ambre); }
  .etapes.vu li:nth-child(2) .etape__point { transition-delay: .4s; }
  .etapes.vu li:nth-child(3) .etape__point { transition-delay: .8s; }
  .etapes.vu li:nth-child(4) .etape__point { transition-delay: 1.2s; }
}
@media (min-width: 900px) {
  .entete nav { display: block; }
  .entete .bouton--petit { margin-left: 0; }
  .heros__grille { grid-template-columns: 1.5fr 1fr; }
  .heros__visuel { display: block; }
  .onglets { grid-template-columns: 1fr 1.35fr; align-items: start; }
  .onglets__panneaux { padding: 2.75rem; min-height: 100%; }
  .final__grille { grid-template-columns: 1.2fr 1fr; align-items: end; }
}
@media (max-width: 480px) {
  .entete .bouton--petit { padding: 0 .9rem; font-size: .85rem; }
  .heros { padding-top: 6rem; min-height: auto; }
  .offres, .methode, .final { padding-top: 4.5rem; }
  .offres, .methode { padding-bottom: 4.5rem; }
  .publics { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .etapes::after { transform: scaleX(1); }
}
