/* FIT Assurance & Patrimoine — base styles, layout primitives and shared components. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-neutral);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
}

h1 { font-weight: 300; font-style: italic; font-size: var(--size-hero); color: var(--color-secondary); }
h2 { font-weight: 600; font-size: var(--size-h2); }
h3 { font-weight: 400; font-style: italic; font-size: var(--size-h3); color: var(--color-secondary); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: var(--color-hero-bg);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: var(--space-sm);
}

.section { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }

/* Buttons */
.btn {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
  overflow: hidden;
}
.btn-accent:hover { box-shadow: 0 6px 20px rgba(61, 222, 200, 0.4); }
.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-accent:hover::before { left: 120%; }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn.is-loading {
  color: transparent;
  pointer-events: none;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--color-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: fit-spin 0.7s linear infinite;
}

@keyframes fit-spin {
  to { transform: rotate(360deg); }
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(132, 166, 200, 0.3);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: fit-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader { transition: none; }
  .page-loader-ring, .btn.is-loading::after { animation: none; }
  .section-decorated::before, .section-decorated::after { animation: none; }
  .hero-photo-frame, .hero-visual-svg { animation: none; }
  .reveal { transition-delay: 0s; }
  .img-zoom:hover img { transform: none; }
  .btn-accent::before { transition: none; display: none; }
  .phone-float::before { animation: none; opacity: 0; }
  .urgency-split-dot, .about-split-dot, .hero-photo-dot, .cta-banner-dot { animation: none; }
  .hero-photo-bleed .eyebrow,
  .hero-photo-bleed h1,
  .hero-photo-bleed .hero-subtitle,
  .hero-photo-bleed .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-photo-bleed-bg { transform: none !important; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
}

/* Transparent header overlaying the homepage photo hero, solidifying on scroll */
body.has-hero-header .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.has-hero-header .site-header.is-scrolled {
  background: var(--color-primary);
  box-shadow: 0 4px 20px rgba(11, 34, 64, 0.18);
}

/* Reading-progress bar — fills across the header width as the visitor scrolls the page */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-accent);
  z-index: 101;
}

.site-header .container {
  max-width: 1520px;
  padding-left: var(--space-sm);
  padding-right: var(--space-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img { height: 64px; width: auto; display: block; }

.footer-logo { height: 76px; width: auto; display: block; margin-bottom: var(--space-sm); }

.primary-nav { flex: 1; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu > li { position: relative; }

.nav-menu a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-nav);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.nav-menu a:hover { color: var(--color-accent); text-decoration: none; }

.nav-menu > li > a {
  position: relative;
  padding-bottom: 4px;
}
.nav-menu > li > a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transition: right 0.25s ease;
}
.nav-menu > li > a:hover::before,
.nav-menu > li > a:focus-visible::before { right: 0; }

.nav-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: var(--space-xs) 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}

.nav-menu .menu-item-has-children:hover .sub-menu,
.nav-menu .menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--color-primary);
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  font-size: 14px;
}
.nav-menu .sub-menu a:hover { color: var(--color-secondary); background: var(--color-neutral); }

.header-cta { white-space: nowrap; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; }
.header-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; }

/* Floating call button — mobile only */
.phone-float {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 34, 64, 0.35);
  z-index: 80;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.phone-float:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 34, 64, 0.4); }
.phone-float svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.phone-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.55;
  animation: fit-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes fit-ping {
  0% { transform: scale(1); opacity: 0.55; }
  75%, 100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 700px) {
  .phone-float { display: flex; }
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

/* Grids */
.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.profile-card { display: block; }
.profile-card:hover { text-decoration: none; }
.profile-card h3 { color: var(--color-primary); font-style: normal; font-weight: 600; }
.card-link {
  display: inline-block;
  margin-top: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-secondary);
}

