/* ==========================================================================
   NEOCOM — feuille de style principale
   Sommaire : 1. Polices & variables  2. Base  3. Utilitaires & boutons
   4. En-tête  5. Hero  6. À propos  7. Pourquoi  8. Services  9. Méthode
   10. CTA  11. Aides & FAQ  12. Réalisations  13. Avis  14. Contact
   15. Partenaires  16. Pied de page  17. Barre mobile  18. Pages légales
   19. Animations & responsive
   ========================================================================== */

/* ---------- 1. Polices (auto-hébergées, RGPD-friendly) & variables ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Couleurs de marque (bleu du logo : #023C7C) */
  --blue-950: #031330;
  --blue-900: #051E45;
  --blue-800: #072D63;
  --blue-700: #023C7C;   /* couleur principale */
  --blue-600: #0A4FA0;
  --blue-500: #1D66C4;
  --blue-400: #3B8BEA;   /* accent "électrique" */
  --blue-200: #BCD3F2;
  --blue-100: #E3ECF8;
  --blue-50:  #F3F7FC;
  --white: #FFFFFF;

  --ink: #0B1B33;
  --text: #3A4A61;
  --muted: #64748B;
  --line: #DCE5F1;

  --success: #0F7B4F;
  --error: #B42318;

  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(5, 30, 69, .06), 0 2px 8px rgba(5, 30, 69, .05);
  --shadow: 0 10px 30px -10px rgba(5, 30, 69, .18), 0 2px 6px rgba(5, 30, 69, .05);
  --shadow-lg: 0 30px 60px -20px rgba(5, 30, 69, .30);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main, .footer { overflow-x: clip; } /* les animations latérales ne créent pas de défilement horizontal */
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
::selection { background: var(--blue-700); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Utilitaires & boutons ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--flip { transform: scaleX(-1); }

.h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.1rem); letter-spacing: -.03em; }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  margin: 0 0 1.1rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow span {
  display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.6rem; padding: 0 .4rem;
  border: 1.5px solid currentColor; border-radius: 8px; font-family: var(--font-display); letter-spacing: 0;
}
.eyebrow--light { color: var(--blue-200); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-bottom: 1rem; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head--split > .lead { max-width: 440px; }
.section-head--split .h2 { margin-bottom: 0; }

.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--h); padding: 0 1.4rem; border-radius: 14px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.005em; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--lg { --h: 58px; padding: 0 1.75rem; font-size: 1.03rem; }
.btn--sm { --h: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-700); color: var(--white); box-shadow: 0 8px 20px -8px rgba(2, 60, 124, .55); }
.btn--primary:hover { background: var(--blue-800); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(2, 60, 124, .6); }
.btn--outline { border-color: var(--blue-200); color: var(--blue-700); background: var(--white); }
.btn--outline:hover { border-color: var(--blue-700); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--white { background: var(--white); color: var(--blue-700); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: var(--white); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 600; color: var(--blue-700); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.checklist { display: grid; gap: .75rem; margin: 1.6rem 0 0; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist .icon { width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); stroke-width: 2.6; margin-top: .05rem; }
.checklist--sm li { font-size: .97rem; }

.pill {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem;
  padding: .45rem .95rem .45rem .7rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 0 4px rgba(59, 139, 234, .18); }

.tag { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- 4. En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur .header
   casserait le positionnement fixe du menu mobile. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(5, 30, 69, .25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__icon { width: auto; height: 40px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; color: var(--blue-700); }
.brand--light .brand__name { color: var(--white); }

.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: .55rem .85rem; border-radius: 10px;
  font-family: var(--font-display); font-size: .93rem; font-weight: 500; color: var(--ink); transition: color .2s, background-color .2s;
}
.nav__list a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav__list a.is-active { color: var(--blue-700); }
.nav__list a.is-active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--blue-700); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); }
.header__phone .icon { width: 2.1rem; height: 2.1rem; padding: .5rem; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); }
.header__phone:hover { color: var(--blue-700); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--blue-700); place-items: center; transition: background-color .2s, transform .2s; }
.menu-btn:active { transform: scale(.94); }
.menu-btn .icon { width: 22px; height: 22px; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 70%); }
.hero__grid-bg { display: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 1.3rem + 2.9vw, 3.6rem); letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1.5rem; }
.hero__title em {
  font-style: normal; color: var(--blue-700);
  background: linear-gradient(transparent 62%, var(--blue-100) 62%, var(--blue-100) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); max-width: 600px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .93rem; font-weight: 600; color: var(--ink); }
.hero__trust .icon { color: var(--blue-500); stroke-width: 2.6; width: 1.1rem; height: 1.1rem; }

.hero__visual { position: relative; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem .85rem .85rem; border-radius: 16px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .7);
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--ink); line-height: 1.25; }
.float-card span { font-size: .82rem; color: var(--muted); }
.float-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-700); color: var(--white); }
.float-card__icon--light { background: var(--blue-100); color: var(--blue-700); }
.float-card { z-index: 4; }
.float-card--top { top: 9%; left: -36px; }
.float-card--bottom { top: 46%; right: -28px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 6. À propos ---------- */
.about__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.about__media { position: relative; padding-bottom: 56px; }
.about__img-main { width: 78%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.about__img-detail { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--white); box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; top: 28px; right: 4%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  width: 132px; height: 132px; border-radius: 50%; background: var(--blue-700); color: var(--white);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .9), var(--shadow-lg);
}
.about__badge strong { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.about__badge span { font-size: .78rem; font-weight: 600; line-height: 1.2; opacity: .9; }
.about__badge .about__badge-top { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); opacity: 1; padding-left: .14em; }
.about__content .h2 { margin-bottom: 1.4rem; }
.about__content .lead { color: var(--ink); }
.about__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 2.2rem; }

