/* =============================================
   PT3I — STYLE.CSS
   Corporate · Premium · Moderne
   ============================================= */

/* ─── CSS Variables ─── */
:root {
  --blue:        #0057B8;
  --blue-dark:   #003B7A;
  --blue-light:  #E8F0FB;
  --blue-mid:    #1468CC;
  --white:       #FFFFFF;
  --gray-text:   #4A5568;
  --gray-light:  #F5F8FC;
  --gray-border: #E2E8F0;
  --gray-dark:   #2D3748;
  --shadow-sm:   0 2px 10px rgba(0,87,184,0.08);
  --shadow-md:   0 8px 30px rgba(0,87,184,0.12);
  --shadow-lg:   0 20px 60px rgba(0,87,184,0.16);
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
  --font-head:   'Sora', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* Accessibilite: lien d'evitement */
.skip-link {
  position: fixed;
  top: -48px;
  left: 1rem;
  z-index: 2001;
  background: var(--blue-dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 0.8rem;
}

/* Accessibilite: focus visible clair */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 87, 184, 0.42);
  outline-offset: 2px;
}

/* ─── Container ─── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Section base ─── */
.section {
  padding: 100px 0;
}
.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.2;
  margin-bottom: .9rem;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  border-radius: 10px;
  padding: .85rem 1.6rem;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,87,184,0.3);
}
.btn--primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 24px rgba(0,87,184,0.4);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}
.btn--sm {
  padding: .55rem 1.1rem;
  font-size: .82rem;
}
.btn--full {
  width: 100%;
  justify-content: center;
}
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(37,211,102,0.3);
  transition: var(--transition);
}
.btn--whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--right {
  transform: translateX(40px);
}
.reveal--right.visible {
  transform: translateX(0);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-border);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Ligne verticale */
.logo__text {
  position: relative;
  padding-left: 12px;
}

.logo__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  
  width: 2px;
  height: 110%; /* maintenant ça marche ✔️ */

  background: linear-gradient(
    to bottom,
    transparent,
    #0057B8,
    transparent
  );
}

/* Logo */
.logo__img {
  width: 99px;
  height: auto;
}

/* Texte */
.logo__tagline {
  font-size: 0.7rem;
  color: var(--blue-dark);
  max-width: 140px;
  opacity: 0.7;
  letter-spacing: 0.03em;
}

.logo__tagline span {
  display: block;
  line-height: 1.4; /* 🔥 contrôle précis */
}

.logo__text::before {
  width: 2.5px;
  height: 70%;
  background: linear-gradient(
    to bottom,
    transparent,
    #0057B8,
    transparent
  );
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.nav__link {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-dark);
  padding: .45rem .75rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav__link:hover, .nav__link.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(155deg, var(--white) 0%, var(--gray-light) 60%, var(--blue-light) 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__circuit {
  position: absolute;
  right: 0; top: 0;
  width: 60%;
  height: 100%;
  opacity: .7;
}
.hero__circuit svg {
  width: 100%; height: 100%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero content */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.dot {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--gray-dark);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.hero__accent {
  color: var(--blue);
  position: relative;
}
.hero__accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
}
.hero__sub {
  font-size: 1.08rem;
  color: var(--gray-text);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero__btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,87,184,0.2);
  border-radius: 100px;
  padding: .4rem .9rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: flex-end;
}
.hero__card-wrap {
  position: relative;
  width: 400px;
  height: 380px;
}
.hero__main-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,87,184,0.08);
  position: relative;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hcard__icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 20px rgba(0,87,184,0.35);
}
.hcard__label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: .3rem;
}
.hcard__value {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-dark);
  margin-bottom: 1rem;
}
.hcard__bar {
  height: 6px;
  background: var(--gray-border);
  border-radius: 3px;
  overflow: hidden;
}
.hcard__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  border-radius: 3px;
  animation: grow 2s ease-in-out infinite alternate;
}
@keyframes grow {
  from { width: 60%; }
  to   { width: 85%; }
}

.hero__stat-cards {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  position: absolute;
  right: -90px; top: 20px;
  z-index: 3;
}
.stat-card {
  background: var(--white);
  border-radius: 14px;
  padding: .9rem 1.2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,87,184,0.08);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 110px;
}
.stat-card__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-card__label {
  font-size: .72rem;
  font-weight: 500;
  color: var(--gray-text);
  line-height: 1.3;
}

