/* ==========================================================================
   A7 Solutions SA – page d'accueil
   Reproduction propre (sans WordPress / Elementor) du rendu actuel.
   Points de rupture repris du site d'origine : tablette ≤ 1024px, mobile ≤ 767px.
   ========================================================================== */

/* --- Polices (Lato : titres et textes ; Libre Franklin : formulaire) ------ */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../assets/fonts/lato-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 900; font-display: swap; src: url("../assets/fonts/lato-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); }

/* --- Variables ------------------------------------------------------------ */
:root {
  --white: #ffffff;
  --navy: #11263a;
  --red: #d3452c;
  --text: #333333;
  --font: "Lato", sans-serif;
  --font-body: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  --container: 1240px;
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
p { margin: 0 0 1.5em; }
h2, h3 { margin: 0; font-family: var(--font); line-height: 1.4; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.accent { color: var(--red); }

/* --- Structure commune ---------------------------------------------------- */
.section--dark .container { padding: 10px; }
.container, .cols { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; }
.cols { display: flex; }
.col { width: 50%; padding: 10px; }
.spacer { height: 200px; }

.section { position: relative; display: flow-root; overflow-x: clip; }
.section--light { background: var(--white); }
.section--dark { background: var(--navy); overflow-x: clip; }

/* Titres de sections sombres */
.section__title {
  margin: 140px 0 120px;
  font-size: 46px;
  font-weight: 900;
  line-height: 60px;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--white);
}
.section__picto { display: block; margin: 140px auto 120px; }

/* Colonnes des sections claires */
.cols--split > .col:first-child { padding: 10px 20px 10px 10px; }
.cols--split > .col:last-child { padding: 10px 10px 10px 20px; }
.statement {
  margin: 0 0 1.5em;
  font-family: var(--font);
  font-size: 46px;
  font-weight: 900;
  line-height: 66px;
  letter-spacing: -0.3px;
  text-align: end;
  text-transform: uppercase;
  color: var(--navy);
}
.cols--split > .col:last-child > .statement { text-align: start; }
.statement p, .statement-sub p { margin: 0; }
.hero__title p { margin: 0 0 1.5em; }
.hero__tagline p { margin: 0 0 1.5em; }
.statement-sub {
  margin-top: -6px;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1em;
  letter-spacing: -0.1px;
  text-align: end;
  color: var(--navy);
}
.statement-sub p { margin-bottom: 1.5em; }
.cols--split > .col:last-child > .statement-sub { text-align: start; }

/* --- En-tête / Hero ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 10px;
  background: var(--white) url("../assets/images/A7_Hero.webp") center center / cover;
  color: var(--white);
  overflow-x: clip;
}
/* Photo de fond + voile bleu nuit */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.78;
}
.hero > * { position: relative; }

.site-nav { width: 100%; }
.site-nav-wrap { width: 100%; }
.site-nav__inner {
  display: flex;
  width: 100%;
  max-width: 1105px;
  margin: 0 auto;
}
.site-nav__logo { width: 32.459%; }
.site-nav__logo img { display: block; width: 100%; max-width: 80%; }
.main-nav { width: 67.538%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.main-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; position: relative; z-index: 2; }
.main-nav__list a,
.main-nav__dropdown a {
  position: relative;
  display: flex;
  padding: 3px 15px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}
.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
}
.main-nav__list a:hover::after,
.main-nav__list a:focus::after,
.main-nav__list a.is-active::after { opacity: 1; }
.main-nav__toggle, .main-nav__dropdown { display: none; }

