/* ==========================================================
   FlexiMed – copie statique du site
   Couleurs et typographies reprises du thème original
   ========================================================== */

/* Polices hébergées localement : mêmes fichiers que l’original (Google Fonts, sous-ensemble latin, Roboto v32 statique :
   la version variable est ~0,07 % plus large et décale les retours à la ligne) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins 800 sous un nom à part : déclarée dans la famille « Poppins », elle remplacerait la 600 pour tout texte en 700
   (liens du menu mobile). Utilisée seulement par .extra-bold */
@font-face {
  font-family: "Poppins ExtraBold";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/poppins-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/roboto-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/roboto-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/roboto-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #3f6afa;
  --primary-hover: #365ad5;
  --secondary: #f0f3ff;
  --text: #20365f;
  --accent: #f9aaf6;      /* rose des mots en gras */
  --h3: #537bc5;
  --h4: #6fc8f8;
  --bg-1: rgba(111, 200, 248, .05);
  --bg-2: rgba(111, 200, 248, .1);
  --shadow: 0 0 23px rgba(111, 200, 248, .25);
  --radius: 2rem;
  --font-body: "Roboto", sans-serif;
  --font-title: "Poppins", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

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

button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

p { margin: 0; }

ol, ul { margin: 0 0 1rem; padding-left: 1rem; }
li::marker { color: var(--accent); }

strong { font-weight: bolder; }

h1, h2, h3, h4, .h1, .h2, .h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 .5rem;
  overflow-wrap: anywhere;  /* comme l’original : les mots trop longs sont coupés */
  hyphens: auto;
}
h1, .h1 { font-size: clamp(1.8rem, 1.425rem + 2.1vw, 3rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.345rem + 1.14vw, 2.2rem); }
h3      { font-size: clamp(1.4rem, 1.325rem + .9vw, 2rem); color: var(--h3); }
h4, .h4 { font-size: clamp(1.3rem, 1.275rem + .3vw, 1.5rem); color: var(--h4); margin-bottom: .75rem; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}
/* Paliers de largeur identiques à l’original (Bootstrap) */
@media (min-width: 576px)  { :root { --container-max: 540px; } }
@media (min-width: 768px)  { :root { --container-max: 720px; } }
@media (min-width: 992px)  { :root { --container-max: 960px; } }
@media (min-width: 1200px) { :root { --container-max: 1140px; } }
@media (min-width: 1400px) { :root { --container-max: 1320px; } }
@media (min-width: 576px)  { .container { max-width: var(--container-max); } }