.float-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0,87,184,0.35);
  white-space: nowrap;
  z-index: 4;
}
.float-tag--1 { bottom: 40px; left: -20px; animation: float 3.5s ease-in-out infinite; }
.float-tag--2 { bottom: -10px; right: 80px; animation: float 4.5s ease-in-out infinite 1s; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(0,87,184,0.25);
  border-radius: 50%;
  color: var(--blue);
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   À PROPOS
   ============================================ */
.apropos {
  background: var(--white);
}
.apropos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.apropos__lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-dark);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--blue);
  padding-left: 1.2rem;
}
.apropos__text p {
  margin-bottom: 1rem;
}
.apropos__values-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 1.2rem;
}
.values__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.value-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-dark);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.value-card:hover {
  background: var(--blue-light);
  border-color: rgba(0,87,184,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.value-card--full {
  grid-column: 1 / -1;
  justify-content: center;
}
.value-card__icon {
  color: var(--blue);
  flex-shrink: 0;
}

/* ============================================
   ÉQUIPE
   ============================================ */
.equipe {
  background: var(--gray-light);
}
.equipe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.equipe-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.equipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,87,184,0.2);
}
.equipe-card__icon {
  width: 60px; height: 60px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin: 0 auto 1.2rem;
  transition: var(--transition);
}
.equipe-card:hover .equipe-card__icon {
  background: var(--blue);
  color: #fff;
}
.equipe-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: .6rem;
}
.equipe-card p {
  font-size: .88rem;
  color: var(--gray-text);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--white);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-card__num,
.service-card:hover .service-card__title,
.service-card:hover .service-card__desc,
.service-card:hover .service-card__link,
.service-card:hover .service-card__icon { color: #fff; }
.service-card:hover .service-card__icon {
  background: rgba(255,255,255,0.2);
}
.service-card:hover .service-card__link {
  border-color: rgba(255,255,255,0.4);
}
.service-card > * { position: relative; z-index: 1; }

.service-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
}
.service-card--featured .service-card__desc {
  margin: 0;
}
.service-card--featured .service-card__num {
  margin-bottom: 0;
}
.service-card--featured .service-card__title {
  margin-bottom: 0;
  white-space: nowrap;
}

.service-card__icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.service-card__num {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: .4rem;
  transition: var(--transition);
}
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: .8rem;
  transition: var(--transition);
}
.service-card__desc {
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 1.3rem;
  transition: var(--transition);
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--gray-border);
  padding: .5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.services__row-center {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  grid-column: span 3;
}

/* ============================================
   AGRÉMENT
   ============================================ */
.agrement {
  background: var(--gray-light);
}
.agrement__wrap {
  max-width: 800px;
  margin: 0 auto;
}
.agrement__card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(0,87,184,0.15);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}
.agrement__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-mid));
}
.agrement__seal {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,87,184,0.35);
}
.agrement__label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .7rem;
}
.agrement__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-dark);
  line-height: 1.35;
  margin-bottom: .4rem;
}
.agrement__brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.agrement__divider {
  height: 1px;
  background: var(--gray-border);
  margin-bottom: 1.2rem;
}
.agrement__ref {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--blue);
}
.agrement__ref svg { flex-shrink: 0; }
.agrement__ref-label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--gray-text);
}
.agrement__ref-value {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gray-dark);
  margin-top: .15rem;
}
.agrement__badge {
  position: absolute;
  top: 1.5rem; right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #ECFDF5;
  color: #059669;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: 100px;
  border: 1px solid #A7F3D0;
}

/* ============================================
   DEVIS
   ============================================ */
.devis {
  background: var(--white);
}
.devis__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.devis__info .section__title {
  margin-bottom: 1rem;
}
.devis__info p {
  margin-bottom: 2rem;
}
.devis__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.devis__contact-icon {
  width: 42px; height: 42px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.devis__contact-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-dark);
}
.devis__contact-item span {
  font-size: .9rem;
}

/* Form */
.devis__form-wrap {
  background: var(--gray-light);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form__group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}
.form__group label {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: .45rem;
}
.form__group input,
.form__group select,
.form__group textarea {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--gray-dark);
  transition: var(--transition);
  width: 100%;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
}
.form__group input.error,
.form__group select.error,
.form__group textarea.error {
  border-color: #E53E3E;
}
.form__error {
  font-size: .76rem;
  color: #E53E3E;
  margin-top: .3rem;
  min-height: .9rem;
}
.form__group textarea { resize: vertical; }
.form__group select { appearance: none; cursor: pointer; }

/* Success */
.form__success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form__success.visible { display: block; }
.form__success-icon {
  width: 72px; height: 72px;
  background: #ECFDF5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: #059669;
}
.form__success h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: .5rem;
}