/* Icon frame */
.icon-frame {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.icon-frame svg { width: 26px; height: 26px; stroke: var(--color-secondary); fill: none; }
.icon-frame .icon-fill { fill: var(--color-accent); stroke: none; }
.card:hover .icon-frame { background: var(--color-accent); transform: scale(1.08) rotate(-6deg); }
.card:hover .icon-frame svg { stroke: var(--color-primary); }
.card:hover .icon-frame .icon-fill { fill: var(--color-primary); }

/* Needs-grid layout variants (audience pages) */
.needs-bento {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(3, 1fr);
}
.needs-bento .need-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #12335C 0%, var(--color-primary) 100%);
}
.needs-bento .need-card--featured h3,
.needs-bento .need-card--featured p { color: #FFFFFF; }
.needs-bento .need-card--featured .icon-frame { background: rgba(255, 255, 255, 0.12); }
.needs-bento .need-card--featured .icon-frame svg { stroke: var(--color-accent); }
.needs-bento .need-card--featured:hover .icon-frame { background: var(--color-accent); }
@media (max-width: 900px) {
  .needs-bento { grid-template-columns: repeat(2, 1fr); }
  .needs-bento .need-card--featured { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 700px) {
  .needs-bento { grid-template-columns: 1fr; }
  .needs-bento .need-card--featured { grid-column: span 1; }
}

.needs-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.needs-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.needs-list-item:hover { box-shadow: var(--shadow-card-hover); transform: translateX(4px); }
.needs-list-item .icon-frame { margin-bottom: 0; flex-shrink: 0; }
.needs-list-copy h3 { margin-bottom: 4px; }
@media (max-width: 700px) {
  .needs-list-item { flex-direction: column; gap: var(--space-sm); }
}

.needs-numbered .need-card { border-top: 3px solid var(--color-accent); }

/* Decorative background blobs for section depth */
.section-decorated { position: relative; overflow: hidden; }
.section-decorated::before,
.section-decorated::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}
.section-decorated::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(61, 222, 200, 0.16) 0%, rgba(61, 222, 200, 0) 70%);
  top: -100px;
  right: -80px;
}
.section-decorated::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(26, 90, 138, 0.12) 0%, rgba(26, 90, 138, 0) 70%);
  bottom: -80px;
  left: -60px;
}
.section-decorated > .container { position: relative; z-index: 1; }

/* Dark section background — cards stay white/light so they pop against the navy */
.section-dark {
  background: linear-gradient(160deg, var(--color-primary) 0%, #0e2a4d 100%);
}
.section-dark .eyebrow { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.section-dark h2 { color: #FFFFFF; }
.section-dark > .container > p { color: var(--color-hero-bg); }
.section-dark .carousel-arrow { background: var(--color-surface); }
.section-dark .carousel-dot::after { background: rgba(255, 255, 255, 0.3); }
.section-dark .carousel-dot.is-active::after { background: var(--color-accent); }

/* Carousel */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-xs);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.carousel-slide .card { height: 100%; }
@media (min-width: 640px) {
  .carousel-slide { flex-basis: calc(50% - var(--space-md) / 2); }
}
@media (min-width: 1024px) {
  .carousel-slide { flex-basis: calc(33.333% - var(--space-md) * 2 / 3); }
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.carousel-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-arrow:hover:not(:disabled) { background: var(--color-accent); border-color: var(--color-accent); }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.carousel-dots { display: flex; align-items: center; gap: 2px; }
.carousel-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active::after { background: var(--color-secondary); transform: scale(1.3); }

/* Accent quote trait */
.accent-quote {
  position: relative;
  padding-left: var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--size-h2);
  color: var(--color-secondary);
}
.accent-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

.accent-quote--light { color: #FFFFFF; }
.accent-quote--light::before { background: var(--color-accent); }

/* Homepage accroche — rounded portrait photo + vision text, two columns */
.urgency-split-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-lg);
  align-items: start;
}
.urgency-split-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.urgency-split-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 70% 45%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  display: block;
}
.urgency-split-dot {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  bottom: -18px;
  left: -18px;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(61, 222, 200, 0.4);
  animation: fit-pulse-glow 2.8s ease-in-out infinite;
}