section { margin-bottom: 75px; }
@media (min-width: 992px) { section { margin-bottom: 150px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 42px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: .875rem;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: #3255c8; color: #fff; }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }
.btn-secondary:hover { background: #f2f5ff; border-color: #f2f4ff; color: var(--primary); }

.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 1rem;
}

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 100; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { flex-shrink: 0; max-width: 45vw; padding: 1rem 0; margin-right: auto; }
.logo img { width: 200px; }

/* Espacements de l’original : 1rem, puis 2rem (≥ 1200 px) et 3rem (≥ 1400 px) */
.main-nav { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 1200px) { .main-nav { gap: 2rem; } }
@media (min-width: 1400px) { .main-nav { gap: 3rem; } }

.main-nav > ul {
  display: flex;
  gap: inherit;  /* même espacement que la barre */
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a:not(.btn) {
  display: block;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 1199px) { .main-nav a:not(.btn) { letter-spacing: -.5px; } }
.main-nav a:not(.btn):hover { color: var(--primary-hover); }
.main-nav a.active { font-weight: 700; }

/* Sélecteur de langue */
.main-nav .lang { position: relative; }
.main-nav .lang ul {
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  margin: 0;
  padding: .25rem 0;
  background: #fff;
  box-shadow: 0 0 15px rgba(111, 200, 248, .25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: all .3s;
}
.main-nav .lang ul a { display: block; padding: .5rem 1rem; }
.main-nav .lang:hover ul,
.main-nav .lang:focus-within ul { opacity: 1; pointer-events: all; transform: none; }

/* Icône du menu de l’original (20 px), affichée sous 992 px */
.burger {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 1rem;
  padding: 0;
  border: 0;
  background: var(--text);
  /* icône intégrée en data URI : un masque chargé depuis un fichier est bloqué en local (file://) */
  --burger-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' viewBox='0 0 20 14'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 7h18M1 1h18M1 13h18'/%3E%3C/svg%3E");
  -webkit-mask: var(--burger-icon) center / contain no-repeat;
  mask: var(--burger-icon) center / contain no-repeat;
  cursor: pointer;
}
@media (max-width: 991px) {
  .main-nav { display: none; }
  .burger { display: block; }
}

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  width: 100%;
  padding: 0 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  color: var(--text);
  font-family: var(--font-title);
  box-shadow: 0 0 0 transparent;
  transform: translateY(-100%);
  visibility: hidden;
  /* visible dès l’ouverture (pour le focus), masqué seulement après l’animation de fermeture */
  transition: transform .3s, box-shadow .3s, visibility 0s .3s;
}
.mobile-menu.show {
  transform: none;
  visibility: visible;
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
  transition: transform .3s, box-shadow .3s, visibility 0s;
}
@media (min-width: 768px) { .mobile-menu { padding: 0 10%; } }

.mobile-menu-overlay { display: none; }
.mobile-menu.show + .mobile-menu-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .3);
}
@media (min-width: 992px) { .mobile-menu, .mobile-menu-overlay { display: none !important; } }

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(32, 54, 95, .3);
  border-radius: 1rem;
  background: none;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu-close-icon { position: relative; width: 1rem; }
.mobile-menu-close-icon::before,
.mobile-menu-close-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1rem;
  height: 1px;
  background: var(--text);
}
.mobile-menu-close-icon::before { transform: rotate(-45deg); }
.mobile-menu-close-icon::after  { transform: rotate(45deg); }

.mobile-menu-logo { margin: 2rem auto; }

.mobile-menu-links {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
  list-style: none;
}
.mobile-menu-links > li { opacity: 0; }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(32, 54, 95, .15);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.mobile-menu-links > li:last-child a { border-bottom: 0; }
.mobile-menu-links .current > a { background: rgba(63, 106, 250, .05); opacity: .75; }

/* Bouton « Application » en bas de liste */
.mobile-menu-btn {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  border: 2px solid var(--primary);
  border-radius: 2rem;
  background: var(--primary);
  transition: background-color .15s, border-color .15s;
}
.mobile-menu-btn:hover { background: var(--primary-hover); border-color: #3255c8; }
.mobile-menu-links .mobile-menu-btn a { color: #fff; font-weight: 400; text-transform: uppercase; }

/* Les liens apparaissent l’un après l’autre à l’ouverture */
@keyframes menu-item-show { 50% { opacity: .25; } to { opacity: 1; } }
.mobile-menu.show .mobile-menu-links > li { animation: menu-item-show .25s forwards; }
.mobile-menu.show .mobile-menu-links > li:nth-child(1) { animation-delay: .1s; }
.mobile-menu.show .mobile-menu-links > li:nth-child(2) { animation-delay: .2s; }
.mobile-menu.show .mobile-menu-links > li:nth-child(3) { animation-delay: .3s; }
.mobile-menu.show .mobile-menu-links > li:nth-child(4) { animation-delay: .4s; }
.mobile-menu.show .mobile-menu-links > li:nth-child(5) { animation-delay: .5s; }
.mobile-menu.show .mobile-menu-links > li:nth-child(6) { animation-delay: .6s; }
.mobile-menu.show .mobile-menu-links > li:nth-child(7) { animation-delay: .7s; }

/* Choix de la langue (drapeaux) */
.language-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.language-menu a, .language-menu img { display: block; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .mobile-menu.show .mobile-menu-links > li { animation: none; opacity: 1; }
}

/* ---------- En-tête des pages intérieures (fil d’Ariane + titre) ---------- */
.page-header {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-1);
  color: var(--primary);
  text-align: center;
}
@media (min-width: 768px) { .page-header { margin-bottom: 4rem; } }
.page-header h1 { margin: .5rem 0 0; }

.breadcrumbs ol { margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.breadcrumbs li { display: inline; }
.breadcrumbs li + li::before { content: " » "; }

/* ---------- Hero ---------- */
/* Grille reprise de l’original : texte 8/12 + image 4/12 collée au bord de la rangée,
   cadres d’appel à l’action entre le texte et l’image sur mobile, sous les deux sur desktop */
.hero { overflow: hidden; container-type: inline-size; }  /* 100cqw = largeur de la section */

.hero-grid {
  display: grid;
  grid-template-areas: "text" "cta" "img";
  margin: 0 -1rem;
  padding-top: 2rem;
}
.hero-text { grid-area: text; padding: 0 1rem; }
.hero-img  { grid-area: img; }
.hero-cta  { grid-area: cta; }
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 8fr 4fr;
    grid-template-areas: "text img" "cta cta";
    align-items: center;
  }
  .hero-img { align-self: stretch; }
}
/* Comme le script « enlarge » de l’original : l’image déborde du conteneur jusqu’au bord de l’écran
   (des deux côtés en tablette, à droite seulement sur desktop) */
