/* ==========================================================================
   ARJEKA — Feuille de styles (version 2)
   Thème clair, dégradés bleu → turquoise, photos, effets et animations.
   Une seule famille typographique (Archivo, variable) : étendue pour les titres,
   normale pour le texte, étroite pour les données.

   Sommaire
    1. Polices            8. Cycle de vie          15. Offres d'emploi
    2. Variables          9. Bandeau défilant      16. Formulaires
    3. Base              10. Sections et cartes    17. Candidature
    4. Effets communs    11. Schémas (lien hiérarchique, plateforme, carte)
    5. En-tête           12. Bandeau final         18. Pied de page
    6. Boutons           13. Pages intérieures     19. Divers, accessibilité
    7. Accueil (hero)    14. Questions fréquentes
   ========================================================================== */

/* 1. Polices (auto-hébergées : aucun appel à un service tiers) ------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Variables -------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --mist: #f3f7fd;            /* fond des sections alternées */
  --ink: #0f1b33;             /* texte principal */
  --slate: #4a5873;           /* texte secondaire */
  --line: #dbe3f0;            /* filets et bordures */

  --brand: #577ab4;           /* bleu du logo */
  --blue: #0c4da2;            /* bleu profond : liens, boutons */
  --blue-deep: #093b7d;
  --sky: #2f7bea;             /* bleu lumineux */
  --teal: #12b5a6;            /* turquoise */
  --amber: #f2a900;           /* jaune de balisage : étape active, lien hiérarchique */
  --violet: #7a5cfa;          /* uniquement dans les halos de fond */
  --danger: #b3261e;
  --ok: #17694a;

  --grad: linear-gradient(115deg, #0c4da2 0%, #2f7bea 48%, #12b5a6 100%);
  --grad-soft: linear-gradient(135deg, #e8f0fd 0%, #e3f6f4 100%);

  --shadow-sm: 0 1px 2px rgba(15, 27, 51, 0.05), 0 6px 16px -6px rgba(15, 27, 51, 0.10);
  --shadow-md: 0 2px 4px rgba(15, 27, 51, 0.04), 0 18px 40px -18px rgba(12, 77, 162, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(12, 77, 162, 0.45);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 116%;
  --narrow: 84%;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(68px, 9vw, 120px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
}

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-stretch: var(--wide); font-weight: 680; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.022em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; font-stretch: 100%; letter-spacing: 0; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(47, 123, 234, 0.22); }

.wrap { position: relative; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(840px + 2 * var(--gutter)); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.icon { flex: none; width: 1.3em; height: 1.3em; vertical-align: -0.28em; }

.link { font-weight: 620; }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.link--arrow .icon { transition: transform 0.25s var(--ease); }
.link--arrow:hover .icon { transform: translateX(5px); }

.lead { font-size: 1.15rem; line-height: 1.55; color: var(--slate); }

/* 4. Effets communs --------------------------------------------------------- */

/* Texte en dégradé animé */
.grad { background: linear-gradient(100deg, #0c4da2, #2f7bea 35%, #12b5a6 65%, #0c4da2); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: glisse 9s linear infinite; }
@keyframes glisse { to { background-position: -220% 0; } }

/* Halos colorés flous qui dérivent lentement en arrière-plan */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(87, 122, 180, 0.42) 1.1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; animation: derive 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -8%; top: -30%; background: radial-gradient(circle, #9cc3ff, rgba(156, 195, 255, 0)); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; max-width: 540px; max-height: 540px; right: -6%; top: -12%; background: radial-gradient(circle, #8fe9df, rgba(143, 233, 223, 0)); animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: 38%; bottom: -34%; background: radial-gradient(circle, #cdbdff, rgba(205, 189, 255, 0)); opacity: 0.4; animation-duration: 26s; animation-delay: -11s; }
@keyframes derive { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6%, 9%, 0) scale(1.14); } }

/* Apparition au défilement (uniquement si JavaScript est actif) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Pastille d'icône */
.glyph { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--grad-soft); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(12, 77, 162, 0.10); transition: transform 0.35s var(--ease), background 0.35s, color 0.35s; }
.glyph .icon { width: 26px; height: 26px; }
.glyph--sm { width: 38px; height: 38px; border-radius: 12px; }
.glyph--sm .icon { width: 20px; height: 20px; }
.glyph--teal { background: linear-gradient(135deg, #dff7f4, #e9f6ff); color: #0b8f84; }
.glyph--glass { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* 5. En-tête ---------------------------------------------------------------- */
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: var(--grad); transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow 0.3s, border-color 0.3s, background-color 0.3s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.9); border-bottom-color: var(--line); box-shadow: 0 10px 30px -18px rgba(15, 27, 51, 0.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; transition: min-height 0.3s var(--ease); }
.site-header.is-scrolled .site-header__inner { min-height: 64px; }

.site-logo { flex: none; display: block; transition: transform 0.3s var(--ease); }
.site-logo:hover { transform: scale(1.04); }
.site-logo img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav__list { display: flex; align-items: center; gap: 6px; }
.site-nav__list a { position: relative; display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); font-size: 0.965rem; font-weight: 540; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.site-nav__list a:hover { background: rgba(47, 123, 234, 0.10); color: var(--blue); }
.site-nav__list a[aria-current="page"] { background: var(--grad-soft); color: var(--blue); font-weight: 650; }

.nav-toggle { display: none; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; transition: background 0.15s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease); }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1300px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 26px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -28px rgba(15, 27, 51, 0.35); max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav.is-open { display: flex; animation: descend 0.3s var(--ease); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav__list a { padding: 14px 16px; font-size: 1.1rem; border-radius: var(--r-sm); }
  .site-nav__cta { margin-top: 16px; }
  @keyframes descend { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
}

/* 6. Boutons ---------------------------------------------------------------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 640; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--lg { padding: 15px 28px; font-size: 1.0625rem; }

.btn--primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 24px -10px rgba(12, 77, 162, 0.65); }
.btn--primary:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(12, 77, 162, 0.7); }
/* Reflet qui traverse le bouton au survol */
.btn--primary::after, .btn--light::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.6s var(--ease); }
.btn--primary:hover::after, .btn--light:hover::after { left: 120%; }

.btn--ghost { border-color: rgba(15, 27, 51, 0.22); color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--light { background: #fff; color: var(--blue-deep); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.35); }
.btn--light::after { background: linear-gradient(100deg, transparent, rgba(47, 123, 234, 0.22), transparent); }
.btn--light:hover { color: var(--blue-deep); transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; transform: translateY(-2px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

/* 7. Accueil : hero --------------------------------------------------------- */
.hero { position: relative; padding: clamp(32px, 4vw, 60px) 0 clamp(64px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }

.hero__badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 8px 18px 8px 14px; border: 1px solid rgba(12, 77, 162, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--blue); font-size: 0.925rem; font-weight: 620; box-shadow: var(--shadow-sm); }
.hero__badge img { height: 22px; width: auto; }
.hero__title { font-size: clamp(2.3rem, 4.5vw, 3.75rem); font-weight: 720; font-stretch: 119%; line-height: 1.02; letter-spacing: -0.035em; }
.hero__lead { max-width: 56ch; margin-top: 26px; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--slate); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Montage de photos avec légère profondeur au mouvement de la souris */
.hero__visual { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 560px; margin-left: auto; --px: 0; --py: 0; }
.hero__photo { position: absolute; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 5px solid #fff; translate: calc(var(--px) * var(--d, 10) * 1px) calc(var(--py) * var(--d, 10) * 1px); transition: translate 0.5s var(--ease); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--a { --d: 8; right: 0; top: 6%; width: 66%; height: 78%; }
.hero__photo--b { --d: 18; left: 0; top: 0; width: 52%; height: 36%; }
.hero__photo--c { --d: 26; left: 6%; bottom: 0; width: 38%; height: 46%; }

.hero__chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 18px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5); box-shadow: var(--shadow-md); font-size: 0.925rem; line-height: 1.3; color: var(--slate); translate: calc(var(--px) * var(--d, 30) * 1px) calc(var(--py) * var(--d, 30) * 1px); transition: translate 0.5s var(--ease); }
.hero__chip b { display: block; color: var(--ink); font-size: 1.05rem; font-stretch: 108%; }
.hero__chip--a { --d: 38; right: -3%; top: 0; }
.hero__chip--b { --d: 48; right: 4%; bottom: 3%; }

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: monte 0.8s var(--ease) both; }
  .hero__text > :nth-child(1) { animation-delay: 0.05s; }
  .hero__text > :nth-child(2) { animation-delay: 0.15s; }
  .hero__text > :nth-child(3) { animation-delay: 0.3s; }
  .hero__text > :nth-child(4) { animation-delay: 0.42s; }
  @keyframes monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

  .hero__photo, .hero__chip { animation: surgit 0.9s var(--ease) both, flotte 7s ease-in-out infinite alternate; }
  .hero__photo--a { animation-delay: 0.25s, 1.2s; }
  .hero__photo--b { animation-delay: 0.45s, 1.6s; animation-duration: 0.9s, 8.5s; }
  .hero__photo--c { animation-delay: 0.6s, 2s; animation-duration: 0.9s, 6.5s; }
  .hero__chip--a { animation-delay: 0.85s, 2.2s; animation-duration: 0.9s, 6s; }
  .hero__chip--b { animation-delay: 1s, 2.6s; animation-duration: 0.9s, 7.5s; }
  @keyframes surgit { from { opacity: 0; scale: 0.86; } to { opacity: 1; scale: 1; } }
  @keyframes flotte { from { transform: translateY(0); } to { transform: translateY(-12px); } }
}

/* Chiffres clés */
.stats { position: relative; z-index: 2; margin-top: clamp(-70px, -5vw, -36px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats__item { padding: 24px 26px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-md); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.7s var(--ease) !important; }
.stats__item:hover { transform: translateY(-6px) !important; box-shadow: var(--shadow-lg); }
.stats__item b { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); font-stretch: 118%; font-weight: 720; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stats__item span { display: block; margin-top: 10px; color: var(--slate); font-size: 0.975rem; line-height: 1.4; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: 8px auto 0; }
  .hero__chip--a { right: 0; }
  .stats { margin-top: -30px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero__chip { padding: 9px 13px 9px 9px; font-size: 0.82rem; }
  .hero__chip b { font-size: 0.95rem; }
  .stats__item { padding: 18px; }
}

/* 8. Cycle de vie ----------------------------------------------------------- */
.cycle__grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }

.cycle__stop { grid-row: 1; position: relative; display: block; padding: 0 14px 26px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
/* Segment de ligne vers l'étape suivante. */
.cycle__stop::after { content: ""; position: absolute; left: 56px; right: 0; top: 27px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #9fc0ee); transform-origin: left; }
.cycle__stop:last-of-type::after { display: none; }
.cycle__stop:last-of-type { padding-right: 0; }

.cycle__node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid #b9cdea; border-radius: 50%; background: var(--paper); color: var(--brand); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.cycle__node .icon { width: 24px; height: 24px; }
.cycle__stop:hover .cycle__node { transform: translateY(-4px) scale(1.06); border-color: var(--sky); color: var(--blue); box-shadow: var(--shadow-md); }
.cycle__stop[aria-expanded="true"] .cycle__node { background: var(--grad); border-color: transparent; color: #fff; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(242, 169, 0, 0.28), 0 14px 30px -10px rgba(12, 77, 162, 0.7); }
/* Onde autour de l'étape active */
.cycle__stop[aria-expanded="true"] .cycle__node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--amber); animation: onde 2.2s ease-out infinite; }
@keyframes onde { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.55); } }

.cycle__num { display: block; margin-top: 16px; font-stretch: var(--narrow); font-size: 0.875rem; font-weight: 600; color: var(--brand); }
.cycle__label { display: block; margin-top: 2px; font-size: 1.04rem; font-weight: 640; line-height: 1.25; transition: color 0.2s; }
.cycle__stop:hover .cycle__label, .cycle__stop[aria-expanded="true"] .cycle__label { color: var(--blue); }

/* Point lumineux qui parcourt la ligne en continu */
.cycle__grid::before { content: ""; position: absolute; z-index: 2; left: 0; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--sky), 0 0 18px 6px rgba(47, 123, 234, 0.55); opacity: 0; pointer-events: none; }

.cycle__panel { grid-row: 2; grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 28px 48px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, rgba(12, 77, 162, 0.5), rgba(18, 181, 166, 0.5)) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow-lg); }
.cycle__panel h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin-bottom: 12px; }
.cycle__panel-main p { max-width: 58ch; color: var(--slate); }
.cycle__panel-caption { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 640; color: var(--slate); }
.cycle__panel .ticks li { padding-bottom: 7px; font-size: 0.985rem; line-height: 1.45; }
.cycle__panel .tags { flex-direction: column; align-items: flex-start; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border: 1px solid rgba(12, 77, 162, 0.14); border-radius: 999px; background: var(--grad-soft); font-stretch: var(--narrow); font-size: 0.95rem; font-weight: 540; line-height: 1.3; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.tags li:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tags--plain li { background: var(--paper); }

.ticks li { position: relative; padding: 0 0 10px 24px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 3px; border-radius: 3px; background: var(--grad); }

.checks { margin: 22px 0 28px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; font-weight: 540; }
.checks .icon { width: 24px; height: 24px; margin-top: 1px; color: var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .cycle.is-in .cycle__grid::before { animation: parcourt 7s linear 1.8s infinite; }
  @keyframes parcourt { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 60px); opacity: 0; } }
  .js .cycle.is-in .cycle__stop::after { animation: trace 0.5s var(--ease) both; }
  .js .cycle.is-in .cycle__stop:nth-of-type(1)::after { animation-delay: 0.2s; }
  .js .cycle.is-in .cycle__stop:nth-of-type(2)::after { animation-delay: 0.4s; }
  .js .cycle.is-in .cycle__stop:nth-of-type(3)::after { animation-delay: 0.6s; }
  .js .cycle.is-in .cycle__stop:nth-of-type(4)::after { animation-delay: 0.8s; }
  .js .cycle.is-in .cycle__stop:nth-of-type(5)::after { animation-delay: 1s; }
  .js .cycle.is-in .cycle__stop:nth-of-type(6)::after { animation-delay: 1.2s; }
  @keyframes trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .cycle__panel:not([hidden]) { animation: ouvre 0.4s var(--ease); }
  @keyframes ouvre { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
}