/* ==============================
   PARTENAIRES
================================ */
.partenaires {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  overflow: hidden;
}

/* STRUCTURE */
.partners-scene,
.partners-a3d {
  display: grid;
}

/* SCENE */
.partners-scene {
  height: 360px;
  overflow: hidden;
  perspective: 900px;
  margin-top: 2rem;

  mask: linear-gradient(
    90deg,
    transparent,
    #000 15% 85%,
    transparent
  );
}

/* CONTAINER 3D */
.partners-a3d {
  position: relative;
  width: 150px;
  height: 95px;

  place-self: center;
  transform-style: preserve-3d;

  /* ❌ IMPORTANT : on enlève animation pour JS */
  animation: none;

  transition: transform 0.8s ease;
  cursor: grab;
}

.partners-a3d:active {
  cursor: grabbing;
}

/* CARDS */
.partner-card {
  position: absolute;
  inset: 0;

  width: 150px;
  height: 95px;
  object-fit: contain;

  padding: 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(0, 87, 184, 0.12);
  border-radius: 1.2rem;
  box-shadow: 0 18px 45px rgba(0, 59, 122, 0.12);

  backface-visibility: hidden;

  /* ✅ CORRECTION PRINCIPALE */
  transform:
    rotateY(calc(var(--i) * (360deg / var(--n))))
    translateZ(420px);
}

/* CONTROLS */
.partners-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.partners-controls button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.partners-controls button:hover {
  transform: scale(1.1);
  background: var(--blue-dark);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .partners-scene {
    height: 280px;
    perspective: 700px;
  }

  .partners-a3d {
    width: 110px;
    height: 70px;
  }

  .partner-card {
    width: 110px;
    height: 70px;
    padding: 0.9rem;

    transform:
      rotateY(calc(var(--i) * (360deg / var(--n))))
      translateZ(280px);
  }
}

@media (max-width: 480px) {
  .partner-card {
    transform:
      rotateY(calc(var(--i) * (360deg / var(--n))))
      translateZ(220px);
  }
}

/* ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {
  .partners-a3d {
    transition: none;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--gray-light);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,87,184,0.2);
}
.contact-card__icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-card:hover .contact-card__icon {
  background: var(--blue);
  color: #fff;
}
.contact-card__body h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: .3rem;
}
.contact-card__body p { font-size: .92rem; }

/* Map */
.contact__map {
  height: 100%;
}
.map__placeholder {
  background: linear-gradient(135deg, var(--blue-light) 0%, rgba(0,87,184,0.06) 100%);
  border: 2px dashed rgba(0,87,184,0.2);
  border-radius: 20px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}
.map__pin {
  width: 70px; height: 70px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,87,184,0.35);
  animation: float 3s ease-in-out infinite;
}
.map__placeholder p {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-dark);
}

.map__container {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 59, 122, 0.15);
  border: 1px solid rgba(0, 87, 184, 0.1);
}

.map__container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  position: relative;
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(0, 87, 184, 0.08), transparent 62%),
    radial-gradient(900px 360px at 100% 0%, rgba(20, 104, 204, 0.08), transparent 58%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.faq-item {
  border: 1px solid rgba(0, 87, 184, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 59, 122, 0.08);
  transition: var(--transition);
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 59, 122, 0.12);
  border-color: rgba(0, 87, 184, 0.28);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem 1rem 1.2rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--gray-dark);
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(0, 87, 184, 0.1);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] {
  border-color: rgba(0, 87, 184, 0.34);
  box-shadow: 0 16px 34px rgba(0, 59, 122, 0.13);
}

.faq-item[open] summary {
  color: var(--blue-dark);
}

.faq-item[open] summary::after {
  content: "–";
  background: var(--blue);
  color: #fff;
}