/* Entre 576 et 767 px, l’original élargit l’image à la largeur de l’écran mais annule ses marges :
   elle déborde à gauche (rangée inversée) — reproduit tel quel */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-img { margin-left: calc(var(--container-max) - 100cqw); }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hero-img { margin-inline: calc((var(--container-max) - 100cqw) / 2); }
}
@media (min-width: 992px) {
  .hero-img { margin-right: calc((var(--container-max) - 100cqw) / 2); }
}

.hero .hero-title { color: var(--primary); }
.hero .hero-title strong { color: var(--accent); font-weight: 600; }
.hero .lead { font-size: min(calc(1.275rem + .3vw), 1.5rem); margin-bottom: 1rem; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 992px) { .hero-img img { max-width: 80vh; } }
@media (max-width: 767px) { .hero .lead br { display: none; } }  /* retour à la ligne masqué sur mobile, comme l’original */

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0 3rem;
  padding: 0 1rem;
}
@media (min-width: 768px) { .hero-cta { flex-direction: row; justify-content: space-between; } }
@media (min-width: 992px) { .hero-cta { flex-direction: column; gap: 1rem; margin: 3rem 0 0; } }
@media (min-width: 1400px) { .hero-cta { flex-direction: row; } }

.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  background: var(--bg-2);
  border-radius: 2rem;
  text-align: center;
}
@media (min-width: 992px) { .cta-box { flex-direction: row; justify-content: center; gap: 2rem; text-align: left; } }  /* en dessous, contenu en haut de la boîte (visible quand les textes ont des hauteurs différentes, ex. NL) */
@media (min-width: 1200px) { .cta-box { padding: 2rem; } }
.cta-box p { margin: 0; font-size: 1.125rem; }

/* ---------- Rangée en 12 colonnes (comme Bootstrap : gouttières de 2rem) ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -1rem; }
.row > * { width: 100%; padding: 0 1rem; }

/* ---------- Présentation ---------- */
.presentation .row { align-items: center; }
.presentation .col-img { order: 2; align-self: stretch; padding: 0; }
.presentation .col-img img { width: 100%; height: 100%; object-fit: contain; }
.presentation .col-text { order: 1; padding-top: 2rem; padding-bottom: 4rem; }
.presentation .col-text > h1,
.presentation .col-text > h2 { margin-bottom: 1.5rem; }
.presentation .col-text > p,
.presentation .text { margin-bottom: 2rem; }
.presentation .text-sm { margin-bottom: 1rem; }
.presentation .text p + p { margin-top: 1.5rem; }  /* l’original sépare les paragraphes par un <p>&nbsp;</p> */
.presentation .text.compact p + p { margin-top: 0; }  /* paragraphes sans espaceur */
.presentation .text p.compact { margin-top: 0; }  /* paragraphe collé au précédent */
.presentation .accordion { margin-bottom: 2rem; }
.presentation .text h3 { margin: .5rem 0; }  /* sous-titre (h4 de l’original, précédé d’un <h4> vide : .5rem au-dessus) */
.presentation .text h3.flush-top { margin-top: 0; }  /* sous-titre sans <h4> vide avant lui dans l’original */
.presentation .text h3.extra-bold { font-family: "Poppins ExtraBold", var(--font-title); font-weight: 800; }  /* sous-titre en <span style="font-weight: 800"> dans l’original */
@media (min-width: 992px) {
  .presentation .col-img { order: 1; width: 41.66666667%; }                       /* 5/12 */
  .presentation .col-text { order: 2; width: 50%; margin-left: 8.33333333%;      /* 6/12, décalée de 1/12 */
    padding-top: .5rem; padding-bottom: .5rem; }
}

