/* =====================================================
   style-extra.css — Animations, Trust band, Footer logo
   Etablissements Bertrand v2.1
   ===================================================== */

/* ── Trust band: titre + badges en colonne ── */
.trust-band {
  background: #fff;
  border-top: 1px solid rgba(24,57,95,.1);
  border-bottom: 1px solid rgba(24,57,95,.1);
  padding: 26px 6%;
}
.trust-band__inner {
  max-width: 1260px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.trust-band__title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #6b7a86;
}
.trust-band__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;        /* toujours une seule ligne */
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f4f8f5;
  border: 1.5px solid rgba(24,57,95,.1);
  border-radius: 999px;
  padding: 8px 14px;        /* padding réduit */
  font-size: 12.5px;        /* taille réduite */
  font-weight: 700;
  color: #18395f;
  white-space: nowrap;
  transition: background .22s ease, border-color .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.trust-badge:hover {
  background: #e8f9ea;
  border-color: rgba(53,173,66,.3);
  transform: translateY(-2px);
}
.trust-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35ad42;
  flex-shrink: 0;
}
/* Sur mobile : retour au wrap en 2 lignes de 2 */
@media (max-width: 700px) {
  .trust-band__row {
    flex-wrap: wrap;
    gap: 7px;
  }
  .trust-badge { font-size: 11.5px; padding: 6px 11px; }
}

/* ── Footer brand — entierement blanc sur fond sombre ── */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 18px;
  cursor: pointer;
}
.footer-brand__mark {
  width: 54px;
  height: 54px;
  border-radius: 17px 17px 7px 17px;
  border: 2.5px solid rgba(255,255,255,.92);
  background: rgba(53,173,66,.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,.07);
  position: relative;
  flex-shrink: 0;
}
.footer-brand__inner {
  position: absolute;
  width: 30px;
  height: 17px;
  background: #ffffff;
  border-radius: 100% 0 100% 0;
  left: 9px;
  bottom: 9px;
  transform: rotate(-20deg);
  opacity: 1;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.footer-brand__text strong {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.48);
  line-height: 1;
  margin-bottom: 4px;
}
.footer-brand__text b {
  display: block;
  font-size: 25px;
  font-weight: 700;
  font-family: Georgia, serif;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,.52);
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 16px;
}
.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-badge {
  font-size: 11px;
  font-weight: 700;
  color: #35ad42;
  background: rgba(53,173,66,.13);
  border: 1px solid rgba(53,173,66,.25);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .4px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-contact-item:last-of-type { border-bottom: 0; }
.footer-contact-icon { font-size: 16px; flex-shrink: 0; }
.footer-cta-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 16px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #35ad42 !important;
  background: rgba(53,173,66,.12);
  border: 1px solid rgba(53,173,66,.25);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .22s ease, color .22s ease;
  text-decoration: none;
}
.footer-cta-link:hover {
  background: rgba(53,173,66,.25) !important;
  color: #fff !important;
}
.footer-bottom-tags {
  font-size: 12px;
  color: rgba(255,255,255,.25);
}
.footer a {
  position: relative;
  display: inline-block;
}
.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #35ad42;
  transition: width .22s ease;
}
.footer a:hover::after { width: 100%; }

/* ── Page load animation ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
main { animation: pageFadeIn .5s .05s ease both; }

/* ── Hero elements stagger ── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.hero__content { animation: heroIn .68s .06s ease both; }
.hero__panel   { animation: heroIn .68s .22s ease both; }

/* ── Stat numbers glow ── */
@keyframes statGlow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 20px rgba(53,173,66,.4); }
}
.stat-item__number { animation: statGlow 3.5s ease-in-out infinite; }

/* ── Nav CTA pulse ── */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(53,173,66,.3); }
  50%       { box-shadow: 0 8px 32px rgba(53,173,66,.55), 0 0 0 4px rgba(53,173,66,.1); }
}
.nav-cta { animation: ctaPulse 2.8s ease-in-out infinite; }
.nav-cta:hover { animation: none; }

/* ── Cards spring hover ── */
.card, .sector-card, .doc-card {
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
}
.card:hover, .sector-card:hover, .doc-card:hover {
  transform: translateY(-7px) scale(1.012);
  box-shadow: 0 28px 56px rgba(24,57,95,.14);
}
.compare-col {
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), border-color .22s ease;
}
.compare-col:hover { transform: translateY(-6px); }