/* ---------- 7. Pourquoi nous ---------- */
.why { position: relative; overflow: hidden; background: var(--blue-900); color: rgba(255, 255, 255, .78); isolation: isolate; }
.why__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(59, 139, 234, .28), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(10, 79, 160, .45), transparent 70%);
}
.why .h2 { color: var(--white); }
.why__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.why__intro { font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 64px; border-block: 1px solid rgba(255, 255, 255, .14); }
.stat { padding: 28px 24px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.stat dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--blue-200); }
.stat dd { margin: .3rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.6rem); letter-spacing: -.04em; color: var(--white); line-height: 1; }
.why__body { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.feature:hover { background: rgba(255, 255, 255, .07); border-color: rgba(59, 139, 234, .5); transform: translateY(-4px); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: var(--white); margin-bottom: 1.3rem; box-shadow: 0 10px 24px -10px rgba(59, 139, 234, .8); }
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .6rem; }
.feature p { font-size: .98rem; }
.why__media { margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 320px; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. Services (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: var(--radius); background: var(--blue-900); color: var(--white); isolation: isolate; }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 19, 48, .05) 0%, rgba(3, 19, 48, .45) 45%, rgba(3, 19, 48, .92) 100%); transition: background .4s; }
.tile:hover img { transform: scale(1.06); }
.tile__body { padding: 24px; }
.tile--xl .tile__body { padding: 36px; }
.tile__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 1rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.tile h3 { color: var(--white); font-size: 1.18rem; margin-bottom: .35rem; }
.tile--xl h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); margin-bottom: .7rem; }
.tile p { font-size: .92rem; color: rgba(255, 255, 255, .8); margin-bottom: .8rem; max-width: 520px; }
.tile--xl p { font-size: 1.04rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.tags li { padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.tile__link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--white); }
.tile__link::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.tile__link .icon { transition: transform .25s var(--ease); }
.tile:hover .tile__link .icon { transform: translateX(4px); }
.tile:focus-within { outline: 3px solid var(--blue-400); outline-offset: 3px; }
.tile__link:focus-visible { outline: none; }

/* ---------- 9. Méthode ---------- */
.process { background: var(--blue-50); }
.process__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.process__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.process__intro .h2 { margin-bottom: 1rem; }
.process__media { margin: 2rem 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.process__media img { width: 100%; height: 100%; object-fit: cover; }
.steps { position: relative; display: grid; gap: 18px; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 35px; top: 40px; bottom: 40px; width: 2px; background: repeating-linear-gradient(180deg, var(--blue-200) 0 6px, transparent 6px 12px); }
.step {
  position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start;
  padding: 28px 28px 28px 0; border-radius: var(--radius);
  transition: background-color .3s, box-shadow .3s;
}
.step:hover { background: var(--white); box-shadow: var(--shadow); }
.step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px;
  background: var(--white); border: 1.5px solid var(--blue-200); color: var(--blue-700);
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; transition: background-color .3s, color .3s, border-color .3s;
}
.step:hover .step__num { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.step h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin: .35rem 0 .55rem; }
.step h3 .icon { color: var(--blue-500); }

/* ---------- 10. CTA ---------- */
.cta { padding-block: clamp(56px, 7vw, 96px) 0; }
.cta__box {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-800) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: rgba(255, 255, 255, .85);
}
.cta__bg { position: absolute; inset: -48px 0 auto; width: 100%; height: calc(100% + 96px); object-fit: cover; z-index: -2; opacity: .22; mix-blend-mode: luminosity; }
.cta__box::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.cta__content { max-width: 620px; }
.cta h2 { color: var(--white); font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: .7rem; letter-spacing: -.03em; }
.cta p { font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 11. Aides & FAQ ---------- */
.aides__layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 18px; border-radius: 16px; background: var(--blue-50); border: 1px solid var(--line); }
.tabs__tab {
  flex: 1 1 auto; min-height: 46px; padding: 0 1rem; border: 0; border-radius: 11px; background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .94rem; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s;
}
.tabs__tab:hover { color: var(--blue-700); }
.tabs__tab[aria-selected="true"] { background: var(--white); color: var(--blue-700); box-shadow: var(--shadow-sm); }
.tabs__panel { padding: clamp(28px, 3.5vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); animation: fadeUp .45s var(--ease); }
.tabs__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-700); color: var(--white); margin-bottom: 1.2rem; }
.tabs__icon .icon { width: 26px; height: 26px; }
.tabs__panel h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.note a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.faq__title { font-size: 1.25rem; margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 1.2rem 2.75rem 1.2rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink); transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23023C7C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blue-100); }
.faq summary:hover { color: var(--blue-700); }
.faq details p { padding: 0 2.75rem 1.3rem 0; font-size: .98rem; }

