/* Charte Ortholab, novembre 2026.
   Poppins (SIL OFL 1.1, fonts/OFL.txt) : corps, navigation, boutons, sous-titres.
   Alfarn 2 Regular est servi tel quel en OTF, sans conversion.
   Le paquet reçu documente une licence desktop, pas une licence web.
   Aubin a demandé de l'ajouter quand même, avec parcimonie : classe .titre-principal seulement.
   Ce fichier ne valide pas juridiquement cet usage. */

/* Repli Arial calé sur Poppins 400 (upem 1000, asc. 1050, desc. 350, x 548). */
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial");
  size-adjust: 105.68%;
  ascent-override: 99.36%;
  descent-override: 33.12%;
  line-gap-override: 9.46%;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700.woff2") format("woff2");
}
/* Repli Arial calé sur Alfarn 2 Regular (asc. 966, desc. 225, x 565). */
@font-face {
  font-family: "Alfarn 2 Fallback";
  src: local("Arial");
  size-adjust: 108.96%;
  ascent-override: 88.66%;
  descent-override: 20.65%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Alfarn 2";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Alfarn2-Regular.otf") format("opentype");
}

:root {
  --bleu: #1c39f1;
  --bleu-clair: #cad8fd;
  --encre: #3c3c3b;
  --magenta: #c30443;
  --magenta-clair: #fde3eb;
  /* Vert absent du brand book et de la planche (tout en #1C39F1). Vert sobre, contraste AA. */
  --vert: #146c43;
  --vert-clair: #e5f6ec;
  --font-titre: "Alfarn 2", "Alfarn 2 Fallback", Poppins, sans-serif;
}

body {
  font-family: Poppins, "Poppins Fallback", sans-serif;
  color: var(--encre);
}

.titre-principal {
  font-family: var(--font-titre) !important;
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .titre-principal {
    font-size: 1.85rem !important;
    line-height: 1.15 !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.45rem;
  line-height: 0;
}

.logo-paysage {
  display: block;
  width: 168px;
  max-width: 58vw;
  height: auto;
}

.logo-mono {
  display: none;
  width: auto;
  height: 46px;
}

.logo-link img {
  filter: none;
  transform: none;
  box-shadow: none;
}

.brand-icon {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  aspect-ratio: 1;
  display: inline-block;
  vertical-align: -0.2em;
  object-fit: contain;
}

.ico-lg {
  width: 3.25rem;
  height: 3.25rem;
}

.chip-essai {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--bleu);
  border-radius: 0.375rem;
  background: var(--bleu-clair);
  color: var(--bleu);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
}

.surlignage {
  /* #CAD8FD mélangé à 55 % vers le blanc. Texte #1C39F1 : contraste 6,18. */
  background: #e7edfe;
  color: var(--bleu);
  font-weight: 700;
  padding: 0 0.12em;
  border-radius: 0.12em;
  box-shadow: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-ligne-2 {
  display: block;
  margin-top: 0.16em;
}

.marque-mask {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: var(--masque);
  mask-image: var(--masque);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.marque-mask.dans-texte {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
}

.masque-cadenas {
  --masque: url("marque/icones/cadenas.png");
}

.masque-bulle {
  --masque: url("marque/icones/bulle.png");
}

.masque-coeur {
  --masque: url("marque/icones/coeur.png");
}

.btn-texte-magenta {
  background: #fff;
  color: #c30443;
}
.btn-texte-magenta:hover {
  background: #fff5f8;
}

@media (max-width: 280px) {
  .logo-paysage {
    display: none;
  }
  .logo-mono {
    display: block;
  }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
}

#cookie-banner {
  font-family: Poppins, sans-serif !important;
}

#cookie-banner button[data-consent="granted"] {
  background: var(--magenta) !important;
  box-shadow: none !important;
}

.btn-magenta {
  background: var(--magenta);
  color: #fff;
}
.btn-magenta:hover {
  background: #a8033a;
}

a,
button {
  box-shadow: none !important;
}

/* Sous 768 px seulement. Le bureau garde py-24 (96 px). */
@media (max-width: 767px) {
  section.compact-mobile {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  #securite .espace-interne {
    margin-bottom: 4rem;
  }
}

@media (max-width: 640px) {
  #hero {
    padding-top: 6.5rem;
    padding-bottom: 8.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
