/* ============================================================
   MANE INGÉNIERIE — feuille de style
   Palette : acier + Méditerranée · accent rouge de marque
   Typo : Sora (display) · IBM Plex Sans (texte) · IBM Plex Mono (data)
   ============================================================ */

:root {
  /* Sombres (héros, groupe, footer) */
  --ink:        #141c28;
  --ink-2:      #1b2738;
  --ink-3:      #233246;

  /* Clairs */
  --bg:         #f4f6f9;
  --surface:    #ffffff;
  --surface-2:  #eef1f5;

  /* Texte */
  --text:       #1b2433;
  --text-soft:  #5a6675;
  --text-faint: #8a94a3;
  --on-dark:    #eaf0f7;
  --on-dark-soft:#9fb0c4;

  --line:       #e3e8ee;
  --line-dark:  rgba(255,255,255,.10);

  /* Marque */
  --red:        #d6191e;
  --red-deep:   #ac1318;
  --blue:       #1f8bcb;
  --blue-light: #5bc5ee;
  --blue-deep:  #0e5c8a;

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 64px);
  --radius:   14px;
  --radius-sm:10px;
  --shadow:   0 18px 50px -24px rgba(20,28,40,.30);
  --shadow-sm:0 6px 22px -14px rgba(20,28,40,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block;
}
.eyebrow--light { color: var(--blue-light); }

.section { padding-block: clamp(72px, 11vw, 140px); scroll-margin-top: 88px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1rem + 2.6vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text);
  max-width: 18ch;
}
.section__title--light { color: var(--on-dark); }

.section__head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .section__title { max-width: 22ch; margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  --bg-btn: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--bg-btn);
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn--primary { --bg-btn: var(--red); color: #fff; box-shadow: 0 12px 28px -14px rgba(214,25,30,.8); }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn--ghost { color: var(--on-dark); border: 1.5px solid rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; color: var(--red);
  margin-top: 6px;
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(20,28,40,.5);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
.brand img { width: clamp(168px, 20vw, 230px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav__link {
  font-weight: 500; font-size: .96rem; color: var(--text);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav__link:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width .28s var(--ease);
}
.nav__link:not(.nav__cta):hover { color: var(--red); }
.nav__link:not(.nav__cta):hover::after,
.nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--red); }

.nav__cta {
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 22px;
  font-weight: 600; transition: background .25s, color .25s, border-color .25s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: #fff; }

/* Toggle mobile */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding-top: clamp(72px, 12vh, 130px);
  padding-bottom: clamp(150px, 20vh, 240px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(31,139,203,.20), transparent 60%),
    radial-gradient(90% 70% at 0% 110%, rgba(14,92,138,.22), transparent 60%),
    linear-gradient(180deg, #141c28 0%, #182334 60%, #16202f 100%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(110% 90% at 50% 0%, #000 30%, transparent 78%);
}

.hero__content { position: relative; max-width: 880px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 1rem + 5.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 26px;
}
.hero__title-accent { font-weight: 600; color: var(--on-dark); }
.word-sea { position: relative; color: var(--blue-light); white-space: nowrap; }
.underwave {
  position: absolute; left: 0; right: 0; bottom: -.32em; width: 100%; height: .4em;
  color: var(--blue); overflow: visible;
}
.underwave path {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw-wave 1.1s var(--ease) .5s forwards;
}
@keyframes draw-wave { to { stroke-dashoffset: 0; } }

.hero__lead {
  font-size: clamp(1.05rem, .9rem + .5vw, 1.28rem);
  color: var(--on-dark-soft);
  max-width: 60ch; margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero__spec {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em;
  color: var(--on-dark-soft); text-transform: uppercase;
  padding-top: 26px; border-top: 1px solid var(--line-dark);
  max-width: max-content;
}

/* Vagues animées : la signature terre → mer */
.hero__waves {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  line-height: 0; pointer-events: none;
}
.waves { width: 100%; height: clamp(80px, 13vw, 150px); }
.wave { transform: translateX(0); }
.wave--1 { fill: rgba(91,197,238,.16); animation: wave-move 19s linear infinite; }
.wave--2 { fill: rgba(31,139,203,.22); animation: wave-move 15s linear infinite reverse; }
.wave--3 { fill: rgba(31,139,203,.40); animation: wave-move 11s linear infinite; }
.wave--4 { fill: var(--bg); animation: wave-move 8s linear infinite reverse; }
@keyframes wave-move { from { transform: translateX(0); } to { transform: translateX(-176px); } }

/* ============================================================
   BANDEAU REPÈRES
   ============================================================ */
.creds { background: var(--bg); padding-block: clamp(28px, 4vw, 44px); }
.creds__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
}
.cred { display: flex; flex-direction: column; gap: 4px; position: relative; padding-left: 22px; }
.cred::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  background: linear-gradient(var(--blue), var(--blue-light)); border-radius: 2px;
}
.cred__k { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem,.9rem+1vw,1.6rem); color: var(--text); letter-spacing: -.01em; }
.cred__v { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__cat {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue-deep);
}
.card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin: 18px 0 20px;
  border-radius: 14px;
  background: var(--surface-2); color: var(--ink);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--ink); color: #fff; transform: rotate(-4deg); }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -.01em; }