/* ---------- 12. Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 42px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--text); transition: all .2s;
}
.filter:hover { border-color: var(--blue-700); color: var(--blue-700); }
.filter.is-active { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project.is-hidden { display: none; }
.project figure { margin: 0; }
.project img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; border-radius: var(--radius); transition: transform .6s var(--ease), box-shadow .4s; }
.project:hover img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project figcaption { padding: 1.2rem .25rem 0; }
.project h3 { font-size: 1.15rem; margin: .7rem 0 .4rem; }
.project figcaption p { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); }
.project figcaption .icon { width: 1rem; height: 1rem; }

/* ---------- 13. Avis ---------- */
.reviews { background: var(--blue-50); }
.slider-nav { display: flex; gap: 10px; }
.slider-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--blue-200); background: var(--white); color: var(--blue-700); transition: all .2s; }
.slider-btn:hover { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.slider {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 24px; margin: -8px -4px 0;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.review {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.review__quote { position: absolute; top: 28px; right: 28px; width: 40px; height: 40px; fill: var(--blue-100); stroke: none; }
.stars { display: flex; gap: 3px; margin-bottom: 1.2rem; }
.stars svg { width: 18px; height: 18px; fill: #F5B301; stroke: none; }
.review blockquote { margin: 0 0 1.6rem; flex: 1; font-size: 1.02rem; color: var(--ink); }
.review footer { display: flex; align-items: center; gap: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-700); color: var(--white); font-family: var(--font-display); font-weight: 700; }
.review footer strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: .98rem; }
.review footer span { font-size: .86rem; color: var(--muted); }
.reviews__more { margin-top: 12px; text-align: center; }

/* ---------- 14. Contact ---------- */
.contact__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: stretch; }
.contact__info {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--blue-900); color: rgba(255, 255, 255, .78);
}
.contact__info::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 50% at 100% 0%, rgba(59, 139, 234, .3), transparent 70%);
}
.contact__info .h2 { color: var(--white); margin-bottom: .9rem; }
.contact__list { display: grid; gap: 18px; margin: 2rem 0; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--blue-200); }
.contact__list small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--blue-200); }
.contact__list a, .contact__list span { color: var(--white); font-weight: 600; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.zone { padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.zone__title { font-family: var(--font-display); color: var(--white); font-weight: 600; margin-bottom: .8rem; }
.zone__list { display: flex; flex-wrap: wrap; gap: 8px; }
.zone__list li { padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }

.contact__form-wrap { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form__title { font-size: 1.5rem; margin-bottom: .35rem; }
.form__subtitle { font-size: .9rem; color: var(--muted); margin-bottom: 1.6rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.form legend { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .95rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); font-size: .9rem; font-weight: 600; color: var(--text); transition: all .2s;
}
.chip:hover span { border-color: var(--blue-400); }
.chip input:checked + span { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.chip input:checked + span::before { content: "✓"; font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--blue-50);
  font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: var(--blue-200); }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(29, 102, 196, .15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); background: #FFF6F5; }
.field__error { display: block; margin-top: .35rem; font-size: .84rem; color: var(--error); font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.4rem 0; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-700); }
.consent a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: var(--error); }
.form__submit[disabled] { opacity: .7; pointer-events: none; }
.form__submit.is-loading .icon { animation: spin 1s linear infinite; }
.form__status:empty { display: none; }
.form__status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form__status.is-success { background: #E8F6EF; color: var(--success); }
.form__status.is-error { background: #FDECEA; color: var(--error); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 15. Partenaires ---------- */
.partners { padding-block: clamp(56px, 7vw, 88px); }
.partners__title { text-align: center; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.partners__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px; }
.partners__list img { height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity .3s, filter .3s; }
.partners__list img:hover { filter: none; opacity: 1; }

/* ---------- 16. Pied de page ---------- */
.footer { background: var(--blue-950); color: rgba(255, 255, 255, .66); font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 40px; padding-block: 72px 48px; }
.footer__brand p { margin: 1.2rem 0 1.5rem; max-width: 320px; }
.footer h2 { font-size: .8rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.2rem; }
.footer__col ul { display: grid; gap: .65rem; }
.footer__col a:hover { color: var(--white); }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact .icon { margin-top: .2rem; color: var(--blue-400); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- 17. Barre d’action mobile ---------- */

/* ---------- 18. Pages légales ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0; background: linear-gradient(180deg, var(--blue-50), var(--white) 320px); }
.legal__inner { max-width: 860px; }
.legal__back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--blue-700); margin-bottom: 1.5rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.03em; margin-bottom: .8rem; }
.legal__updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.6rem 0 .9rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: .55rem 1.5rem; margin: 0 0 1rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--line); }
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0; }
.todo { background: #FFF4D6; color: #7A4B00; padding: 0 .3rem; border-radius: 4px; font-weight: 600; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--blue-100); -webkit-text-stroke: 2px var(--blue-700); }
.error-page h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin: 1rem 0 .8rem; }
.error-page p { margin-bottom: 2rem; }

/* ---------- 19. Animations & responsive ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .header__phone span { display: none; }
  .float-card--top { left: -16px; }
  .float-card--bottom { right: -12px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .menu-btn { display: grid; }
  .header__phone, .nav { display: none; }

  .hero__inner, .about__inner, .process__inner, .aides__layout, .contact__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .about__media { max-width: 600px; }
  .why__head { grid-template-columns: 1fr; }
  .why__body { grid-template-columns: 1fr; }
  .why__media { aspect-ratio: 16 / 9; min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(270px, auto); }
  .tile--xl { grid-row: span 1; }
  .tile--xl .tile__body { padding: 28px; }
  .process__intro { position: static; }
  .process__media { aspect-ratio: 16 / 9; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .slider { grid-auto-columns: calc((100% - 24px) / 2); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .header__cta { display: none; }
  .brand__icon { height: 34px; }
  .brand__name { font-size: 1.2rem; }
  .hero__actions .btn { width: 100%; }
  .float-card { padding: .65rem .9rem .65rem .65rem; }
  .float-card__icon { width: 38px; height: 38px; }
  .float-card--top { left: 12px; top: 16px; }
  .float-card--bottom { top: auto; right: 12px; bottom: 84px; }
  .about__badge { width: 104px; height: 104px; top: 16px; right: 0; }
  .about__badge strong { font-size: 1.65rem; }
  .about__badge { gap: 2px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 24px; }
  .stat { padding: 22px 16px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(250px, auto); gap: 16px; }
  .tile--xl, .tile--wide { grid-column: auto; }
  .tile--xl .tile__body { padding: 24px; }
  .tile--xl .tags { display: none; }
  .steps::before { left: 27px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 16px 20px 0; }
  .step__num { width: 56px; height: 56px; border-radius: 16px; font-size: 1.1rem; }
  .step h3 { font-size: 1.15rem; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .tabs__tab { flex: 1 1 calc(50% - 6px); }
  .projects { grid-template-columns: 1fr; gap: 32px; }
  .slider { grid-auto-columns: 86%; gap: 16px; }
  .review { padding: 26px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 32px; }
  .legal dl { grid-template-columns: 1fr; gap: .1rem; }
  .legal dd { margin-bottom: .7rem; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; filter: none; }
  .hero-slide img { transform: none !important; }
}

@media print {
  .header, .fab, .app-menu, .preloader, .cta, .form, .slider-nav, .filters { display: none !important; }
  body { padding: 0; }
}
.error-page__actions { justify-content: center; }

/* ==========================================================================
   20. Effets & composants (v2) : chargement, diaporama, animations,
       boutons flottants, navigation mobile façon application
   ========================================================================== */
:root { --accent: #7DB8FF; }

/* ---------- Écran de chargement ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background:
    var(--white);
  transition: opacity .6s var(--ease), visibility .6s;
  animation: preloaderFailsafe 0s 4s forwards; /* sécurité si le JS ne se charge pas */
}
.is-loaded .preloader { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 14px; }
.preloader__logo { height: 64px; width: auto; animation: logoPulse 1.4s var(--ease) infinite; }
.preloader__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .32em; color: var(--blue-700); padding-left: .32em; }
.preloader__bar { position: relative; width: 140px; height: 3px; border-radius: 3px; background: var(--blue-100); overflow: hidden; }
.preloader__bar span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-400), var(--blue-700)); animation: loaderBar 1.1s ease-in-out infinite; }
@keyframes loaderBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes logoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Entrée du hero (après chargement) ---------- */
.js .hero-intro > * { opacity: 0; transform: translate3d(0, 26px, 0); animation: showFailsafe 0s 4.5s forwards; }
.js .hero__visual { opacity: 0; transform: scale(.94) translate3d(0, 20px, 0); animation: showFailsafe 0s 4.5s forwards; }
.is-loaded .hero-intro > *, .is-loaded .hero__visual { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-loaded .hero-intro > :nth-child(2) { transition-delay: .1s; }
.is-loaded .hero-intro > :nth-child(3) { transition-delay: .2s; }
.is-loaded .hero-intro > :nth-child(4) { transition-delay: .3s; }
.is-loaded .hero-intro > :nth-child(5) { transition-delay: .4s; }
.is-loaded .hero__visual { transition-duration: 1.2s; transition-delay: .25s; }
@keyframes showFailsafe { to { opacity: 1; transform: none; } }

/* ---------- Diaporama du hero ---------- */
.hero-slider { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-900); box-shadow: var(--shadow-lg); isolation: isolate; touch-action: pan-y; }
.hero-slider::after { content: ""; position: absolute; inset: 45% 0 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(3, 19, 48, .82)); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 7s cubic-bezier(.25, .1, .25, 1); }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide figcaption {
  position: absolute; left: 24px; bottom: 74px; z-index: 3; display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--white);
  opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .35s, transform .7s var(--ease) .35s;
}
.hero-slide figcaption span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; font-size: .8rem; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.hero-slide.is-active figcaption { opacity: 1; transform: none; }
.hero-slider__ui { position: absolute; left: 24px; right: 20px; bottom: 20px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-slider__dots { display: flex; gap: 8px; }
.hero-slider__dot { position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: none; }
.hero-slider__dot::before, .hero-slider__dot span { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.hero-slider__dot::before { right: 0; background: rgba(255, 255, 255, .32); }
.hero-slider__dot span { width: 0; background: var(--white); }
.hero-slider__dot.is-active span { animation: dotFill var(--slide-ms, 5500ms) linear forwards; }
.hero-slider.is-paused .hero-slider__dot.is-active span { animation-play-state: paused; }
.hero-slider.is-static .hero-slider__dot.is-active span { animation: none; width: 100%; }
@keyframes dotFill { to { width: 100%; } }
.hero-slider__arrows { display: flex; gap: 8px; }
.hero-slider__arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: var(--white); backdrop-filter: blur(8px); transition: background-color .2s, transform .2s; }
.hero-slider__arrow:hover { background: rgba(255, 255, 255, .26); transform: scale(1.06); }

/* ---------- Apparition au défilement ---------- */
.reveal-ready .reveal { opacity: 0; transform: translate3d(0, 44px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal-ready .reveal--left { transform: translate3d(-56px, 0, 0); }
.reveal-ready .reveal--right { transform: translate3d(56px, 0, 0); }
.reveal-ready .reveal--zoom { transform: scale(.93) translate3d(0, 24px, 0); filter: blur(6px); }
.reveal-ready .reveal--fade { transform: none; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal-ready .eyebrow span { transition: transform .8s var(--ease) .2s, background-color .4s; }
.reveal-ready .reveal:not(.is-visible) .eyebrow span { transform: rotate(-90deg) scale(.6); }

/* ---------- Images en chargement différé : squelette + fondu ---------- */
img[loading="lazy"]:not([src$=".svg"]) { background: linear-gradient(100deg, var(--blue-50) 30%, var(--blue-100) 50%, var(--blue-50) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
img[loading="lazy"].is-loaded { background: none; animation: imgIn .9s var(--ease) both; }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes imgIn { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }

/* ---------- Boutons flottants (appel + retour en haut) ---------- */
.fab { position: fixed; right: 22px; bottom: 24px; z-index: 95; display: grid; justify-items: end; gap: 12px; }
.fab__btn { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; border: 0; padding: 0; box-shadow: 0 12px 28px -10px rgba(2, 60, 124, .6); }
.fab__call {
  display: flex; width: auto; min-width: 56px; padding: 0 16px; gap: 0; color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); transition: gap .35s var(--ease), padding .35s var(--ease), transform .25s;
}
.fab__call .icon { width: 24px; height: 24px; animation: ringPhone 3s ease-in-out infinite; }
.fab__pulse { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: fabPulse 2.2s ease-out infinite; }
.fab__label { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: .98rem; transition: max-width .45s var(--ease); }
.fab__call:hover, .fab__call:focus-visible { gap: 10px; padding: 0 22px 0 18px; }
.fab__call:hover .fab__label, .fab__call:focus-visible .fab__label { max-width: 180px; }
.fab__call:active { transform: scale(.95); }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(59, 139, 234, .55); } 75%, 100% { box-shadow: 0 0 0 18px rgba(59, 139, 234, 0); } }
@keyframes ringPhone { 0%, 70%, 100% { transform: rotate(0); } 74%, 82%, 90% { transform: rotate(-14deg); } 78%, 86%, 94% { transform: rotate(14deg); } }
.fab__top { background: var(--white); color: var(--blue-700); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, background-color .2s; }
.fab__top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab__top:hover { background: var(--blue-50); }
.fab__arrow { width: 22px; height: 22px; transform: rotate(-90deg); }
.fab__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke: var(--blue-500); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 138.23; stroke-dashoffset: 138.23; }

/* ---------- Navigation mobile façon application ---------- */
@media (max-width: 1023px) {
  .header__cta { display: none; }

  .fab { right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); gap: 10px; }
  .fab__btn { width: 52px; height: 52px; }
  .fab__call { min-width: 52px; padding: 0 14px; }
}

.app-menu { position: fixed; inset: 0; z-index: 300; }
.app-menu[hidden] { display: none; }
.app-menu__backdrop { position: absolute; inset: 0; background: rgba(3, 19, 48, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s var(--ease); }
.app-menu__sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin-inline: auto;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; color: var(--white);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(59, 139, 234, .25), transparent 70%),
    var(--blue-900);
  box-shadow: 0 -20px 50px -20px rgba(3, 19, 48, .7);
  transform: translateY(105%); transition: transform .5s cubic-bezier(.2, .85, .25, 1);
}
.app-menu.is-open .app-menu__backdrop { opacity: 1; }
.app-menu.is-open .app-menu__sheet { transform: none; }
.app-menu__handle { display: block; width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.app-menu__head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 16px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; font-size: 1.1rem; }
.app-menu__logo { height: 30px; width: auto; }
.app-menu__close { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: var(--white); transition: transform .3s var(--ease), background-color .2s; }
.app-menu__close:hover { transform: rotate(90deg); background: rgba(255, 255, 255, .12); }
.app-menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px 0; }
.app-menu__grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 92px; padding: 14px 6px;
  border-radius: 18px; color: rgba(255, 255, 255, .88); font-family: var(--font-display); font-size: .86rem; font-weight: 600; text-align: center;
  transition: background-color .2s, color .2s, transform .2s;
}
.app-menu__grid a .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.app-menu__grid a:hover { background: rgba(255, 255, 255, .06); }
.app-menu__grid a:active { transform: scale(.95); }
.app-menu__grid a.is-active { color: var(--accent); background: rgba(125, 184, 255, .1); }
.app-menu__grid li { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.app-menu.is-open .app-menu__grid li { opacity: 1; transform: none; }
.app-menu.is-open .app-menu__grid li:nth-child(1) { transition-delay: .08s; }
.app-menu.is-open .app-menu__grid li:nth-child(2) { transition-delay: .11s; }
.app-menu.is-open .app-menu__grid li:nth-child(3) { transition-delay: .14s; }
.app-menu.is-open .app-menu__grid li:nth-child(4) { transition-delay: .17s; }
.app-menu.is-open .app-menu__grid li:nth-child(5) { transition-delay: .20s; }
.app-menu.is-open .app-menu__grid li:nth-child(6) { transition-delay: .23s; }
.app-menu.is-open .app-menu__grid li:nth-child(7) { transition-delay: .26s; }
.app-menu.is-open .app-menu__grid li:nth-child(8) { transition-delay: .29s; }
.app-menu.is-open .app-menu__grid li:nth-child(9) { transition-delay: .32s; }
.app-menu__cta { margin-top: 12px; }
body.menu-open { overflow: hidden; }

/* ---------- Pages intérieures (mentions, confidentialité, 404) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 8vw, 96px) 0 clamp(96px, 11vw, 140px); background: var(--blue-900); color: rgba(255, 255, 255, .76); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 90% 0%, rgba(59, 139, 234, .3), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(10, 79, 160, .45), transparent 70%);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 1.4rem; font-size: .9rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb .icon { width: 14px; height: 14px; opacity: .6; }
.breadcrumb a { color: var(--blue-200); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.035em; margin-bottom: 1rem; }
.page-hero p { max-width: 640px; font-size: 1.1rem; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--white); }
.page-hero__meta .icon { width: 1rem; height: 1rem; color: var(--accent); }

.legal-wrap { position: relative; margin-top: clamp(-64px, -6vw, -40px); padding-bottom: var(--section); }
.legal-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.toc__title { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: .6rem; padding: .5rem .65rem; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.35; transition: background-color .2s, color .2s; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-size: .75rem; color: var(--blue-400); padding-top: .1rem; }
.toc a:hover { background: var(--blue-50); color: var(--blue-700); }
.toc a.is-active { background: var(--blue-700); color: var(--white); }
.toc a.is-active::before { color: var(--accent); }
.legal-content { display: grid; gap: 20px; }
.legal-block { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-block h2 { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); margin-bottom: 1.1rem; }
.legal-block h2 .num { display: inline-grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--blue-700); color: var(--white); font-size: .85rem; }
.legal-block ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-block li { margin-bottom: .35rem; }
.legal-block a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.legal-block dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; margin: 0 0 1rem; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.legal-block dt, .legal-block dd { margin: 0; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.legal-block dt { font-weight: 700; color: var(--ink); background: var(--blue-50); }
.legal-block dl > :nth-last-child(-n+2) { border-bottom: 0; }
.legal-block strong { color: var(--ink); }
.legal-intro { padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid var(--line); font-size: 1.04rem; color: var(--ink); }

.error-hero { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-bottom: clamp(56px, 8vw, 96px); }
.error-hero .error-page__code { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.error-hero p { margin-inline: auto; }

@media (max-width: 1023px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .toc ol { grid-template-columns: 1fr; }
  .legal-block dl { grid-template-columns: 1fr; }
  .legal-block dt { border-bottom: 0; padding-bottom: .2rem; }
  .legal-block dd { padding-top: .2rem; }
  .hero-slide figcaption { left: 18px; bottom: 66px; font-size: 1rem; }
  .hero-slider__ui { left: 18px; right: 14px; bottom: 14px; }
  .hero-slider__arrow { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo, .preloader__bar span, .fab__pulse, .fab__call .icon, img[loading="lazy"] { animation: none !important; }
}
.page-hero .error-page__code { max-width: none; margin: 0 auto .5rem; font-size: clamp(6rem, 24vw, 11rem); }

/* ---------- Partenaires : bande défilante (auto + glisser à la souris) ---------- */
.marquee { position: relative; overflow: hidden; padding-block: 10px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.marquee.is-ready { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee.is-dragging { cursor: grabbing; }
.marquee__track { display: flex; justify-content: center; will-change: transform; }
.marquee.is-ready .marquee__track { width: max-content; justify-content: flex-start; }
.marquee__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.marquee.is-ready .marquee__list { flex-wrap: nowrap; }
.marquee__item {
  flex: none; display: grid; place-items: center; width: 210px; height: 96px; margin: 10px 10px;
  border-radius: 18px; background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
/* Logos : couleurs d'origine, même rendu pour tous.
   le léger contraste éclaircit les fonds gris clairs en blanc, puis mix-blend-mode: multiply fait disparaître le blanc ;
   animation désactivée pour éviter les différences entre logos chargés à des moments différents. */
.marquee__item img {
  width: auto; height: 44px; max-width: 150px; object-fit: contain;
  filter: contrast(1.15) brightness(1.06) !important; opacity: 1; mix-blend-mode: multiply; animation: none !important; background: none !important;
  pointer-events: none; transition: transform .3s var(--ease);
}
.marquee__item:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.marquee__item:hover img { transform: scale(1.06); }
@media (max-width: 767px) {
  .marquee__item { width: 156px; height: 76px; margin: 8px 6px; border-radius: 14px; }
  .marquee__item img { height: 34px; max-width: 120px; }
}

/* ---------- Services : boutons des cartes + fiches détaillées (fenêtre modale) ---------- */
.tile__link::after { content: none; }
.tile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.tile__more {
  display: inline-flex; align-items: center; gap: .55rem; padding: 0; border: 0; background: none; color: var(--white);
  font-family: var(--font-display); font-size: .9rem; font-weight: 600;
}
.tile__more::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toute la carte ouvre la fiche */
.tile__plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); transition: transform .35s var(--ease), background-color .25s; }
.tile__plus .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.tile:hover .tile__plus { transform: rotate(90deg); background: var(--white); color: var(--blue-700); }
.tile__link { position: relative; z-index: 2; opacity: .8; transition: opacity .2s; }
.tile__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.tile__more:focus-visible { outline: none; }
.tile__more:focus-visible .tile__plus { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.svc-modal { width: 100%; max-width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.svc-modal::backdrop { background: rgba(3, 19, 48, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.svc-modal.is-open::backdrop { opacity: 1; }
.svc-modal__panel {
  display: flex; flex-direction: column; max-height: calc(100dvh - 48px); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: 0 40px 80px -30px rgba(3, 19, 48, .6);
  opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.svc-modal.is-open .svc-modal__panel { opacity: 1; transform: none; }
.svc-modal__head { position: relative; flex: none; height: 210px; display: flex; align-items: flex-end; gap: 16px; padding: 24px 32px; color: var(--white); isolation: isolate; background: var(--blue-900); }
.svc-modal__head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.svc-modal__head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 19, 48, .15), rgba(3, 19, 48, .88)); }
.svc-modal__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-400), var(--blue-700)); box-shadow: 0 10px 24px -8px rgba(59, 139, 234, .8); }
.svc-modal__icon .icon { width: 26px; height: 26px; }
.svc-modal__titles p { margin: 0 0 .2rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.svc-modal__titles h3 { color: var(--white); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem); letter-spacing: -.025em; }
.svc-modal__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14); color: var(--white); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .2s; }
.svc-modal__close:hover { transform: rotate(90deg); background: rgba(255, 255, 255, .26); }
.svc-modal__body { overflow-y: auto; overscroll-behavior: contain; padding: 30px 32px; }
.svc-modal__intro { font-size: 1.06rem; color: var(--ink); margin-bottom: 1.6rem; }
.svc-modal__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.svc-modal h4 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin-bottom: .8rem; }
.svc-modal h4 .icon { color: var(--blue-500); }
.svc-modal__list { display: grid; gap: .6rem; }
.svc-modal__list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; color: var(--ink); }
.svc-modal__list .icon { width: 1.35rem; height: 1.35rem; padding: .22rem; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); stroke-width: 2.6; margin-top: .1rem; }
.svc-modal__side { display: grid; gap: 12px; align-content: start; }
.svc-modal__box { padding: 16px 18px; border-radius: 16px; background: var(--blue-50); border: 1px solid var(--line); font-size: .94rem; }
.svc-modal__box h4 { margin-bottom: .55rem; }
.svc-modal__pros { display: grid; gap: .35rem; list-style: none; }
.svc-modal__pros li { position: relative; padding-left: 1rem; }
.svc-modal__pros li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.svc-modal__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-modal__chips li { padding: .28rem .7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--blue-200); color: var(--blue-700); font-size: .82rem; font-weight: 700; }
.svc-modal__faq { margin-top: 1.4rem; border-radius: 16px; border: 1px solid var(--line); padding: 0 18px; }
.svc-modal__faq summary { cursor: pointer; padding: 14px 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.svc-modal__faq p { padding-bottom: 14px; font-size: .95rem; }
.svc-modal__foot { flex: none; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 32px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }

@media (max-width: 767px) {
  .svc-modal { max-width: 100%; margin: auto 0 0; max-height: 94dvh; }
  .svc-modal__panel { max-height: 94dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: opacity .3s, transform .45s cubic-bezier(.2, .85, .25, 1); }
  .svc-modal__head { height: 170px; padding: 18px 20px; }
  .svc-modal__icon { width: 46px; height: 46px; }
  .svc-modal__body { padding: 22px 20px; }
  .svc-modal__grid { grid-template-columns: 1fr; }
  .svc-modal__foot { padding-inline: 20px; }
  .svc-modal__foot { flex-wrap: nowrap; }
  .svc-modal__foot .btn--primary { flex: 1 1 auto; }
  .svc-modal__foot .btn--outline { flex: none; padding: 0 1rem; }
  .svc-modal__num { display: none; }
}

/* ---------- Barre de défilement personnalisée (aux couleurs NEOCOM) ---------- */
/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--blue-50); border-left: 1px solid var(--line); }
::-webkit-scrollbar-thumb {
  border: 3px solid var(--blue-50); border-radius: 999px; min-height: 48px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); }
