/* ==========================================================================
   Dina Services — feuille de style principale
   ========================================================================== */

/* Polices auto-hébergées (aucun appel à Google Fonts) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

:root {
  --blue: #076eb3;
  --blue-600: #014093;
  --blue-light: #2593d5;
  --cyan: #2bc6ee;
  --navy: #082680;
  --ink: #051135;
  --ink-2: #15265b;
  --text: #4a5470;
  --muted: #c2d5e7;
  --soft: #f3f6fb;
  --line: #e3e9f3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(8, 38, 128, 0.08);
  --shadow-lg: 0 24px 60px rgba(8, 38, 128, 0.16);
  --container: 1200px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-600);
}

:where(ul[class], ol[class]) {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  stroke-width: 2;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  color: #fff;
  background: var(--blue-600);
  border-radius: 0 0 10px 10px;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 110px);
}

.section--soft {
  background: var(--soft);
}

.section--tight {
  padding-top: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.75em;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #0866c2 0%, #1590e0 100%);
  /* Le dégradé couvre aussi la bordure transparente : pas de liseré aux extrémités */
  background-origin: border-box;
  box-shadow: 0 8px 20px -6px rgba(1, 64, 147, 0.5);
}

/* Reflet qui traverse le bouton au survol */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(1, 64, 147, 0.55);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--light {
  color: var(--blue-600);
  background: #fff;
}

.btn--light:hover {
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--outline {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.btn--outline:hover {
  color: #fff;
  background: var(--blue-600);
}

.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
  color: var(--blue-600);
  background: #fff;
  border-color: #fff;
}

/* ---------- Titres de section ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}

.eyebrow .icon {
  align-self: flex-start;
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.28em;
  color: var(--blue);
}

.eyebrow--light {
  color: #fff;
}

.eyebrow--light .icon {
  color: var(--cyan);
}

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}

.section-head h2,
.text-block h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 18px;
}

.title-line::after {
  content: "";
  flex-shrink: 0;
  width: 60px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
}

.nowrap {
  white-space: nowrap;
}

.lead-strong {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- En-tête ---------- */
.site-header {
  --hdr-offset: 36px;
  position: sticky;
  top: calc(-1 * var(--hdr-offset));
  z-index: 50;
}

.topbar {
  height: 36px;
  font-size: 0.8rem;
  color: #fff;
  background: var(--ink);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.topbar__slogan {
  margin: 0;
}

.social {
  display: flex;
  gap: 6px;
}

.social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  border-radius: 50%;
}

.social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.social .icon {
  width: 14px;
  height: 14px;
}

.header-info {
  display: none;
}

.info-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 24px;
  line-height: 1.35;
  color: var(--navy);
}

.info-item:hover {
  color: var(--blue);
}

.info-item .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.info-item small {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
}

.info-item strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.navbar {
  position: relative;
  background: #fff;
  box-shadow: 0 6px 20px rgba(8, 38, 128, 0.08);
  transition: background-color 0.3s ease;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Mobile : logo horizontal « Dina-Services » ; bureau : logo rond au centre */
.brand {
  display: block;
}

.brand img {
  display: block;
  width: auto;
  height: 46px;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--blue-600);
  background: var(--soft);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(8, 38, 128, 0.12);
}

.nav.is-open {
  display: block;
}

.nav__list {
  display: flex;
  flex-direction: column;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding-bottom: 16px;
}