@keyframes fit-pulse-glow {
  0%, 100% { box-shadow: 0 6px 20px rgba(61, 222, 200, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(61, 222, 200, 0.4), 0 0 0 8px rgba(61, 222, 200, 0.14); }
}
.urgency-split-text p { margin-bottom: var(--space-sm); }
.urgency-split-text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .urgency-split-grid { grid-template-columns: 1fr; }
  .urgency-split-photo { margin: 0 auto var(--space-md); max-width: 260px; }
}

/* Homepage "Qui sommes-nous" — text left, square photo right */
.about-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-lg);
  align-items: center;
}
.about-split-text p { margin-bottom: var(--space-sm); }
.about-split-text h3 { margin-top: var(--space-md); margin-bottom: var(--space-xs); }
.about-split-text .btn { margin-top: var(--space-xs); }
.about-split-photo {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}
.about-split-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  display: block;
}
.about-split-dot {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  bottom: -18px;
  right: -18px;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(61, 222, 200, 0.4);
  animation: fit-pulse-glow 2.8s ease-in-out infinite;
  animation-delay: 0.6s;
}
@media (max-width: 900px) {
  .about-split-grid { grid-template-columns: 1fr; }
  .about-split-photo {
    justify-self: center;
    margin: 0 auto var(--space-md);
    max-width: 100%;
    order: -1;
  }
  .about-split-photo img { aspect-ratio: 16 / 9; }
  .about-split-dot { bottom: -14px; right: 20px; }
}

/* Stats */
.stat-value {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--size-stat);
  color: var(--color-primary);
}
.stat-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-hero-bg);
  padding: var(--space-xl) 0 var(--space-md);
}
/* Extra bottom room so the sticky/fixed header never ends up covering
   footer content once the page is scrolled all the way down. */
.footer-bottom { padding-bottom: 150px; }
@media (max-width: 700px) {
  .footer-bottom { padding-bottom: 110px; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
.footer-brand .footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-hero-bg);
  margin: var(--space-sm) 0;
}
.badge-orias {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}
.site-footer h3 {
  color: var(--color-hero-bg);
  font-family: var(--font-body);
  font-weight: 500;
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--color-tertiary); }
.site-footer a:hover { color: var(--color-accent); }
.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: var(--color-tertiary);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--color-hero-bg) 0%, #EAF3FA 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-inner {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  max-width: 620px;
}
.hero h1 { margin-bottom: var(--space-sm); }
.hero-subtitle {
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  max-width: 560px;
}
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  animation: fit-float 6s ease-in-out infinite;
}
@keyframes fit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  position: relative;
  z-index: 1;
}
.hero-photo-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--color-tertiary);
  opacity: 0.5;
  top: -30px;
  right: -30px;
  z-index: 0;
}
.hero-photo-dot {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  bottom: -18px;
  left: -18px;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(61, 222, 200, 0.4);
  animation: fit-pulse-glow 2.8s ease-in-out infinite;
}