/* ---------- Titre + texte ---------- */
.titre-texte .row { align-items: center; }
.titre-texte .title { color: var(--accent); }
@media (min-width: 992px) {
  .titre-texte .row > * { width: 50%; }
  .titre-texte .col-titre { padding-right: 2rem; }
  .titre-texte .col-texte { padding-top: 2rem; padding-bottom: 2rem; }
}

/* ---------- Onglets ---------- */
.toggle .card {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 767px) { .toggle { padding: 1rem; } }
@media (min-width: 768px) { .toggle .card { padding: 4rem 1rem; } }
.toggle .card > h2 { width: 50%; text-align: center; margin-bottom: 2rem; }

.pills {
  display: inline-flex;
  gap: .5rem;
  padding: .5rem;
  margin-bottom: 4rem;
  border: 2px solid var(--primary);
  border-radius: 3rem;
}
.pill {
  padding: 14px 42px;
  border: 0;
  border-radius: 3rem;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
}
.pill.active { background: var(--primary); color: #fff; }
@media (max-width: 767px) { .pill { padding: .5rem 1rem; } }

.tab-content { width: 100%; }
@media (min-width: 768px) { .tab-content { width: 83.33333333%; } }
.tab-pane { display: flex; flex-direction: column; gap: 2rem; }
.tab-pane[hidden] { display: none; }
.tab-pane h4 { margin-bottom: 1.5rem; }

/* ---------- Accordéons (<details>) ---------- */
.accordion details { border-bottom: 2px solid var(--text); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;  /* comme l’original : le texte peut aller jusqu’au chevron */
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}
/* Dans l’original, les accordéons des onglets sont dans un <h2> : ils héritent de Poppins */
.toggle .accordion summary { font-family: var(--font-title); line-height: 1.4; }
.accordion summary::-webkit-details-marker { display: none; }
/* Chevron identique à l'original : même couleur ouvert ou fermé, il pivote seulement */
.accordion summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2320365F' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 16 16'%3E%3Cpath d='m2 5 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(-180deg); }
/* Titre dans l’accordéon (<summary><h3>) : Poppins de l’original, mais à la taille du texte */
.accordion summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}
.accordion-body { padding: 1rem 0; }
.accordion-body .btn-wrap { margin-top: 1.5rem; }  /* l’original laisse un <p>&nbsp;</p> avant le bouton */
/* Réponses de la page FAQ : l’original sépare les blocs par un <p>&nbsp;</p> et en ajoute un à la fin ;
   .compact (sur la réponse ou sur un bloc) = blocs collés au précédent, sans espaceur */
.accordion.spaced .accordion-body { padding-bottom: 2.5rem; }
.accordion.spaced .accordion-body > * + * { margin-top: 1.5rem; }
.accordion.spaced .accordion-body.compact > *,
.accordion.spaced .accordion-body > .compact { margin-top: 0; }
/* FAQ NL/EN : blocs collés par défaut, espaceurs isolés de l’original (un ou deux <p>&nbsp;</p>) */
.accordion-body > .gap-before { margin-top: 1.5rem; }
.accordion-body > .gap-before-2 { margin-top: 3rem; }
.accordion-body.gap-after { padding-bottom: 2.5rem; }