.nav__list a {
  position: relative;
  display: block;
  padding: 13px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.nav__list a[aria-current="page"],
.nav__list a.is-active {
  color: var(--blue);
}

.nav__list a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 4px;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after,
.nav__list a.is-active::after {
  transform: scaleX(1);
}

@media (min-width: 1100px) {
  .site-header {
    --hdr-offset: 112px;
  }

  .header-info {
    display: block;
    height: 76px;
    background: #fff;
  }

  .header-info__inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    height: 100%;
  }

  .header-info__inner > :nth-child(3) {
    grid-column: 4;
  }

  .info-item:nth-child(2)::before,
  .info-item:nth-child(4)::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    border-left: 1px dashed #b7c4de;
  }

  .navbar {
    background: linear-gradient(#fff 50%, transparent 50%);
    box-shadow: none;
  }

  .site-header.is-stuck .navbar {
    background: var(--blue-600);
  }

  .navbar__inner {
    position: relative;
    justify-content: center;
    padding-inline: 32px;
    background: linear-gradient(90deg, #013a87 0%, #0a54b8 50%, #013a87 100%);
    box-shadow: inset 0 -4px 0 var(--blue-light);
  }

  .brand {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(8, 38, 128, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
  }

  .brand img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .site-header.is-stuck .brand {
    width: 84px;
    height: 84px;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: block;
    width: 100%;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0;
  }

  .nav__list li:nth-child(3) {
    margin-left: auto;
  }

  .nav__list a,
  .nav__list a[aria-current="page"],
  .nav__list a.is-active {
    padding: 10px 18px;
    color: #fff;
    border: 0;
  }

  .nav__list a::after {
    left: 18px;
  }
}

/* ---------- Héros / diaporama (accueil) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding-block: 56px 28px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

@media (min-width: 700px) {
  .hero {
    min-height: clamp(560px, calc(100svh - 100px), 820px);
    padding-block: 80px 32px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(5, 17, 53, 0.94) 0%, rgba(1, 64, 147, 0.78) 50%, rgba(7, 110, 179, 0.12) 100%),
    linear-gradient(0deg, rgba(5, 17, 53, 0.65) 0%, rgba(5, 17, 53, 0) 40%);
}

.hero__media {
  position: absolute;
  top: -20%;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 140%;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.4s ease, transform 9s ease-out;
}

.hero__img.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero__img:first-child {
  animation: ken-burns 9s ease-out;
}

@keyframes ken-burns {
  from {
    transform: scale(1.12);
  }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.hero__slides {
  display: grid;
  max-width: 720px;
  margin-block: auto;
}

.hero__slide {
  grid-area: 1 / 1;
  visibility: hidden;
  transition: visibility 0s linear 0.7s;
}

.hero__slide.is-active {
  visibility: visible;
  transition-delay: 0s;
}

.hero__slide > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__slide.is-active > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__slide.is-active > :nth-child(2) {
  transition-delay: 0.12s;
}

.hero__slide.is-active > :nth-child(3) {
  transition-delay: 0.24s;
}

.hero__slide.is-active > :nth-child(4) {
  transition-delay: 0.36s;
}

.hero__title {
  margin-bottom: 0.45em;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: #fff;
}

.hero__lead {
  max-width: 580px;
  font-size: 1.08rem;
  color: #dbe7f5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(32px, 5vh, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__badges {
  display: none;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.9rem;
  color: #dbe7f5;
}

@media (min-width: 700px) {
  .hero__badges {
    display: flex;
  }
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__badges .icon {
  color: var(--cyan);
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero__controls[hidden] {
  display: none;
}

.hero__count {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.hero__current {
  font-size: 1.35rem;
  color: #fff;
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot {
  position: relative;
  width: 44px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.hero__dot::before,
.hero__dot span {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
}

.hero__dot::before {
  right: 0;
  background: rgba(255, 255, 255, 0.28);
}

.hero__dot span {
  width: 0;
  background: var(--cyan);
}

.hero__dot.is-active span {
  animation: slide-progress 7s linear forwards;
}

.hero.is-paused .hero__dot.is-active span {
  animation-play-state: paused;
}

@keyframes slide-progress {
  to {
    width: 100%;
  }
}

.hero__arrows {
  display: flex;
  gap: 10px;
}

.hero__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero__arrow:hover {
  color: var(--blue-600);
  background: #fff;
  border-color: #fff;
}

.sparkles {
  position: absolute;
  top: 16%;
  right: 7%;
  display: none;
  width: 130px;
  height: 120px;
  color: #fff;
  pointer-events: none;
}

.sparkles .icon {
  position: absolute;
  animation: twinkle 3.2s ease-in-out infinite;
}

.sparkles .icon:nth-child(1) {
  top: 8px;
  left: 0;
  width: 30px;
  height: 30px;
}

.sparkles .icon:nth-child(2) {
  top: 0;
  left: 58px;
  width: 50px;
  height: 50px;
  animation-delay: 0.9s;
}

.sparkles .icon:nth-child(3) {
  top: 62px;
  left: 26px;
  width: 42px;
  height: 42px;
  animation-delay: 1.8s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@media (min-width: 900px) {
  .sparkles {
    display: block;
  }
}

/* ---------- Bannière des pages intérieures ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: 90px 70px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: var(--ink);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(5, 17, 53, 0.72), rgba(1, 64, 147, 0.62));
}

.page-hero__bg {
  position: absolute;
  top: -35%;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 170%;
  background: url("../img/banniere-nettoyage.webp") center / cover no-repeat;
}

.page-hero h1 {
  margin-bottom: 0.35em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto 1em;
  color: #dbe7f5;
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.6;
}

.breadcrumb a {
  color: #fff;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb [aria-current] {
  color: var(--cyan);
}

@media (min-width: 1100px) {
  .hero,
  .page-hero {
    margin-top: -32px;
  }

  .hero {
    min-height: clamp(580px, calc(100svh - 144px), 820px);
    padding-top: 112px;
  }

  .page-hero {
    padding-block: 130px 90px;
  }
}

/* ---------- Cartes de services ---------- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.service-card {
  position: relative;
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  align-items: center;
  max-width: 380px;
  padding: 44px 30px 34px;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  margin-bottom: 22px;
  border: 2px dashed var(--blue-600);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-card__icon {
  background: #e8f2fc;
}

.service-card__icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.service-card h3 a {
  color: var(--navy);
}

.service-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service-card p {
  font-size: 0.93rem;
}

.service-card p::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin: 0 auto 14px;
  background: var(--blue);
  border-radius: 3px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.link-more .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s ease;
}

.service-card:hover .link-more .icon {
  transform: translateX(4px);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-600);
  background: #e6f0fb;
  border-radius: 999px;
}

/* ---------- Mise en page en deux colonnes ---------- */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.about-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 48px 24px;
  background: url("../img/fond-bleu-bulles.webp") left center / cover no-repeat;
  border-radius: var(--radius);
}

.year-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  display: grid;
  place-content: center;
  width: 104px;
  height: 104px;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  background: var(--navy);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.year-badge span {
  font-size: 0.75rem;
}

.year-badge strong {
  font-size: 1.5rem;
}

.media-frame {
  position: relative;
  isolation: isolate;
  max-width: 440px;
  margin: 18px auto 0;
}

.media-frame img {
  width: 100%;
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  z-index: -1;
  border: 2px solid #9fd0f0;
  border-radius: 44px;
}

.exp-badge {
  position: absolute;
  top: -18px;
  right: -12px;
  display: grid;
  place-content: center;
  width: 116px;
  height: 116px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--blue-600));
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.exp-badge strong {
  font-size: 2rem;
}