@media (max-width: 900px) {
  .hero-photo { height: 300px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* Homepage full-bleed photo hero — transparent header overlays this section */
.hero-photo-bleed {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-photo-bleed-bg {
  position: absolute;
  top: -8%;
  left: 0;
  right: 0;
  bottom: -8%;
  background-size: cover;
  background-position: center 55%;
  z-index: 0;
  will-change: transform;
}
.hero-photo-bleed::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 34, 64, 0.9) 0%, rgba(11, 34, 64, 0.62) 48%, rgba(11, 34, 64, 0.28) 100%),
    linear-gradient(0deg, rgba(11, 34, 64, 0.45) 0%, rgba(11, 34, 64, 0) 26%);
  z-index: 1;
}
.hero-photo-bleed-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-top: 180px;
  padding-bottom: var(--space-xl);
}
.hero-photo-bleed h1, .hero-photo-bleed .hero-subtitle { color: #FFFFFF; }
.hero-photo-bleed .eyebrow { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.hero-photo-bleed .btn-outline { border-color: rgba(255, 255, 255, 0.7); color: #FFFFFF; }
.hero-photo-bleed .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* Homepage hero — staggered fade-up entrance on load */
@keyframes fit-hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-photo-bleed .eyebrow,
.hero-photo-bleed h1,
.hero-photo-bleed .hero-subtitle,
.hero-photo-bleed .hero-actions {
  opacity: 0;
  animation: fit-hero-in 0.7s ease both;
}
.hero-photo-bleed .eyebrow { animation-delay: 0.1s; }
.hero-photo-bleed h1 { animation-delay: 0.22s; }
.hero-photo-bleed .hero-subtitle { animation-delay: 0.34s; }
.hero-photo-bleed .hero-actions { animation-delay: 0.46s; }
@media (max-width: 700px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .site-logo img { height: 46px; }
  .hero-photo-bleed-content { padding-top: 108px; }
  .site-header .container { padding-right: var(--space-sm); }
  /* The clamp() floor on --size-hero (30px) still reads oversized on narrow
     phones for this italic serif title — scale it down further here. */
  .hero-photo-bleed h1 { font-size: clamp(22px, 6vw, 26px); }
  .hero-photo-bleed .hero-subtitle { font-size: 15px; }
  /* Smaller, tighter pill buttons on the homepage hero read as more premium
     on narrow screens than the full desktop-sized CTA pair. */
  .hero-photo-bleed .hero-actions .btn {
    padding: 11px 20px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

/* Stats */
.stat-item { text-align: center; }

/* Full-bleed photo variant of the stats band */
.stats-photo {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}
.stats-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.stats-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 34, 64, 0.84);
  z-index: 1;
}
.stats-photo > .container { position: relative; z-index: 2; }
.stat-item--light .stat-value { color: #FFFFFF; }
.stat-item--light .stat-label { color: rgba(255, 255, 255, 0.78); }

/* Testimonials */
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-sm);
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-hero-bg);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 13px;
}
.testimonial-author {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.testimonial-spotlight {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.testimonial-spotlight .accent-quote {
  padding-left: 0;
  font-size: clamp(20px, 2.6vw, 30px);
}
.testimonial-spotlight .accent-quote::before { display: none; }
.testimonial-spotlight .testimonial-meta { justify-content: center; }
.testimonial-secondary { max-width: 900px; margin: 0 auto; }

/* CTA banner */
.cta-section { padding: var(--space-lg) 0; }

.cta-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 51, 92, 0.94) 0%, rgba(11, 34, 64, 0.96) 60%),
    url('../../../../uploads/2026/07/image-site-reunion-fleur2.png') center/cover no-repeat;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
}
.cta-banner-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px solid rgba(132, 166, 200, 0.35);
  top: -70px;
  right: -50px;
  pointer-events: none;
}
.cta-banner-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  bottom: 36px;
  left: 42px;
  box-shadow: 0 0 0 10px rgba(61, 222, 200, 0.12);
  pointer-events: none;
  animation: fit-pulse-scale 2.4s ease-in-out infinite;
}

@keyframes fit-pulse-scale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.75; }
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  max-width: 640px;
}
.cta-banner-inner h2 {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--size-hero);
}
.cta-banner-inner p {
  color: var(--color-hero-bg);
  margin-bottom: var(--space-md);
}

@media (max-width: 700px) {
  .cta-banner-ring, .cta-banner-dot { display: none; }
}

.mission-number {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 22px;
  color: var(--color-text-muted);
}

.independence-block {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.independence-block .stat-value { font-size: var(--size-stat); }
.independence-stat { text-align: center; }

@media (max-width: 700px) {
  .independence-block { grid-template-columns: 1fr; padding: var(--space-md); }
  .independence-stat { padding-top: var(--space-sm); border-top: 1px solid var(--color-border); }
}

/* Simulateurs */
.sim-tabs {
  display: flex;
  gap: var(--space-xs);
  margin: 0 auto var(--space-md);
  flex-wrap: wrap;
  max-width: 640px;
  justify-content: center;
}
.sim-tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-secondary);
  cursor: pointer;
}
.sim-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