/* ---------- Formules (carrousel à défilement natif, cartes visibles selon la largeur comme l’original) ---------- */
.pricing-intro, .carousel { display: flow-root; }  /* colonnes flex dans l’original : leurs marges ne fusionnent pas */
@media (min-width: 992px) { .pricing-intro { width: calc((100% + 2rem) * 2 / 3 - 2rem); } }  /* col-lg-8 (gouttières comprises) */
.pricing-intro ul,
.pricing-card ul { margin-top: 1.5rem; }  /* <p>&nbsp;</p> de l’original */
.pricing.compact .pricing-intro ul,
.pricing.compact .pricing-card ul { margin-top: 0; }  /* originaux NL/EN : pas d’espaceur */
.carousel { --per-page: 1; margin-bottom: 0; }  /* <section> imbriquée : pas de marge de section */
@media (min-width: 769px) and (max-width: 991.98px) { .carousel { --per-page: 2; } }
@media (min-width: 1200px) { .carousel { --per-page: 2; } }
@media (min-width: 1400px) { .carousel { --per-page: 3; } }
.carousel-track {
  display: flex;
  gap: 30px;
  margin: 1rem 0;
  padding: 2rem 1rem;                 /* laisse de la place à l’ombre des cartes */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 calc((100% - (var(--per-page) - 1) * 30px) / var(--per-page));
  scroll-snap-align: start;
}
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.carousel-dots[hidden] { display: none; }
.carousel-dots button {
  position: relative;
  width: .5rem;
  height: .5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  opacity: .5;
  cursor: pointer;
}
.carousel-dots button::after { content: ""; position: absolute; inset: -.5rem; }  /* zone de clic agrandie */
.carousel-dots button[aria-current="true"] { opacity: 1; }
.pricing-card {
  height: 100%;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 15px rgba(111, 200, 248, .25);
}
.pricing-card h3 { margin-bottom: .5rem; color: var(--accent); }
.pricing-card .price { color: var(--primary); }
.pricing-card .price span { font-size: 18px; }

/* ---------- Bandeau ---------- */
.banner {
  margin-bottom: 75px;
  height: 250px;
  background: url("assets/img/banner-768.webp") center top / cover no-repeat;
}
/* Variantes plus lourdes seulement sur les grands écrans */
@media (min-width: 768px)  { .banner { background-image: url("assets/img/banner-1280.webp"); } }
@media (min-width: 1200px) { .banner { background-image: url("assets/img/banner-2048.webp"); } }
@media (min-width: 992px) {
  .banner { height: 400px; margin-bottom: 150px; background-attachment: fixed; }
}

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 1rem; }
.faq .intro { margin-bottom: 2rem; }
@media (min-width: 768px) {
  .faq h2, .faq .intro { width: 66.66666667%; margin-left: 16.66666667%; text-align: center; }  /* 8/12 décalé de 2/12 */
  .faq .intro { margin-bottom: 4rem; }
}
.faq .btn-center { display: flex; justify-content: center; margin-top: 2rem; }

/* ---------- Comment accéder ---------- */
/* Grille reprise de l’original : colonnes 5/12 et 6/12 décalée de 1/12, gouttières de 2rem */
.comparaison { padding-bottom: 1rem; }
.comparaison h2 { margin-bottom: 1rem; }
.comp-grid { display: flex; flex-wrap: wrap; margin: 0 -1rem; }
.comp-col { width: 100%; padding: 0 1rem; }
.comp-col:first-child { margin-bottom: 3rem; }
@media (min-width: 992px) {
  .comparaison h2 { width: 50%; margin-bottom: 0; }
  .comp-col:first-child { width: 41.66666667%; margin-bottom: 0; }
  .comp-col:last-child { width: 50%; margin-left: 8.33333333%; }
}
.comp-inner { display: flex; flex-direction: column; }
.comp-col:first-child .comp-inner { height: 100%; }
@media (min-width: 992px) { .comp-col:first-child .comp-inner { padding: 3rem 0; } }
.comp-card {
  display: flex;
  justify-content: center;  /* le contenu se cale sur sa largeur naturelle, centré */
  height: 100%;
  padding: 3rem 1rem;
  border-radius: 2rem;
}
@media (min-width: 992px) { .comp-card { padding: 3rem 2rem; } }
.comp-col h3 { margin-bottom: 1rem; }
.comp-text { margin-bottom: 2rem; }
.comp-text p { margin: 0; }
.comp-text.gap-after { padding-bottom: 1.5rem; }  /* texte suivi d’un <p>&nbsp;</p> dans l’original */
.comp-text .gap-before { margin-top: 1.5rem; }  /* bloc précédé d’un <p>&nbsp;</p> dans l’original */
.btn-row { display: flex; flex-direction: column; gap: 1rem; margin-top: auto; }
@media (min-width: 1400px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Image + titre ---------- */
/* Grille de l’original : titre puis image sur mobile ; image 6/12 (lg) ou 4/12 (xl) à gauche sur desktop.
   L’image remplit la hauteur de la colonne du titre (object-fit: cover), d’où le cadrage zoomé. */
.image-titre { padding-bottom: 2rem; }
.image-titre-grid {
  display: grid;
  grid-template-areas: "titre" "img";
}
.img-col   { grid-area: img; }
.titre-col { grid-area: titre; margin-bottom: 2rem; }
.image-titre-grid h2 { font-size: clamp(1.4rem, 1.325rem + .9vw, 2rem); }
@media (min-width: 992px) {
  .image-titre-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "img titre";
    padding: 0; /* rangée Bootstrap : le padding du conteneur passe dans les colonnes */
  }
  .img-col, .titre-col { padding: 0 1rem; }
  .titre-col { margin-bottom: 0; padding-top: 4rem; padding-bottom: 4rem; }
  .image-titre-grid h2 { padding-left: 4rem; }
}
@media (min-width: 1200px) { .image-titre-grid { grid-template-columns: 4fr 8fr; } }

