:root {
  color-scheme: light;
  --bg: #eef3f7;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --stroke: rgba(140, 160, 175, 0.35);
  --text: #182026;
  --muted: #52606b;
  --accent: #4f8aa3;
  --accent-strong: #357389;
  --shadow: 0 30px 60px rgba(15, 35, 45, 0.15);
  --radius: 26px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f5f9fb, #e6edf2 55%, #dfe7ee);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.7;
}

.shape-one {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(130, 190, 205, 0.45), transparent 70%);
  top: -80px;
  left: -40px;
}

.shape-two {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(200, 220, 230, 0.55), transparent 65%);
  bottom: -140px;
  right: -120px;
}

.shape-three {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(160, 190, 210, 0.4), transparent 70%);
  top: 35%;
  right: 15%;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 24px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  margin-right: auto;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(79, 138, 163, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid rgba(79, 138, 163, 0.6);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 15px 30px rgba(53, 115, 137, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(79, 138, 163, 0.4);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 35, 45, 0.12), rgba(20, 35, 45, 0.05)),
    url("img/cover.jpg") center/cover no-repeat;
  border-radius: 0 0 60px 60px;
}

.hero-content {
  position: relative;
  padding: 46px 46px 38px;
  max-width: 620px;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  margin: 0 0 16px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 24px;
}

.trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stroke);
  font-weight: 600;
}

.section {
  padding: 90px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 60px;
  margin: 40px auto;
}

#choix {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(20, 35, 45, 0.3), rgba(20, 35, 45, 0.1)),
    url("img/cover.jpg") center/cover no-repeat;
}

#choix::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(235, 242, 248, 0.6);
  pointer-events: none;
  z-index: 0;
}

#choix .container {
  position: relative;
  z-index: 1;
}

#choix .card {
  --glass-blur: 12px;
}


#services {
  position: relative;
  overflow: hidden;
}

#services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 225, 235, 0.7), transparent 55%),
    radial-gradient(circle at 88% 28%, rgba(190, 215, 230, 0.65), transparent 60%),
    radial-gradient(circle at 40% 85%, rgba(170, 200, 220, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(245, 250, 252, 0.9), rgba(220, 235, 245, 0.75));
  pointer-events: none;
  z-index: 0;
}

#services::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
}

#services .container {
  position: relative;
  z-index: 1;
}

#services .card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#services .card::before,
#services .card::after {
  content: none;
}

.section-head {
  margin-bottom: 36px;
}


.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card {
  padding: 26px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2),
    box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
  box-shadow: 0 10px 28px rgba(120, 145, 165, 0.25),
    0 2px 8px rgba(120, 145, 165, 0.15);
  --glass-blur: 10px;
}

.card.glass {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
}

.card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  filter: url(#glass-distortion);
  isolation: isolate;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.22)
    );
  border-radius: inherit;
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 2;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(120, 145, 165, 0.32),
    0 6px 14px rgba(120, 145, 165, 0.2);
  --glass-blur: 12px;
}

#temoignages {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(20, 35, 45, 0.3), rgba(20, 35, 45, 0.1)),
    url("img/cover.jpg") center/cover no-repeat;
}

#temoignages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(235, 242, 248, 0.6);
  pointer-events: none;
  z-index: 0;
}

#temoignages .container {
  position: relative;
  z-index: 1;
}

#processus {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(20, 35, 45, 0.3), rgba(20, 35, 45, 0.1)),
    url("img/cover.jpg") center/cover no-repeat;
}

#processus::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(235, 242, 248, 0.6);
  pointer-events: none;
  z-index: 0;
}

#processus .container {
  position: relative;
  z-index: 1;
}

#temoignages .card::after {
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.08)
    );
  border: 1px solid rgba(255, 255, 255, 0.18);
}


.span-2 {
  grid-column: span 7;
}

.bento-grid .card:not(.span-2) {
  grid-column: span 5;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stroke);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grid-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.marquee {
  display: block;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}

.marquee .card {
  flex: 0 0 260px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-item {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 22px;
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(0deg, rgba(15, 30, 40, 0.65), rgba(15, 30, 40, 0));
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item .link {
  margin-top: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item:hover .overlay,
.gallery-item:focus-visible .overlay {
  opacity: 1;
}

.section-actions {
  margin-top: 30px;
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step {
  font-weight: 600;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.about-card ul {
  margin: 16px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}

.about-card img {
  border-radius: 16px;
}

.mission {
  font-weight: 600;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.stars {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #f2b84b;
}

.author {
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

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

#contact {
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 140%;
  background:
    radial-gradient(circle at 20% 20%, rgba(100, 170, 190, 0.2), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(180, 210, 225, 0.25), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(130, 160, 180, 0.2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#contact .container {
  position: relative;
  z-index: 1;
}

.info-block {
  padding: 18px;
  margin: 18px 0 20px;
}

.map {
  padding: 12px;
  margin-bottom: 20px;
}

.map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 16px;
}

.contact-form {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(79, 138, 163, 0.5);
  outline-offset: 2px;
}

.error {
  font-size: 0.85rem;
  color: #9e2f2f;
  min-height: 1.1em;
}

.form-success {
  color: var(--accent-strong);
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-success.visible {
  opacity: 1;
  transform: translateY(0);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: rgba(158, 47, 47, 0.7);
  box-shadow: 0 0 0 2px rgba(158, 47, 47, 0.2);
}

.placeholder {
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: min(900px, 90vw);
  padding: 18px;
  position: relative;
}

.lightbox-content img {
  border-radius: 18px;
  max-height: 70vh;
  object-fit: cover;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
}

.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

.lightbox-caption {
  margin-top: 12px;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-footer {
  padding: 30px 0 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  gap: 16px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-inner a {
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-wrap {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-right: 0;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    order: 3;
  }

  .nav-wrap .btn-primary {
    order: 4;
    width: 100%;
    margin-top: 8px;
  }

  .site-nav a {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 70px;
  }

  .hero-content {
    padding: 32px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .bento-grid .card:not(.span-2) {
    grid-column: span 1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 26px;
  }

  .section {
    padding: 70px 0;
  }
}