.faq-item p {
  padding: 0 1.2rem 1.05rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--gray-text);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .logo__badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.footer .logo__name { color: #fff; }
.footer .logo__tagline { color: rgba(255,255,255,0.5); }
.footer__tagline {
  font-family: var(--font-head);
  font-size: .82rem;
  color: rgba(255,255,255,0.6);
  margin: 1rem 0 .7rem;
  line-height: 1.5;
}
.footer__desc {
  font-size: .85rem;
  line-height: 1.65;
}
.footer__col-title {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.footer__links li { margin-bottom: .65rem; }
.footer__links a {
  font-size: .88rem;
  color: rgba(255,255,255,0.82);
  transition: var(--transition);
}
.footer__links a:hover { color: #fff; }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  margin-bottom: .9rem;
  line-height: 1.5;
}
.footer__contact svg { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.footer__contact a {
  color: rgba(255,255,255,0.82);
  transition: var(--transition);
}
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.5rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .hero__card-wrap { width: 320px; }
  .hero__stat-cards { right: -60px; }
  .equipe__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured {
    grid-column: span 2;
    grid-template-columns: auto auto 1fr auto;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { justify-content: center; display: none; }
  .apropos__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .devis__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .agrement__card { flex-direction: column; align-items: center; text-align: center; }
  .agrement__ref { flex-direction: column; align-items: center; text-align: center; }
  main > section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
  .footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 360px;
  }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-border);
    padding: 1.5rem 2rem 2rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .nav__link { font-size: 1rem; padding: .65rem .9rem; width: 100%; }
  .burger { display: flex; }
  .header__actions .btn--primary { display: none; }

  .section { padding: 70px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card--featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .service-card--featured .service-card__title { white-space: normal; }
  .equipe__grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__stat-cards { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero__btns { flex-direction: column; }
  .equipe__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .value-card--full { grid-column: 1; }
  .hero__card-wrap { width: 100%; height: auto; }
  .logo__tagline { display: none; }
}

/* ============================================
   RESPONSIVE GLOBAL FINAL FIX
   À COLLER TOUT EN BAS DU FICHIER CSS
============================================ */

/* Sécurité globale */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
}

section {
  overflow-x: hidden;
}

/* Desktop moyen */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 1.8rem;
  }

  .header__inner {
    gap: 1rem;
  }

  .nav__link {
    font-size: 0.78rem;
    padding: 0.4rem 0.55rem;
  }

  .logo__img {
    width: 78px;
  }

  .logo__tagline {
    font-size: 0.55rem;
    max-width: 125px;
  }

  .hero__inner {
    gap: 2.5rem;
  }

  .hero__stat-cards {
    right: -35px;
  }
}