.img-wrap { position: relative; height: 100%; }
.img-wrap .img { width: 100%; height: 100%; padding-right: 2rem; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 2rem; }
@media (min-width: 992px) {
  .img-wrap .img { margin-left: 2rem; padding-right: 0; }
}

/* Ornement en pointillés roses (8 × 8 points de 2,36 px tous les 11,8 px, rognés à 64 px) */
.dots {
  position: absolute;
  right: 0;
  bottom: 0;
  margin-bottom: -2rem;
  z-index: 2;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 1.181px 1.181px, var(--accent) 1.181px, transparent 1.4px) 0 0 / 11.809px 11.809px;
}
@media (min-width: 992px) { .dots { left: 0; right: auto; } }

/* ---------- Titre + texte : paragraphes séparés par un <p>&nbsp;</p> dans l’original ---------- */
.titre-texte .gap-before { margin-top: 1.5rem; }

/* ---------- Téléchargement de l’app (cartes QR code) ---------- */
/* Original : titre 8/12 centré, puis 2 cartes 6/12 (une par ligne sous 768 px), gouttières de 2rem ;
   QR code 6/12 de la carte, 4/12 dès 1200 px */
.telechargement h2 { margin-bottom: 3rem; text-align: center; }
@media (min-width: 992px) { .telechargement h2 { width: calc((100% + 2rem) * 2 / 3 - 2rem); margin-inline: auto; } }
.qr-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .qr-grid { grid-template-columns: 1fr 1fr; } }
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 15px rgba(111, 200, 248, .25);
}
.qr-card h3 { margin-bottom: 2rem; color: var(--primary); text-align: center; }
.qr-img { width: 50%; }
@media (min-width: 1200px) { .qr-img { width: 33.33333333%; } }
.qr-img img { width: 100%; }
.qr-card .btn { display: flex; width: 100%; gap: 1rem; margin-top: 2rem; }
.icon-store::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-app-store { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1188.2 1386.8'%3E%3Cpath d='M1188.2 1002.7c-71.8 192.4-217.5 378.3-346.4 383.9-81.9 3.5-148.6-55.4-224.3-55.4s-142.4 58.9-224.3 55.4C208.8 1378.5 39.8 1049 4.2 768c-10.7-74.7-1-164.3 30.8-237.8C97 386.6 229.2 309 411.4 309s136.1 55.7 206.2 55.7 131-55.7 206.2-55.7c127.9 0 242.2 46.8 317.8 118.5C1059.4 496 1007 588.6 1007 704s90.4 230.6 181.3 298.7Z'/%3E%3Cpath d='M900.2 0c0 170.9-138.5 309.4-309.4 309.4C590.9 138.5 729.4 0 900.2 0'/%3E%3C/svg%3E"); }
.icon-play-store { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1278.6 1454.7'%3E%3Cpath d='m721.3 722-706 706C5.8 1416.3 0 1401.3 0 1384.4V70.2c0-19.8 7.9-36.9 20.3-49.3L721.4 722Zm37.7-37.7L74.7 0c10.2.6 20.8 3.6 30.7 9.4l842.2 486.3zm0 75.3L954.4 955l-849 490.2c-13.3 7.7-27.6 10.5-41.2 9.2zm484.5 28.5-241.4 139.3-205.5-205.5 198.7-198.7 248.1 143.3c46.8 27 46.8 94.6 0 121.6Z'/%3E%3C/svg%3E"); }

/* ---------- Contact ---------- */
/* Grille de l’original : texte 6/12 et formulaire 6/12 à partir de 992 px, tous deux « sticky » */
.contact { margin-top: 2rem; margin-bottom: 4rem; }
@media (min-width: 992px) { .contact .row > * { width: 50%; } }
.contact-sticky { position: sticky; top: 0; padding: 2rem 0; }
.contact h2 { margin-bottom: 1.5rem; color: var(--primary); }  /* .5rem + 1rem de la liste : chez l’original une rangée flex les empêche de fusionner */

.reassurance { margin: 0 0 3rem; padding: 0; list-style: none; }
.reassurance li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  font-size: min(1.275rem + .3vw, 1.5rem);  /* fs-4 de l’original */
}
.reassurance li::before {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f9aaf6' d='M10.6 16.6l7.1-7.1-1.4-1.4-5.7 5.7-2.9-2.9-1.4 1.4 4.3 4.3zM12 22c-1.4 0-2.7-.3-3.9-.8s-2.3-1.2-3.2-2.1-1.6-2-2.1-3.2-.8-2.5-.8-3.9.3-2.7.8-3.9 1.2-2.3 2.1-3.2 2-1.6 3.2-2.1 2.5-.8 3.9-.8 2.7.3 3.9.8 2.3 1.2 3.2 2.1 1.6 2 2.1 3.2.8 2.5.8 3.9-.3 2.7-.8 3.9-1.2 2.3-2.1 3.2-2 1.6-3.2 2.1-2.5.8-3.9.8zm0-2c2.2 0 4.1-.8 5.7-2.3s2.3-3.4 2.3-5.7-.8-4.1-2.3-5.7-3.4-2.3-5.7-2.3-4.1.8-5.7 2.3-2.3 3.4-2.3 5.7.8 4.1 2.3 5.7 3.4 2.3 5.7 2.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-card { position: sticky; top: 0; padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 992px) { .contact-card { padding: 2rem; } }

/* Formulaire : reprend le thème « Orbital » de Gravity Forms utilisé par l’original */
.contact-form { --danger: #dc3545; }
.form-legend .req { font-size: 1rem; line-height: 1.5; font-weight: 400; }
.req { color: var(--danger); }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; row-gap: 24px; }
.form-fields > * { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .form-fields { column-gap: 16px; }
  .form-fields > .half { grid-column: auto; }
}
.field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.43;
  color: #000;
}
.field label .req { font-size: 12px; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  height: 53px;
  margin: 0;
  padding: 0 12px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  background-color: #fff;
  color: #000;
  font-size: 14px;
  line-height: normal;
}
.field select {
  appearance: none;
  padding-right: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(0,0,0,.65)' d='M.3.3a1 1 0 0 1 1.4 0L5 3.6 8.3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4A1 1 0 0 1 .3.3z'/%3E%3C/svg%3E") calc(100% - 12px) 50% / 10px auto no-repeat;
}
.field textarea { height: 192px; min-height: 192px; padding: 12px; line-height: 1.5; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--primary); }