.exp-badge span {
  font-size: 0.75rem;
}

.text-block > :last-child {
  margin-bottom: 0;
}

.divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 0;
}

/* ---------- Comparateur avant / après ---------- */
.compare {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  touch-action: pan-y;
  user-select: none;
  cursor: ew-resize;
}

.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare:has(.compare__range:focus-visible) {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  pointer-events: none;
}

.compare__handle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--blue-600);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(5, 17, 53, 0.3);
  transform: translate(-50%, -50%);
}

.compare__label {
  position: absolute;
  bottom: 14px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(5, 17, 53, 0.6);
  border-radius: 999px;
  pointer-events: none;
}

.compare__label--before {
  left: 14px;
}

.compare__label--after {
  right: 14px;
}

.compare--circle {
  width: min(100%, 380px);
  aspect-ratio: 1;
  border: 10px solid var(--navy);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.compare--circle .compare__label {
  bottom: 22%;
}

.compare--circle .compare__label--before {
  left: 14%;
}

.compare--circle .compare__label--after {
  right: 14%;
}

/* ---------- Atouts (« Pourquoi nous choisir ») ---------- */
.features-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.features-section::before,
.features-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 147, 213, 0.12), rgba(37, 147, 213, 0) 70%);
}

.features-section::before {
  top: 10%;
  left: -220px;
}

.features-section::after {
  right: -220px;
  bottom: -120px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 34px 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.feature:hover {
  border-color: #cfe0f5;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.feature:hover::after {
  transform: scaleX(1);
}

.feature__number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #d3e2f4;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--blue-600));
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(1, 64, 147, 0.28);
  transition: transform 0.3s ease;
}

.feature:hover .feature__icon {
  transform: rotate(-6deg) scale(1.05);
}

.feature__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.feature p {
  margin: 0;
  font-size: 0.93rem;
}

.feature--featured {
  color: #dbe7f5;
  background: linear-gradient(150deg, var(--ink) 0%, var(--blue-600) 70%, var(--blue) 100%);
  border-color: transparent;
}

.feature--featured h3 {
  color: #fff;
}

.feature--featured .feature__icon {
  color: var(--blue-600);
  background: #fff;
  box-shadow: 0 12px 24px rgba(5, 17, 53, 0.35);
}

.feature--featured .feature__number {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.22);
}

/* ---------- Valeurs (À propos) ---------- */
.split--top {
  align-items: start;
}

.values {
  display: grid;
  gap: 20px;
}

@media (min-width: 600px) {
  .values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .values > :nth-child(even) {
    margin-top: 36px;
    margin-bottom: -36px;
  }
}

.value-card {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--blue-600));
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(1, 64, 147, 0.25);
}

.value-card__icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.value-card h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
}

.quote {
  position: relative;
  margin: 28px 0 0;
  padding: 24px 26px;
  background: #fff;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  box-shadow: var(--shadow);
}