/* Sélecteur de langue : menu déroulant FR / EN (s'ouvre au clic) */
.lang-menu { position: relative; display: flex; align-items: center; margin-left: 10px; }
.main-nav .lang-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  background: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--white);
  cursor: pointer;
}
.main-nav .lang-menu__button:hover, .main-nav .lang-menu__button:focus-visible, .main-nav .lang-menu__button[aria-expanded="true"] { border-color: var(--white); background: rgba(255, 255, 255, 0.12); }
.lang-menu__caret { flex: none; width: 9px; height: 5px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.2s; }
.lang-menu__button[aria-expanded="true"] .lang-menu__caret { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  min-width: 100%;
  padding: 4px 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  background: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.main-nav .lang-menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
}
.main-nav .lang-menu__link::after { content: none; }
.main-nav .lang-menu__link:hover, .main-nav .lang-menu__link:focus-visible { background: rgba(255, 255, 255, 0.15); }
.main-nav .lang-menu__link[aria-current="true"] { font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.flag { flex: none; width: 18px; height: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }

/* Menu collant : la barre se fixe en haut de page après défilement */
.site-nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99990;
  background: var(--navy);
  opacity: 0.9;
  transition: top 0.5s;
}
.site-nav.is-fixed .site-nav__logo img { width: 60%; }