.card__text { color: var(--text-soft); font-size: .97rem; }

/* ============================================================
   HISTOIRE
   ============================================================ */
.histoire { background: var(--surface); border-block: 1px solid var(--line); }
.histoire__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px); align-items: center;
}
.histoire__media { position: relative; }
.histoire__media picture, .histoire__media img { border-radius: var(--radius); width: 100%; }
.histoire__media img {
  filter: grayscale(100%) contrast(1.04);
  box-shadow: var(--shadow);
  transition: filter .6s var(--ease);
}
.histoire__media:hover img { filter: grayscale(0%) contrast(1); }
.histoire__media::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(20,28,40,.08); pointer-events: none;
}
.histoire__caption {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em;
  color: var(--text-soft); margin-top: 16px; padding-left: 16px;
  border-left: 2px solid var(--red);
}
.histoire__body .prose { color: var(--text-soft); margin-top: 20px; font-size: 1.04rem; max-width: 46ch; }
.histoire__body .prose + .prose { margin-top: 14px; }
.histoire__body .section__title { margin-bottom: 4px; }
.histoire__body .link-arrow { margin-top: 28px; }

/* ============================================================
   GROUPE (sombre)
   ============================================================ */
.groupe { position: relative; background: var(--ink); overflow: hidden; }
.groupe::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(31,139,203,.16), transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(14,92,138,.18), transparent 55%);
}
.groupe > .container { position: relative; }
.groupe__lead { color: var(--on-dark-soft); font-size: 1.08rem; max-width: 58ch; margin: 22px auto 0; }

.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 22px); margin-top: clamp(44px, 6vw, 70px);
}
.pillar {
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-dark);
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.pillar:hover { transform: translateY(-5px); background: rgba(255,255,255,.06); border-color: rgba(91,197,238,.4); }
.pillar__num {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .1em;
  color: var(--blue-light);
}
.pillar__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: #fff; margin: 14px 0 8px; }
.pillar__text { color: var(--on-dark-soft); font-size: .92rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px); align-items: start;
}
.contact__list { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 18px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--blue-deep);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__item > span:last-child { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.contact__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.contact__item a { font-weight: 500; transition: color .2s; }
.contact__item a:hover { color: var(--red); }

/* Formulaire */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.field input, .field textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--text); transition: border-color .2s, box-shadow .2s;
  width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,139,203,.16);
}
.form__note { font-size: .9rem; min-height: 1.2em; margin-top: 2px; }
.form__note.ok { color: #0a7d4f; }
.form__note.err { color: var(--red); }

/* Carte */
.contact__map { position: relative; }
.map {
  width: 100%; min-height: 420px; height: 100%;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden; background: var(--surface-2);
  z-index: 0;
}
.map__fallback { padding: 20px; color: var(--text-soft); }
.leaflet-container { font-family: var(--font-body); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-2); color: var(--on-dark); }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr auto;
  gap: clamp(30px, 5vw, 64px); align-items: start;
  padding-block: clamp(48px, 7vw, 76px);
}
.footer__brand img { width: clamp(180px, 22vw, 230px); height: auto; }
.footer__tagline { color: var(--on-dark-soft); font-size: .95rem; max-width: 38ch; margin-top: 18px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: var(--on-dark-soft); font-size: .96rem; transition: color .2s; width: max-content; }
.footer__nav a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--on-dark-soft);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.footer__social a:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }

.footer__bottom { border-top: 1px solid var(--line-dark); }
.footer__bottom .container { padding-block: 22px; }
.footer__bottom p { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; color: var(--on-dark-soft); }

/* ============================================================
   RÉVÉLATION AU SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal.in,
.pillars .reveal.in { transition-delay: var(--d, 0s); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .histoire__grid { grid-template-columns: 1fr; }
  .histoire__media { order: -1; max-width: 560px; }
  .contact__grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 12px var(--pad) 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20,28,40,.4);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__link:not(.nav__cta)::after { display: none; }
  .nav__cta {
    text-align: center; margin-top: 18px; border-radius: 999px;
    padding: 15px; border-color: var(--red); color: var(--red);
  }
  .nav__cta:hover { background: var(--red); color: #fff; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 680px) {
  .creds__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .pillars { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero__spec { font-size: .72rem; letter-spacing: .02em; }
  .cards { grid-template-columns: 1fr; }
}

/* ============================================================
   MOUVEMENT RÉDUIT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .wave { animation: none; }
  .underwave path { stroke-dashoffset: 0; }
}

/* Impression : éviter les fonds sombres */
@media print {
  .hero, .groupe, .footer { background: #fff !important; color: #000 !important; }
  .hero__waves, .nav-toggle, .map { display: none; }
}

/* ============================================================
   PRELOADER — remplissage du logo façon montée d'eau
   ============================================================ */
.preloader-active { overflow: hidden; }

.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; align-content: center; gap: 30px;
  background: radial-gradient(125% 125% at 50% 38%, #ffffff 0%, #eaeef3 100%);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader__logo {
  position: relative;
  width: clamp(250px, 60vw, 460px);
  aspect-ratio: 790 / 316;
}
.preloader__logo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
}
/* Calque gris (logo « vide ») */
.preloader__base { filter: grayscale(1) opacity(.28); }
/* Calque couleur révélé du bas vers le haut (l'eau monte) */
.preloader__fill {
  clip-path: inset(100% 0 0 0);
  filter: drop-shadow(0 0 10px rgba(31,139,203,.25));
  animation: pl-fill 2.6s cubic-bezier(.45,.05,.2,1) infinite;
}
@keyframes pl-fill {
  0%   { clip-path: inset(100% 0 0 0); opacity: 1; }
  58%  { clip-path: inset(0 0 0 0);    opacity: 1; }
  82%  { clip-path: inset(0 0 0 0);    opacity: 1; }
  100% { clip-path: inset(0 0 0 0);    opacity: 0; }
}
/* Reflet qui balaie le logo */
.preloader__gloss {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.65) 50%, transparent 62%);
  background-size: 260% 100%; background-repeat: no-repeat;
  mix-blend-mode: screen;
  animation: pl-gloss 2.6s ease-in-out infinite;
}
@keyframes pl-gloss {
  0%, 45% { background-position: 150% 0; }
  78%, 100% { background-position: -50% 0; }
}
/* Barre de progression indéterminée */
.preloader__bar {
  position: relative; width: clamp(150px, 36vw, 240px); height: 3px;
  border-radius: 3px; background: #dde3ea; overflow: hidden;
}
.preloader__bar::after {
  content: ""; position: absolute; top: 0; left: -40%; height: 100%; width: 40%;
  border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--red));
  animation: pl-bar 1.25s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes pl-bar {
  0%   { left: -42%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__fill { animation: none; clip-path: inset(0 0 0 0); }
  .preloader__base { opacity: 0; }
  .preloader__gloss { display: none; }
  .preloader__bar::after { animation: none; left: 0; width: 100%; }
}