/* ── Timeline spring ── */
.timeline-item {
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
}
.timeline-item:hover {
  transform: translateX(10px);
  box-shadow: 0 20px 50px rgba(24,57,95,.13);
}

/* ── Check items slide ── */
.check-item {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s ease;
}
.check-item:hover {
  transform: translateX(6px);
  background: rgba(53,173,66,.14);
}

/* ── Button press ── */
.btn:active { transform: translateY(1px) scale(.97); }

/* ── Image slot zoom ── */
.img-slot {
  transition: border-color .22s ease, background .22s ease,
              transform .25s cubic-bezier(.34,1.56,.64,1);
}
.img-slot:not(.img-slot--photo):hover { transform: translateY(-4px) scale(1.025); }
.img-slot--photo:hover                { transform: translateY(-3px); }
.img-slot--photo img                  { transition: transform .45s ease; }
.img-slot--photo:hover img            { transform: scale(1.06); }

/* ── Info box hover ── */
.info-box {
  transition: box-shadow .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.info-box:hover { transform: translateY(-3px); box-shadow: 0 28px 60px rgba(16,45,33,.18); }

/* ── Highlight items scale ── */
.highlight-item {
  transition: background .22s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.highlight-item:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-3px);
}

/* ── Sector tags hover ── */
.sector-tag {
  transition: background .18s ease, color .18s ease, transform .2s ease;
  cursor: default;
}
.sector-tag:hover { transform: scale(1.06); }

/* ── Responsive footer brand ── */
@media (max-width: 480px) {
  .footer-brand__mark { width: 46px; height: 46px; }
  .footer-brand__text b { font-size: 21px; }
  .footer-bottom-tags { display: none; }
}

/* ── Scroll-reveal enhanced ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* === Logo image — header === */
.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand__logo { transform: scale(1.08) rotate(-3deg); }

/* === Logo image — footer === */
.footer-brand__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.15) saturate(1.1);
  transition: filter .22s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.footer-brand:hover .footer-brand__logo {
  filter: brightness(1.3) saturate(1.15);
  transform: scale(1.06);
}

/* === Responsive logos === */
@media (max-width: 560px) {
  .brand__logo        { width: 40px; height: 40px; }
  .footer-brand__logo { width: 44px; height: 44px; }
}

/* =====================================================
   RESPONSIVE HARDENING v2.2
   Couverture fine tablette + mobile + très petit mobile
   ===================================================== */