.quote::before {
  content: "“";
  position: absolute;
  top: -14px;
  right: 22px;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(7, 110, 179, 0.15);
}

.quote blockquote {
  margin: 0;
}

.quote p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--navy);
}

.quote figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Liens vers les services (tuiles) ---------- */
.services-strip {
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.services-strip__title {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
}

.service-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
}

.service-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.service-links a:hover {
  color: var(--blue-600);
  background: #fff;
  border-color: #cfe0f5;
  transform: translateY(-3px);
}

.service-links__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(8, 38, 128, 0.08);
}

.service-links__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-links small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--blue);
}

.service-links a > .icon {
  width: 1em;
  height: 1em;
  margin-left: auto;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.service-links a:hover > .icon {
  transform: translateX(3px);
}

/* ---------- Questions fréquentes ---------- */
.faq-layout {
  gap: 48px;
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .faq-layout .text-block {
    position: sticky;
    top: 110px;
  }
}

.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq__item[open] {
  border-color: #cfe0f5;
  box-shadow: var(--shadow-lg);
}

.faq__item summary {
  position: relative;
  padding: 20px 68px 20px 24px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23014093' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq__item summary:hover {
  color: var(--blue);
}

.faq__item[open] summary::after {
  background-color: #e6f0fb;
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 24px 22px;
}

.faq__answer p {
  margin: 0;
}

.faq__answer a {
  text-decoration: underline;
}

/* Ouverture animée des réponses (navigateurs compatibles) */
@supports selector(::details-content) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Étapes (« Comment ça se passe ? ») ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px;
}

.step {
  position: relative;
  padding: 32px 26px 28px;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.step__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--blue-600));
  border-radius: 50%;
  box-shadow: 0 0 0 8px #e6f0fb;
}

.step__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}

.step__number {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Ligne pointillée reliant les étapes */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 64px;
    left: calc(50% + 40px);
    width: calc(100% - 56px);
    border-top: 2px dashed #b7c4de;
  }
}

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.gallery--preview {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 64, 147, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 12px;
  color: var(--blue-600);
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.06);
}

.gallery a:hover::after,
.gallery a:hover .icon {
  opacity: 1;
}

.gallery a:hover .icon {
  transform: translate(-50%, -50%) scale(1);
}

.center-action {
  margin-top: 40px;
  text-align: center;
}

/* Visionneuse (créée par main.js) */
.lightbox {
  width: min(100% - 32px, 1100px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgba(5, 17, 53, 0.92);
}

.lightbox__figure {
  margin: 0;
}

.lightbox__img {
  width: auto;
  max-height: calc(100vh - 140px);
  margin-inline: auto;
  border-radius: 10px;
}

.lightbox__caption {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
  color: #fff;
}

.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox__btn:hover {
  background: var(--blue);
}

.lightbox__btn--close {
  top: 16px;
  right: 16px;
}

.lightbox__btn--prev {
  top: 50%;
  left: 16px;
}

.lightbox__btn--next {
  top: 50%;
  right: 16px;
}

/* ---------- Vidéos ---------- */
.videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.video {
  width: min(100%, 320px);
  margin: 0;
}

.video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.video figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  color: var(--navy);
}

/* ---------- Bandeau d'appel à l'action ---------- */
.cta {
  padding-block: clamp(64px, 8vw, 100px) clamp(100px, 10vw, 124px);
  background: linear-gradient(#fff, var(--soft));
}

.cta__card {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, var(--ink) 0%, var(--blue-600) 50%, var(--blue) 100%);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(1, 64, 147, 0.28);
}

.cta__card::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 30%;
  z-index: -1;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(43, 198, 238, 0.32), rgba(43, 198, 238, 0) 70%);
  border-radius: 50%;
}

.cta__bg {
  position: absolute;
  top: -30%;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 160%;
  background: url("../img/fond-etoiles.webp") center / cover no-repeat;
  opacity: 0.5;
}

.cta__content {
  padding: clamp(32px, 5vw, 64px);
}

.cta h2 {
  margin-bottom: 0.4em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
}

.cta__content > p {
  max-width: 520px;
  color: #dbe7f5;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 30px;
}

.cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1.3;
  color: #fff;
}

.cta__phone:hover {
  color: #fff;
}

.cta__phone-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--blue-600);
  background: #fff;
  border-radius: 50%;
  animation: ring 2.4s infinite;
  transition: transform 0.2s ease;
}

.cta__phone:hover .cta__phone-icon {
  transform: scale(1.06);
}

.cta__phone-icon .icon {
  width: 24px;
  height: 24px;
}