/* Erreurs : textes et couleurs de Gravity Forms */
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field-error { margin-top: 8px; font-size: 12px; line-height: 1.43; color: var(--danger); }
.form-errors {
  margin-bottom: 24px;
  padding: 20px 16px;
  border: 1px solid rgba(220, 53, 69, .25);
  border-radius: 3px;
  background: rgba(220, 53, 69, .03);
}
.form-errors p {
  display: flex;
  flex-direction: column;  /* icône au-dessus du texte, à côté à partir de 640 px */
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  color: var(--danger);
}
.form-errors p::before {
  content: "!";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(220, 53, 69, .25);
  border-radius: 50%;
  background: rgba(220, 53, 69, .05);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 640px) { .form-errors p { flex-direction: row; align-items: center; } }
.form-errors:focus, .form-confirmation:focus { outline: none; }

.form-legal small { font-size: .875rem; }
.botcheck { display: none; }
.form-footer { display: flex; margin-top: 24px; }
.form-submit {
  min-height: 53px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--primary);
  box-shadow: 0 1px 4px rgba(18, 25, 97, .08);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.form-submit:hover { background: var(--primary-hover); }
.form-submit:disabled { opacity: .7; cursor: wait; }

/* ---------- Documents (une carte par document : icône, titre, lien vers le PDF) ---------- */
.documents .row { row-gap: 2rem; }  /* gy-2 */
@media (min-width: 768px) { .documents .row > * { width: 50%; } }  /* row-cols-md-2 */
@media (min-width: 992px) { .documents .row > * { width: 25%; } }  /* row-cols-lg-4 */
.doc-card {
  position: relative;
  padding: 2rem;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 0 23px rgba(111, 200, 248, .25);
}
.doc-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.doc-card h2 { font-size: min(1.275rem + .3vw, 1.5rem); color: var(--h3); text-align: center; }  /* h3.fs-4 de l’original */
.doc-card a { color: inherit; text-decoration: none; }
.doc-card a::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* stretched-link : toute la carte est cliquable */

