/* JP&Co — verre liquide sur nuit marine.
   Couleurs issues du logo : marine #1E3653 / #1C4475, bleu circuit #004AAD / #0F3D76,
   or #C9A227, framboise #AD1B45. */

@font-face { font-family: "Sora"; src: url("polices/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("polices/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --nuit: #060e1c;
  --nuit-2: #0a1830;
  --marine: #1e3653;
  --marine-2: #1c4475;
  --bleu-profond: #0f3d76;
  --bleu: #004aad;
  --bleu-vif: #3d82ff;
  --bleu-clair: #9cc0ff;
  --or: #c9a227;
  --or-clair: #e9cd6f;
  --framboise: #ad1b45;
  --framboise-vive: #ff6b94;

  --texte: #eef3fb;
  --texte-2: rgb(226 234 248 / .8);
  --texte-3: rgb(226 234 248 / .74);
  --filet: rgb(255 255 255 / .1);

  --police-titre: "Sora", "Avenir Next", system-ui, sans-serif;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ressort: cubic-bezier(.34, 1.45, .5, 1);
  --doux: cubic-bezier(.22, .8, .26, 1);

  --barre-l: 17.5rem;
  --barre-marge: 1rem;
  --gouttiere: clamp(1rem, 3.5vw, 3.5rem);
  --rayon: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--nuit);
  color: var(--texte);
  font: 400 1.0625rem/1.65 var(--police);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--police-titre); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bleu-clair); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgb(61 130 255 / .45); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement {
  position: fixed; z-index: 100; top: 1rem; left: 50%; translate: -50% -200%;
  padding: .7rem 1.2rem; border-radius: 999px; background: #fff; color: var(--nuit); font-weight: 600; text-decoration: none;
  transition: translate .3s var(--doux);
}
.evitement:focus { translate: -50% 0; }
main:focus { outline: none; }

/* ------------------------------------------------------------------ décor de fond */

.aurore { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 90% at 70% 0%, #0b1d3a 0%, var(--nuit) 60%); }
.aurore__tache { position: absolute; border-radius: 50%; animation: deriver 38s ease-in-out infinite alternate; will-change: transform; }
.aurore__tache--1 { width: 62vmax; height: 62vmax; left: -14vmax; top: -22vmax; background: radial-gradient(closest-side, rgb(0 74 173 / .75), transparent); }
.aurore__tache--2 { width: 44vmax; height: 44vmax; right: -12vmax; top: 18vh; background: radial-gradient(closest-side, rgb(173 27 69 / .42), transparent); animation-duration: 46s; animation-delay: -12s; }
.aurore__tache--3 { width: 40vmax; height: 40vmax; left: 30vw; bottom: -18vmax; background: radial-gradient(closest-side, rgb(201 162 39 / .3), transparent); animation-duration: 52s; animation-delay: -20s; }
.aurore__tache--4 { width: 50vmax; height: 50vmax; left: 8vw; top: 46vh; background: radial-gradient(closest-side, rgb(28 68 117 / .7), transparent); animation-duration: 42s; animation-delay: -6s; }
.aurore__circuits { position: absolute; inset: 0; color: rgb(156 192 255 / .07); -webkit-mask-image: radial-gradient(90% 80% at 60% 30%, #000 20%, transparent 85%); mask-image: radial-gradient(90% 80% at 60% 30%, #000 20%, transparent 85%); }
@keyframes deriver {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.96); }
}

/* ------------------------------------------------------------------ verre liquide */

.verre {
  position: relative;
  isolation: isolate;
  border-radius: var(--rayon);
  /* Teinte sombre sous le reflet : garde le texte lisible quel que soit le décor traversé. */
  background:
    linear-gradient(160deg, rgb(255 255 255 / .13), rgb(255 255 255 / .035) 42%, rgb(255 255 255 / .07)),
    rgb(6 16 36 / var(--teinte, .3));
  -webkit-backdrop-filter: blur(16px) saturate(175%);
  backdrop-filter: blur(16px) saturate(175%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .42),
    inset 0 -1px 0 rgb(255 255 255 / .1),
    inset 0 0 24px rgb(255 255 255 / .045),
    0 1px 2px rgb(0 0 0 / .25),
    0 26px 60px -28px rgb(0 4 20 / .85);
}
/* Liseré spéculaire : plus vif en haut à gauche, comme une arête de verre poli. */
.verre::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(var(--angle, 140deg), rgb(255 255 255 / .62), rgb(255 255 255 / .1) 28%, rgb(255 255 255 / 0) 52%, rgb(255 255 255 / .08) 74%, rgb(255 255 255 / .34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* Reflet : suit le pointeur sur les surfaces [data-reflet]. */
.verre::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 22%) var(--my, -10%), rgb(255 255 255 / var(--reflet, .1)), transparent 46%);
  pointer-events: none;
  transition: --reflet .4s;
}
[data-reflet]:hover { --reflet: .2; }