/* Tablette paysage */
@media (max-width: 992px) {
  .header__inner {
    height: 72px;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .nav__link {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .burger {
    display: flex;
  }

  .header__actions .btn--primary {
    display: none;
  }

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

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__btns,
  .hero__badges {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .apropos__grid,
  .devis__inner,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .equipe__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__row-center {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--featured {
    grid-column: span 1;
    display: block;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablette portrait + mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 1.3rem;
  }

  .section {
    padding: 70px 0;
  }

  .section__header {
    margin-bottom: 2.5rem;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .section__desc {
    font-size: 0.95rem;
  }

  .logo {
    gap: 8px;
  }

  .logo__img {
    width: 68px;
  }

  .logo__text {
    padding-left: 9px;
  }

  .logo__tagline {
    font-size: 0.48rem;
    max-width: 105px;
  }

  .logo__text::before {
    height: 75%;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .hero__btns {
    flex-direction: column;
    align-items: center;
  }

  .hero__btns .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero__badges {
    justify-content: center;
  }

  .badge {
    font-size: 0.68rem;
  }

  .values__grid,
  .equipe__grid,
  .services__grid,
  .services__row-center,
  .form__row {
    grid-template-columns: 1fr;
  }

  .services__row-center {
    display: grid;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card--featured {
    grid-column: span 1;
    padding: 1.5rem;
  }

  .service-card--featured .service-card__title {
    white-space: normal;
  }

  .agrement__card {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .agrement__badge {
    position: static;
    margin-top: 1rem;
  }

  .devis__form-wrap {
    padding: 1.5rem;
  }

  .contact-card {
    flex-direction: column;
  }

  .map__container {
    min-height: 300px;
  }

  .partners-scene {
    height: 270px;
    perspective: 26em;
  }

  .partner-card {
    --w: 105px;
    height: 70px;
    padding: 0.7rem;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header__inner {
    height: 66px;
  }

  .nav {
    top: 66px;
  }

  .logo__img {
    width: 58px;
  }

  .logo__tagline {
    display: none;
  }

  .logo__text {
    padding-left: 0;
  }

  .logo__text::before {
    display: none;
  }

  .hero {
    padding-top: 105px;
  }

  .hero__title {
    font-size: 1.65rem;
  }

  .hero__eyebrow {
    font-size: 0.65rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
  }

  .service-card,
  .equipe-card,
  .contact-card {
    padding: 1.25rem;
  }

  .agrement__seal {
    width: 72px;
    height: 72px;
  }

  .agrement__name {
    font-size: 0.95rem;
  }

  .agrement__brand {
    font-size: 1.15rem;
  }

  .devis__form-wrap {
    padding: 1.2rem;
  }

  .map__container {
    min-height: 260px;
  }

  .partners-scene {
    height: 230px;
    perspective: 22em;
  }

  .partner-card {
    --w: 88px;
    height: 60px;
  }
}

/* Très petit écran */
@media (max-width: 360px) {
  .hero__title {
    font-size: 1.45rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .service-card__title {
    font-size: 1rem;
  }

  .service-card__desc {
    font-size: 0.85rem;
  }

  .partner-card {
    --w: 75px;
    height: 52px;
  }
}

/* ============================================
   SERVICES CAROUSEL 3D
============================================ */

.services-carousel-section {
  background: var(--white);
  overflow: hidden;
}

.services-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  perspective: 50vw;
  perspective-origin: 50% 50%;
  margin-top: -1rem;
}

.services-carousel__control {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,87,184,0.12);
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  z-index: 5;
  padding: .8rem 0;
}

.services-carousel__control a {
  position: relative;
  display: block;
  width: 100%;
  height: 28px;
}

.services-carousel__control button {
  position: relative;
  display: block;
  width: 100%;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
}

.services-carousel__control a::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  background: rgba(0,87,184,0.25);
  border-radius: 50%;
  transition: var(--transition);
}

.services-carousel__control button::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  background: rgba(0,87,184,0.25);
  border-radius: 50%;
  transition: var(--transition);
}

.services-carousel__control a.active::before,
.services-carousel__control a:hover::before {
  background: var(--blue);
  transform: scale(1.35);
}

.services-carousel__control button.active::before,
.services-carousel__control button:hover::before,
.services-carousel__control button:focus-visible::before {
  background: var(--blue);
  transform: scale(1.35);
}

.services-carousel__stage {
  position: absolute;
  inset: 20px;
  transform-style: preserve-3d;
  transform: translateZ(calc(-50vh + 20px));
}

.services-spinner {
  position: absolute;
  width: calc(50vw - 20px);
  height: calc(100% - 40px);
  inset: 0 auto 0 20px;
  margin: auto;
  transform-style: preserve-3d;
  transition: transform 1s ease;
  backface-visibility: hidden;
  transform-origin: 50% 50%;
}

.services-spinner--right {
  right: 20px;
  left: auto;
}

.services-carousel__stage.js-spin-fwd .services-spinner--left {
  transform: rotateX(-90deg);
}

.services-carousel__stage.js-spin-bwd .services-spinner--left {
  transform: rotateX(90deg);
}

.services-carousel__stage.js-spin-fwd .services-spinner--right {
  transform: rotateX(90deg);
}

.services-carousel__stage.js-spin-bwd .services-spinner--right {
  transform: rotateX(-90deg);
}

.services-spinner__face {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.services-spinner__face.js-active {
  display: block;
  transform: translateZ(calc(50vh - 20px));
}

.services-spinner__face.js-next {
  display: block;
  transform: rotateX(90deg) translateZ(calc(50vh - 20px));
}

.services-spinner--right .services-spinner__face.js-next {
  transform: rotateX(270deg) translateZ(calc(50vh - 20px));
}

.services-carousel__stage.js-spin-bwd .services-spinner__face.js-next {
  transform: rotateX(-90deg) translateZ(calc(50vh - 20px));
}

.services-carousel__stage.js-spin-bwd .services-spinner--right .services-spinner__face.js-next {
  transform: rotateX(-270deg) translateZ(calc(50vh - 20px));
}

.services-carousel__stage.js-transitions-disabled * {
  transition: none !important;
}

/* Content */
.services-slide {
  position: absolute;
  width: 200%;
  height: 100%;
  left: 0;
  display: flex;
  background: var(--blue-dark);
}

.services-spinner--right .services-slide {
  left: -100%;
}

.services-slide__left,
.services-slide__right {
  width: 50%;
  height: 100%;
}

.services-slide__left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 6s ease;
}

/* Overlay corrigé : plus clair, image plus visible */
.services-slide__left::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(0, 59, 122, 0.28),
      rgba(0, 87, 184, 0.18)
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.16),
      transparent 42%
    );
  z-index: 1;
}

.services-spinner__face.js-active .services-slide__left {
  transform: scale(1.05);
}

.services-slide__left h3 {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 4.2rem);
  color: #fff;
  text-align: center;
  line-height: 1;
  letter-spacing: .04em;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.services-slide__left h3 span {
  display: block;
  margin-top: .8rem;
  font-size: clamp(.8rem, 1vw, 1rem);
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .9;
}

.services-slide__right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
}

.services-slide__content {
  max-width: 540px;
  padding: 0 4rem;
}

.services-slide__num {
  font-family: var(--font-head);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  opacity: .08;
  display: block;
  margin-bottom: -1rem;
}

.services-slide__content h4 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: #fff;
}

.services-slide__content p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: .88;
  margin-bottom: 1.5rem;
}