.hero__intro { margin-top: calc(10% + 20px); }
.hero__title {
  margin: -8px 10px 0 0;
  font-family: var(--font);
  font-size: 46px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1em;
  letter-spacing: 1.2px;
  text-align: end;
  text-transform: uppercase;
  color: var(--white);
}
.hero__text { margin-top: -6px; }
.hero__lead {
  margin: 0 0 1.5em;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1em;
  letter-spacing: -0.1px;
  color: var(--white);
}
.hero__text { padding-bottom: 80px; }
.hero__tagline {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.3em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
}
.hero__actions { display: flex; width: 100%; max-width: var(--container); margin: -50px auto 0; }
.hero__actions > * { padding: 10px; }
.hero__actions-spacer { width: 50%; }
.hero__actions-a { width: 19.59%; }
.hero__actions-b { width: 30.406%; }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--white);
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.btn--red { background: var(--red); border-color: var(--navy); color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--sm { padding: 10px 20px; font-size: 14px; line-height: 14px; }
.btn--red:hover, .btn--red:focus { background: var(--navy); border-color: rgba(17, 38, 58, 0); color: var(--white); }
.btn--white:hover, .btn--white:focus { background: var(--navy); border-color: var(--white); color: var(--white); }
.banks-button { margin: 0; text-align: end; }

/* --- Accordéon ------------------------------------------------------------ */
.accordion { --acc-fs: 20px; }
.accordion__heading { margin: 0; font-size: 16px; line-height: 1; }
.accordion__trigger {
  display: block;
  width: 100%;
  padding: 12px 0 6px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: start;
  color: var(--navy);
  cursor: pointer;
}
.accordion__icon { float: left; width: 1.5em; margin-inline-end: 5px; font-size: 16px; color: var(--navy); }
.accordion__icon svg { display: block; width: 1em; height: 1em; fill: var(--navy); }
.accordion__title { font-family: var(--font); font-size: 24px; font-weight: 600; line-height: 1; }
.accordion__item .icon-opened, .accordion__item.is-open .icon-closed { display: none; }
.accordion__item.is-open .icon-opened { display: block; }
.accordion__item.is-open { margin-bottom: calc(var(--acc-fs) * 1.5); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__content {
  min-height: 0;
  overflow: hidden;
  padding: 0 0 0 10px;
  font-family: var(--font);
  font-size: var(--acc-fs);
  color: var(--navy);
}
.accordion__content p { margin: 5px 0 0; }
.accordion__content .fs-20 { font-size: 20px; }

/* --- Photo du logiciel et pastilles --------------------------------------- */
.hotspots { position: relative; display: block; margin: 0 0 20px; }
.hotspots img { display: block; width: 100%; height: auto; }
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(calc(-1 * var(--x)), calc(-1 * var(--y)));
  z-index: 1;
}
.hotspot:hover, .hotspot:focus-within, .hotspot.is-active { z-index: 2; }
.hotspot__button {
  position: relative;
  display: grid;
  box-sizing: content-box;
  width: 14px;
  height: 14px;
  padding: 4px;
  border: 0;
  border-radius: 100px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  line-height: 0;
  cursor: pointer;
}
.hotspot__button svg { width: auto; height: 14px; fill: var(--white); }
.hotspot__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  background: var(--red);
  opacity: 0;
  z-index: -1;
  animation: hotspot-expand 2s infinite;
}
@keyframes hotspot-expand { 0% { opacity: 1; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.5); } }
.hotspot__tooltip {
  position: absolute;
  top: calc(100% + 5px);
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.hotspot__tooltip p { margin: 0; }
.hotspot:hover .hotspot__tooltip,
.hotspot:focus-within .hotspot__tooltip,
.hotspot.is-active .hotspot__tooltip { opacity: 1; }

/* --- Témoignages (carrousel) ---------------------------------------------- */
.carousel { position: relative; margin: 0; padding-top: 15px; }
.carousel__viewport {
  position: relative;
  width: calc(84% - 40px);
  margin: 0 auto;
  padding-bottom: 40px;
  overflow: hidden;
}
.carousel__track { display: flex; transition: transform 0.5s; cursor: grab; touch-action: pan-y; }
.carousel__track.is-dragging { transition: none; cursor: grabbing; }
.testimonial { flex: 0 0 100%; min-width: 0; margin-right: 22px; padding: 20px; }
.testimonial__inner { display: flex; flex-direction: column; }
.testimonial__photo {
  order: 0;
  width: 126px;
  height: 126px;
  margin: 0 0 23px;
  border: 2px solid #d6d6d6;
  border-radius: 999px;
  box-sizing: content-box;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.testimonial__text {
  order: 1;
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
}
.testimonial__cite { order: 2; display: flex; flex-direction: column; margin-top: 25px; font-style: normal; line-height: 1.5; }
.testimonial__name { font-family: var(--font); font-size: 25px; font-weight: 900; text-transform: uppercase; color: var(--white); }
.testimonial__title { font-family: var(--font); font-size: 15px; font-weight: 400; line-height: 0.9em; text-transform: uppercase; color: rgba(255, 255, 255, 0.83); }
.carousel__arrow {
  position: absolute;
  top: calc((100% - 15px - 40px) / 2 + 15px - 17.5px);
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 35px;
  line-height: 1;
  color: #cccccc;
  cursor: pointer;
  z-index: 2;
}
.carousel__arrow svg { width: 1em; height: 1em; fill: #cccccc; }
.carousel__arrow--prev { left: 10px; }
.carousel__arrow--next { right: 10px; }
.carousel__dots { position: absolute; left: 0; bottom: 5px; width: 100%; text-align: center; }
.carousel__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  opacity: 0.2;
  cursor: pointer;
}
.carousel__dot.is-active { background: var(--navy); opacity: 1; }

/* --- Contact -------------------------------------------------------------- */
.contact__form { padding: 10px 10px 10px 20px; }
.contact__info { padding: 10px 20px 10px 10px; }
.contact__form form { margin: -24px 0 0; padding-top: 24px; }
.field { padding: 15px 0; }
.field label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.field input, .field textarea {
  display: block;
  width: 100%;
  max-width: 60%;
  height: 31px;
  padding: 0 9px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 14px;
  color: rgba(0, 0, 0, 0.7);
}
.field textarea { max-width: 100%; height: 86.8px; min-height: 31px; padding: 9px; line-height: 18.2px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(0, 0, 0, 0.7); opacity: 1; }
.form__submit { margin-top: 10px; }
.form__submit button {
  height: 41px;
  padding: 0 15px;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 17px;
  color: var(--white);
  cursor: pointer;
}
.form__submit button:disabled { opacity: 0.6; cursor: default; }
.form__status { margin: 16px 0 0; font-family: var(--font); color: var(--white); }
.form__status[hidden] { display: none; }
.form__status.is-error { color: #ff9d8f; }
.form__note { margin: 24px 0 0; font-family: var(--font); color: var(--white); }
.form__note p { margin: 0 0 24px; }
.info-box { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; text-align: center; }
.info-box:last-child { margin-bottom: 0; }
.info-box__icon { align-self: center; width: 50px; height: 50px; fill: var(--white); }
.info-box__title { font-size: 30px; font-weight: 300; line-height: 1.4; letter-spacing: 1.5px; color: var(--white); }

/* --- Pied de page --------------------------------------------------------- */
.site-footer { display: flex; align-items: center; min-height: 100px; background: var(--white); }
.site-footer p {
  margin: 0 0 1.5em;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  color: var(--navy);
}

/* --- Bouton « retour en haut » ------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  opacity: 0;
}
.scroll-top.is-visible { display: flex; opacity: 1; }
.scroll-top img { width: auto; height: auto; }

/* --- Animations d'entrée -------------------------------------------------- */
@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 fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
.js .anim { visibility: hidden; }
.js .anim.is-visible { visibility: visible; animation-duration: 1.25s; animation-fill-mode: both; }
.js .anim.is-visible[data-anim="fadeInLeft"] { animation-name: fadeInLeft; }
.js .anim.is-visible[data-anim="fadeInRight"] { animation-name: fadeInRight; }
.js .anim.is-visible[data-anim="fadeInUp"] { animation-name: fadeInUp; }

/* --- Grands écrans étroits (≤ 1239px) : typographie fluide, boutons du Hero ---- */
@media (max-width: 1239px) {
  .hero__title, .section__title, .statement { font-size: clamp(34px, 3.7vw, 46px); }
  .section__title { line-height: 1.3em; }
  .statement { line-height: 1.435em; }
  .hero__lead, .hero__tagline, .statement-sub { font-size: clamp(24px, 2.6vw, 32px); }
  .hero__actions { flex-wrap: wrap; padding-left: 50%; }
  .hero__actions-spacer { display: none; }
  .hero__actions-a, .hero__actions-b { width: auto; }
}

/* --- Tablette (≤ 1024px) -------------------------------------------------- */
@media (max-width: 1024px) {
  .site-nav__inner { max-width: 909px; }
  .site-nav__logo { text-align: center; }
  .site-nav__logo img { margin: 0 auto; }
  .main-nav__list { display: none; }
  .main-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 14px 0 0 auto;
    padding: 0.25em;
    border: 0;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0);
    font-size: 22px;
    color: var(--white);
    cursor: pointer;
  }
  .main-nav__toggle svg { width: 1em; height: auto; fill: var(--white); }
  .main-nav__toggle:hover { color: var(--navy); }
  .main-nav__toggle:hover svg { fill: var(--navy); }
  .main-nav__toggle .icon-close, .main-nav__toggle[aria-expanded="true"] .icon-open { display: none; }
  .main-nav__toggle[aria-expanded="true"] .icon-close { display: block; }
  .main-nav__dropdown {
    display: block;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    background: rgba(17, 38, 58, 0);
    text-align: center;
    transform: scaleY(0);
    transform-origin: top;
    transition: max-height 0.3s, transform 0.3s;
  }
  .main-nav__toggle[aria-expanded="true"] + .main-nav__dropdown { max-height: 100vh; transform: scaleY(1); }
  .main-nav__dropdown a { justify-content: center; padding: 13px 20px; border-inline-start: 8px solid transparent; }
  .main-nav__dropdown a:hover, .main-nav__dropdown a:focus, .main-nav__dropdown a.is-active { background: var(--white); color: var(--navy); }
  .main-nav__dropdown .lang-menu { flex-direction: column; align-items: stretch; margin: 0; padding: 8px 20px 4px; }
  .main-nav__dropdown .lang-menu__button { align-self: center; justify-content: center; min-width: 112px; min-height: 44px; gap: 8px; font-size: 16px; }
  .main-nav__dropdown .lang-menu__list { position: static; min-width: 0; margin-top: 6px; padding: 0; border: 0; background: none; box-shadow: none; }
  .main-nav__dropdown .lang-menu__link { justify-content: center; min-height: 44px; padding: 0 20px; border-inline-start: 0; font-size: 16px; color: var(--white); }
  .main-nav__dropdown .lang-menu__link:hover, .main-nav__dropdown .lang-menu__link:focus { background: rgba(255, 255, 255, 0.15); color: var(--white); }
  .main-nav__dropdown .flag { width: 22px; height: 15px; }

  .hero { min-height: min(100vh, 760px); }
  .hero__intro { margin-top: calc(10% + 60px); }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 22px; }
  .hero__tagline { font-size: 26px; }
  .section__picto { margin: 100px auto 100px; }
  .section__title { margin: 80px 0 80px; font-size: 32px; line-height: 40px; text-align: center; }
  .statement { font-size: 31px; line-height: 1.1em; }
  .statement-sub { font-size: 22px; }
  .accordion { --acc-fs: 16px; }
  .accordion__title { font-size: 18px; }
  .spacer { height: 100px; }
  .hotspot__tooltip { font-size: 14px; }
  .carousel__viewport { width: min(530px, calc(100% - 100px)); transition: height 0.3s; }
  .carousel__track.is-fit { align-items: flex-start; }
  .testimonial { margin-right: 10px; }

  /* Confort tactile : zones cliquables d'au moins 44px, sans changer l'apparence */
  .btn { padding: 14px 24px; }
  .btn--sm { padding: 15px 20px; }
  .accordion__trigger { padding: 14px 0 10px; }
  .hotspot__button::after { content: ""; position: absolute; inset: -11px; }
  .carousel__arrow::after { content: ""; position: absolute; inset: -5px; }
  .carousel__dot { position: relative; }
  .carousel__dot::after { content: ""; position: absolute; inset: -18px -4px; }
  .field input, .field textarea { font-size: 16px; }
  .field input { height: 44px; line-height: 20px; padding: 0 12px; }
  .field textarea { height: 120px; line-height: 22px; padding: 10px 12px; }
  .form__submit button { height: 44px; }
  .info-box__title { font-size: 22px; }
  .site-footer p { font-size: 18px; }
}