@media (max-width: 980px) {
  /* Sur mobile, le cycle devient une ligne verticale ; le détail s'ouvre sous l'étape choisie. */
  .cycle__grid { display: block; }
  .cycle__grid::before { display: none; }
  .cycle__stop { display: grid; grid-template-columns: 48px auto 1fr; align-items: center; gap: 14px; width: 100%; padding: 10px 0; }
  .cycle__stop::after { left: 23px; right: auto; top: 50%; width: 3px; height: 100%; transform-origin: top; }
  .cycle__node { width: 48px; height: 48px; }
  .cycle__num, .cycle__label { margin-top: 0; }
  .cycle__label { font-size: 1.1rem; }
  .cycle__panel { grid-template-columns: 1fr; margin: 8px 0 16px; box-shadow: var(--shadow-md); }
}
@media (max-width: 980px) and (prefers-reduced-motion: no-preference) {
  @keyframes trace { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* 9. Bandeau défilant des secteurs ------------------------------------------ */
.marquee { display: flex; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, #f3f7fd, #eefaf8, #f3f7fd); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { flex: none; display: flex; align-items: center; min-width: 100%; animation: defile 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { display: flex; align-items: center; white-space: nowrap; font-size: clamp(1.15rem, 2vw, 1.6rem); font-stretch: var(--wide); font-weight: 680; letter-spacing: -0.015em; color: var(--ink); }
.marquee__track li::after { content: ""; width: 9px; height: 9px; margin: 0 clamp(20px, 3vw, 40px); border-radius: 50%; background: var(--grad); }
@keyframes defile { to { transform: translateX(-100%); } }

/* 10. Sections et cartes ---------------------------------------------------- */
.section { position: relative; padding-block: var(--section); }
.section--tint { background: linear-gradient(180deg, var(--mist), #f7fafe 60%, var(--mist)); }
.section--tint::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 88% 0%, rgba(143, 233, 223, 0.22), transparent 70%), radial-gradient(50% 50% at 4% 100%, rgba(156, 195, 255, 0.25), transparent 70%); pointer-events: none; }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }

.section__head { max-width: 66ch; margin-bottom: clamp(34px, 4vw, 56px); }
.section__head h2::before { content: ""; display: block; width: 46px; height: 5px; margin-bottom: 20px; border-radius: 5px; background: var(--grad); }
.section__head h2 + p { margin-top: 16px; color: var(--slate); font-size: 1.15rem; line-height: 1.55; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.section__head--row > div:first-child { max-width: 60ch; }
.section__more { margin-top: 32px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.split--center { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split--center h2 + .lead { margin-top: 18px; }
.split--form { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.split__aside h2::before, .split--center h2::before { content: ""; display: block; width: 46px; height: 5px; margin-bottom: 20px; border-radius: 5px; background: var(--grad); }
.split__aside h2 + p { margin-top: 16px; color: var(--slate); font-size: 1.125rem; }
.split__aside .btn { margin-top: 12px; }
@media (min-width: 981px) { .split__aside--sticky { position: sticky; top: 112px; } }

.facts > div { padding: 22px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 1.2rem; font-weight: 660; font-stretch: 106%; }
.facts dd { margin-top: 6px; color: var(--slate); max-width: 62ch; }

/* Cartes : survol avec élévation, bordure en dégradé et halo qui suit la souris */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { position: relative; overflow: hidden; padding: 30px 28px 32px; border: 1.5px solid transparent; border-radius: var(--r-md); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, var(--line), var(--line)) border-box; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, opacity 0.7s var(--ease) !important; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 123, 234, 0.13), transparent 65%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.card > * { position: relative; }
.card:hover { transform: translateY(-8px) !important; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card:hover .glyph { transform: scale(1.1) rotate(-6deg); background: var(--grad); color: #fff; }
.card h3 { margin: 20px 0 10px; }
.card p { color: var(--slate); }
.card .tags { margin-top: 14px; }
.card .tags li { font-size: 0.9rem; padding: 4px 11px; }

.cards--flat { margin-top: 28px; }
.card--flat { padding: 26px 26px 28px 30px; }
.card--flat h3 { margin-top: 0; font-size: 1.15rem; }
.card--flat::after { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); }

.card--level h3 { margin-top: 16px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.card__meta { display: inline-block; margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--grad); color: #fff !important; font-stretch: var(--narrow); font-weight: 640; font-size: 0.925rem; }

.notice { padding: 20px 24px; border-left: 4px solid var(--sky); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--mist); max-width: 70ch; }
.section--tint .notice { background: var(--paper); }

@media (max-width: 1100px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .split, .split--center, .split--form { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 980px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--4 { grid-template-columns: 1fr; } }

/* 11. Schémas --------------------------------------------------------------- */

/* Lien hiérarchique : client — ARJEKA — consultant */
.tri { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 0.62fr) minmax(0, 1.12fr) minmax(120px, 0.62fr) minmax(0, 1fr); align-items: center; }
.tri__node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.tri__node:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tri__node strong { margin-top: 8px; font-size: 1.2rem; font-stretch: var(--wide); font-weight: 690; }
.tri__node span:last-child { color: var(--slate); font-size: 0.965rem; line-height: 1.45; }
.tri__node--main { padding: 34px 22px; border-color: transparent; background: var(--grad); background-size: 180% 180%; color: #fff; box-shadow: var(--shadow-lg); animation: respire 8s ease-in-out infinite alternate; }
.tri__node--main img { width: 54px; height: 54px; padding: 8px; border-radius: 16px; background: #fff; }
.tri__node--main strong { font-size: 1.45rem; }
.tri__node--main span:last-child { color: rgba(255, 255, 255, 0.9); }
@keyframes respire { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.tri__link { position: relative; align-self: center; height: 64px; display: grid; place-items: center; }
.tri__link::before { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, #9db3d6 0 8px, transparent 8px 16px); background-size: 16px 2px; animation: pointille 1s linear infinite; }
.tri__link span { position: relative; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-stretch: var(--narrow); font-size: 0.9rem; font-weight: 600; line-height: 1.25; text-align: center; color: var(--slate); box-shadow: var(--shadow-sm); }
.tri__link--strong::before { height: 5px; margin-top: -2.5px; border-radius: 5px; background: linear-gradient(90deg, #2f7bea, var(--amber), #2f7bea); background-size: 200% 100%; animation: coule 2.4s linear infinite; }
.tri__link--strong span { border-color: transparent; background: var(--amber); color: #2b1e00; font-size: 1rem; font-weight: 720; box-shadow: 0 10px 24px -10px rgba(242, 169, 0, 0.9); }
@keyframes pointille { to { background-position: 16px 0; } }
@keyframes coule { to { background-position: -200% 0; } }

.tri__note { grid-column: 1 / -1; position: relative; margin: 0 9% 0; padding: 30px 0 0; text-align: center; }
.tri__note::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; border: 2px dashed #b4c4de; border-top: 0; border-radius: 0 0 22px 22px; }
.tri__note span { display: inline-block; max-width: 62ch; color: var(--slate); font-size: 0.99rem; }

.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.roles__col { padding: 30px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.roles__col--main { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-md); }
.roles__col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

@media (max-width: 980px) {
  .tri { grid-template-columns: 1fr; }
  .tri__link { height: 76px; }
  .tri__link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; background: repeating-linear-gradient(180deg, #9db3d6 0 8px, transparent 8px 16px); animation: none; }
  .tri__link--strong::before { width: 5px; margin-left: -2.5px; background: linear-gradient(180deg, #2f7bea, var(--amber), #2f7bea); }
  .tri__note { margin: 20px 0 0; padding-top: 0; }
  .tri__note::before { display: none; }
  .roles { grid-template-columns: 1fr; }
}

/* Illustration de la plateforme de suivi */
.mock { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .js .mock { transform: perspective(1400px) rotateY(-14deg) rotateX(6deg) translateY(28px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
  .js .mock.is-in { transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
  .js .mock.is-in:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-6px); }
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--mist); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9d5e8; }
.mock__bar i:nth-child(1) { background: #f6a6a0; }
.mock__bar i:nth-child(2) { background: #f6d28b; }
.mock__bar i:nth-child(3) { background: #9adbb7; }
.mock__bar span { margin-left: 12px; font-size: 0.875rem; font-weight: 600; color: var(--slate); }
.mock__body { display: grid; grid-template-columns: 34% 1fr; min-height: 300px; }
.mock__side { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; border-right: 1px solid var(--line); background: #fafcff; }
.mock__side b { padding: 9px 12px; border-radius: 10px; font-size: 0.875rem; font-weight: 560; color: var(--slate); line-height: 1.25; }
.mock__side b.is-on { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(12, 77, 162, 0.7); }
.mock__main { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mock__row { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.mock__line { height: 9px; border-radius: 9px; background: #dfe7f3; }
.mock__line--title { width: 42%; height: 13px; background: #c6d3e8; }
.mock__w55 { width: 55%; } .mock__w60 { width: 60%; } .mock__w70 { width: 70%; } .mock__w80 { width: 80%; }
.mock__chip { padding: 3px 10px; border-radius: 999px; background: #e8f0fd; color: var(--blue); font-stretch: var(--narrow); font-size: 0.78rem; font-weight: 640; white-space: nowrap; }
.mock__chip--blue { background: var(--grad); color: #fff; }
.mock__chip--amber { background: #fdf0cf; color: #7a5200; }
.mock__chip--green { background: #dcf5ea; color: #0f6a49; }
.mock__prog { grid-column: 1 / -1; height: 7px; border-radius: 7px; background: #edf2f9; overflow: hidden; }
.mock__prog i { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--grad); transition: width 1.4s var(--ease) 0.4s; }
.mock.is-in .mock__p45, .no-js .mock__p45 { width: 45%; }
.mock.is-in .mock__p72, .no-js .mock__p72 { width: 72%; }
.mock.is-in .mock__p88, .no-js .mock__p88 { width: 88%; }
.mock.is-in .mock__p100, .no-js .mock__p100 { width: 100%; }

/* Carte des implantations */
.map { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.map__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(12, 77, 162, 0.18)); }
.map__land { stroke: #9bb6de; stroke-width: 1.5; stroke-linejoin: round; }
.map__dots { opacity: 0.55; }
.map__lux { fill: #bfeee8; stroke: #12b5a6; stroke-width: 1.5; }
.map__links path { stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 7; opacity: 0.55; transition: opacity 0.3s, stroke-width 0.3s; animation: file 1.6s linear infinite; }
.map__links path.is-active { opacity: 1; stroke-width: 3.2; }
@keyframes file { to { stroke-dashoffset: -24; } }
.map__pin { cursor: pointer; }
.map__dot { fill: var(--blue); stroke: #fff; stroke-width: 2.5; transition: fill 0.25s, r 0.25s; }
.map__halo { fill: rgba(47, 123, 234, 0.16); opacity: 0; transition: opacity 0.25s; }
.map__pulse { fill: none; stroke: var(--sky); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pouls 2.6s ease-out infinite; }
.map__pin:nth-child(2) .map__pulse { animation-delay: 0.4s; }
.map__pin:nth-child(3) .map__pulse { animation-delay: 0.8s; }
.map__pin:nth-child(4) .map__pulse { animation-delay: 1.2s; }
.map__pin:nth-child(5) .map__pulse { animation-delay: 1.6s; }
.map__pin:nth-child(6) .map__pulse { animation-delay: 2s; }
@keyframes pouls { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
.map__pin text { font-family: var(--font); font-size: 16px; font-weight: 680; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; transition: fill 0.25s; }
.map__pin.is-active .map__dot, .map__pin:hover .map__dot { fill: var(--amber); r: 8px; }
.map__pin.is-active .map__halo, .map__pin:hover .map__halo { opacity: 1; }
.map__pin.is-active text, .map__pin:hover text { fill: var(--blue); }

.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.places li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); cursor: default; transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s var(--ease), background 0.25s; }
.places li .icon { width: 22px; height: 22px; color: var(--sky); transition: color 0.25s, transform 0.3s var(--ease); }
.places li span { display: block; color: var(--slate); font-size: 0.9rem; line-height: 1.3; }
.places li b { display: block; color: var(--ink); font-size: 1.08rem; font-stretch: 108%; }
.places li:hover, .places li.is-active, .places li:focus-visible { transform: translateY(-3px); border-color: var(--sky); box-shadow: var(--shadow-md); }
.places li:hover .icon, .places li.is-active .icon { color: var(--amber); transform: scale(1.2) translateY(-2px); }
@media (max-width: 460px) { .places { grid-template-columns: 1fr; } }

.contact-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* 12. Bandeau final : deux portes d'entrée ---------------------------------- */
.doors { position: relative; overflow: hidden; background: linear-gradient(120deg, #093b7d 0%, #0c4da2 35%, #2068cf 70%, #0f8f9a 100%); color: #fff; }
.doors::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000, transparent); mask-image: radial-gradient(80% 90% at 50% 0%, #000, transparent); }
.doors__glow { position: absolute; inset: 0; pointer-events: none; }
.doors__glow i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: derive 16s ease-in-out infinite alternate; }
.doors__glow i:nth-child(1) { left: -120px; top: -220px; background: #3d8bff; }
.doors__glow i:nth-child(2) { right: -140px; bottom: -260px; background: #19d3c1; animation-delay: -7s; }
.doors__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: clamp(56px, 8vw, 100px); }
.doors__door { padding: clamp(28px, 3.4vw, 44px); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.09); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 0.4s var(--ease), background 0.3s, opacity 0.7s var(--ease) !important; }
.doors__door:hover { transform: translateY(-6px) !important; background: rgba(255, 255, 255, 0.15); }
.doors h2 { margin-top: 22px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.doors p { margin: 14px 0 26px; max-width: 46ch; color: rgba(255, 255, 255, 0.88); }
.doors__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.doors :focus-visible { outline-color: #fff; }
@media (max-width: 980px) { .doors__grid { grid-template-columns: 1fr; } }

/* 13. Pages intérieures ----------------------------------------------------- */
.page-head { position: relative; padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 68px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head h1 { max-width: 22ch; }
.page-head__lead { max-width: 62ch; margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--slate); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.page-head__photo { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.page-head__photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: var(--r-lg); background: var(--grad); opacity: 0.9; transform: rotate(-4deg); }
.page-head__photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 5px solid #fff; box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: transform 0.6s var(--ease); }
.page-head__photo:hover img { transform: rotate(0deg) scale(1.02); }
@media (prefers-reduced-motion: no-preference) {
  .page-head h1, .page-head__lead, .page-head__actions, .page-head .rail, .page-head .back, .page-head__meta { animation: monte 0.8s var(--ease) both; }
  .page-head__lead { animation-delay: 0.12s; }
  .page-head__actions, .page-head .rail, .page-head__meta { animation-delay: 0.24s; }
  .page-head__photo { animation: surgit 0.9s var(--ease) 0.2s both; }
}
@media (max-width: 980px) {
  .page-head__grid { grid-template-columns: 1fr; }
  .page-head__photo { justify-self: start; max-width: 360px; margin: 8px 0 0 14px; }
}

/* Sommaire en ligne (ancres) : la ligne du cycle de vie, en version compacte */
.rail { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; counter-reset: rail; }
.rail a { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: var(--ink); font-weight: 600; font-size: 0.965rem; text-decoration: none; counter-increment: rail; transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s; }
.rail a::before { content: counter(rail); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-stretch: var(--narrow); font-size: 0.875rem; }
.rail a:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: var(--shadow-sm); color: var(--blue); }

/* Étapes du cycle de vie (page Expertises) */
.stage { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(32px, 5vw, 80px); padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.stage:first-of-type { border-top: 0; padding-top: 0; }
.stage header .glyph { margin-bottom: 18px; }
.stage__num { display: block; margin-bottom: 8px; font-stretch: var(--narrow); font-weight: 620; color: var(--brand); }
.stage h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.stage__lead { font-size: 1.2rem; line-height: 1.5; max-width: 60ch; }
.stage__cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 40px; margin-top: 28px; }
.stage h3 { font-size: 0.975rem; font-stretch: 100%; font-weight: 640; letter-spacing: 0; color: var(--slate); margin-bottom: 12px; }
.stage:hover header .glyph { transform: scale(1.1) rotate(-6deg); background: var(--grad); color: #fff; }

/* Listes ordonnées : de vraies séquences (mise en place d'une prestation, recrutement) */
.steps { counter-reset: step; }
.steps > li { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 0 20px; padding-bottom: 34px; counter-increment: step; }
.steps > li::before { content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); font-stretch: var(--narrow); font-weight: 700; font-size: 1.25rem; color: #fff; z-index: 1; box-shadow: 0 0 0 6px rgba(47, 123, 234, 0.14), 0 12px 22px -10px rgba(12, 77, 162, 0.7); transition: transform 0.35s var(--ease); }
.steps > li:hover::before { transform: scale(1.12); }
.steps > li::after { content: ""; position: absolute; left: 24px; top: 50px; bottom: 0; width: 2px; background: linear-gradient(var(--sky), var(--teal)); opacity: 0.45; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { grid-column: 2; padding-top: 10px; font-size: 1.25rem; }
.steps p { grid-column: 2; margin-top: 8px; color: var(--slate); max-width: 60ch; }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-md); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-stretch: var(--wide); font-weight: 690; font-size: 1.08rem; background: var(--mist); }
.compare thead th:nth-child(2) { background: var(--grad); color: #fff; }
.compare tbody th { width: 22%; font-weight: 620; color: var(--slate); }
.compare td { width: 39%; }
.compare .is-ours { background: linear-gradient(90deg, rgba(47, 123, 234, 0.07), rgba(18, 181, 166, 0.07)); color: var(--ink); font-weight: 560; }
.compare td:not(.is-ours) { color: var(--slate); }
.compare tbody tr { transition: background-color 0.2s; }
.compare tbody tr:hover { background: rgba(47, 123, 234, 0.04); }

/* Secteurs */
.sector-group { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); gap: 16px clamp(32px, 5vw, 80px); padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line); }
.sector-group:first-of-type { border-top: 0; padding-top: 0; }
.sector-group h2 { margin-top: 18px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.sector-group > div > p { margin-top: 12px; color: var(--slate); max-width: 36ch; }
.sector-list > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4px 32px; padding: 18px 20px; margin-inline: -20px; border-bottom: 1px solid var(--line); border-radius: var(--r-sm); transition: background-color 0.25s, transform 0.3s var(--ease); }
.sector-list > div:hover { background: var(--grad-soft); transform: translateX(6px); }
.sector-list dt { font-weight: 660; font-size: 1.1rem; }
.sector-list dd { color: var(--slate); }

/* Citation de la vocation */
.vocation { font-size: clamp(1.8rem, 3.8vw, 3.2rem); font-stretch: 118%; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.vocation + p { margin-top: 26px; max-width: 64ch; color: var(--slate); font-size: 1.15rem; }

.badge-mase { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px !important; padding: 11px 20px 11px 14px; border-radius: 999px; background: var(--grad); color: #fff !important; font-weight: 660; font-size: 1rem !important; box-shadow: 0 12px 26px -12px rgba(12, 77, 162, 0.8); }

/* Texte courant (pages légales) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--sky); }
.prose dl { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 24px; margin-bottom: 1em; }
.prose dt, .prose dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.prose dt { color: var(--slate); }

@media (max-width: 980px) {
  .stage, .stage__cols, .sector-group { grid-template-columns: 1fr; }
  .sector-list > div { grid-template-columns: 1fr; }
  .prose dl { grid-template-columns: 1fr; }
  .prose dt { border-bottom: 0; padding-bottom: 0; }
}

/* 14. Questions fréquentes -------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--shadow-sm); transition: border-color 0.25s, box-shadow 0.3s var(--ease); }
.faq details:hover { border-color: #b8cbe8; }
.faq details[open] { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-md); }
.faq summary { position: relative; padding: 20px 64px 20px 24px; font-size: 1.12rem; font-weight: 640; cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--grad-soft); transition: background 0.25s, transform 0.35s var(--ease); }
.faq summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--blue), var(--blue)) center / 12px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 12px no-repeat; transition: transform 0.35s var(--ease); }
.faq details[open] summary::before { background: var(--grad); transform: rotate(180deg); }
.faq details[open] summary::after { transform: rotate(45deg); background: linear-gradient(#fff, #fff) center / 12px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 12px no-repeat; }
.faq details p { padding: 0 64px 24px 24px; color: var(--slate); max-width: 72ch; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: ouvre 0.4s var(--ease); } }

/* 15. Offres d'emploi ------------------------------------------------------- */
.jobs { display: grid; gap: 12px; }
.jobs__link { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr) 28px; gap: 4px 24px; align-items: center; padding: 20px 24px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s; }
.jobs__link::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform 0.35s var(--ease); }
.jobs__link:hover { transform: translateX(8px); border-color: #b8cbe8; box-shadow: var(--shadow-md); color: var(--ink); }
.jobs__link:hover::before { transform: scaleY(1); }
.jobs__title { font-size: 1.2rem; font-weight: 660; font-stretch: 106%; line-height: 1.3; transition: color 0.2s; }
.jobs__link:hover .jobs__title { color: var(--blue); }
.jobs__place, .jobs__contract, .jobs__salary { font-stretch: var(--narrow); font-size: 1.02rem; color: var(--slate); }
.jobs__salary { text-align: right; font-variant-numeric: tabular-nums; }
.jobs__go { display: grid; place-items: center; color: var(--sky); transition: transform 0.35s var(--ease); }
.jobs__link:hover .jobs__go { transform: translateX(6px); }
.jobs__excerpt { grid-column: 1 / -1; margin-top: 6px; max-width: 90ch; color: var(--slate); font-size: 0.985rem; }

.filters { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) auto; gap: 16px; align-items: end; margin-bottom: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--mist); }
.filters__count { margin-bottom: 16px; font-weight: 640; }
.filters .btn { height: 50px; }
.no-js .filters { display: none; }

.offer { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.offer__body h2 { font-size: 1.6rem; margin: 2em 0 0.7em; }
.offer__body h2::before { content: ""; display: block; width: 40px; height: 5px; margin-bottom: 16px; border-radius: 5px; background: var(--grad); }
.offer__body h2:first-child { margin-top: 0; }
.offer__body h3 { font-size: 1.2rem; margin: 1.7em 0 0.5em; }
.offer__body h4 { margin: 1.4em 0 0.4em; font-weight: 660; }
.offer__body ul { list-style: none; margin-bottom: 1em; }
.offer__body ul li { position: relative; padding: 0 0 8px 24px; }
.offer__body ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 3px; border-radius: 3px; background: var(--grad); }
.offer__body ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }
.offer__body ol li { padding-bottom: 8px; }
.offer__body p, .offer__body li { max-width: 72ch; }

.offer__card { position: sticky; top: 100px; padding: 26px; border: 1.5px solid transparent; border-radius: var(--r-md); background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.offer__card dl > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offer__card dt { font-stretch: var(--narrow); color: var(--slate); }
.offer__card dd { font-weight: 620; overflow-wrap: anywhere; }
.offer__card .btn { width: 100%; margin-top: 22px; }
.offer__card .btn + .btn { margin-top: 10px; }
.offer__card small { display: block; margin-top: 14px; color: var(--slate); font-size: 0.9rem; line-height: 1.45; }

.back { display: inline-block; margin-bottom: 20px; font-weight: 620; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-head__meta li { padding: 6px 16px; border: 1px solid rgba(12, 77, 162, 0.14); border-radius: 999px; background: rgba(255, 255, 255, 0.85); font-stretch: var(--narrow); font-weight: 580; box-shadow: var(--shadow-sm); }

@media (max-width: 980px) {
  .jobs__link { grid-template-columns: 1fr 1fr; padding: 18px 20px; }
  .jobs__title { grid-column: 1 / -1; }
  .jobs__salary { grid-column: 1 / -1; text-align: left; }
  .jobs__go { display: none; }
  .jobs__link:hover { transform: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > :first-child { grid-column: 1 / -1; }
  .offer { grid-template-columns: 1fr; }
  .offer__card { position: static; order: -1; }
}

/* 16. Formulaires ----------------------------------------------------------- */
.field { display: block; }
.field label, .field__label { display: block; margin-bottom: 7px; font-weight: 620; font-size: 0.975rem; }
.field__opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid #b5c1d6; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease); }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47, 123, 234, 0.2), 0 10px 24px -14px rgba(12, 77, 162, 0.6); transform: translateY(-1px); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { display: block; margin-top: 6px; color: var(--danger); font-size: 0.925rem; font-weight: 540; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding: clamp(22px, 3vw, 36px); border: 1.5px solid transparent; border-radius: var(--r-lg); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, rgba(12, 77, 162, 0.4), rgba(18, 181, 166, 0.4)) border-box; box-shadow: var(--shadow-lg); }
.form .field--full, .form__foot, .form__status { grid-column: 1 / -1; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.form__foot p { flex: 1 1 280px; margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--slate); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { padding: 16px 20px; border-left: 4px solid; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: 580; }
.form__status--ok { border-color: var(--ok); background: #e9f5ef; color: #0f4a34; }
.form__status--error { border-color: var(--danger); background: #fbeceb; color: #7d1a15; }

.contact-done { padding: clamp(28px, 4vw, 48px); border: 1.5px solid transparent; border-radius: var(--r-lg); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, #17694a, #12b5a6) border-box; box-shadow: var(--shadow-lg); }
.contact-done h2 { font-size: 1.7rem; margin-bottom: 12px; }
.contact-done p { color: var(--slate); max-width: 56ch; }
@media (prefers-reduced-motion: no-preference) { .contact-done { animation: surgit 0.6s var(--ease) both; } }

.contact-aside > div { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-aside > div:first-child { border-top: 0; padding-top: 0; }
.contact-aside h2 { font-size: 1.15rem; margin-bottom: 6px; }
.contact-aside p { color: var(--slate); }

.crm-frame { width: 100%; height: 820px; border: 1px solid var(--line); border-radius: var(--r-md); }

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
}

/* 17. Candidature (formulaire de l'espace ARJEKA en plein écran) ------------ */
.apply-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; }
.apply-bar { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); background: var(--paper); box-shadow: 0 10px 30px -18px rgba(15, 27, 51, 0.4); z-index: 1; }
.apply-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
.apply-bar img { height: 32px; width: auto; }
.apply-bar nav { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; justify-content: flex-end; }
.apply-bar a { font-weight: 620; font-size: 0.975rem; }
.apply-frame { flex: 1 1 auto; position: relative; background: var(--mist); }
.apply-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper); }
.apply-frame__wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--slate); text-align: center; }

/* 18. Pied de page ---------------------------------------------------------- */
.site-footer { position: relative; padding: clamp(52px, 6vw, 84px) 0 28px; background: var(--mist); font-size: 0.975rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 40px 32px; }
.site-footer__brand img { height: 40px; width: auto; }
.site-footer__slogan { margin: 18px 0 18px; font-stretch: 108%; font-weight: 620; font-size: 1.05rem; max-width: 28ch; }
.site-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 560; text-decoration: none; }
.site-footer__contact a:hover { color: var(--blue); }
.site-footer__contact .icon { color: var(--sky); }
.site-footer__title { margin-bottom: 14px; font-size: 0.975rem; font-stretch: 100%; font-weight: 660; letter-spacing: 0; color: var(--slate); }
.site-footer li { margin-bottom: 9px; }
.site-footer nav a { display: inline-block; color: var(--ink); text-decoration: none; transition: color 0.2s, transform 0.25s var(--ease); }
.site-footer nav a:hover { color: var(--blue); transform: translateX(4px); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--slate); font-size: 0.9rem; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer__legal li { margin: 0; }
.site-footer__legal a { color: var(--slate); }

@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 19. Divers, accessibilité ------------------------------------------------- */
.error-page { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 170px) 0; }
.error-page p { margin-top: 20px; max-width: 54ch; font-size: 1.15rem; color: var(--slate); }
.error-page .page-head__actions { margin-top: 32px; }

/* Les visiteurs qui ont demandé moins d'animations voient un site fixe et complet. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; min-width: 0; row-gap: 10px; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .mock__prog i { transition: none; }
}

@media print {
  .site-header, .site-footer, .doors, .nav-toggle, .filters, .offer__card .btn, .scroll-progress, .aurora, .marquee, .hero__visual { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { font-size: 11pt; }
  .offer { grid-template-columns: 1fr; }
}

/* Certification MASE --------------------------------------------------------- */
.mase-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(20px, 3vw, 40px); margin-bottom: 24px; padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 38px); border: 1.5px solid transparent; border-radius: var(--r-md); background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-md); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.7s var(--ease) !important; }
.mase-band:hover { transform: translateY(-5px) !important; box-shadow: var(--shadow-lg); color: var(--ink); }
.mase-band__logo { display: grid; place-items: center; padding: 14px 20px; border-radius: 16px; background: var(--mist); }
.mase-band__logo img { width: 150px; height: auto; }
.mase-band__text { color: var(--slate); line-height: 1.5; max-width: 70ch; }
.mase-band__text b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.3rem; font-stretch: var(--wide); font-weight: 690; letter-spacing: -0.015em; }
.mase-band__go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; transition: transform 0.35s var(--ease); }
.mase-band:hover .mase-band__go { transform: translateX(6px); }
@media (max-width: 760px) {
  .mase-band { grid-template-columns: 1fr; justify-items: start; }
  .mase-band__go { display: none; }
}

.mase-card { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; padding: 22px 28px 16px; border: 1.5px solid transparent; border-radius: var(--r-md); background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-md); }
.mase-card img { width: 159px; height: auto; }
.mase-card span { font-stretch: var(--narrow); font-weight: 640; color: var(--slate); font-size: 0.95rem; }

.mase-mark { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 16px 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font-weight: 620; font-size: 0.925rem; text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s; }
.mase-mark:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: var(--shadow-sm); color: var(--blue); }
.mase-mark img { height: 30px; width: auto; }

.site-footer__where, .contact-lines a span { font-stretch: var(--narrow); font-weight: 500; color: var(--slate); font-size: 0.9em; }

/* Références ----------------------------------------------------------------- */
.selection-note { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px 22px; margin-bottom: 30px; padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3vw, 34px); border: 1.5px solid transparent; border-radius: var(--r-md); background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-md); }
.selection-note p { margin: 0; color: var(--slate); max-width: 86ch; }
.selection-note b { color: var(--ink); font-stretch: 106%; font-weight: 690; }
@media (max-width: 560px) { .selection-note { grid-template-columns: 1fr; } }

.ref-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.no-js .ref-filters { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.965rem; font-weight: 600; cursor: pointer; transition: transform 0.25s var(--ease), border-color 0.2s, background 0.25s, color 0.2s, box-shadow 0.25s; }
.chip .icon { width: 18px; height: 18px; color: var(--sky); transition: color 0.2s; }
.chip:hover { transform: translateY(-2px); border-color: var(--sky); box-shadow: var(--shadow-sm); }
.chip.is-on { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(12, 77, 162, 0.7); }
.chip.is-on .icon { color: #fff; }

.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.refs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px 28px 24px; border: 1.5px solid transparent; border-radius: var(--r-md); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, var(--line), var(--line)) border-box; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, opacity 0.7s var(--ease) !important; }
.ref::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 123, 234, 0.12), transparent 65%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.ref > * { position: relative; }
.ref:hover { transform: translateY(-6px) !important; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.ref:hover::before { opacity: 1; }
.ref:hover .glyph { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.08); }
.ref.is-hidden { display: none; }
.ref__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ref__cat { flex: 1; margin: 0; font-weight: 640; font-size: 0.925rem; line-height: 1.3; color: var(--blue); }
.ref__cat span { display: block; font-stretch: var(--narrow); font-weight: 520; color: var(--slate); }
.ref h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 10px; }
.ref__summary { color: var(--slate); margin-bottom: 16px; }
.ref .ticks { margin-bottom: 20px; }
.ref .ticks li { padding-bottom: 7px; font-size: 0.975rem; line-height: 1.45; }
.ref__foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.ref__period { display: inline-flex; align-items: center; gap: 8px; font-stretch: var(--narrow); font-weight: 560; color: var(--slate); }
.ref__period .icon { width: 18px; height: 18px; color: var(--sky); }
.ref__months { padding: 4px 12px; border-radius: 999px; background: var(--grad-soft); color: var(--blue); font-stretch: var(--narrow); font-weight: 680; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref__bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #edf2f9; overflow: hidden; }
/* La barre est toujours pleine ; avec JavaScript, elle se remplit à l'apparition de la carte. */
.ref__bar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--grad); transition: width 1.2s var(--ease) 0.25s; }
.js .ref:not(.is-in) .ref__bar i { width: 0; }
@media (max-width: 1100px) { .refs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .refs, .refs--3 { grid-template-columns: 1fr; } }