.services-slide__content .btn {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}

.services-slide__content .btn:hover {
  background: var(--blue-light);
}

/* Backgrounds premium corrigés */
.services-slide__left--study {
  background-image:
    linear-gradient(135deg, rgba(0,59,122,0.22), rgba(0,174,239,0.14)),
    url("images/Etude.jpeg");
}

.services-slide__left--energy {
  background-image:
    linear-gradient(135deg, rgba(0,59,122,0.22), rgba(0,174,239,0.14)),
    url("images/Audit.jpeg");
}

.services-slide__left--control {
  background-image:
    linear-gradient(135deg, rgba(0,59,122,0.22), rgba(0,87,184,0.14)),
    url("images/CRIE.jpeg");
}

.services-slide__left--training {
  background-image:
    linear-gradient(135deg, rgba(0,59,122,0.22), rgba(0,87,184,0.14)),
    url("images/Formation.jpeg");
}

/* Solaire */
.services-slide__left--solar {
  background-image:
    linear-gradient(135deg, rgba(0,59,122,0.2), rgba(255,184,19,0.16)),
    url("images/Photovoltaique.jpeg");
}

/* Éclairement */
.services-slide__left--lighting {
  background-image:
    linear-gradient(135deg, rgba(0,59,122,0.2), rgba(0,174,239,0.14)),
    url("images/Mesure.jpeg");
}

/* Thermographie infrarouge */
.services-slide__left--infrared {
  background-image:
    linear-gradient(
      135deg,
      rgba(0,59,122,0.25),
      rgba(255,80,0,0.2)
    ),
    url("images/Infrarouge.jpeg");
}

/* Correction titres longs service 05 et 07 */
.services-slide__left--solar h3,
.services-slide__left--infrared h3 {
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  max-width: 85%;
  line-height: 1.15;
  word-break: normal;
}

.services-slide__content h4 {
  line-height: 1.2;
}

.services-slide__content p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Pour éviter que le texte du service 07 soit trop long */
.services-slide__left--infrared {
  background-position: center;
}

.services-slide__left--solar {
  background-position: center;
}

/* Desktop moyen */
@media (max-width: 1200px) {
  .services-slide__left--solar h3,
  .services-slide__left--infrared h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.7rem);
  }

  .services-slide__content {
    padding: 0 3rem;
  }

  .services-slide__content p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* Mobile / tablette */