/* --- Anti horizontal scroll global (sur body uniquement pour ne pas casser sticky) --- */
body { overflow-x: clip; width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

/* --- Section pleine largeur fond soft (override max-width) --- */
.section--bg-soft {
  background: var(--soft-2);
  max-width: 100%;
}
.section__inner {
  max-width: 1260px;
  margin: 0 auto;
}

/* --- Topbar : éviter débordement sur mobile --- */
.topbar__inner span { min-width: 0; }
.topbar__inner span:first-child { flex: 1 1 auto; }
.topbar__inner span:last-child  { flex: 0 1 auto; }

/* --- Tablette large (≤1100px) : densifier les espacements --- */
@media (max-width: 1100px) {
  .section, .section-sm {
    padding-top: 70px;
    padding-bottom: 70px;
    padding-left: 5%;
    padding-right: 5%;
  }
  .hero { padding: 70px 5% 56px; }
  .page-hero { padding: 60px 5% 40px; }
  .gallery-section,
  .compare-section { padding: 70px 5%; }
  .stat-band { padding: 38px 5%; }
  .intro-band { padding: 56px 5%; }
  .footer { padding: 50px 5% 0; }
  .navbar { padding: 12px 5%; }

  .split { gap: 32px; }
  .intro-band__inner { gap: 32px; }
  .service-detail { gap: 26px; }
  .contact-layout { gap: 22px; }
  .cta-band { padding: 44px 36px; gap: 24px; }
  .hero--home { gap: 36px; }
  .hero__panel { min-height: 380px; padding: 28px; }
}

/* --- Tablette intermédiaire (≤860px) entre nav-mobile et bureau --- */
@media (max-width: 860px) {
  h1 { letter-spacing: -1.5px; }
  h2 { letter-spacing: -0.6px; }

  .compare-col__head   { padding: 20px; gap: 10px; }
  .compare-col__body   { padding: 18px 20px; }
  .compare-col__title  { font-size: 18px; }
  .compare-col__number { font-size: 32px; }

  .timeline-item { padding: 28px 24px 28px 80px; }
  .info-box { padding: 22px; }
  .form { padding: 26px; }
  .contact-panel { padding: 30px; }
  .note-section { padding: 30px; }
  .service-detail--alt { padding: 26px; }

  /* Tap targets confortables */
  .nav-menu a, .btn, .nav-cta { min-height: 40px; }

  /* Word-break pour textes denses */
  .compare-row__value,
  .contact-panel .info-line,
  .footer-contact-item { word-break: break-word; }
}

/* --- Footer grid tablette 3 cols compactes --- */
@media (min-width: 641px) and (max-width: 980px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
}

/* --- Petit mobile (≤520px) : compaction généralisée --- */
@media (max-width: 520px) {
  h1 { letter-spacing: -1px; line-height: 1.05; }
  h2 { line-height: 1.15; }
  h3 { font-size: 19px; }
  h4 { font-size: 15px; }

  /* Topbar : empilée verticalement, plus lisible */
  .topbar { padding: 8px 5%; font-size: 11.5px; }
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    line-height: 1.4;
  }
  .topbar__inner span { width: 100%; }

  .navbar { padding: 10px 5%; gap: 10px; }
  .brand { gap: 9px; }
  .brand b      { font-size: 19px; }
  .brand strong { font-size: 10.5px; letter-spacing: 0.5px; }
  .brand__logo  { width: 38px; height: 38px; }
  .brand__mark  { width: 40px; height: 40px; border-width: 3px; }
  .nav-toggle   { padding: 7px 10px; font-size: 18px; }

  /* Sections : padding plus serré */
  .section, .section-sm { padding: 44px 5%; }
  .hero { padding: 40px 5% 36px; }
  .page-hero { padding: 38px 5% 28px; }
  .gallery-section { padding: 38px 5%; }
  .compare-section { padding: 44px 5%; }
  .stat-band { padding: 28px 5%; }
  .intro-band { padding: 38px 5%; }
  .footer { padding: 40px 5% 0; }

  /* Hero */
  .hero__panel { min-height: 300px; padding: 22px; border-radius: 28px; }
  .hero__metrics { gap: 8px; }
  .metric { padding: 14px 10px; }
  .metric strong { font-size: 24px; }
  .metric span { font-size: 11.5px; line-height: 1.3; }
  .hero__label { font-size: 10.5px; padding: 6px 11px; top: 14px; right: 14px; }

  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .btn { padding: 12px 20px; font-size: 14px; }

  .feature-strip { gap: 6px; }
  .feature-tag { font-size: 11.5px; padding: 5px 10px; }

  .badge { font-size: 12px; padding: 6px 12px; margin-bottom: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.2px; }

  /* Trust band : badges compactes */
  .trust-band { padding: 22px 5%; }
  .trust-badge { font-size: 11.5px; padding: 6px 10px; gap: 6px; }

  /* Cards */
  .cards { gap: 14px; }
  .card { padding: 22px; }
  .card__icon {
    width: 52px; height: 52px;
    font-size: 26px;
    margin-bottom: 14px;
    border-radius: 16px;
  }
  .card h3 { margin-bottom: 8px; }
  .card p { font-size: 14.5px; }

  .sector-card { padding: 22px; }
  .sector-card__icon { width: 54px; height: 54px; font-size: 24px; }

  .doc-card { padding: 22px; }
  .doc-row { padding: 8px 0; font-size: 13.5px; }

  /* Compare cols */
  .compare-grid { gap: 14px; }
  .compare-col__head   { padding: 16px 18px; gap: 10px; }
  .compare-col__body   { padding: 14px 18px; }
  .compare-col__footer { padding: 14px 18px 18px; }
  .compare-col__title  { font-size: 17px; line-height: 1.2; }
  .compare-col__number { font-size: 28px; }
  .compare-col__badge  { font-size: 10px; padding: 3px 8px; }
  .compare-row { padding: 12px 0; }
  .compare-row__value { font-size: 13.5px; line-height: 1.45; }

  /* Forms / Panneaux */
  .service-detail--alt { padding: 22px; border-radius: 24px; }
  .info-box { padding: 20px; border-radius: 22px; }
  .info-row { font-size: 13.5px; padding: 8px 0; gap: 8px; }

  .form { padding: 22px; border-radius: 22px; }
  .form label { margin-bottom: 14px; font-size: 13px; }
  .form input, .form select, .form textarea {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 12px;
  }

  .contact-panel { padding: 24px; border-radius: 22px; }
  .contact-panel h2 { font-size: 22px; }
  .contact-panel .info-line { gap: 10px; padding: 12px 0; font-size: 14px; }
  .contact-panel .info-icon { width: 34px; height: 34px; font-size: 15px; }

  .note-section { padding: 24px; border-radius: 24px; }
  .note-section__icon { font-size: 28px; }

  /* Check / split */
  .split { gap: 24px; }
  .check-item { padding: 12px 14px; font-size: 14px; gap: 10px; border-radius: 12px; }
  .check-list { gap: 8px; }
  .image-card { min-height: 280px; border-radius: 28px; }

  /* Timeline */
  .timeline { max-width: 100%; }
  .timeline::before { left: 18px; }
  .timeline-item {
    padding: 22px 20px 22px 60px;
    margin-bottom: 12px;
    border-radius: 20px;
  }
  .timeline-item:hover { transform: translateX(4px); }
  .timeline-item__num {
    left: -3px; top: 22px;
    width: 34px; height: 34px;
    font-size: 12px;
  }
  .timeline-item h2 { font-size: 18px; }
  .timeline-item p  { font-size: 14px; }

  /* CTA band */
  .cta-band {
    padding: 28px 22px;
    border-radius: 24px;
    gap: 16px;
    margin-top: 24px;
  }
  .cta-band h2 { font-size: clamp(20px, 6vw, 26px); }
  .cta-band p  { font-size: 14px; }
  .cta-band .btn-light { width: 100%; }

  /* Gallery */
  .gallery-mosaic .img-slot:nth-child(1) { grid-row: span 1; }
  .img-slot__icon  { font-size: 22px; }
  .img-slot__label { font-size: 11px; }
  .img-slot--photo .img-slot__caption { font-size: 11px; padding: 20px 10px 9px; }

  /* Stat band */
  .stat-band__inner { gap: 1px; }
  .stat-item { padding: 18px 12px; }
  .stat-item__number { font-size: clamp(28px, 9vw, 42px); }
  .stat-item__label { font-size: 12px; line-height: 1.3; }

  /* Intro band */
  .intro-band__inner { gap: 28px; }
  .intro-band p { font-size: 14.5px; }
  .highlight-item { padding: 14px; border-radius: 14px; }
  .highlight-item strong { font-size: 20px; }
  .highlight-item span { font-size: 12.5px; }

  /* Footer */
  .footer__grid { gap: 26px; padding-bottom: 24px; }
  .footer h3 { font-size: 13px; margin-bottom: 10px; }
  .footer__bottom {
    padding: 16px 0;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
  }
  .footer a { margin: 5px 0; font-size: 14px; }
  .footer-desc { font-size: 13.5px; max-width: 100%; }
  .footer-contact-item { font-size: 13.5px; padding: 7px 0; }

  /* Section head : laisse plus de respiration sous le titre */
  .section-head { margin-bottom: 24px; gap: 12px; }
  .section-head h2 { margin-bottom: 4px; }
  .section-head p { font-size: 14.5px; }

  /* Hover transforms qui peuvent provoquer un débordement sur mobile */
  .card:hover, .sector-card:hover, .doc-card:hover {
    transform: translateY(-3px) scale(1);
    box-shadow: 0 14px 28px rgba(24,57,95,.1);
  }
  .check-item:hover { transform: translateX(2px); }
  .timeline-item:hover { transform: translateX(3px); }

  /* Coupe les marges intempestives de paragraphes flottants */
  p { line-height: 1.6; }
}