.simulateur-wizard { max-width: 640px; margin: 0 auto; }

.sim-progress {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-neutral);
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.sim-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.sim-field { border: none; padding: 0; margin: 0 0 var(--space-sm); }
.sim-field legend { font-family: var(--font-body); font-weight: 500; font-size: 13px; margin-bottom: var(--space-xs); padding: 0; }
.sim-field-label { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; margin-bottom: var(--space-xs); }

.sim-choice {
  display: block;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
}
.sim-choice:has(input:checked) { border-color: var(--color-accent); background: var(--color-hero-bg); }
.sim-choice input { margin-right: 8px; }

.sim-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: var(--space-sm);
  background: var(--color-surface);
  color: var(--color-text);
}
.sim-input:focus, .sim-choice input:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

.sim-nav { display: flex; justify-content: space-between; margin-top: var(--space-md); }

.sim-disclaimer {
  margin-top: var(--space-md);
  font-size: 12px;
  color: var(--color-text-muted);
}

.sim-result .stat-value { margin-bottom: var(--space-xs); }
.sim-result .btn { margin-top: var(--space-sm); }

/* Guides */
.guide-card { display: flex; flex-direction: column; }
.guide-card .btn { margin-top: auto; align-self: flex-start; }

/* Resources teaser banner */
.resources-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.resources-teaser h2 { margin-bottom: var(--space-xs); }
.resources-teaser p { color: var(--color-primary); max-width: 480px; margin: 0; }
.resources-teaser .btn { flex-shrink: 0; }

.blog-card { display: block; }
.blog-card:hover { text-decoration: none; }
.blog-card h3 { color: var(--color-primary); font-style: normal; font-weight: 600; }

/* FAQ */
.faq-tabs { display: flex; gap: var(--space-xs); margin-bottom: var(--space-md); flex-wrap: wrap; }
.faq-tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-secondary);
  cursor: pointer;
}
.faq-tab.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; }

.faq-panel { display: none; }
.faq-panel.is-active { display: block; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; color: var(--color-accent); font-size: 20px; }
.faq-item.is-open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding-bottom: var(--space-sm); color: var(--color-primary); }

/* Legal pages */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: var(--space-lg); }

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--color-surface);
  color: var(--color-text);
}
.form-group input.has-error,
.form-group select.has-error,
.form-group textarea.has-error { border-color: #C0392B; }
.field-error { display: none; color: #C0392B; font-size: 12px; margin-top: 4px; }
.form-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.form-consent input { width: auto; }
.form-status { margin-top: var(--space-sm); font-size: 14px; font-weight: 500; }
.form-status.is-success { color: #1A7A4C; }
.form-status.is-error { color: #C0392B; }

.contact-info-card h3 { font-style: normal; font-weight: 600; }
.badge-orias-inline { margin-top: var(--space-md); }
.contact-info-card ul { list-style: none; padding: 0; margin: var(--space-sm) 0 0; }
.contact-info-card li { margin-bottom: var(--space-xs); }

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

/* Reveal-on-scroll — supports a per-element stagger via --stagger:N (set inline per card index) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Gentle continuous drift on decorative section blobs */
@keyframes fit-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 12px); }
}
.section-decorated::before { animation: fit-drift 10s ease-in-out infinite; }
.section-decorated::after { animation: fit-drift 12s ease-in-out infinite reverse; }

/* Hero photo load-in */
@keyframes fit-photo-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.hero-photo-frame { animation: fit-photo-in 0.8s ease 0.15s both; }

/* Image zoom on card/row hover */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.5s ease; }
.img-zoom:hover img { transform: scale(1.06); }

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  /* Section padding is tuned for wide desktop viewports; scale it down so
     mobile pages don't accumulate huge dead-space gaps between sections. */
  :root {
    --space-xl: 56px;
    --space-2xl: 64px;
  }

  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; position: relative; z-index: 101; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-section .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-sm); }
  .footer-grid { grid-template-columns: 1fr; }

  /* Hamburger morphs into a close (X) icon while the menu is open */
  .nav-toggle span { transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Full-screen mobile menu overlay */
  .site-header.nav-open .primary-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--color-primary);
    padding: 90px var(--space-lg) 110px;
    overflow-y: auto;
  }
  .site-header.nav-open .nav-menu { flex-direction: column; gap: 0; }
  .site-header.nav-open .nav-menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .site-header.nav-open .nav-menu > li > a { display: block; padding: 18px 0; font-size: 16px; }

  .site-header.nav-open .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 14px var(--space-sm);
    margin: 0;
  }
  .site-header.nav-open .nav-menu .sub-menu a {
    display: block;
    padding: 10px 0;
    color: var(--color-tertiary);
    font-size: 15px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
  }
  .site-header.nav-open .nav-menu .menu-item-has-children > a::after { display: none; }

  /* Primary action pinned to the bottom of the overlay */
  .site-header.nav-open .header-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: var(--space-lg);
    right: var(--space-lg);
    bottom: var(--space-md);
    z-index: 91;
    margin: 0;
    padding: 14px 18px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    box-shadow: 0 8px 24px rgba(11, 34, 64, 0.35);
  }
}