.cta__phone small {
  display: block;
  font-size: 0.8rem;
  color: #b9d3ee;
}

.cta__phone strong {
  font-size: 1.35rem;
}

@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }

  70%,
  100% {
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
}

.cta__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #dbe7f5;
}

.cta__points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta__points .icon {
  color: var(--cyan);
}

.cta__media {
  position: relative;
  min-height: 300px;
}

.cta__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #0457a3 0%, rgba(4, 87, 163, 0) 45%);
}

.cta__badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 18px;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.cta__badge .icon {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.cta__badge strong {
  display: block;
}

@media (min-width: 900px) {
  .cta__card {
    grid-template-columns: 1.35fr 1fr;
  }

  .cta__media::before {
    background: linear-gradient(90deg, #0560ab 0%, rgba(5, 96, 171, 0) 45%);
  }
}

/* ---------- Page service ---------- */
.layout-sidebar {
  display: grid;
  gap: 56px;
}

@media (min-width: 960px) {
  .layout-sidebar {
    grid-template-columns: 300px 1fr;
    align-items: start;
    gap: 64px;
  }

  .sidebar {
    position: sticky;
    top: 110px;
  }
}

.sidebar {
  order: 2;
}

.layout-sidebar > article {
  order: 1;
  min-width: 0;
}

@media (min-width: 960px) {
  .sidebar,
  .layout-sidebar > article {
    order: 0;
  }
}

.sidebar-box {
  padding-top: 26px;
  border-top: 4px solid var(--cyan);
}

.sidebar-title {
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--blue);
}

.sidebar-nav a[aria-current="page"] {
  color: #fff;
  background: var(--blue-600);
  border-bottom-color: transparent;
  border-radius: 8px;
}

.sidebar-nav .icon {
  width: 1em;
  height: 1em;
}

.help-box {
  margin-top: 32px;
  padding: 32px 26px;
  text-align: center;
  color: #dbe7f5;
  background: linear-gradient(150deg, var(--navy), var(--blue));
  border-radius: var(--radius);
}

.help-box > .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  padding: 13px;
  color: var(--navy);
  background: #fff;
  border-radius: 50%;
}

.help-box p {
  margin: 0;
}

.help-box a {
  display: inline-block;
  margin: 6px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.service-detail h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.service-detail .title-line {
  display: block;
}

.service-detail .title-line::after {
  display: block;
  margin-top: 16px;
}

.service-detail__list {
  display: grid;
  gap: 32px;
  align-items: center;
  margin: 40px 0;
}

@media (min-width: 720px) {
  .service-detail__list {
    grid-template-columns: 1fr 280px;
  }
}

.service-detail__list h3 {
  font-size: 1.3rem;
}

.service-detail__list img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}

.checklist li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 34px;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 22px;
  height: 22px;
  background: #e3effb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23014093' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-radius: 50%;
}

.offer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 40px;
  padding: 22px 24px;
  color: var(--navy);
  background: var(--soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

.offer .icon {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--blue);
}

.offer p {
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  border-radius: 12px;
}

.photo-grid figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  text-align: center;
}

.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding: 28px;
  color: var(--navy);
  background: linear-gradient(135deg, #eef5fd, #e1eefb);
  border-radius: var(--radius);
}

.soon .icon {
  width: 30px;
  height: 30px;
  color: var(--blue);
}

.soon p {
  flex: 1 1 260px;
  margin: 0;
}

/* ---------- Formulaire de contact ---------- */
.contact-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 100px);
  color: #dbe7f5;
  background: var(--ink);
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/fond-etoiles.webp") center / cover no-repeat, linear-gradient(135deg, var(--ink) 0%, #0b2a6e 100%);
}

.contact-band__inner {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .contact-band__inner {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }
}

.contact-band h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  color: #fff;
}

.contact-band .title-line::after {
  background: var(--cyan);
}

.contact-list li {
  display: flex;
  gap: 12px;
  padding: 6px 0;
}

.contact-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 0.3em;
  color: #2a8ff0;
}

.contact-list a {
  color: inherit;
}

.contact-list a:hover {
  color: #fff;
}

.form {
  padding: clamp(24px, 4vw, 40px);
  color: var(--text);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.form__grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 600px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field select {
  padding-right: 44px;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
  appearance: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7, 110, 179, 0.15);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  margin: 16px 0 20px;
  font-size: 0.8rem;
  color: #6b7590;
}

.turnstile {
  min-height: 65px;
}

.turnstile[data-sitekey=""] {
  display: none;
}

/* Aperçu local uniquement : emplacement du widget Turnstile */
.turnstile--preview {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 0.85rem;
  color: #6b7590;
  background: #f9fbfe;
  border: 1px dashed #b7c4de;
  border-radius: 10px;
}

