/* =====================================================
   FONT FACE – LOCAL HOSTED
   ===================================================== */
/* ---------- DIN PRO (Body) ---------- */
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ---------- RIDLEY GROTESK (Headings) ---------- */
@font-face {
  font-family: "RidleyGrotesk";
  src: url("../fonts/RidleyGrotesk-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RidleyGrotesk";
  src: url("../fonts/RidleyGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RidleyGrotesk";
  src: url("../fonts/RidleyGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RidleyGrotesk";
  src: url("../fonts/RidleyGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RidleyGrotesk";
  src: url("../fonts/RidleyGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* =====================================================
   DESIGN TOKENS (toutes les couleurs + shadows ici)
   ===================================================== */
:root {
  --primary: #004288;
  --black: #191919;
  --white: #fff;
  --red: #e40520;
  --highlight: #a3e4fd;
  /* variantes nécessaires (pas de hardcode ailleurs) */
  --green: #3aa84a;
  --orange: #f5a623;
  --blue: #46a0d2;
  --muted-bg: #f6f6f6;
  --faq-bg: #eef5ff;
  /* TYPO TOKENS */
  --font-heading: "RidleyGrotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "DINPro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Radius */
  --radius-lg: 14px;
  --radius-xl: 18px;
  /* Shadows (modifiables facilement) */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 22px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 10px 26px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.12);
  /* Focus */
  --focus-ring: 0 0 0 0.2rem rgba(0, 66, 136, 0.25);
}
/* =====================================================
   BASE TYPO (OK ici)
   ===================================================== */
body {
  font-family: var(--font-body);
  color: var(--black);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
}
/* =====================================================
   BOOTSTRAP OVERRIDES (couleurs via variables)
   ===================================================== */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: color-mix(in srgb, var(--primary) 92%, #000);
  border-color: color-mix(in srgb, var(--primary) 92%, #000);
}
.text-primary {
  color: var(--primary) !important;
}
.bg-primary {
  background-color: var(--primary) !important;
}
.text-danger {
  color: var(--red) !important;
}
.btn-danger {
  background-color: var(--red);
  border-color: var(--red);
}
.btn-danger:hover,
.btn-danger:focus {
  background-color: color-mix(in srgb, var(--red) 88%, #000);
  border-color: color-mix(in srgb, var(--red) 88%, #000);
}
/* =====================================================
   HERO (structurel)
   ===================================================== */
.hero {
  background: url("/assets/img/hero.jpg") center / cover no-repeat;
}
/* =====================================================
   METHOD TILES (structure + états)
   (pas de padding/margin/font-size ici)
   ===================================================== */
.method-tile {
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border: 1px solid transparent;
  /* border piloté par variantes */
}
.method-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.method-tile:focus-visible {
  outline: 0;
  box-shadow: var(--shadow-lg), var(--focus-ring);
}
.method-tile__icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
}
/* Variantes */
.method-tile--green {
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
}
.method-tile--green .method-tile__icon {
  background: var(--green);
}
.method-tile--orange {
  border-color: color-mix(in srgb, var(--orange) 45%, transparent);
}
.method-tile--orange .method-tile__icon {
  background: var(--orange);
}
.method-tile--red {
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
}
.method-tile--red .method-tile__icon {
  background: color-mix(in srgb, var(--red) 65%, #fff);
}
.method-tile--blue {
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
  background: var(--blue);
}
.method-tile--blue .method-tile__icon {
  background: color-mix(in srgb, var(--white) 18%, transparent);
  color: var(--white);
}
.method-tile--blue .method-tile__text {
  color: var(--white);
}
.method-tile.is-active {
  box-shadow: var(--shadow-xl);
}
/* =====================================================
   SEARCH PANEL
   ===================================================== */
.search-panel {
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid transparent;
}
.search-panel__left {
  background: var(--white);
}
.search-panel__right {
  background: var(--muted-bg);
}
@media (min-width: 992px) {
  .search-panel__right {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
  }
}
/* Couleurs dynamiques panel */
.search-panel--green {
  border-color: var(--green);
}
.search-panel--orange {
  border-color: var(--orange);
}
.search-panel--red {
  border-color: var(--red);
}
.search-panel--blue {
  border-color: var(--blue);
}
/* Liste d'aide (pas de padding/margin) */
.help-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.help-list li:last-child {
  border-bottom: 0;
}
.help-q {
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.help-q:hover {
  background: rgba(0, 0, 0, 0.06);
}
.help-q:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
/* =====================================================
   HIGHLIGHT (multi-lignes)
   -> Force majeure: padding horizontal nécessaire pour "déborder"
   (Bootstrap ne sait pas faire le débord au demi-em)
   ===================================================== */
.highlight-accent {
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 300;
  background-image: linear-gradient(to top, var(--highlight) 0%, var(--highlight) 45%, transparent 55%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  /* force majeure (effet marqueur) */
  padding-inline: 0.25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* =====================================================
   HELP + VIDEO
   ===================================================== */
.help-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  min-height: 240px;
}
/* pas de padding ici => via bootstrap classes dans HTML */
.help-card__inner {
  display: flex;
  align-items: center;
}
.help-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--white);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.video-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.video-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
}
.video-card__placeholder {
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  background: var(--white);
}
.video-card__play {
  width: 86px;
  height: 60px;
  border-radius: 10px;
  background: var(--red);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.video-card__link:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
/* =====================================================
   FAQ
   -> aucun padding/margin ici (via bootstrap)
   ===================================================== */
.faq-cat__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 6px;
  background: var(--faq-bg);
  color: var(--primary);
  font-weight: 700;
  text-align: left;
}
.faq-cat__btn:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary);
  font-weight: 600;
  text-align: left;
}
.faq-q:hover {
  text-decoration: underline;
}
.faq-q__plus {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
}
.faq-a__inner {
  border-left: 3px solid rgba(0, 66, 136, 0.35);
  color: rgba(11, 42, 91, 0.88);
  background: rgba(238, 245, 255, 0.45);
  border-radius: 6px;
}
/* =====================================================
   HELP BAND
   ===================================================== */
.help-band {
  position: relative;
}
.help-band::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 0;
  height: 10px;
  width: min(34%, 420px);
  background: var(--red);
}
.help-band__card {
  background: #f3f8ff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
}
.help-band__icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--red);
  line-height: 1;
}
.help-band__link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.help-band__link:hover {
  opacity: 0.9;
}
.help-band__link:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}
/* =====================================================
   TRUST
   -> pas de margin/font-size dans CSS
   ===================================================== */
.trust-item {
  display: grid;
  grid-template-rows: auto auto auto;
}
.trust-item__title {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 400;
  text-transform: uppercase;
}
.trust-item__title strong {
  font-weight: 800;
}
.trust-item__iconwrap {
  position: relative;
  width: 90px;
  height: 62px;
}
.trust-item__u {
  position: absolute;
  inset: 0;
  border-radius: 0 0 48px 48px;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
}
.trust-item__icon {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--red);
}
.trust-item__text {
  color: rgba(25, 25, 25, 0.72);
}
/* =====================================================
   FLOAT HELP BUTTON
   ===================================================== */
.help-float {
  width: 64px;
  height: 64px;
  background: var(--red);
  border-top-left-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 1055;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.help-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}
.help-float:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}
