/* =========================================================
   Nordex Inter — reproduction fidèle (phase 1)
   Valeurs mesurées sur le site de référence : couleurs, polices,
   espacements, ombres, animations (durée 1,25 s, translate 100 %).
   ========================================================= */

:root {
  --navy: #011167;
  --ink: #271d57;
  --gray: #6e7a84;
  --teal: #21a6c6;
  --yellow: #fded01;
  --light: #f0f0f0;
  --pale: #f7f7f7;
  --line: #dcdde8;
  --white: #fff;

  --f-head: "Plus Jakarta Sans", sans-serif;
  --f-body: "Inter", sans-serif;
  --f-nav: "Outfit", sans-serif;

  --container: 1280px;
  --radius: 7px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.4em var(--f-body);
  color: var(--gray);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

h1 { font: 700 48px/1.2em var(--f-head); color: var(--ink); }
h2 { font: 700 39px/1.2em var(--f-head); color: var(--ink); }
h4 { font: 500 25px/1.3em var(--f-head); color: var(--ink); }
h5 { font: 700 20px/1.4em var(--f-head); color: var(--ink); }
h6 { font: 600 16px/1.4em var(--f-head); color: var(--white); text-transform: uppercase; }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Animations d'entrée (identiques à Elementor) ---------- */
.reveal { visibility: hidden; }
.reveal.animated { visibility: visible; animation-duration: 1.25s; animation-fill-mode: both; }
.reveal.fadeInUp    { animation-name: fadeInUp; }
.reveal.fadeInDown  { animation-name: fadeInDown; }
.reveal.fadeInLeft  { animation-name: fadeInLeft; }
.reveal.fadeInRight { animation-name: fadeInRight; }
.reveal.rotateIn    { animation-name: rotateIn; }
@keyframes fadeInUp    { from { opacity: 0; transform: translate3d(0, 100%, 0); }  to { opacity: 1; transform: none; } }
@keyframes fadeInDown  { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft  { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); }  to { opacity: 1; transform: none; } }
@keyframes rotateIn    { from { transform-origin: center; transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { transform-origin: center; transform: none; opacity: 1; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 16px/1em var(--f-head);
  padding: 12px 24px;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink); background: var(--yellow);
  transition: all .3s;
}
.btn:hover, .btn:focus-visible { background: var(--navy); color: var(--white); }
.btn--lg { font-size: 20px; font-weight: 700; line-height: 1.4em; }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--outline { background: transparent; border: 1px solid var(--navy); }
.btn--outline:hover { background: var(--navy); }
.btn--sm { font-size: 16px; }

/* ---------- Badge (étiquette dégradée) ---------- */
.badge {
  display: block; width: fit-content;
  padding: 3px 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--yellow) 0%, var(--teal) 100%);
}

/* ---------- Barre supérieure ---------- */
.topbar { display: flex; height: 52px; background: var(--navy); }
.topbar__welcome {
  flex: 0 0 auto; min-width: 253px; white-space: nowrap; display: flex; align-items: center;
  padding: 10px 19px; background: var(--teal); color: var(--white);
  font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: 400;
}
.topbar__contact {
  flex: 1; display: flex; align-items: center; justify-content: flex-end;
  gap: 20px; padding: 10px 10px 10px 0;
}
.topbar__item { display: flex; align-items: center; gap: 4px; color: var(--white); font: 700 14px/1.4em var(--f-body); }
.topbar__social { display: flex; gap: 5px; }
.topbar__social a {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,.17); color: var(--white);
  transition: background .3s, color .3s;
}
.topbar__social a:hover { background: var(--yellow); color: var(--navy); }
.topbar__social .ico { width: 16px; height: 16px; }