.turnstile.is-pending::before {
  content: "Vérification anti-spam en cours… Veuillez patienter un instant, puis renvoyer le formulaire.";
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--blue-600);
}

.form__note a {
  text-decoration: underline;
}

.form__alert {
  margin-bottom: 18px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #a12121;
  background: #fdecec;
  border-radius: 10px;
}

/* ---------- Liste déroulante moderne (navigateurs compatibles) ---------- */
@supports (appearance: base-select) {
  .field select,
  .field select::picker(select) {
    appearance: base-select;
  }

  .field select {
    display: flex;
    align-items: center;
    padding-right: 16px;
    background-image: none;
    cursor: pointer;
  }

  .field select::picker-icon {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
    transition: rotate 0.25s ease;
  }

  .field select:open::picker-icon {
    rotate: 180deg;
  }

  .field select::picker(select) {
    margin-block: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(8, 38, 128, 0.18);
    opacity: 0;
    translate: 0 -8px;
    transition: opacity 0.2s ease, translate 0.2s ease, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
  }

  .field select:open::picker(select) {
    opacity: 1;
    translate: 0 0;
  }

  @starting-style {
    .field select:open::picker(select) {
      opacity: 0;
      translate: 0 -8px;
    }
  }

  .field option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    font-size: 0.95rem;
    color: var(--navy);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .field option img,
  .field option .icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 4px;
    object-fit: contain;
    color: var(--blue);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(8, 38, 128, 0.1);
  }

  .field option:hover,
  .field option:focus-visible {
    color: var(--blue-600);
    background: var(--soft);
    outline: none;
  }

  .field option:checked {
    font-weight: 600;
    color: var(--blue-600);
    background: #e6f0fb;
  }

  .field option::checkmark {
    order: 1;
    margin-left: auto;
    content: "✓";
    color: var(--blue);
  }

  .field option[value=""] {
    color: #6b7590;
  }
}

/* ---------- Page contact ---------- */
.contact-layout {
  display: grid;
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(8, 38, 128, 0.12);
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 410px 1fr;
  }
}

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 4vw, 48px);
  color: #dbe7f5;
  background: linear-gradient(160deg, var(--ink) 0%, var(--blue-600) 60%, var(--blue) 100%);
}

.contact-panel__bg {
  position: absolute;
  top: -20%;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 140%;
  background: url("../img/fond-etoiles.webp") center / cover no-repeat;
  opacity: 0.5;
}

.contact-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 44px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.contact-panel h3,
.contact-form h3 {
  font-size: 1.5rem;
}

.contact-panel h3 {
  color: #fff;
}

.contact-panel__list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.contact-panel__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  line-height: 1.4;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

a.contact-panel__item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.contact-panel__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--blue-600);
  background: #fff;
  border-radius: 12px;
}

.contact-panel__icon .icon {
  width: 22px;
  height: 22px;
}

.contact-panel small {
  display: block;
  font-size: 0.78rem;
  color: #9fc2e8;
}

.contact-panel strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.contact-panel__social {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.contact-panel .social--squares {
  margin-top: 10px;
}

.contact-form {
  padding: clamp(28px, 4vw, 52px);
}

.contact-form .form {
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* Carte (chargée au clic) */
.map {
  display: grid;
  place-items: center;
  min-height: 440px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(1, 64, 147, 0.14) 1px, rgba(1, 64, 147, 0) 0) 0 0 / 22px 22px,
    linear-gradient(135deg, #eef5fd, #dcebfa);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.map.is-loaded {
  display: block;
}

.map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

.map__placeholder {
  max-width: 560px;
  padding: 48px 20px;
  text-align: center;
}

.map__placeholder > .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  padding: 17px;
  color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--blue-600));
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(7, 110, 179, 0.12);
}

.map__placeholder h2 {
  font-size: 1.4rem;
}

.map__placeholder p {
  font-size: 0.92rem;
}

.map__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Pages juridiques ---------- */
.legal {
  max-width: 820px;
}

.legal h2 {
  margin-top: 2em;
  font-size: 1.35rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.35em;
}

.legal .updated {
  font-size: 0.9rem;
  color: #6b7590;
}

/* ---------- Page de confirmation / 404 ---------- */
.message {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.message > .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--blue);
  stroke-width: 1.5;
}

.message__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.page-hero.page-hero--404 {
  padding-block: 120px 110px;
}