/* Réfraction réelle sur Chromium (classe posée par le script). */
.refraction .verre--lentille {
  -webkit-backdrop-filter: url(#refraction) blur(9px) saturate(185%) brightness(1.05);
  backdrop-filter: url(#refraction) blur(9px) saturate(185%) brightness(1.05);
}

@property --reflet { syntax: "<number>"; inherits: true; initial-value: .1; }

/* ------------------------------------------------------------------ boutons */

.bouton {
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 3.25rem; padding: .4rem .45rem .4rem 1.4rem;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em; text-decoration: none;
  cursor: pointer;
  transition: transform .5s var(--ressort), box-shadow .3s, background-color .3s;
}
.bouton:active { transform: scale(.955); transition-duration: .12s; }
.bouton--plein {
  color: #fff;
  background: linear-gradient(180deg, #4a8bff 0%, #1a5fd6 48%, var(--bleu) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -2px 6px rgb(0 20 70 / .35), 0 14px 34px -10px rgb(0 74 173 / .9);
}
.bouton--plein:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -2px 6px rgb(0 20 70 / .35), 0 20px 44px -12px rgb(61 130 255 / .95); }
.bouton__icone {
  display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 50%;
  background: rgb(255 255 255 / .18); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45);
  transition: transform .5s var(--ressort);
}
.bouton__icone svg, .barre__action-icone svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bouton:hover .bouton__icone { transform: translateX(3px) rotate(-8deg); }
.bouton--verre { --rayon: 999px; padding-right: 1.4rem; color: var(--texte); }
.bouton--verre:hover { transform: translateY(-2px); --reflet: .22; }

/* ------------------------------------------------------------------ barre latérale */

.barre {
  position: fixed; z-index: 40;
  top: var(--barre-marge); bottom: var(--barre-marge); left: var(--barre-marge);
  width: var(--barre-l);
  transition: width .6s var(--ressort);
}
.barre__coque { --rayon: 30px; --teinte: .5; display: flex; flex-direction: column; height: 100%; padding: .85rem; }
.barre__tete { display: flex; align-items: center; gap: .5rem; min-height: 3.2rem; padding: 0 .2rem .2rem .35rem; }
.barre__marque { display: flex; flex: 1; align-items: center; gap: .65rem; min-width: 0; border-radius: 14px; text-decoration: none; }
.barre__logo { flex: none; width: 2.4rem; height: auto; filter: drop-shadow(0 4px 12px rgb(61 130 255 / .45)); }
.barre__nom { font: 600 1.28rem/1 var(--police-titre); letter-spacing: -.02em; white-space: nowrap; transition: opacity .3s; }
.esperluette { color: var(--or-clair); font-weight: 500; padding-inline: .04em; }
.barre__replier {
  display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(255 255 255 / .07); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 0 0 1px rgb(255 255 255 / .06);
  transition: transform .6s var(--ressort), background-color .3s;
}
.barre__replier:hover { background: rgb(255 255 255 / .14); }
.barre__replier svg, .barre__deplier, .barre__icone, .barre__profil-menu svg, .barre__avatar svg {
  width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.barre__menu { display: none; }

.barre__panneau { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.barre__profil { position: relative; margin: .6rem 0 .4rem; padding: .45rem 0; border-block: 1px solid var(--filet); }
.barre__profil-bouton {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .45rem; border: 0; border-radius: 16px;
  background: none; text-align: left; cursor: pointer; transition: background-color .25s;
}
.barre__profil-bouton:hover, .barre__profil-bouton[aria-expanded="true"] { background: rgb(255 255 255 / .07); }
.barre__avatar {
  display: grid; place-items: center; flex: none; width: 2.35rem; height: 2.35rem; border-radius: 12px;
  background: linear-gradient(150deg, rgb(61 130 255 / .55), rgb(15 61 118 / .7)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35);
}
.barre__identite { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.barre__identite strong { font-size: .94rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre__identite span { font-size: .76rem; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre__deplier { flex: none; color: var(--texte-3); transition: transform .45s var(--ressort); }
.barre__profil-bouton[aria-expanded="true"] .barre__deplier { transform: rotate(180deg); }
.barre__profil-menu { padding: .35rem .15rem .15rem; }
.barre__profil-menu:not([hidden]) { animation: deplier .45s var(--ressort); }
.barre__profil-titre { padding: .2rem .6rem .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.barre__profil-menu a {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 12px;
  font-size: .9rem; color: var(--texte-2); text-decoration: none; transition: background-color .2s, color .2s;
}
.barre__profil-menu a:hover { background: rgb(255 255 255 / .07); color: var(--texte); }
.barre__profil-menu a[aria-current] { color: var(--texte); }
.barre__profil-menu a span { flex: 1; }
.barre__coche { color: var(--or-clair); }
@keyframes deplier { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.barre__rubrique { padding: .7rem .75rem .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.barre__nav { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.barre__liste { position: relative; z-index: 1; display: grid; gap: .15rem; }
.barre__filet { display: block; height: 1px; margin: .6rem .75rem; background: var(--filet); }
.barre__lien {
  position: relative; display: flex; align-items: center; gap: .8rem;
  min-height: 2.85rem; padding: 0 .85rem; border-radius: 15px;
  color: var(--texte-2); font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: color .25s;
}
.barre__lien:hover { color: var(--texte); }
.barre__lien[aria-current="true"] { color: #fff; }
.barre__lien[aria-current="true"] .barre__icone { color: var(--bleu-clair); }
.barre__icone { flex: none; transition: transform .5s var(--ressort); }
.barre__lien:hover .barre__icone { transform: scale(1.12); }
.barre__texte { white-space: nowrap; transition: opacity .3s; }
/* Pastille liquide : glisse sous le lien actif avec un léger rebond. */
.barre__pastille {
  position: absolute; z-index: 0; left: 0; right: 0; top: 0;
  height: 2.85rem; border-radius: 15px;
  background: linear-gradient(160deg, rgb(255 255 255 / .18), rgb(255 255 255 / .06));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), inset 0 0 0 1px rgb(255 255 255 / .07), 0 8px 22px -10px rgb(61 130 255 / .8);
  opacity: 0;
  transform: translateY(var(--y, 0));
  transition: transform .65s var(--ressort), opacity .3s, height .4s var(--ressort);
}
.barre__pastille.est-active { opacity: 1; }

.barre__pied { padding-top: .75rem; border-top: 1px solid var(--filet); }
.barre__action {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  min-height: 3.1rem; padding: .35rem .35rem .35rem 1.05rem; border-radius: 999px;
  color: #fff; font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #4a8bff, var(--bleu));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 12px 28px -12px rgb(61 130 255 / .9);
  transition: transform .5s var(--ressort);
}
.barre__action:hover { transform: translateY(-1px); }
.barre__action:active { transform: scale(.96); }
.barre__action-texte { overflow: hidden; text-overflow: ellipsis; }
.barre__action-icone { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgb(255 255 255 / .2); }

/* Repliée (bureau) */
@media (min-width: 961px) {
  .barre.est-repliee { width: 5.6rem; }
  .est-repliee .barre__nom, .est-repliee .barre__texte, .est-repliee .barre__identite, .est-repliee .barre__deplier,
  .est-repliee .barre__rubrique, .est-repliee .barre__action-texte { opacity: 0; pointer-events: none; }
  .est-repliee .barre__tete { flex-direction: column; gap: .7rem; padding-inline: 0; }
  .est-repliee .barre__marque { flex: none; justify-content: center; width: 2.6rem; }
  .est-repliee .barre__nom { position: absolute; }
  .est-repliee .barre__nav { overflow: visible; }
  .est-repliee .barre__replier { transform: rotate(180deg); }
  .est-repliee .barre__profil-menu { position: absolute; left: calc(100% + 1rem); top: 0; width: 14rem; padding: .5rem; border-radius: 20px; background: rgb(12 26 50 / .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 20px 50px -20px #000; }
  .est-repliee .barre__action { justify-content: center; padding: .35rem; }
  .est-repliee .barre__texte, .est-repliee .barre__identite, .est-repliee .barre__action-texte { position: absolute; }
  /* Bulles au survol */
  .est-repliee [data-bulle]:hover::after, .est-repliee [data-bulle]:focus-visible::after {
    content: attr(data-bulle);
    position: absolute; left: calc(100% + .9rem); top: 50%; translate: 0 -50%;
    padding: .4rem .75rem; border-radius: 10px; white-space: nowrap;
    background: rgb(12 26 50 / .94); color: var(--texte); font-size: .82rem; font-weight: 500;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 30px -10px #000;
    pointer-events: none; animation: deplier .3s var(--ressort);
  }
  .est-repliee .barre__profil-bouton, .est-repliee .barre__action { position: relative; }
  .est-repliee ~ main, .est-repliee ~ .pied { --barre-actuelle: 5.6rem; }
}
.barre__voile { display: none; }

/* ------------------------------------------------------------------ mise en page */

main, .pied {
  --barre-actuelle: var(--barre-l);
  margin-left: calc(var(--barre-actuelle) + var(--barre-marge));
  padding-inline: var(--gouttiere);
  transition: margin-left .6s var(--ressort);
}
main { max-width: calc(78rem + var(--barre-actuelle) + var(--barre-marge)); }
.pied { max-width: calc(78rem + var(--barre-actuelle) + var(--barre-marge)); }

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section__entete { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.surtitre {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bleu-clair);
}
.surtitre::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--framboise-vive); box-shadow: 0 0 14px var(--framboise-vive); }
.section__titre { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--bleu-clair) 0%, #fff 48%, var(--or-clair) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__chapo { margin-top: 1.25rem; max-width: 38rem; font-size: 1.12rem; color: var(--texte-2); }

/* ------------------------------------------------------------------ héros */

.heros {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: center; gap: clamp(2rem, 4vw, 4rem);
  min-height: 100svh; padding-block: 6rem 4rem;
}
.heros__titre { font-size: clamp(2.5rem, 4.6vw, 4.7rem); letter-spacing: -.045em; line-height: 1.02; }
.heros__chapo { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1.06rem, 1.3vw, 1.22rem); color: var(--texte-2); }
.heros__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2.4rem; }
.heros__entree { animation: entree 1s var(--doux) both; }
.heros__entree:nth-child(2) { animation-delay: .08s; }
.heros__entree:nth-child(3) { animation-delay: .16s; }
.heros__entree:nth-child(4) { animation-delay: .24s; }
@keyframes entree { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }

.heros__visuel { position: relative; display: grid; place-items: center; aspect-ratio: 1; animation: entree 1.3s .2s var(--doux) both; }
.lentille {
  --rayon: 50%;
  display: grid; place-items: center; width: 74%; aspect-ratio: 1;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1.2s var(--doux);
  box-shadow:
    inset 0 2px 1px rgb(255 255 255 / .5),
    inset 0 -10px 30px rgb(61 130 255 / .16),
    inset 0 0 60px rgb(255 255 255 / .06),
    0 40px 90px -30px rgb(0 10 40 / .95);
}
.lentille img { width: 50%; filter: drop-shadow(0 10px 30px rgb(61 130 255 / .55)); }
.lentille__anneau {
  position: absolute; inset: -7%; border-radius: 50%; z-index: -2;
  background: conic-gradient(from 0deg, transparent 0 20%, rgb(201 162 39 / .65) 30%, transparent 40% 62%, rgb(61 130 255 / .7) 74%, transparent 84%);
  -webkit-mask: radial-gradient(closest-side, transparent 96.5%, #000 97.5%, #000 99%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 96.5%, #000 97.5%, #000 99%, transparent 100%);
  animation: tourner 24s linear infinite;
}
@keyframes tourner { to { rotate: 1turn; } }

.orbite { position: absolute; inset: 0; }
.puce {
  --rayon: 999px;
  position: absolute; display: flex; align-items: center; gap: .55rem;
  padding: .6rem 1rem .6rem .7rem; font-size: .86rem; font-weight: 500; white-space: nowrap;
  animation: flotter 7s ease-in-out infinite alternate;
}
.puce svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--bleu-clair); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.puce:nth-child(1) { top: 6%; left: 4%; }
.puce:nth-child(2) { top: 16%; right: -2%; animation-delay: -2s; }
.puce:nth-child(3) { top: 52%; right: -6%; animation-delay: -4s; }
.puce:nth-child(4) { bottom: 6%; right: 18%; animation-delay: -1s; }
.puce:nth-child(5) { bottom: 22%; left: -4%; animation-delay: -5s; }
.puce:nth-child(2) svg, .puce:nth-child(4) svg { stroke: var(--or-clair); }
@keyframes flotter { to { transform: translateY(-12px); } }

/* ------------------------------------------------------------------ bandeau */

.bandeau { --rayon: 999px; overflow: hidden; padding-block: 1.05rem; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bandeau__piste { display: flex; width: max-content; animation: defiler 48s linear infinite; }
.bandeau__groupe { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; }
.bandeau__groupe span { font: 500 1.05rem/1 var(--police-titre); letter-spacing: -.01em; color: var(--texte-2); white-space: nowrap; }
.bandeau__point { width: .38rem; height: .38rem; border-radius: 50%; background: var(--or); box-shadow: 0 0 10px var(--or); }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
@keyframes defiler { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ expertises */

.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.carte { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 2.4vw, 2.1rem); transition: transform .6s var(--ressort); }
.carte:hover { transform: translateY(-5px); }
.carte:first-child { grid-column: span 2; }
.carte:first-child h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.carte__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.carte__icone {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 16px;
  background: linear-gradient(150deg, rgb(61 130 255 / .5), rgb(0 74 173 / .25));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 10px 24px -10px rgb(61 130 255 / .8);
}
.carte:nth-child(2) .carte__icone, .carte:nth-child(4) .carte__icone { background: linear-gradient(150deg, rgb(240 210 110 / .75), rgb(201 162 39 / .35)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 10px 24px -10px rgb(201 162 39 / .7); }
.carte:nth-child(3) .carte__icone { background: linear-gradient(150deg, rgb(255 107 148 / .45), rgb(173 27 69 / .22)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 10px 24px -10px rgb(173 27 69 / .8); }
.carte__icone svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.carte__numero { font: 500 .8rem/1 var(--police-titre); letter-spacing: .1em; color: var(--texte-3); }
.carte h3 { font-size: 1.4rem; }
.carte p { color: var(--texte-2); }
.carte__points { display: grid; gap: .55rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--filet); font-size: .94rem; }
.carte:first-child .carte__points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carte__points li { display: flex; gap: .55rem; align-items: flex-start; color: var(--texte); }
.carte__points svg { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .2rem; fill: none; stroke: var(--or-clair); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ méthode */

.etapes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: etape; }
/* Piste lumineuse : un courant parcourt le circuit entre les étapes. */
.etapes::before {
  content: ""; position: absolute; top: 1.85rem; left: 1.85rem; right: 1.85rem; height: 2px;
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / .9), transparent) -30% 0 / 30% 100% no-repeat,
    linear-gradient(90deg, var(--bleu-vif), var(--or) 55%, var(--framboise-vive));
  opacity: .55; border-radius: 2px;
  animation: courant 4.5s var(--doux) infinite;
}
@keyframes courant { to { background-position: 130% 0, 0 0; } }
.etape { position: relative; display: grid; gap: .8rem; align-content: start; }
.etape__noeud {
  --rayon: 50%;
  display: grid; place-items: center; width: 3.7rem; height: 3.7rem; margin-bottom: .6rem;
  font: 600 1.2rem/1 var(--police-titre);
}
.etape h3 { font-size: 1.35rem; }
.etape p { color: var(--texte-2); font-size: .98rem; }

/* ------------------------------------------------------------------ studio */

.studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.studio__texte > p { margin-bottom: 1.1rem; max-width: 38rem; font-size: 1.1rem; color: var(--texte-2); }
.studio__texte .section__entete { margin-bottom: 2rem; }
.valeurs { display: grid; gap: .9rem; margin-top: 2.2rem; }
.valeurs li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--filet); }
.valeurs strong { font: 600 1.02rem/1.4 var(--police-titre); color: var(--or-clair); }
.valeurs span { color: var(--texte-2); }
.fiche { --rayon: 36px; padding: clamp(1.8rem, 3vw, 2.6rem); }
.fiche img { width: 9.5rem; margin: 0 auto 1.6rem; }
.fiche__titre { margin-bottom: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--texte-3); }
.fiche dl { margin: 0; display: grid; }
.fiche dl div { display: grid; gap: .15rem; padding: .85rem 0; border-top: 1px solid var(--filet); }
.fiche dt { font-size: .8rem; color: var(--texte-3); }
.fiche dd { margin: 0; font-weight: 500; }

/* ------------------------------------------------------------------ FAQ */

.questions { display: grid; gap: .8rem; max-width: 56rem; }
.question { --rayon: 22px; }
.question summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; list-style: none; cursor: pointer;
  font: 500 1.1rem/1.35 var(--police-titre); letter-spacing: -.01em;
}
.question summary::-webkit-details-marker { display: none; }
.question__signe { position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: rgb(255 255 255 / .08); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); transition: transform .5s var(--ressort), background-color .3s; }
.question__signe::before, .question__signe::after { content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: 1.6px; border-radius: 2px; background: currentColor; translate: -50% -50%; transition: rotate .5s var(--ressort); }
.question__signe::after { rotate: 90deg; }
.question[open] .question__signe { transform: rotate(180deg); background: rgb(61 130 255 / .35); }
.question[open] .question__signe::after { rotate: 0deg; }
.question p { padding: 0 1.4rem 1.35rem; max-width: 46rem; color: var(--texte-2); }
.question[open] p { animation: deplier .5s var(--doux); }

/* ------------------------------------------------------------------ contact */

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.coordonnees { display: grid; gap: .7rem; }
.coordonnee { --rayon: 20px; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; text-decoration: none; overflow-wrap: anywhere; }
a.coordonnee { transition: transform .5s var(--ressort); }
a.coordonnee:hover { transform: translateX(4px); --reflet: .2; }
.coordonnee > svg { flex: none; width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--bleu-clair); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.coordonnee small { display: block; font-size: .74rem; color: var(--texte-3); }
.formulaire { --rayon: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.4rem); }
.champ { display: grid; gap: .45rem; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: .84rem; font-weight: 500; color: var(--texte-2); }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: .85rem 1rem; border: 0; border-radius: 16px;
  background: rgb(2 8 22 / .38);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(255 255 255 / .08), 0 1px 0 rgb(255 255 255 / .08);
  transition: box-shadow .25s, background-color .25s;
}
.champ textarea { resize: vertical; min-height: 8rem; }
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texte-3) 50%), linear-gradient(135deg, var(--texte-3) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - 1rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat; }
.champ select option { background: var(--nuit-2); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; background-color: rgb(2 8 22 / .55); box-shadow: inset 0 1px 3px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(156 192 255 / .55), 0 0 0 4px rgb(61 130 255 / .2); }
.champ [aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--framboise-vive), 0 0 0 4px rgb(255 107 148 / .18); }
.formulaire__pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.formulaire__note { flex: 1 1 14rem; font-size: .84rem; color: var(--texte-3); }
.formulaire__etat { grid-column: 1 / -1; min-height: 1.4em; margin: 0; font-weight: 500; color: var(--bleu-clair); }
.formulaire__etat.est-erreur { color: var(--framboise-vive); }
.formulaire [hidden] { display: none; }
.choix-groupe { margin: 0; padding: 0; border: 0; }
.choix-groupe legend { margin-bottom: .45rem; padding: 0; font-size: .84rem; font-weight: 500; color: var(--texte-2); }
.choix-liste { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choix span { display: block; padding: .6rem 1.1rem; border-radius: 999px; background: rgb(2 8 22 / .38); color: var(--texte-2); font-size: .92rem; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); transition: background-color .25s, color .25s, box-shadow .25s; }
.choix input:checked + span { background: rgb(61 130 255 / .32); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 0 0 1px rgb(156 192 255 / .55); }
.choix input:focus-visible + span { box-shadow: inset 0 0 0 1px rgb(156 192 255 / .7), 0 0 0 4px rgb(61 130 255 / .25); }