/* ---------- En-tête ---------- */
.header {
  position: relative; z-index: 20;
  display: flex; align-items: center; height: 100px;
  background: var(--white);
  box-shadow: 0 10px 60px rgba(0,0,0,.1);
}
.logo { display: flex; align-items: center; gap: 8px; width: 253px; padding: 10px; flex: none; }
.logo__mark { width: 44px; height: 44px; flex: none; }
.logo__text { font: 500 33px/1 var(--f-head); letter-spacing: -.5px; color: var(--teal); }
.logo__text b { font-weight: 800; color: var(--navy); }
.logo--light .logo__text { color: var(--teal); }
.logo--light .logo__text b { color: var(--white); }
.nav { display: flex; align-items: center; gap: 25px; margin-left: 44px; }
.nav__link { font: 500 18px/27px var(--f-nav); color: var(--ink); padding: 25px 0; transition: color .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--teal); }
.nav__lang { display: flex; align-items: center; gap: 5px; font: 500 18px/27px var(--f-nav); color: var(--ink); cursor: default; }
.flag { display: inline-block; width: 16px; height: 11px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag--fr { background: linear-gradient(90deg, #2b4a9e 33%, #fff 33% 66%, #d6342c 66%); }
.flag--de { background: linear-gradient(180deg, #111 33%, #d00 33% 66%, #ffce00 66%); }
.flag--en { background: linear-gradient(0deg, transparent 38%, #fff 38% 62%, transparent 62%), linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%), linear-gradient(0deg, transparent 44%, #c8102e 44% 56%, transparent 56%), linear-gradient(90deg, transparent 45%, #c8102e 45% 55%, transparent 55%), #012169; }
.chev { width: 18px; height: 18px; margin-left: 5px; fill: var(--ink); }
.header__cta { margin-left: auto; margin-right: 55px; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 523px; padding-bottom: 112px;
  display: flex; justify-content: center;
  background: url("../images/hero.jpg") 0 0 / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: .6; }
.hero__inner {
  position: relative; width: 632px; max-width: 100%;
  display: flex; flex-direction: column; gap: 20px;
  padding: 112px 16px 16px; text-align: center;
}
.hero h1 { color: var(--white); }
.hero__sub { font: 400 20px/1.4em var(--f-head); color: var(--white); }
.hero__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px; }
.hero__btns .btn:first-child { justify-self: end; }
.hero__btns .btn:last-child { justify-self: start; }

/* ---------- Filigrane carte du monde ---------- */
.about::before, .cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background: url("../images/map.png") no-repeat;
}
.about::before { background-position: 0 50%; background-size: 640px auto; }
.cta::before { background-position: 50% 50%; background-size: contain; }

/* ---------- À propos ---------- */
.about {
  position: relative; display: flex; flex-wrap: wrap; justify-content: flex-end;
  padding-top: 80px;
}
.about__text {
  position: relative; width: 50.6%;
  background: url("../images/bg-2.png") 100% 0 / 70px auto no-repeat; display: flex; flex-direction: column; gap: 20px;
  padding: 16px 80px 80px 16px;
}
.about h2 { max-width: 544px; }
.about__p { max-width: 544px; }
.about__hr { width: 100%; max-width: 544px; margin: 4px 0 2px; border: 0; border-top: 1px solid var(--line); }
.about__list { display: flex; flex-direction: column; gap: 20px; max-width: 544px; }
.about__list li { display: flex; gap: 16px; align-items: flex-start; }
.about__ico { width: 35px; height: 35px; color: var(--teal); flex: none; }
.about__list h5 { line-height: 1.3em; }
.about__list p { margin-top: 8px; }
.about__photo { position: relative; width: 50%; height: 640px; padding: 10px; }
.about__photo .ph { position: absolute; inset: 0; }
.about__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 5%, rgba(255,255,255,0) 75%);
}

/* ---------- Images ---------- */
.ph { background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.ph--family { background-image: url("../images/about-family.jpg"); }

/* ---------- En-tête de section ---------- */
.sec-head {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 32px 96px; text-align: center;
}
.sec-head__p { color: var(--navy); max-width: 1041px; }
.sec-head--light h2 { color: var(--white); }

/* ---------- Services ---------- */
.services { position: relative; padding: 80px 16px 112px; background: var(--light); overflow: hidden; }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background: url("../images/bg-3.png") 100% 100% / contain no-repeat;
}
.services > * { position: relative; z-index: 1; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 16px 80px; max-width: var(--container); margin: 0 auto;
}
.svc {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 32px; text-align: center;
  background: var(--pale); border-radius: 14px;
  transition: background .3s, border .3s, box-shadow .3s, transform .3s;
}
.svc__ico {
  display: grid; place-items: center; width: 82px; height: 83px; border-radius: 50%;
  background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.1); color: var(--teal);
}
.svc__ico svg { width: 42px; height: 42px; }
.svc h5 { margin-bottom: 15px; }
.svc:hover { background: var(--white); box-shadow: 0 10px 40px rgba(0,0,0,.1); transform: translateY(-4px); }

/* ---------- Pourquoi nous choisir ---------- */
.why { padding: 48px 0 81px; max-width: 100%; }
.why__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px;
  padding: 32px 0 16px; max-width: var(--container); margin: 0 auto;
}
.why__title, .why__text { padding: 10px; }
.why__title { display: flex; flex-direction: column; gap: 20px; }
.why__text { align-self: end; }
.counters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
  padding: 16px 0 0; max-width: var(--container); margin: 0 auto;
}
.counter { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 10px; text-align: center; }
.counter__num { display: flex; font: 700 110px/1.1em var(--f-head); color: var(--light); }
.counter h4 { position: absolute; left: 0; right: 0; top: 54px; }