::-webkit-scrollbar-thumb:active { background: var(--blue-800); }
::-webkit-scrollbar-corner { background: var(--blue-50); }

/* Zones internes (fiches services, menu mobile, champ message) : barre plus fine */
.svc-modal__body::-webkit-scrollbar, .app-menu__sheet::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 8px; }
.svc-modal__body::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track { background: transparent; border: 0; }
.svc-modal__body::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb { border: 2px solid var(--white); background: var(--blue-200); }
.svc-modal__body::-webkit-scrollbar-thumb:hover, textarea::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }

/* Firefox (et navigateurs sans ::-webkit-scrollbar) */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--blue-600) var(--blue-50); scrollbar-width: auto; }
  .svc-modal__body, textarea { scrollbar-color: var(--blue-200) transparent; scrollbar-width: thin; }
}

/* ---------- Signature du développeur (pied de page) ---------- */
.footer__credit { width: 100%; padding-top: 14px; margin-top: 4px; border-top: 1px dashed rgba(255, 255, 255, .1); text-align: center; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.footer__credit a { font-weight: 700; color: var(--accent); transition: color .2s; }
.footer__credit a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .footer__bottom { padding-bottom: calc(130px + env(safe-area-inset-bottom)); } }

/* ---------- Avis clients (gérés dans l'administration) ---------- */
.stars svg.is-off { fill: var(--line); }
.reviews__score { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--text); font-size: .95rem; }
.reviews__score strong { color: var(--ink); font-family: var(--font-display); }
.stars--sm { margin: 0; }
.stars--sm svg { width: 16px; height: 16px; }
.review footer { flex-wrap: wrap; }
.review__source { margin-left: auto; align-self: center; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); font-size: .72rem; font-weight: 700; white-space: nowrap; }
a.review__source:hover { border-color: var(--blue-500); }