/* --- Tablette portrait (≤ 899px) : les sections à deux colonnes passent sur une colonne ---- */
@media (max-width: 899px) {
  .cols--split, .contact { display: block; }
  .cols--split > .col, .contact > .col { width: 100%; }
  .cols--split > .col:first-child, .cols--split > .col:last-child { padding: 10px 20px; }
  .statement, .statement-sub,
  .cols--split > .col:last-child > .statement,
  .cols--split > .col:last-child > .statement-sub { text-align: center; }
  .statement-sub { margin-top: 0; }
  .accordion { max-width: 640px; margin-left: auto; margin-right: auto; }
  .contact__form { max-width: 680px; margin: 0 auto; padding: 10px 20px; }
  .contact__info { max-width: 680px; margin: 0 auto; padding: 30px 20px 10px; }
  .banks-button { text-align: center; }
  .field input { max-width: 100%; }
  /* Hero sur une colonne, contenu centré */
  .hero__intro .cols, .hero__actions { display: block; }
  .hero__intro .col, .hero__actions > * { width: 100%; }
  .hero__actions { padding-left: 0; }
  .hero__actions > * { text-align: center; }
  .hero__title { margin: 0; text-align: center; }
  .hero__text { margin-top: 0; padding-bottom: 40px; }
  .hero__lead { margin-top: 0; text-align: center; }
  .hero__tagline { text-align: center; }
  .hero__actions-b { margin-bottom: 40px; }
  .section__picto { margin: 80px auto 70px; }
  .section__title { margin: 70px 0 60px; }
  .spacer { height: 80px; }
}