/* --- Très petit mobile (≤380px) --- */
@media (max-width: 380px) {
  .brand b      { font-size: 17px; }
  .brand strong { font-size: 10px; letter-spacing: 0.4px; }

  .hero__metrics { grid-template-columns: 1fr; }
  .stat-band__inner { grid-template-columns: 1fr; gap: 1px; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.08); border-right: 0; }
  .stat-item:last-child { border-bottom: 0; }

  .footer-badges { gap: 6px; }
  .footer-badge  { font-size: 10.5px; }

  .hero__panel { min-height: 260px; padding: 18px; }
  .hero__label { font-size: 10px; padding: 5px 10px; }

  .compare-col__head   { padding: 14px; }
  .compare-col__body   { padding: 12px 14px; }
  .compare-col__footer { padding: 12px 14px 16px; }

  .feature-tag { font-size: 11px; padding: 4px 9px; }
  .trust-badge { font-size: 11px; padding: 5px 9px; gap: 5px; }
}

/* --- prefers-reduced-motion : respecter la préférence système --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   GALERIE — CARROUSEL HORIZONTAL SUR MOBILE
   Remplace l'empilement vertical par un swipe natif
   ===================================================== */

/* Conteneur wrappant la galerie + dots (ajouté dynamiquement par JS) */
.gallery-carousel-wrap { position: relative; }
.gallery-dots {
  display: none;                     /* visible seulement en mode carrousel */
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(24,57,95,.2);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, width .2s ease;
}
.gallery-dot:hover { background: rgba(53,173,66,.55); }
.gallery-dot.is-active {
  background: var(--green);
  width: 22px;
}