.page-hero .error-code {
  margin: 0 auto;
  font-size: clamp(6rem, 20vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* ---------- Pied de page ---------- */
.site-footer {
  font-size: 0.93rem;
  color: var(--muted);
}

.footer-main {
  position: relative;
  padding: 96px 0 56px;
  background: var(--ink) url("../img/fond-etoiles.webp") center / cover no-repeat;
}

.footer-logo {
  position: absolute;
  top: 0;
  left: 50%;
  width: 104px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
}

.footer-logo img {
  border-radius: 50%;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 20px;
  line-height: 1.35;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-contact__item:hover {
  color: #fff;
  background: rgba(37, 147, 213, 0.16);
  border-color: rgba(37, 147, 213, 0.5);
  transform: translateY(-3px);
}

.footer-contact__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fff;
  background: linear-gradient(150deg, var(--blue-light), var(--blue-600));
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.footer-contact__icon .icon {
  width: 22px;
  height: 22px;
}

.footer-contact small {
  display: block;
  font-size: 0.78rem;
  color: #8fb0d6;
}

.footer-contact strong {
  font-size: 0.98rem;
  font-weight: 600;
  word-break: break-word;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 40px;
}

.footer-title {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
  border-radius: 3px;
}

.footer-title--brand {
  font-size: 1.4rem;
  color: var(--blue-light);
}

.footer-links li + li {
  margin-top: 4px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue-light);
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-hours {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
}

.footer-hours strong {
  font-size: 1.05rem;
  color: #fff;
}

.site-footer address {
  margin-bottom: 20px;
}

.btn--small {
  padding: 0.7em 1.3em;
  font-size: 0.88rem;
}

.social--squares {
  gap: 10px;
  margin-top: 20px;
}

.social--squares a {
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social--squares a:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-3px);
}

.social--squares .icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding: 22px 0;
  font-size: 0.85rem;
  background: #030a22;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.footer-bottom p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.legal-links a {
  display: inline-block;
  padding: 6px 14px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.legal-links a:hover {
  color: #fff;
  background: rgba(37, 147, 213, 0.18);
  border-color: var(--blue-light);
}

.footer-credit a {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(var(--cyan), var(--cyan)) left bottom / 0 2px no-repeat;
  transition: color 0.2s ease, background-size 0.25s ease;
}

.footer-credit a:hover {
  color: var(--cyan);
  background-size: 100% 2px;
}

@media (max-width: 860px) {
  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Place réservée aux boutons flottants (appel et retour en haut) sur mobile */
@media (max-width: 1099px) {
  .footer-bottom {
    padding-bottom: 96px;
  }
}

/* ---------- Boutons flottants ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--blue-600);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(1, 64, 147, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}

.to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.to-top:hover {
  color: #fff;
  background: var(--blue);
}

.to-top .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.to-top:hover .icon {
  transform: translateY(-3px);
}

.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top__ring circle {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--progress, 0));
}

.call-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(7, 110, 179, 0.5);
  animation: pulse 2.4s infinite;
}

.call-fab:hover {
  color: #fff;
}

.call-fab .icon {
  width: 24px;
  height: 24px;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 16px rgba(7, 110, 179, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(7, 110, 179, 0);
  }
}

@media (min-width: 1100px) {
  .call-fab {
    display: none;
  }
}

/* ---------- Écran de chargement « nettoyage » (première visite) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  animation: preloader-fallback 0.6s ease 6s forwards;
}

.is-first-visit .preloader {
  display: block;
}

.preloader.is-done {
  pointer-events: none;
}

.preloader__screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #0a5cbf 0%, var(--blue-600) 45%, var(--ink) 100%);
}

.preloader.is-done .preloader__screen {
  animation: wipe-out 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.preloader__content {
  position: relative;
  text-align: center;
}

.preloader__logo {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 26px;
}

.preloader__logo::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(43, 198, 238, 0.6);
  border-radius: 50%;
  animation: ring-pulse 1.6s ease-out infinite;
}

.preloader__logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: logo-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.preloader__logo .icon {
  position: absolute;
  color: #fff;
  animation: twinkle 1.6s ease-in-out infinite;
}

.preloader__logo .icon:nth-of-type(1) {
  top: -10px;
  right: -20px;
  width: 26px;
  height: 26px;
}

.preloader__logo .icon:nth-of-type(2) {
  top: 22px;
  right: -42px;
  width: 15px;
  height: 15px;
  animation-delay: 0.4s;
}

.preloader__logo .icon:nth-of-type(3) {
  bottom: 6px;
  left: -32px;
  width: 20px;
  height: 20px;
  animation-delay: 0.8s;
}

.preloader__text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #dbe7f5;
}

.preloader__text span {
  animation: dot-blink 1.2s infinite;
}

.preloader__text span:nth-child(2) {
  animation-delay: 0.2s;
}

.preloader__text span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Bulles de savon */
.preloader__bubbles {
  position: absolute;
  inset: 0;
}

.preloader__bubbles span {
  position: absolute;
  bottom: -90px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08) 60%, rgba(255, 255, 255, 0.18));
  animation: bubble-rise 3s ease-in infinite;
}

.preloader__bubbles span:nth-child(1) { left: 8%; width: 46px; height: 46px; animation-duration: 3.2s; }
.preloader__bubbles span:nth-child(2) { left: 18%; width: 22px; height: 22px; animation-duration: 2.6s; animation-delay: 0.3s; }
.preloader__bubbles span:nth-child(3) { left: 30%; width: 64px; height: 64px; animation-duration: 3.6s; animation-delay: 0.1s; }
.preloader__bubbles span:nth-child(4) { left: 42%; width: 18px; height: 18px; animation-duration: 2.4s; animation-delay: 0.6s; }
.preloader__bubbles span:nth-child(5) { left: 55%; width: 38px; height: 38px; animation-duration: 3s; animation-delay: 0.2s; }
.preloader__bubbles span:nth-child(6) { left: 66%; width: 26px; height: 26px; animation-duration: 2.8s; animation-delay: 0.5s; }
.preloader__bubbles span:nth-child(7) { left: 76%; width: 56px; height: 56px; animation-duration: 3.4s; }
.preloader__bubbles span:nth-child(8) { left: 87%; width: 20px; height: 20px; animation-duration: 2.5s; animation-delay: 0.4s; }
.preloader__bubbles span:nth-child(9) { left: 93%; width: 34px; height: 34px; animation-duration: 3.1s; animation-delay: 0.7s; }
.preloader__bubbles span:nth-child(10) { left: 3%; width: 16px; height: 16px; animation-duration: 2.7s; animation-delay: 0.9s; }

/* Raclette qui essuie l'écran */
.preloader__squeegee {
  position: absolute;
  top: -2%;
  bottom: -2%;
  left: -9px;
  width: 18px;
  background: linear-gradient(90deg, #1b2a4a 0%, #3c4f75 35%, #c9d6ea 50%, #3c4f75 65%, #1b2a4a 100%);
  border-radius: 9px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
}

.preloader__squeegee::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  width: 160px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35));
}