/* --- Mobile (≤ 767px) ----------------------------------------------------- */
@media (max-width: 767px) {
  body { font-size: 18px; line-height: 1.66; }
  .site-nav__inner { display: block; }
  .site-nav__logo, .main-nav { width: 100%; }
  .cols { display: block; }
  .col { width: 100%; }
  .main-nav__toggle { margin: 14px auto 0; }
  /* Barre collante compacte : logo à gauche, menu à droite */
  .site-nav.is-fixed .site-nav__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 4px 10px; }
  .site-nav.is-fixed .main-nav { display: contents; }
  .site-nav.is-fixed .site-nav__logo { width: auto; text-align: left; }
  .site-nav.is-fixed .site-nav__logo img { width: 170px; max-width: 100%; margin: 0; }
  .site-nav.is-fixed .main-nav__toggle { margin: 0; }
  .site-nav.is-fixed .main-nav__dropdown { grid-column: 1 / -1; margin-top: 0; }
  .scroll-top { right: 12px; bottom: 12px; }
  .scroll-top img { width: 48px; height: 48px; }
  .hero__title { font-size: clamp(23px, 7vw, 27px); }
  .hero__lead { font-size: clamp(19px, 5.7vw, 22px); }
  .hero__tagline { font-size: clamp(20px, 6.3vw, 24px); }
  .section__picto { margin: 60px auto 60px; }
  .section__title { margin: 60px 0 50px; font-size: clamp(24px, 7.2vw, 28px); line-height: 1.1em; }
  .statement { font-size: clamp(24px, 7.2vw, 28px); text-align: center; }
  .statement-sub { margin-top: 0; font-size: clamp(18px, 5.7vw, 22px); text-align: center; }
  .spacer { height: 60px; }
  .accordion { --acc-fs: 14px; }
  .accordion__title { font-size: 16px; }
  .testimonial__text { font-size: 16px; }
  .testimonial__name { font-size: 20px; line-height: 1.1em; }
  .testimonial__title { font-size: 14px; line-height: 1em; }
  .info-box__title { font-size: 20px; line-height: 1.1em; }
  .site-footer p { font-size: 18px; line-height: 1.1em; }
  .site-footer .container { padding: 0 10px; }
  .hotspot__tooltip { width: max-content; max-width: min(260px, calc(100vw - 32px)); white-space: normal; }
  .field input, .field textarea { max-width: 100%; }
}