.sim-error { color: #C0392B; font-size: 14px; margin-top: 12px; }

/* Homepage ticker — scrolling strip between the hero and "Qui sommes-nous" */
.ticker-bar {
  background: var(--color-primary);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll-right 32s linear infinite;
}
.ticker-bar:hover .ticker-track,
.ticker-bar:focus-within .ticker-track {
  animation-play-state: paused;
}
.ticker-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 28px;
  color: var(--color-surface);
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.ticker-dot {
  color: var(--color-accent);
  margin-left: 28px;
}
@keyframes ticker-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-content[aria-hidden="true"] { display: none; }
}

/* Anti-spam honeypot: hidden from sighted users, still reachable by bots that ignore CSS */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* "Je suis…" — profile tabs + solutions bands (homepage) */
.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}
.profile-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.profile-tab:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.profile-tab strong { font-family: var(--font-body); font-weight: 500; font-size: 15px; }
.profile-tab span { font-size: 12px; opacity: 0.85; }
.profile-tab--0 { background: var(--color-primary); }
.profile-tab--1 { background: var(--color-secondary); }
.profile-tab--2 { background: linear-gradient(135deg, var(--color-secondary), var(--color-tertiary)); }

.profile-bands { display: grid; gap: var(--space-md); }
.profile-band {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--color-surface) 35%, var(--color-hero-bg) 100%);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 100px;
}
.profile-band-text { padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-lg); }
.profile-band-kicker {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.profile-band h3 {
  font-style: normal;
  font-weight: 600;
  font-size: var(--size-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.profile-band-media { position: relative; min-height: 260px; }
.profile-band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-band-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--color-hero-bg) 0%, rgba(216, 232, 245, 0) 30%);
  pointer-events: none;
}
.profile-band--1 .profile-band-text { order: 2; }
.profile-band--1 .profile-band-media::before { background: linear-gradient(270deg, var(--color-hero-bg) 0%, rgba(216, 232, 245, 0) 30%); }
.profile-band--1 { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: linear-gradient(260deg, var(--color-surface) 35%, var(--color-hero-bg) 100%); }

.check-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px var(--space-md);
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.4;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2240' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

@media (max-width: 900px) {
  .profile-band,
  .profile-band--1 { grid-template-columns: 1fr; }
  .profile-band--1 .profile-band-text { order: 0; }
  .profile-band-media { order: -1; min-height: 200px; }
  .profile-band-media::before,
  .profile-band--1 .profile-band-media::before { background: linear-gradient(0deg, var(--color-surface) 0%, rgba(255, 255, 255, 0) 35%); }
  .profile-band-text { padding: var(--space-md); }
}
@media (max-width: 700px) {
  .profile-tabs { grid-template-columns: 1fr; gap: var(--space-xs); }
  .check-list { grid-template-columns: 1fr; }
}