/* ---------- Procédure ---------- */
.process {
  position: relative; display: flow-root; padding: 80px 0 0; background: var(--navy); overflow: visible;
}
.process { background-image: url("../images/bg-4.png"); background-position: 50% 100%; background-repeat: no-repeat; }
.process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("../images/bg-2.png") 0 0 / 100px auto no-repeat;
}
.process > * { position: relative; z-index: 1; }
.process .sec-head { padding: 32px; }
.process .sec-head h2 { max-width: 640px; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 10px;
  max-width: var(--container); margin: 0 auto -175px; z-index: 3;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 32px;
  background: var(--white); border-radius: 10px; box-shadow: 0 0 60px rgba(0,0,0,.1); text-align: center;
}
.step__ico { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--teal); color: var(--white); }
.step__ico svg { width: 35px; height: 35px; }
.process-spacer { height: 175px; }

/* ---------- Témoignages ---------- */
.testi {
  position: relative; display: grid; grid-template-columns: 569px 1fr; align-items: start;
  max-width: var(--container); margin: 0 auto; padding: 112px 0 0; min-height: 767px; background: var(--pale);
  box-shadow: 0 0 0 100vmax var(--pale); clip-path: inset(0 -100vmax);
}
.testi__photos { position: relative; height: 543px; padding: 10px; }
.polaroid { position: absolute; background: var(--white); border-radius: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.1); padding: 14px 14px 34px; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.polaroid--a { left: 11px; top: 12px; width: 382px; height: 396px; transform: rotate(-5deg); }
.polaroid--b { left: 286px; top: 245px; width: 283px; height: 297px; transform: rotate(5deg); z-index: 2; }
.testi__body > * { position: relative; z-index: 1; }
.testi__body { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 48px 16px 48px 80px; min-width: 0; }
.testi__body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background: url("../images/quote.png") 100% 0 / 150px auto no-repeat;
}
.slider { width: 100%; border-top: 1px solid var(--line); padding-top: 28px; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; gap: 10px; transition: transform .5s ease; }
.slide { flex: 0 0 100%; min-width: 0; }
.slide blockquote { font: italic 400 20.8px/1.5em var(--f-body); color: var(--gray); }
.author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex: none; }
.author strong { display: block; font: 700 16px/1.3em var(--f-head); color: var(--ink); }
.author small { font-size: 14px; }
.slider__dots { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.slider__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; transition: opacity .3s; }
.slider__dots button.is-active { opacity: 1; }

