/* ==========================================================================
   MS Laboratoires — mise à jour de la forme, charte 2026
   --------------------------------------------------------------------------
   Complète `header.css`. Ce fichier ne touche QUE la présentation : polices,
   arrondis, ombres, pied de page, boutons, accordéons, formulaires. Aucun
   texte, aucun lien, aucune image, aucun ordre de contenu n'est modifié.

   Charte reprise du site vétérinaire (msl-website/BRAND.md) :
   titres en Oswald, texte en Barlow Semi Condensed, bleu MSL #0071a4, bleu
   nuit #0b2532, coins arrondis 12 px, ombres très légères.

   Le vert du site (#00ad6e) est conservé : il est écrit en dur dans plus de
   cinq cents styles de pages, et il appartient aussi au nouveau logo.

   Supprimer ce fichier suffit à retrouver la forme précédente.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Polices auto-hébergées — aucune requête vers Google
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/hum/assets/modern/fonts/oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/hum/assets/modern/fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/hum/assets/modern/fonts/barlow-sc-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: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/hum/assets/modern/fonts/barlow-sc-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/hum/assets/modern/fonts/barlow-sc-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: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/hum/assets/modern/fonts/barlow-sc-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/hum/assets/modern/fonts/barlow-sc-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;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/hum/assets/modern/fonts/barlow-sc-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --msl-police-titre: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --msl-police-texte: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --msl-bleu-charte: #0071a4;
  --msl-bleu-nuit: #0b2532;
  --msl-bleu-clair: #a6c9da;
  --msl-logo-vert: #7ab04e;
  --msl-logo-bleu: #1072a4;
  --msl-rayon: 12px;
}

/* --------------------------------------------------------------------------
   1. Typographie
   -------------------------------------------------------------------------- */

body#top,
#top #wrap_all,
#top #wrap_all input,
#top #wrap_all textarea,
#top #wrap_all select,
#top #wrap_all button,
#top .cwv3_dialog {
  font-family: var(--msl-police-texte);
}

#top #wrap_all .main_color,
#top #wrap_all .alternate_color {
  font-size: 16px;
  line-height: 1.6;
}

#top #wrap_all h1,
#top #wrap_all h2,
#top #wrap_all h3,
#top #wrap_all h4,
#top #wrap_all h5,
#top #wrap_all h6 {
  font-family: var(--msl-police-titre);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
}

#top #wrap_all .av-main-nav > li > a {
  font-family: var(--msl-police-texte);
  font-size: 16.5px;
}

/* --------------------------------------------------------------------------
   2. Images, colonnes, séparateurs
   -------------------------------------------------------------------------- */

#top #wrap_all .avia-image-container .avia_image,
#top #wrap_all .avia-image-container .avia-image-overlay-wrap {
  border-radius: var(--msl-rayon);
}

#top #wrap_all .hr-default .hr-inner,
#top #wrap_all .hr-custom .hr-inner {
  border-color: var(--msl-trait);
}

/* --------------------------------------------------------------------------
   3. Boutons
   -------------------------------------------------------------------------- */

#top #wrap_all .avia-button,
#top #wrap_all input[type="submit"],
#top #wrap_all .wpcf7-submit {
  border-radius: var(--msl-rayon);
  font-family: var(--msl-police-texte);
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform var(--msl-transition), box-shadow var(--msl-transition), background-color var(--msl-transition);
}

#top #wrap_all .avia-button:hover,
#top #wrap_all input[type="submit"]:hover,
#top #wrap_all .wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 37, 50, .14);
}

/* --------------------------------------------------------------------------
   4. Accordéons des fiches machines
   -------------------------------------------------------------------------- */

#top #wrap_all .av_toggle_section {
  margin-bottom: 8px;
}

#top #wrap_all .toggler {
  border: 1px solid var(--msl-trait) !important;
  border-radius: 10px;
  font-weight: 600;
  transition: border-color var(--msl-transition), box-shadow var(--msl-transition);
}

#top #wrap_all .toggler:hover {
  border-color: var(--msl-bleu-clair) !important;
  box-shadow: 0 4px 14px rgba(11, 37, 50, .07);
}

#top #wrap_all .toggler.activeTitle {
  border-radius: 10px 10px 0 0;
}

#top #wrap_all .toggle_wrap .toggle_content {
  border-radius: 0 0 10px 10px;
}

/* --------------------------------------------------------------------------
   5. Encadrés et formulaires
   -------------------------------------------------------------------------- */

#top #wrap_all .av_promobox {
  border-radius: 14px;
  border-color: var(--msl-trait);
  box-shadow: 0 2px 10px rgba(11, 37, 50, .04);
}

#top #wrap_all input[type="text"],
#top #wrap_all input[type="email"],
#top #wrap_all input[type="tel"],
#top #wrap_all input[type="number"],
#top #wrap_all textarea,
#top #wrap_all select {
  border-radius: 10px;
  border: 1px solid #d5dde4;
  transition: border-color var(--msl-transition), box-shadow var(--msl-transition);
}

#top #wrap_all input[type="text"]:focus,
#top #wrap_all input[type="email"]:focus,
#top #wrap_all input[type="tel"]:focus,
#top #wrap_all input[type="number"]:focus,
#top #wrap_all textarea:focus,
#top #wrap_all select:focus {
  border-color: var(--msl-bleu-charte);
  box-shadow: 0 0 0 3px rgba(0, 113, 164, .15);
  outline: none;
}

/* --------------------------------------------------------------------------
   6. Pied de page — bleu nuit de la charte
   -------------------------------------------------------------------------- */

#top #wrap_all #footer {
  background: var(--msl-bleu-nuit);
  border-top: 0;
  color: rgba(255, 255, 255, .82);
}

#top #wrap_all #footer .widgettitle,
#top #wrap_all #footer h3,
#top #wrap_all #footer h4 {
  color: var(--msl-bleu-clair);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#top #wrap_all #footer,
#top #wrap_all #footer p,
#top #wrap_all #footer span,
#top #wrap_all #footer li {
  color: rgba(255, 255, 255, .82);
}

#top #wrap_all #footer a {
  color: #fff;
  transition: color var(--msl-transition);
}

#top #wrap_all #footer a:hover {
  color: var(--msl-bleu-clair);
}

#top #wrap_all #footer iframe {
  border-radius: var(--msl-rayon);
}

#top #wrap_all #socket {
  background: #071a24;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .6);
}

#top #wrap_all #socket a {
  color: rgba(255, 255, 255, .78);
}

/* --------------------------------------------------------------------------
   7. Fenêtre « professionnel de santé » — texte et couleurs inchangés,
      seule la forme s'arrondit
   -------------------------------------------------------------------------- */

#top .cwv3_dialog {
  border-radius: 16px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 24px 60px rgba(11, 37, 50, .28);
}

#top .cwv3_dialog .cwv3_title {
  font-family: var(--msl-police-titre);
  letter-spacing: .04em;
}

#top .cwv3_dialog .cwv3_btns a,
#top .cwv3_dialog .cwv3_btns span {
  border-radius: 10px;
}

/* L'utilisateur qui refuse les animations n'en a aucune. */
@media (prefers-reduced-motion: reduce) {
  #top #wrap_all .avia-button,
  #top #wrap_all input[type="submit"],
  #top #wrap_all .wpcf7-submit,
  #top #wrap_all .toggler {
    transition: none;
  }

  #top #wrap_all .avia-button:hover,
  #top #wrap_all input[type="submit"]:hover,
  #top #wrap_all .wpcf7-submit:hover {
    transform: none;
  }
}