/* Solution photo tiles (audience pages) */
.solution-tiles-intro { max-width: 640px; color: var(--color-text-muted); margin-bottom: var(--space-md); }
.solution-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-sm);
}
.solution-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.solution-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.solution-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.solution-tile:hover img { transform: scale(1.05); }
.solution-tile-label {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  border-top: 3px solid var(--color-accent);
}
@media (max-width: 1000px) { .solution-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .solution-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); } }

/* Quote questionnaires (/devis/) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.q-wizard { max-width: 760px; margin: 0 auto; padding: var(--space-lg); }
.q-step-count { margin: var(--space-sm) 0 0; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.q-wizard h3 { font-style: normal; font-weight: 600; font-size: var(--size-h2); color: var(--color-primary); margin: var(--space-xs) 0 var(--space-md); }
.q-field { border: none; padding: 0; margin: 0 0 var(--space-sm); min-width: 0; }
.q-field .sim-input { margin-bottom: 0; }
.q-field > .sim-field-label, .q-field > legend { margin-bottom: var(--space-xs); padding: 0; }
.q-req { color: #C0392B; }
.q-help { font-size: 12px; color: var(--color-text-muted); margin: 6px 0 0; }
.q-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.q-choices .sim-choice { margin: 0; }
.q-field.has-error .sim-input, .q-field.has-error .sim-choice { border-color: #C0392B; }
.q-field-error { color: #C0392B; font-size: 12px; margin: 6px 0 0; }
.q-error { color: #C0392B; font-size: 14px; min-height: 1em; margin: var(--space-xs) 0 0; }
.q-consent-wrap { margin-top: var(--space-md); }

.q-suffix-wrap { position: relative; display: block; }
.q-suffix-wrap .sim-input { padding-right: 34px; }
.q-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--color-text-muted); pointer-events: none; }

.q-group-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px var(--space-sm); }
.q-group-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; gap: 8px; font-size: 14px; }
.q-total { margin: var(--space-xs) 0 0; font-size: 14px; }
.q-warn { color: #B9770E; font-size: 13px; }

.q-table-wrap { overflow-x: auto; }
.q-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.q-table th { text-align: left; font-weight: 500; padding: 6px 8px 6px 0; color: var(--color-text-muted); }
.q-table td { padding: 4px 6px 4px 0; }
.q-table .sim-input { padding: 8px 10px; font-size: 14px; }

.q-repeater-item { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); padding: var(--space-sm) 44px var(--space-sm) var(--space-sm); margin-bottom: var(--space-xs); background: var(--color-neutral); border-radius: var(--radius-md); }
.q-remove { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--color-surface); color: var(--color-primary); cursor: pointer; }
.q-add { margin-top: var(--space-xs); }

.q-stars { display: flex; align-items: center; gap: 4px; }
.q-star { position: relative; cursor: pointer; font-size: 28px; line-height: 1; color: var(--color-border); transition: color 0.15s ease; }
.q-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-star.is-on { color: #F2A33A; }
.q-star:focus-within { outline: 2px solid var(--color-secondary); outline-offset: 2px; border-radius: 4px; }
.q-star-level { margin-left: var(--space-xs); font-size: 13px; color: var(--color-text-muted); }

.q-thanks { text-align: center; padding: var(--space-md) 0; }

@media (max-width: 700px) {
  .q-wizard { padding: var(--space-md); }
  .q-group-rows, .q-repeater-item { grid-template-columns: 1fr; }
  .q-table thead { display: none; }
  .q-table, .q-table tbody, .q-table tr, .q-table th, .q-table td { display: block; width: 100%; }
  .q-table tr { padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-border); }
  .q-table th[scope="row"] { color: var(--color-primary); font-weight: 600; }
  .q-table td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--color-text-muted); margin: 4px 0 2px; }
}
.check-list a { color: var(--color-primary); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; }
.check-list a:hover { color: var(--color-secondary); }