.preloader__squeegee::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 90px;
  height: 22px;
  margin-top: -11px;
  background: linear-gradient(#2bc6ee, #0b7fd1);
  border-radius: 11px 4px 4px 11px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.preloader.is-done .preloader__squeegee {
  opacity: 1;
  animation: squeegee 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes wipe-out {
  from {
    clip-path: inset(0 0 0 0);
  }

  to {
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes squeegee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100vw);
  }
}

@keyframes bubble-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-115vh) scale(1.1);
  }
}

@keyframes logo-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes ring-pulse {
  from {
    opacity: 1;
    transform: scale(0.9);
  }

  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes dot-blink {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }
}

/* Sécurité : l'écran disparaît de lui-même si le JavaScript ne s'exécute pas */
@keyframes preloader-fallback {
  to {
    visibility: hidden;
    opacity: 0;
  }
}

/* ---------- Transitions entre les pages ---------- */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: en-tete;
}

::view-transition-old(root) {
  animation: page-out 0.3s ease both;
}

::view-transition-new(root) {
  animation: page-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Fondu de secours (navigateurs sans View Transitions et aperçu local) */
.is-fading main,
.is-fading .site-footer {
  animation: page-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-leaving main,
.is-leaving .site-footer {
  animation: page-out 0.25s ease forwards;
}

/* ---------- Défilement fluide (Lenis) ---------- */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ---------- Parallaxe (décalage calculé par main.js) ---------- */
[data-parallax] {
  translate: 0 var(--parallax, 0px);
  will-change: translate;
}

/* ---------- Apparition au défilement (activée par main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s), transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.services-grid > :nth-child(3n + 2),
.features > :nth-child(2),
.steps > :nth-child(2),
.gallery > :nth-child(4n + 2) {
  --delay: 0.1s;
}

.services-grid > :nth-child(3n + 3),
.features > :nth-child(3),
.steps > :nth-child(3),
.gallery > :nth-child(4n + 3) {
  --delay: 0.2s;
}

.features > :nth-child(4),
.steps > :nth-child(4),
.gallery > :nth-child(4n + 4) {
  --delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__dot.is-active span {
    width: 100%;
  }

  .preloader {
    display: none !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

@media print {
  .preloader,
  .site-header,
  .to-top,
  .call-fab,
  .contact-band form {
    display: none;
  }
}