/* Activation du mode carrousel sous 700px */
@media (max-width: 700px) {
  .gallery-dots { display: flex; }

  .gallery-mosaic,
  .gallery-grid {
    /* On passe de grid à flex horizontal scroll-snap */
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 5%;
    gap: 14px;
    padding: 4px 5% 16px;
    margin: 0 -5%;
    grid-template-columns: none;
    grid-template-rows: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-mosaic::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar { display: none; height: 0; }

  .gallery-mosaic .img-slot,
  .gallery-grid .img-slot {
    flex: 0 0 82%;
    max-width: 320px;
    min-width: 240px;
    scroll-snap-align: center;
    aspect-ratio: 4/3;
    /* Reset des spans grid de la mosaïque */
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-mosaic .img-slot--wide,
  .gallery-mosaic .img-slot--tall,
  .gallery-grid    .img-slot--wide,
  .gallery-grid    .img-slot--tall {
    aspect-ratio: 4/3;
    grid-column: auto;
    grid-row: auto;
  }

  /* Animation de hint au premier affichage : indique le scroll horizontal */
  .gallery-mosaic .img-slot:first-child,
  .gallery-grid    .img-slot:first-child {
    animation: galleryHint 1.4s ease .4s 1 both;
  }
}

@keyframes galleryHint {
  0%   { transform: translateX(0); }
  35%  { transform: translateX(-14px); }
  70%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* Wrap label "← Glissez →" — visuel sous la première galerie */
.gallery-swipe-hint {
  display: none;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  opacity: .7;
}
@media (max-width: 700px) {
  .gallery-swipe-hint { display: block; }
}

/* =====================================================
   SERVICES — Enrichissement section détail
   ===================================================== */

/* Paragraphe d'accroche service */
.service-lead {
  font-size: 17px;
  color: #405364;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-lead strong { color: var(--navy); font-weight: 700; }

/* Quick stats horizontaux sous l'accroche */
.service-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 8px;
}
.quick-stat {
  background: var(--green-light);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(53,173,66,.18);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.quick-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(53,173,66,.18);
}
.quick-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--dark-green);
  line-height: 1;
  margin-bottom: 6px;
}
.quick-stat span {
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.35;
}
.quick-stat--blue   { background: var(--cyan-light);   border-color: rgba(36,137,167,.18); }
.quick-stat--blue   strong { color: var(--cyan); }
.quick-stat--orange { background: var(--orange-light); border-color: rgba(239,91,12,.18); }
.quick-stat--orange strong { color: var(--orange); }

/* Steps numérotées */
.service-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
}
.service-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--soft);
  border-radius: 14px;
  font-size: 14.5px;
  color: #405364;
  line-height: 1.55;
  border-left: 3px solid var(--green);
}
.service-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--green), var(--dark-green));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(53,173,66,.3);
}
.service-steps li strong { color: var(--navy); font-weight: 700; }
.service-steps--blue   li { border-left-color: var(--cyan); }
.service-steps--blue   li::before { background: linear-gradient(135deg, var(--cyan), #1d6f8a); box-shadow: 0 4px 10px rgba(36,137,167,.3); }
.service-steps--orange li { border-left-color: var(--orange); }
.service-steps--orange li::before { background: linear-gradient(135deg, var(--orange), #c4400a); box-shadow: 0 4px 10px rgba(239,91,12,.3); }

/* Image hero du service (colonne droite) */
.service-hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  margin-bottom: 24px;
}
.service-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-hero-image:hover img { transform: scale(1.04); }
.service-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,37,64,.65), transparent 55%);
  pointer-events: none;
}
.service-hero-image__tag {
  position: absolute;
  bottom: 16px; left: 18px; right: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.service-hero-image__tag::before {
  content: "●";
  color: var(--green);
  font-size: 10px;
}
.service-hero-image--blue   .service-hero-image__tag::before { color: var(--cyan); }
.service-hero-image--orange .service-hero-image__tag::before { color: var(--orange); }

/* H3 décoratif dans service-detail */
.service-detail h3,
.service-detail--alt h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 10px;
}