@media (max-width: 992px) {
  .services-slide__left--solar h3,
  .services-slide__left--infrared h3 {
    font-size: 2rem;
  }

  .services-slide__content p {
    font-size: 0.92rem;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .services-carousel {
    height: auto;
    perspective: none;
    overflow: visible;
  }

  .services-carousel__stage,
  .services-spinner,
  .services-spinner__face,
  .services-slide {
    position: static;
    transform: none !important;
    width: 100%;
    height: auto;
  }

  .services-spinner--right,
  .services-carousel__control {
    display: none;
  }

  .services-spinner__face {
    display: block;
    margin-bottom: 1.2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .services-slide {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-slide__left,
  .services-slide__right {
    width: 100%;
    min-height: 230px;
  }

  .services-slide__left {
    transform: none !important;
  }

  .services-slide__content {
    max-width: 100%;
    padding: 2rem;
  }

  .services-slide__num {
    font-size: 4rem;
  }
}

.partners-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.partners-controls button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.partners-controls button:hover {
  transform: scale(1.1);
  background: var(--blue-dark);
}


/* ============================================
   RESPONSIVE FINAL — SERVICES SLIDER + PARTENAIRES
   À COLLER TOUT EN BAS DU CSS
============================================ */
/* ============================================
   FIX FINAL MOBILE — SERVICES SLIDER ANIMÉ
============================================ */

@media (max-width: 992px) {
  .services-carousel {
    height: 620px !important;
    perspective: 900px !important;
    overflow: hidden !important;
  }

  .services-carousel__stage {
    position: absolute !important;
    inset: 12px !important;
    transform-style: preserve-3d !important;
    transform: translateZ(-280px) !important;
  }

  .services-spinner {
    position: absolute !important;
    width: calc(50vw - 12px) !important;
    height: calc(100% - 24px) !important;
    inset: 0 auto 0 12px !important;
    margin: auto !important;
    transform-style: preserve-3d !important;
    transition: transform 1s ease !important;
  }

  .services-spinner--right {
    display: none !important;
    right: 12px !important;
    left: auto !important;
  }

  .services-slide {
    position: absolute !important;
    width: 200% !important;
    height: 100% !important;
    left: 0 !important;
    display: flex !important;
  }

  .services-spinner--right .services-slide {
    left: -100% !important;
  }

  .services-slide__left,
  .services-slide__right {
    width: 50% !important;
    height: 100% !important;
    min-height: unset !important;
  }

  .services-spinner__face {
    display: none !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .services-spinner__face.js-active {
    display: block !important;
    transform: translateZ(280px) !important;
  }

  .services-spinner__face.js-next {
    display: block !important;
    transform: rotateX(90deg) translateZ(280px) !important;
  }

  .services-spinner--right .services-spinner__face.js-next {
    transform: rotateX(270deg) translateZ(280px) !important;
  }

  .services-carousel__control {
    display: block !important;
    right: 6px !important;
    width: 30px !important;
    padding: 0.4rem 0 !important;
  }

  .services-carousel__control a {
    height: 22px !important;
  }

  .services-slide__left h3 {
    font-size: 1.15rem !important;
    line-height: 1.15 !important;
    max-width: 90% !important;
  }

  .services-slide__content {
    padding: 0 0.8rem !important;
  }

  .services-slide__num {
    font-size: 3rem !important;
  }

  .services-slide__content h4 {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }

  .services-slide__content p {
    font-size: 0.68rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.8rem !important;
  }

  .services-slide__content .btn {
    width: auto !important;
    padding: 0.45rem 0.65rem !important;
    font-size: 0.62rem !important;
  }
  .services-carousel__control button {
    height: 22px !important;
  }
}

@media (max-width: 390px) {
  .services-carousel {
    height: 560px !important;
  }

  .services-carousel__stage {
    transform: translateZ(-255px) !important;
  }

  .services-spinner__face.js-active {
    transform: translateZ(255px) !important;
  }

  .services-spinner__face.js-next {
    transform: rotateX(90deg) translateZ(255px) !important;
  }

  .services-spinner--right .services-spinner__face.js-next {
    transform: rotateX(270deg) translateZ(255px) !important;
  }

  .services-slide__left h3 {
    font-size: 0.95rem !important;
  }

  .services-slide__content p {
    font-size: 0.62rem !important;
  }
}

/* PARTENAIRES responsive propre */
@media (max-width: 992px) {
  .partners-scene {
    height: 330px;
    perspective: 760px;
  }

  .partners-a3d {
    width: 130px;
    height: 82px;
  }

  .partner-card {
    width: 130px;
    height: 82px;
    padding: 0.9rem;
    transform:
      rotateY(calc(var(--i) * (360deg / var(--n))))
      translateZ(340px);
  }
}

@media (max-width: 768px) {
  .partners-scene {
    height: 280px;
    perspective: 650px;
  }

  .partners-a3d {
    width: 105px;
    height: 68px;
  }

  .partner-card {
    width: 105px;
    height: 68px;
    padding: 0.65rem;
    transform:
      rotateY(calc(var(--i) * (360deg / var(--n))))
      translateZ(270px);
  }

  .partners-controls button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .partners-scene {
    height: 240px;
    perspective: 560px;
  }

  .partners-a3d {
    width: 90px;
    height: 58px;
  }

  .partner-card {
    width: 90px;
    height: 58px;
    padding: 0.5rem;
    transform:
      rotateY(calc(var(--i) * (360deg / var(--n))))
      translateZ(215px);
  }

  .partners-controls {
    margin-top: 1rem;
  }
}

/* ============================================
   FIX FINAL MOBILE SERVICES SLIDER
   Animation conservée + dimensions lisibles
============================================ */

@media (max-width: 768px) {
  .services-carousel {
    width: 100%;
    height: 560px !important;
    overflow: hidden !important;
    perspective: 900px !important;
    margin-top: 0;
  }

  .services-carousel__stage {
    position: absolute !important;
    inset: 12px !important;
    transform-style: preserve-3d !important;
    transform: translateZ(-260px) !important;
  }

  .services-spinner {
    position: absolute !important;
    width: calc(100% - 24px) !important;
    height: calc(100% - 24px) !important;
    inset: 12px !important;
    margin: auto !important;
    transform-style: preserve-3d !important;
    transition: transform 1s ease !important;
  }

  .services-spinner--right {
    display: none !important;
  }

  .services-slide {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    display: grid !important;
    grid-template-rows: 45% 55%;
    background: var(--blue-dark);
  }

  .services-slide__left,
  .services-slide__right {
    width: 100% !important;
    height: 100% !important;
    min-height: unset !important;
  }

  .services-slide__left {
    transform: none !important;
  }

  .services-spinner__face {
    display: none !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
  }

  .services-spinner__face.js-active {
    display: block !important;
    transform: translateZ(260px) !important;
  }

  .services-spinner__face.js-next {
    display: block !important;
    transform: rotateX(90deg) translateZ(260px) !important;
  }

  .services-carousel__stage.js-spin-bwd .services-spinner__face.js-next {
    transform: rotateX(-90deg) translateZ(260px) !important;
  }

  .services-slide__left h3 {
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
    max-width: 90%;
  }

  .services-slide__content {
    padding: 1.4rem !important;
  }

  .services-slide__num {
    font-size: 3.2rem !important;
  }

  .services-slide__content h4 {
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.6rem !important;
  }

  .services-slide__content p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  .services-slide__content .btn {
    width: auto !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.72rem !important;
  }

  .services-carousel__control {
    display: block !important;
    right: 8px !important;
    width: 32px !important;
    padding: 0.45rem 0 !important;
  }

  .services-carousel__control a {
    height: 22px !important;
  }
}

@media (max-width: 390px) {
  .services-carousel {
    height: 530px !important;
  }

  .services-slide__content p {
    font-size: 0.76rem !important;
  }

  .services-slide__left h3 {
    font-size: 1.25rem !important;
  }
}

/* ============================================
   FIX FINAL — SERVICE MOBILE DOTS + OVERFLOW
============================================ */

@media (max-width: 768px) {
  .services-carousel {
    height: 560px !important;
    padding: 0 14px !important;
    overflow: visible !important;
  }

  .services-carousel__stage {
    inset: 14px !important;
    overflow: visible !important;
  }

  .services-spinner {
    width: calc(100% - 28px) !important;
    height: calc(100% - 28px) !important;
    inset: 14px !important;
  }

  .services-spinner__face {
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .services-slide {
    width: 100% !important;
    display: grid !important;
    grid-template-rows: 45% 55% !important;
  }

  .services-slide__left,
  .services-slide__right {
    width: 100% !important;
  }

  /* Le vrai problème : dots trop collés à droite */
  .services-carousel__control {
    right: 18px !important;
    top: 50% !important;
    width: 28px !important;
    padding: 0.35rem 0 !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
  }

  .services-carousel__control a {
    height: 20px !important;
  }

  .services-carousel__control a::before {
    width: 7px !important;
    height: 7px !important;
  }

  .services-slide__content {
    padding: 1.25rem 2.2rem 1.25rem 1.2rem !important;
  }

  .services-carousel__control button {
    height: 20px !important;
  }

  .services-carousel__control button::before {
    width: 7px !important;
    height: 7px !important;
  }
}

@media (max-width: 390px) {
  .services-carousel {
    height: 540px !important;
    padding: 0 12px !important;
  }

  .services-carousel__control {
    right: 14px !important;
    width: 26px !important;
  }

  .services-slide__content {
    padding-right: 2rem !important;
  }

  .services-slide__content p {
    font-size: 0.74rem !important;
  }
}

/* ============================================
   FIX FINAL — SERVICES MOBILE VISIBLE + CENTRÉ
============================================ */

@media (max-width: 768px) {
  .services-carousel {
    position: relative !important;
    width: 100% !important;
    max-width: 390px !important;
    height: 560px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    perspective: 900px !important;
  }

  .services-carousel__stage {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform-style: preserve-3d !important;
    transform: translateZ(-260px) !important;
  }

  .services-spinner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 auto !important;
    transform-style: preserve-3d !important;
    transition: transform 1s ease !important;
  }

  .services-spinner--right {
    display: none !important;
  }

  .services-spinner__face {
    display: none !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
  }

  .services-spinner__face.js-active {
    display: block !important;
    transform: translateZ(260px) !important;
  }

  .services-spinner__face.js-next {
    display: block !important;
    transform: rotateX(90deg) translateZ(260px) !important;
  }

  .services-carousel__stage.js-spin-bwd .services-spinner__face.js-next {
    transform: rotateX(-90deg) translateZ(260px) !important;
  }

  .services-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    grid-template-rows: 45% 55% !important;
  }

  .services-slide__left,
  .services-slide__right {
    width: 100% !important;
    height: 100% !important;
  }

  .services-slide__content {
    padding: 1.25rem 2.3rem 1.25rem 1.2rem !important;
  }

  .services-carousel__control {
    right: 10px !important;
    width: 28px !important;
    z-index: 20 !important;
  }
}