/* ---------- Rejoignez-nous ---------- */
.cta { position: relative; padding: 112px 16px; text-align: center; overflow: hidden; }
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 640px; margin: 0 auto; padding: 32px; }
.cta__inner .badge { margin: 0 auto; }
.cta__btns { display: flex; align-items: flex-start; gap: 14px; }
.face { position: absolute; z-index: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 30px rgba(0,0,0,.1); }
.face--1 { left: calc(50% - 390px); top: 62px;  width: 70px;  height: 70px; }
.face--2 { left: calc(50% + 260px); top: 62px;  width: 60px;  height: 60px; }
.face--3 { left: calc(50% - 460px); top: 389px; width: 100px; height: 100px; }
.face--4 { left: calc(50% + 310px); top: 459px; width: 80px;  height: 80px; }

/* ---------- Pied de page ---------- */
.footer { position: relative; background: var(--navy) url("../images/bg-1.png") 100% 0 / contain no-repeat; color: rgba(255,255,255,.6); overflow: hidden; }
.footer__main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("../images/bg-2.png") 0 50% / 100px auto no-repeat;
}
.footer__main {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .75fr .75fr 1fr; gap: 32px;
  max-width: var(--container); margin: 0 auto; padding: 80px 16px 26px 8px;
}
.footer__about p { font-size: 14px; line-height: 1.4em; margin-top: 20px; color: rgba(255,255,255,.6); }
.footer__col h5 { color: var(--white); margin-bottom: 20px; }
.footer__col li { font-size: 14px; padding: 3px 0; }
.footer__col a { color: rgba(255,255,255,.6); transition: color .3s; }
.footer__col a:hover { color: var(--yellow); }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list .ico { width: 13px; height: 13px; color: var(--white); }
.newsletter { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.newsletter label { font: 500 18px/1.5em var(--f-nav); color: rgba(255,255,255,.6); }
.newsletter input {
  font: 400 16px/1.4em var(--f-body); padding: 10px 12px; border: 1px solid var(--light); border-radius: var(--radius);
  background: var(--light); color: var(--gray);
}
.newsletter input:focus { outline: 0; background: var(--white); border-color: var(--navy); }
.newsletter .btn { width: 100%; }
.footer__bar {
  position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: var(--container); margin: 0 auto; padding: 32px 16px; font-size: 13px; line-height: 1.5em;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer__bar nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer__bar nav a { color: rgba(255,255,255,.6); }
.footer__bar nav a + a::before { content: "-"; margin-right: 14px; color: rgba(255,255,255,.6); }
.footer__bar nav a:hover { color: var(--yellow); }

/* =========================================================
   Responsive (mêmes seuils que la référence : 1024 / 767)
   ========================================================= */
@media (max-width: 1024px) {
  h1 { font-size: 37px; } h2 { font-size: 31px; } h4 { font-size: 21px; } h5 { font-size: 18px; }
  body { font-size: 15px; } h6 { font-size: 15px; }
  .hero__sub { font-size: 18px; }
  .header { height: 80px; padding: 0 16px; }
  .logo { width: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0;
    margin: 0; padding: 8px 24px 16px; background: var(--white); box-shadow: 0 20px 40px rgba(0,0,0,.1);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 0; }
  .header__cta { margin: 0 12px 0 auto; }
  .burger { display: grid; gap: 5px; padding: 10px; border: 0; background: none; cursor: pointer; }
  .burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar__welcome { flex-basis: auto; padding-right: 12px; font-size: 14px; }
  .topbar__item:nth-child(3) { display: none; }
  .about__text, .about__photo { width: 100%; }
  .about__text { padding: 16px 24px 40px; }
  .about__photo { height: 480px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); padding: 16px 24px 64px; }
  .why { padding-top: 48px; }
  .why__head { gap: 24px; padding: 32px 16px 16px; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 16px; }
  .counter__num { font-size: 85px; } .counter h4 { top: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
  .process { padding-bottom: 24px; } .process-spacer { height: 0; }
  .testi { grid-template-columns: 1fr; padding: 64px 16px 48px; }
  .testi__photos { width: 100%; max-width: 569px; margin: 0 auto 24px; }
  .testi__body { padding: 24px 16px; }
  .face { display: none; }
  .footer__main { grid-template-columns: 1fr 1fr; padding: 56px 24px 24px; }
}

@media (max-width: 767px) {
  h1 { font-size: 30px; } h2 { font-size: 24px; } h4 { font-size: 18px; } h5 { font-size: 16px; }
  body { font-size: 14px; } h6 { font-size: 14px; }
  .hero { padding-bottom: 48px; min-height: 0; }
  .hero__inner { padding-top: 64px; }
  .hero__sub { font-size: 16px; }
  .hero__btns { grid-template-columns: 1fr; justify-items: center; }
  .hero__btns .btn:first-child, .hero__btns .btn:last-child { justify-self: center; }
  .topbar { height: auto; flex-direction: column; }
  .topbar__welcome { padding: 8px 16px; justify-content: center; }
  .topbar__contact { justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 8px; background: var(--navy); }
  .topbar__social { display: none; }
  .header__cta { display: none; }
  .header { justify-content: space-between; }
  .burger { margin-left: auto; }
  .sec-head { padding: 24px 8px; }
  .services .sec-head { padding-top: 64px; }
  .services__grid { grid-template-columns: 1fr; padding: 8px 8px 48px; }
  .about__text { padding: 8px 16px 32px; }
  .about__photo { height: 340px; }
  .why__head { grid-template-columns: 1fr; }
  .counter__num { font-size: 56px; } .counter h4 { top: 22px; font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .polaroid--a { width: 70%; height: auto; aspect-ratio: 382 / 396; left: 0; }
  .polaroid--b { width: 52%; height: auto; aspect-ratio: 283 / 297; left: auto; right: 0; top: 55%; }
  .testi__photos { height: 380px; }
  .slide blockquote { font-size: 17px; }
  .cta { padding: 64px 12px; }
  .cta__btns { flex-direction: column; width: 100%; }
  .footer__main { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- Logo (image) ---------- */
.logo img { height: 64px; width: auto; }
.logo--footer { width: auto; padding: 0; }
.logo--footer img { height: 56px; }

/* ---------- Menu des langues ---------- */
.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 5px; padding: 25px 0; border: 0; background: none; cursor: pointer; font: 500 18px/27px var(--f-nav); color: var(--ink); }
.lang__btn .chev { margin-left: 5px; transition: transform .2s; }
.lang__menu {
  position: absolute; top: calc(100% - 8px); left: -14px; z-index: 30; min-width: 180px; padding: 8px 0;
  background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.lang:hover .lang__menu, .lang.is-open .lang__menu, .lang:focus-within .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang:hover .chev, .lang.is-open .chev { transform: rotate(180deg); }
.lang__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font: 500 16px/1.4em var(--f-nav); color: var(--ink); transition: color .2s, background .2s; }
.lang__menu a:hover, .lang__menu a[aria-current] { color: var(--teal); background: var(--pale); }

/* ---------- Formulaires : messages ---------- */
.form-msg { margin: 0; min-height: 1.4em; font-size: 14px; line-height: 1.4em; color: #bff0c8; }
.form-msg.is-error { color: #ffc2c2; }

/* ---------- Page provisoire ---------- */
.stub { display: grid; place-items: center; min-height: 52vh; padding: 96px 16px; background: var(--pale); text-align: center; }
.stub__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ---------- Bulle de chat (ouvre WhatsApp) ---------- */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--f-body); }
.chat__bubble { position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: #1972f5; box-shadow: 0 6px 24px rgba(25,114,245,.45); transition: transform .2s; }
.chat__bubble:hover { transform: scale(1.06); }
.chat__bubble svg { width: 28px; height: 28px; }
.chat__badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font: 700 12px/20px var(--f-body); text-align: center; }
.chat__badge[hidden] { display: none; }
.chat__panel { position: relative; width: 320px; max-width: calc(100vw - 32px); padding: 18px 18px 16px; background: #fff; border-radius: 14px; box-shadow: 0 12px 48px rgba(0,0,0,.2); animation: chatIn .35s ease both; }
.chat__panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.chat__close { position: absolute; top: 6px; right: 10px; width: 28px; height: 28px; border: 0; background: none; color: #666; font-size: 22px; line-height: 1; cursor: pointer; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f0f0f0; margin-bottom: 10px; }
.chat__msg { font-size: 14px; line-height: 1.5em; color: #333; margin-bottom: 14px; }
.chat__cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 10px; background: #1972f5; color: #fff; font: 600 14px/1 var(--f-body); transition: background .2s; }
.chat__cta:hover { background: #0f5bd1; }
.chat__cta .ico { width: 16px; height: 16px; }
@media (max-width: 767px) { .logo img { height: 48px; } .chat { right: 10px; bottom: 10px; } }

/* ---------- Pages intérieures ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 72px 32px; }
.pagehead { position: relative; background: var(--navy) url("../images/bg-1.png") 100% 0 / contain no-repeat; padding: 72px 16px 80px; text-align: center; overflow: hidden; }
.pagehead__inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pagehead h1 { color: var(--white); }
.pagehead__lead { color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.5em; }
.crumbs { display: flex; gap: 8px; font: 500 15px/1.4em var(--f-nav); color: rgba(255,255,255,.6); }
.crumbs a:hover { color: var(--yellow); }
.wrap h2 { margin: 0 0 18px; }
.wrap p { color: var(--gray); line-height: 1.7em; margin-bottom: 14px; }
.wrap p a, .doc__list a, .faq__item a { color: var(--teal); text-decoration: underline; }

.prose__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.prose__cols h2:not(:first-child) { margin-top: 32px; }
.prose__photo img { width: 100%; height: auto; border-radius: 14px; object-fit: cover; }
.valuesband { background: var(--light); }
.valuesband h2 { text-align: center; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 20px; text-align: center; background: var(--pale); border-radius: 14px; }
.value p { margin: 0; }
.collab { max-width: 900px; text-align: center; }

.svcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 24px; }
.svcrow { display: flex; gap: 22px; align-items: flex-start; padding: 28px; background: var(--pale); border-radius: 14px; }
.svcrow h3 { font: 700 22px/1.3em var(--f-head); color: var(--ink); margin-bottom: 8px; }
.svcrow p { margin: 0; }
.note { padding: 18px 22px; background: var(--light); border-left: 4px solid var(--teal); border-radius: 7px; font-size: 14px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { display: flex; flex-direction: column; gap: 20px; padding: 32px; background: var(--pale); border-radius: 14px; }
.review__q { width: 40px; height: 40px; fill: var(--teal); }
.review blockquote { color: var(--ink); line-height: 1.7em; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 14px; }
.review figcaption strong { display: block; color: var(--ink); font: 700 17px/1.3em var(--f-head); }
.review .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

.faq { max-width: 900px; }
.faq__item { background: var(--pale); border-radius: 10px; margin-bottom: 12px; }
.faq__item summary { cursor: pointer; padding: 20px 24px; font: 700 18px/1.4em var(--f-head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--teal); font-size: 26px; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 24px 20px; margin: 0; }

.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.contact--apply { grid-template-columns: 1fr; max-width: 900px; }
.contact-list--dark { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; color: var(--ink); }
.contact-list--dark li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list--dark .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--teal); }
.contact-list--dark a:hover { color: var(--teal); }

.pform { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 14px/1.4em var(--f-head); color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: 400 16px/1.4em var(--f-body); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1,17,103,.12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5em; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.check a { color: var(--teal); text-decoration: underline; }
.form-msg--page { color: #1a7a3a; }
.form-msg--page.is-error { color: #c0392b; }

.pcta { background: var(--light); }
.pcta__inner { max-width: var(--container); margin: 0 auto; padding: 64px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pcta__btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.doc { max-width: 900px; }
.doc__date { font-size: 14px; }
.doc__sec { margin-bottom: 28px; }
.doc__sec h2 { font-size: 24px; margin-bottom: 12px; }
.doc__list { list-style: disc; padding-left: 22px; line-height: 1.8em; }

@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .wrap { padding: 48px 16px; }
  .pagehead { padding: 48px 16px 56px; }
  .pagehead h1 { font-size: 34px; }
  .prose__cols, .contact, .svcs, .pform__grid, .values { grid-template-columns: 1fr; gap: 28px; }
  .pform__grid { gap: 16px; }
  .svcrow { flex-direction: column; }
}

/* ---------- Formulaire de demande de crédit (même présentation que KreditLand) ---------- */
.aform { max-width: 640px; margin: 0 auto; padding: 64px 16px 80px; }
.aform__card { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 45px 30px; background: var(--teal); border-radius: 0 0 14px 14px; box-shadow: 0 10px 40px rgba(1,17,103,.15); }
.aform__card h2 { color: var(--white); font-size: 30px; text-align: center; }
.badge--grad { background: linear-gradient(90deg, var(--yellow), #21a6c6); }
.aform__form { width: 100%; display: flex; flex-direction: column; gap: 20px; align-items: center; margin-top: 12px; }
.aform__grid { display: grid; grid-template-columns: repeat(30, 1fr); gap: 16px 12px; width: 100%; }
.afield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.afield label { font: 500 17px/1.5em var(--f-nav); color: var(--white); }
.afield input, .afield select { width: 100%; height: 46px; padding: 0 12px; border: .8px solid var(--light); border-radius: var(--radius); background: var(--light); font: 400 15px/1.4em var(--f-body); color: var(--ink); }
.afield input::placeholder { color: #8a8f98; }
.afield input:focus, .afield select:focus { outline: 0; border-color: var(--navy); background: var(--white); }
.check--light { color: var(--white); align-self: stretch; }
.check--light a { color: var(--yellow); }
.aform__card .form-msg { color: var(--white); font-weight: 600; text-align: center; }
.aform__card .form-msg.is-error { color: #ffe2e2; }
.aform__note { margin-top: 24px; }
@media (max-width: 767px) {
  .aform__grid { grid-template-columns: 1fr; }
  .afield { grid-column: 1 / -1 !important; }
  .aform__card { padding: 36px 18px; }
}

/* ---------- En-tête de page (bandeau bleu + carte titre, comme KreditLand) ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.phead { position: relative; }
.phead__banner { height: 190px; background: linear-gradient(rgba(9,74,140,.86), rgba(9,74,140,.86)), url("../images/hero.jpg") 50% 30% / cover no-repeat; background-color: #094a8c; }
.phead__inner { position: relative; max-width: var(--container); margin: -78px auto 0; padding: 0 16px; }
.phead__card { width: 576px; max-width: 100%; min-height: 126px; display: flex; align-items: center; padding: 32px; background: var(--white); border-radius: 14px; border-bottom: 4.8px solid #094a8c; box-shadow: 0 10px 60px rgba(0,0,0,.1); }
.phead__card h1 { font-size: 48px; line-height: 1.2em; }
.plead { max-width: 820px; margin: 56px auto 0; padding: 0 16px; text-align: center; font-size: 18px; line-height: 1.6em; }
.phead + .wrap, .phead + .aform { margin-top: 24px; }

/* ---------- Page contact ---------- */
.cintro { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: var(--container); margin: 0 auto; padding: 96px 40px 80px; text-align: center; }
.cintro h2 { max-width: 791px; }
.cboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 84px; width: 100%; margin-top: 28px; }
.cbox { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 0 8px; border-radius: 14px; }
.cbox--mid { background: var(--pale); padding: 0 24px 30px; margin-top: -40px; padding-top: 40px; }
.cbox h5 { color: var(--ink); }
.cbox p { color: var(--gray); font-size: 15px; line-height: 1.6em; }
.cbox a:hover { color: var(--teal); }
.csplit { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.csplit__map { position: relative; background: var(--light); min-height: 420px; }
.csplit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.csplit__form { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; justify-content: center; padding: 64px 80px; max-width: 704px; }
.csplit__desc { color: var(--gray); line-height: 1.5em; }
.cform { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.cfield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cfield--full { grid-column: 1 / -1; }
.cfield label { font: 600 15px/1.5em var(--f-head); color: var(--ink); }
.cfield input, .cfield textarea { width: 100%; padding: 10px 12px; border: .8px solid var(--light); border-radius: var(--radius); background: var(--light); font: 400 15px/1.4em var(--f-body); color: var(--ink); }
.cfield textarea { background: var(--white); border-color: var(--line); resize: vertical; min-height: 101px; }
.cfield input::placeholder, .cfield textarea::placeholder { color: #8a8f98; }
.cfield input:focus, .cfield textarea:focus { outline: 0; border-color: var(--navy); background: var(--white); }
.btn--block { width: 100%; font: 500 16px/1em var(--f-head); }

@media (max-width: 1024px) {
  .cboxes { gap: 24px; }
  .csplit { grid-template-columns: 1fr; }
  .csplit__form { max-width: none; padding: 56px 32px; }
}
@media (max-width: 767px) {
  .phead__banner { height: 150px; }
  .phead__inner { margin-top: -50px; }
  .phead__card { padding: 22px; min-height: 100px; }
  .phead__card h1 { font-size: 34px; }
  .cintro { padding: 64px 16px 48px; }
  .cboxes { grid-template-columns: 1fr; gap: 28px; }
  .cbox--mid { margin-top: 0; padding-top: 28px; }
  .cform__grid { grid-template-columns: 1fr; }
  .csplit__form { padding: 40px 16px; }
}

/* ---------- Mobile : plus aucun décalage latéral au défilement ---------- */
/* Les animations d'entrée partent de 100 % hors écran : sans blocage sur <html>, la page s'élargit pendant l'animation. */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body, main { overflow-x: clip; } }
body { position: relative; max-width: 100%; }
@media (max-width: 1024px) {
  .reveal.fadeInLeft, .reveal.fadeInRight { animation-name: fadeInUp; }
}
@media (max-width: 767px) {
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counter { min-width: 0; padding: 10px 4px; }
  .counter h4 { font-size: 15px; line-height: 1.25em; padding: 0 2px; }
}
@media (max-width: 767px) {
  .cta__btns { justify-content: center; flex-wrap: wrap; width: 100%; }
}

.aform__intro { color: rgba(255,255,255,.92); text-align: center; line-height: 1.55em; max-width: 440px; }

/* ---------- Formulaire de demande : mêmes proportions que KreditLand (cadre 800 px, champs 40 px) ---------- */
.aform { max-width: 832px; padding-top: 56px; }
.aform__card { padding: 45px 32px; gap: 14px; }
.aform__form { margin-top: 8px; gap: 16px; }
.aform__grid { gap: 16px 0; column-gap: 0; }
.afield { gap: 0; padding: 0 5px; }
.afield label { font: 500 18px/27px var(--f-nav); }
.afield input, .afield select { height: 40px; font-size: 16px; }
.aform__intro { max-width: 560px; }
@media (max-width: 767px) {
  .aform { padding: 40px 12px 56px; }
  .aform__card { padding: 36px 16px; }
  .aform__grid { gap: 14px 0; }
  .afield { padding: 0; }
  .afield label { font-size: 17px; }
}

/* Ligne du formulaire : les champs restent alignés même si une étiquette passe sur 2 lignes */
.afield { justify-content: flex-end; }
.afield label { font-size: 17px; line-height: 25px; }