/* ------------------------------------------------------------------ pied */

.pied { padding-bottom: var(--barre-marge); }
.pied__coque { --rayon: 36px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding: clamp(1.8rem, 3.5vw, 3rem); }
.pied__marque img { width: 9rem; margin-bottom: 1rem; }
.pied__marque p { max-width: 22rem; font-size: .95rem; color: var(--texte-2); }
.pied__titre { margin-bottom: .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--texte-3); }
.pied__colonne ul { display: grid; gap: .5rem; }
.pied__colonne a { color: var(--texte-2); text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.pied__colonne a:hover { color: #fff; }
.pied__bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--filet); font-size: .8rem; color: var(--texte-3); }

/* ------------------------------------------------------------------ pages de texte & 404 */

.page-texte main { padding-block: 5rem 4rem; }
.texte { --rayon: 36px; max-width: 52rem; padding: clamp(1.8rem, 4vw, 3.5rem); }
.texte h1 { font-size: clamp(2rem, 4vw, 3rem); }
.texte__intro { margin-top: 1rem; font-size: 1.1rem; color: var(--texte-2); }
.texte section { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--filet); }
.texte h2 { margin-bottom: .7rem; font-size: 1.25rem; }
.texte section p { color: var(--texte-2); }
.texte section p + p { margin-top: .6rem; }
.texte a { color: var(--bleu-clair); }
.texte__maj { margin-top: 2.4rem; font-size: .84rem; color: var(--texte-3); }
.erreur { --rayon: 40px; display: grid; justify-items: start; gap: 1.1rem; max-width: 40rem; padding: clamp(2rem, 5vw, 4rem); }
.erreur__code { font: 700 clamp(5rem, 14vw, 9rem)/.9 var(--police-titre); letter-spacing: -.06em; background: linear-gradient(120deg, var(--bleu-clair), #fff 50%, var(--or-clair)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.erreur h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.erreur p { color: var(--texte-2); }

/* ------------------------------------------------------------------ apparitions */

.js .revele { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--doux), transform 1s var(--doux); }
.js .revele.est-visible { opacity: 1; transform: none; }
.js .cartes .revele:nth-child(2), .js .etapes .revele:nth-child(2) { transition-delay: .08s; }
.js .cartes .revele:nth-child(3), .js .etapes .revele:nth-child(3) { transition-delay: .16s; }
.js .cartes .revele:nth-child(4), .js .etapes .revele:nth-child(4) { transition-delay: .24s; }
.js .cartes .revele:nth-child(5) { transition-delay: .32s; }

/* ------------------------------------------------------------------ tablette */

@media (max-width: 1180px) {
  .heros { grid-template-columns: 1fr; min-height: auto; padding-top: 5rem; }
  .heros__visuel { width: min(34rem, 100%); justify-self: center; }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte:first-child .carte__points { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .etapes::before { display: none; }
  .studio, .contact { grid-template-columns: 1fr; }
  .fiche { max-width: 30rem; }
}

/* ------------------------------------------------------------------ mobile : barre flottante en haut */

@media (max-width: 960px) {
  :root { --barre-marge: .75rem; }
  html { scroll-padding-top: 6rem; }
  .barre { top: var(--barre-marge); right: var(--barre-marge); bottom: auto; width: auto; }
  .barre__coque { --rayon: 26px; height: auto; max-height: calc(100dvh - 2 * var(--barre-marge)); padding: .5rem .5rem .5rem .8rem; }
  .barre__tete { min-height: 2.9rem; padding: 0; }
  .barre__replier { display: none; }
  .barre__menu {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 0; border-radius: 50%; cursor: pointer;
    background: rgb(255 255 255 / .08); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25);
  }
  .barre__traits, .barre__traits::before, .barre__traits::after { display: block; width: 1.15rem; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ressort), opacity .2s; }
  .barre__traits { position: relative; }
  .barre__traits::before, .barre__traits::after { content: ""; position: absolute; left: 0; }
  .barre__traits::before { top: -6px; }
  .barre__traits::after { top: 6px; }
  .barre__menu[aria-expanded="true"] .barre__traits { background: transparent; }
  .barre__menu[aria-expanded="true"] .barre__traits::before { transform: translateY(6px) rotate(45deg); }
  .barre__menu[aria-expanded="true"] .barre__traits::after { transform: translateY(-6px) rotate(-45deg); }
  /* Le panneau se déploie dans la même goutte de verre. */
  .barre__panneau { display: none; flex: 0 1 auto; min-height: 0; padding: .3rem .3rem .4rem 0; overflow-y: auto; overscroll-behavior: contain; }
  .barre.est-ouverte .barre__panneau { display: flex; animation: deplier .5s var(--ressort); }
  .barre__nav { flex: none; overflow: visible; }
  .barre__voile { display: block; position: fixed; inset: 0; z-index: 30; background: rgb(3 8 18 / .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .barre__voile[hidden] { display: none; }

  main, .pied { margin-left: 0; }
  main { padding-top: 4.5rem; }
  .heros { padding-top: 3rem; }
  .page-texte main { padding-top: 6rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cartes { grid-template-columns: 1fr; }
  .carte:first-child { grid-column: auto; }
  .etapes { grid-template-columns: 1fr; }
  .valeurs li { grid-template-columns: 1fr; gap: .2rem; }
  .formulaire { grid-template-columns: 1fr; }
  .pied__coque { grid-template-columns: 1fr; }
  .puce { font-size: .76rem; padding: .45rem .75rem .45rem .55rem; }
  .puce svg { width: 1rem; height: 1rem; }
  .puce:nth-child(2) { right: 0; }
  .puce:nth-child(3) { right: -2%; }
  .puce:nth-child(5) { left: 0; }
  .heros__actions .bouton { width: 100%; justify-content: space-between; }
  .bouton--verre { justify-content: center; }
}

/* ------------------------------------------------------------------ préférences */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bandeau__piste { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .verre, .refraction .verre--lentille { -webkit-backdrop-filter: none; backdrop-filter: none; background: #102544; }
  .aurore__tache { opacity: .4; }
}
@media (forced-colors: active) {
  .verre { border: 1px solid CanvasText; }
  h1 em, h2 em, .erreur__code { color: CanvasText; background: none; }
}