/* Responsive du nouveau contenu */
@media (max-width: 520px) {
  .service-lead { font-size: 15px; }
  .service-quick-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 18px 0 4px;
  }
  .quick-stat { padding: 12px 8px; border-radius: 12px; }
  .quick-stat strong { font-size: 17px; }
  .quick-stat span   { font-size: 10.5px; }
  .service-steps li { padding: 12px 14px 12px 50px; font-size: 13.5px; }
  .service-steps li::before { width: 26px; height: 26px; font-size: 12px; left: 12px; }
  .service-hero-image { aspect-ratio: 16/10; }
  .service-hero-image__tag { font-size: 12px; bottom: 12px; left: 14px; right: 14px; }
  .service-detail h3 { font-size: 16px; margin-top: 22px; }
}

/* =====================================================
   TIMELINE — thumbnail par étape
   ===================================================== */
.timeline-item__media {
  position: relative;
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 22px rgba(24,57,95,.1);
}
.timeline-item__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.timeline-item:hover .timeline-item__media img { transform: scale(1.05); }
.timeline-item__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,37,64,.55), transparent 60%);
  pointer-events: none;
}
.timeline-item__media-tag {
  position: absolute;
  bottom: 10px; left: 14px; right: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  letter-spacing: .3px;
  z-index: 1;
}

@media (max-width: 520px) {
  .timeline-item__media { aspect-ratio: 4/3; margin-top: 14px; }
  .timeline-item__media-tag { font-size: 11px; bottom: 8px; }
}

/* =====================================================
   SECTEURS — Galerie visuelle
   ===================================================== */
.sector-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.sector-mosaic .sector-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  cursor: default;
  background: var(--soft-2);
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.sector-mosaic .sector-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 22px 44px rgba(24,57,95,.18);
}
.sector-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.sector-tile:hover img { transform: scale(1.08); }
.sector-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,37,64,.85) 0%, rgba(14,37,64,.15) 55%, transparent 75%);
  pointer-events: none;
}
.sector-tile__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sector-tile__icon { font-size: 18px; line-height: 1; }

/* Variantes de span pour casser la grille (mosaic effect) */
.sector-tile--big   { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
.sector-tile--wide  { grid-column: span 2; aspect-ratio: 2/1; }
.sector-tile--tall  { grid-row: span 2; aspect-ratio: 1/2; }

/* Responsive sector-mosaic */
@media (max-width: 980px) {
  .sector-mosaic { grid-template-columns: repeat(4, 1fr); }
  .sector-tile--big { grid-column: span 2; grid-row: span 2; }
  .sector-tile--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .sector-mosaic { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sector-tile--big { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
  .sector-tile--wide { grid-column: span 2; aspect-ratio: 16/9; }
  .sector-tile--tall { grid-row: span 1; aspect-ratio: 1; }
}