/* ==========================================================================
   Bandeau cookies / confidentialité (RGPD)
   ========================================================================== */
.footer__link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer__link-btn:hover { color: var(--white); text-decoration: underline; }

/* --- Bandeau (coin inférieur gauche, carte flottante) --- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 120;
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  width: min(460px, calc(100vw - 32px)); padding: 22px 22px 20px;
  border-radius: 22px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(5, 30, 69, .45), 0 2px 8px rgba(5, 30, 69, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.cookie::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue-700), var(--blue-400), var(--accent)); }
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: var(--white); box-shadow: 0 10px 20px -10px rgba(2, 60, 124, .7); }
.cookie__icon .icon { width: 24px; height: 24px; }
.cookie.is-visible .cookie__icon { animation: cookieWiggle 1.2s .5s var(--ease) both; }
@keyframes cookieWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(9deg); } 75% { transform: rotate(-4deg); } }
.cookie__title { margin: 2px 0 6px; padding-right: 26px; font-size: 1.08rem; letter-spacing: -.02em; color: var(--ink); }
.cookie__text { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text); }
.cookie__text strong { color: var(--ink); }
.cookie__text a { color: var(--blue-600); font-weight: 600; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.cookie__actions .btn { --h: 42px; flex: 1 1 0; }
.cookie__more { flex-basis: 100%; padding: 4px 0 0; border: 0; background: none; color: var(--muted); font: 600 .86rem var(--font-display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center; }
.cookie__more:hover { color: var(--blue-700); }
.cookie__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.cookie__close:hover { background: var(--blue-50); color: var(--ink); }
.cookie__close .icon { width: 18px; height: 18px; }

/* --- Fenêtre de préférences --- */
.cookie-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .35s var(--ease); }
.cookie-modal.is-visible { opacity: 1; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 19, 48, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cookie-modal__panel {
  position: relative; width: min(600px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  border-radius: 24px; background: var(--white); box-shadow: var(--shadow-lg); outline: none;
  transform: translateY(18px) scale(.97); transition: transform .4s var(--ease);
}
.cookie-modal.is-visible .cookie-modal__panel { transform: none; }
.cookie-modal__head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 26px 26px 20px; background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: rgba(255, 255, 255, .8); }
.cookie-modal__head h2 { margin: 0 34px 6px 0; font-size: 1.25rem; letter-spacing: -.02em; color: var(--white); }
.cookie-modal__head p { margin: 0; font-size: .9rem; line-height: 1.5; }
.cookie-modal__badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: var(--accent); }
.cookie-modal__badge .icon { width: 24px; height: 24px; }
.cookie-modal__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .1); color: var(--white); cursor: pointer; transition: background-color .2s; }
.cookie-modal__close:hover { background: rgba(255, 255, 255, .2); }
.cookie-modal__close .icon { width: 18px; height: 18px; }
.cookie-modal__list { list-style: none; margin: 0; padding: 8px 26px; }
.cookie-opt { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.cookie-opt + .cookie-opt { border-top: 1px solid var(--line); }
.cookie-opt__text h3 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.cookie-opt__text h3 label { cursor: pointer; }
.cookie-opt__text p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.cookie-opt--off .cookie-opt__text { opacity: .7; }
.cookie-opt__always, .cookie-opt__none { flex: none; padding: 5px 11px; border-radius: 999px; font: 700 .74rem var(--font-display); white-space: nowrap; }
.cookie-opt__always { background: #E8F6EF; color: var(--success); }
.cookie-opt__none { background: var(--blue-50); color: var(--muted); }
.cookie-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 26px 24px; border-top: 1px solid var(--line); background: var(--blue-50); }
.cookie-modal__foot .btn { --h: 44px; flex: 1 1 150px; }

/* --- Interrupteur --- */
.switch { position: relative; flex: none; display: inline-flex; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #C5D2E3; transition: background-color .25s var(--ease), box-shadow .2s; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(5, 30, 69, .25); transition: transform .3s var(--ease); }
.switch input:checked + .switch__track { background: var(--blue-600); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px rgba(59, 139, 234, .35); }

/* --- Confirmation discrète --- */
.cookie-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1200; padding: 12px 20px; border-radius: 999px; background: var(--blue-900); color: var(--white); font: 600 .9rem var(--font-display); box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 12px); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.cookie-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

html.cookie-modal-open { overflow: hidden; }
@media (max-width: 767px) {
  .cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; grid-template-columns: 1fr; gap: 10px; padding: 20px 18px 16px; }
  .cookie__icon { position: absolute; top: 18px; left: 18px; width: 40px; height: 40px; border-radius: 12px; }
  .cookie__title { display: flex; align-items: center; min-height: 40px; margin: 0 0 8px; padding-left: 52px; }
  /* le bouton d'appel flottant laisse la place au bandeau */
  .has-cookie-banner .fab { opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .3s, transform .3s, visibility .3s; }
  .cookie-modal { place-items: end center; padding: 0; }
  .cookie-modal__panel { border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; transform: translateY(40px); }
  .cookie-modal__head { padding: 22px 20px 18px; }
  .cookie-modal__list { padding: 4px 20px; }
  .cookie-modal__foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }
  .cookie-opt { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie, .cookie-modal, .cookie-modal__panel, .cookie-toast, .switch__thumb { transition: none; }
  .cookie.is-visible .cookie__icon { animation: none; }
}
.link-inline { padding: 0; border: 0; background: none; font: inherit; color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-inline:hover { color: var(--blue-800); }
.cookie[hidden], .cookie-modal[hidden], .cookie-toast[hidden] { display: none; }