/* ---------- Page 404 (message trilingue centré) ---------- */
.not-found { text-align: center; }
.not-found p { margin-bottom: 1.5rem; text-wrap: balance; }  /* lignes équilibrées : pas de mot seul en fin de paragraphe sur mobile */
.not-found p:last-child { margin-bottom: 0; }  /* l’espace sous la section vient de sa marge, comme ailleurs */
.not-found p a:not(.btn) { white-space: nowrap; }  /* liens NL/EN jamais coupés en deux lignes */

/* Page courte (Documents, 404) : pied de page collé en bas de l’écran (body.min-vh-100.d-flex + .mt-auto de l’original) */
body.page-short { display: flex; flex-direction: column; min-height: 100vh; }
body.page-short .site-footer { margin-top: auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bg-1); }
.site-footer > .container { padding-top: 5rem; padding-bottom: 2rem; }
@media (min-width: 768px) { .site-footer > .container { padding-bottom: 5rem; } }

/* Colonnes : logo + réseaux 4/12 (3/12 décalé de 1/12 au-delà de 1400 px), puis 2/12, 2/12 et 3/12 */
.footer-brand  { order: 2; }
.footer-col    { display: none; }
.footer-mobile { order: 1; }
@media (min-width: 768px) {
  .footer-brand  { order: 1; width: 50%; }
  .footer-mobile { order: 2; width: 41.66666667%; margin-left: 8.33333333%; }
}
@media (min-width: 992px) {
  .footer-brand { width: 33.33333333%; }
  .footer-col   { display: block; order: 2; width: 16.66666667%; }
  .footer-col-contact { margin-left: 8.33333333%; }
  .footer-col-infos   { width: 25%; }
  .footer-mobile { display: none; }
}
@media (min-width: 1400px) {
  .footer-brand { width: 25%; margin-left: 8.33333333%; }
}

.footer-logo { width: 100%; }
.footer-logo-md { display: none; }
.footer-logo-sm { margin-bottom: 3rem; }
@media (min-width: 768px) {
  .footer-logo-md { display: block; }
  .footer-logo-sm { display: none; }
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .socials { flex-wrap: nowrap; justify-content: flex-start; margin-top: 3rem; } }
.socials a {
  display: flex;
  padding: .5rem;
  border: 2px solid var(--text);
  border-radius: .5rem;
}
.socials a:hover { border-color: var(--primary); }

.copyright { text-align: center; }
.produweb-link { display: inline-flex; align-items: center; line-height: 1; }
@media (min-width: 768px) { .copyright { text-align: left; } }

.site-footer, .site-footer a, .site-footer h2 { color: var(--text); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.nav-footer { margin-top: 1rem; }
.site-footer h2 { margin-bottom: 1.5rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li:last-child { margin-bottom: 0; }

/* Accordéons du pied de page (mobile et tablette) */
.footer-mobile .accordion { margin-bottom: 2rem; }
.footer-mobile summary {
  margin-bottom: .5rem;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.4;
}
/* Fermé, le dernier élément n'ajoute pas sa marge : dans l'original elle fusionne avec celle de l'accordéon */
.footer-mobile details:last-child:not([open]) summary { margin-bottom: 0; }