/* --- Petits mobiles (≤ 479px) --------------------------------------------- */
@media (max-width: 479px) {
  body { font-size: 15px; }
}

/* --- Petits écrans (≤ 600px) : champs pleine largeur, flèches du carrousel sous le texte ---- */
@media (max-width: 600px) {
  .field input, .field textarea { width: calc(100% - 2px); max-width: none; margin-left: 1px; }
  .carousel__viewport { width: 100%; padding-bottom: 56px; }
  .testimonial { padding: 20px 12px; }
  .carousel__arrow { top: auto; bottom: 0; }
  .carousel__arrow--prev { left: calc(50% - 92px); }
  .carousel__arrow--next { right: calc(50% - 92px); }
  .carousel__dots { bottom: 13px; }
}



/* --- Popup « Liste des banques » ------------------------------------------ */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}
.modal[hidden] { display: none; }
.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: min(90vh, 760px);
  max-height: min(90dvh, 760px);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.modal__close svg { display: block; width: 100%; height: 100%; fill: var(--navy); }
.modal__close:hover svg, .modal__close:focus svg { fill: var(--red); }
.modal__search { padding: 20px 52px 10px 20px; }
.modal__search input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(17, 38, 58, 0.35);
  border-radius: 0;
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  color: var(--navy);
}
.modal__search input:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.modal__body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 0 20px; }
.bank-list li { padding: 5px 0; border-top: 1px solid #ddd; font-size: 18px; line-height: 1.5; }
.bank-list li:first-child { border-top: 0; }
.bank-list li[hidden] { display: none; }
.modal__note { margin: 0; padding: 15px 20px 20px; border-top: 1px solid #ddd; font-size: 16px; }

/* --- Popup sur tablette et mobile : zones tactiles de 44px ---------------- */
@media (max-width: 1024px) {
  .modal__close { top: 4px; right: 4px; width: 44px; height: 44px; padding: 12px; }
  .modal__search { padding-right: 56px; }
  .modal__search input { height: 44px; }
  .bank-list li { padding: 8px 0; }
}
@media (max-width: 480px) {
  .modal { padding: 12px; }
  .modal__search { padding: 14px 56px 8px 14px; }
  .modal__body { padding: 0 14px; }
  .modal__note { padding: 12px 14px 16px; font-size: 15px; }
}
