/* ==========================================================================
   kelmutuelle.fr — couche responsive
   Chargee APRES style-min.css : elle corrige et complete, sans le remplacer.
   Le theme d'origine (Bootstrap 2) n'a pas de grille fluide en dessous de
   768 px, d'ou les debordements horizontaux sur telephone.
   ========================================================================== */

:root {
  --km-bleu: #0075b0;
  --km-bleu-fonce: #005b8a;
  --km-rose: #be4991;
  --km-encre: #333;
  --km-texte: #555;
  --km-gris: #f5f7f9;
  --km-trait: #e2e8ee;
  --km-rayon: 8px;
  /* Le contenu des pages utilise .container, large de 1170 px sans retrait
     interne. L'entete ajoute 16 px de retrait de chaque cote : sa boite doit
     donc mesurer 1170 + 32 pour que logo, menu et texte partagent le meme
     bord gauche. */
  --km-largeur: 1202px;
  --km-gouttiere: 16px;
}

/* --------------------------------------------------------------------------
   Base typographique
   Reprise a l'identique du <style> inline qui figurait dans analytics.php.
   Deplacee ici : le navigateur la met en cache au lieu de la retelecharger
   avec chaque page.
   -------------------------------------------------------------------------- */

body {
  background: url(/img-assurance/back.png) 0 0 repeat;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--km-texte);
  font-weight: 400;
}
.info h2 { font-size: 25px; }
h2, h3, h4 { font-weight: 600; }
h1 {
  font-weight: 300;
  font-size: 36px;
  line-height: 1.15;
  color: var(--km-rose);
}
h5, h6 { font-weight: 400; }
a:hover { text-decoration: none; }
.clear { clear: both; }
input::placeholder,
textarea::placeholder { color: #333; }

/* --------------------------------------------------------------------------
   Fondations : rien ne doit deborder horizontalement
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  overflow-x: hidden;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Les tableaux tarifaires du contenu sont larges : ils defilent seuls
   plutot que d'elargir toute la page. */
.km-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--km-trait);
  border-radius: var(--km-rayon);
}
.km-table-scroll > table {
  margin: 0;
  min-width: 460px;
}

/* Les mots tres longs (URL, noms composes) ne doivent pas pousser la page. */
p, li, td, th, h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--km-bleu);
  outline-offset: 2px;
}

.km-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;
}

/* Lien d'evitement clavier */
.km-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--km-bleu);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--km-rayon) 0;
}
.km-skip:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Entete : logo, menu et appel a l'action sur une seule ligne
   -------------------------------------------------------------------------- */

.km-header {
  background: #fff;
  border-bottom: 1px solid var(--km-trait);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.km-header__bar {
  max-width: var(--km-largeur);
  margin: 0 auto;
  padding: 0 var(--km-gouttiere);
  display: flex;
  align-items: center;
  gap: 22px;
}

.km-header__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 12px 0;
}
.km-header__logo img {
  height: 44px;
  width: auto;
  display: block;
  /* Le fichier kel-mutuelle.png porte 6 px de marge transparente a gauche
     (sur 250 px de large). Sans compensation, le dessin parait rentre par
     rapport au texte de la page, alors que sa boite est bien alignee. */
  margin-left: -3px;
}

.km-header__cta {
  flex: none;
  background: var(--km-rose);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s ease;
}
.km-header__cta:hover,
.km-header__cta:focus {
  background: #a53d7e;
  color: #fff;
  text-decoration: none;
}
/* L'appel a l'action existe en double : dans la barre sur grand ecran, dans
   le panneau deroulant sur petit ecran. Un seul est visible a la fois. */
.km-nav__cta-mobile {
  display: none;
}

.km-burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--km-trait);
  border-radius: var(--km-rayon);
  cursor: pointer;
  color: var(--km-bleu);
}
.km-burger span,
.km-burger span::before,
.km-burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.km-burger span {
  margin: 0 auto;
  position: relative;
}
.km-burger span::before,
.km-burger span::after {
  content: '';
  position: absolute;
  left: 0;
}
.km-burger span::before { top: -6px; }
.km-burger span::after  { top: 6px; }
.km-burger[aria-expanded='true'] span { background: transparent; }
.km-burger[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.km-burger[aria-expanded='true'] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Menu --- */

.km-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.km-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.km-nav__list li {
  position: relative;
  list-style: none;
}
.km-nav__list a {
  display: block;
  padding: 20px 11px;
  color: var(--km-encre);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.km-nav__list a strong {
  font-weight: 700;
}
.km-nav__list a:hover,
.km-nav__list a:focus {
  color: var(--km-bleu);
  text-decoration: none;
}
/* La page courante est soulignee : le repere reste lisible sans couleur. */
.km-nav__list a[aria-current='page'] {
  color: var(--km-bleu);
  border-bottom-color: var(--km-bleu);
}

/* Sous-menu « Autre » */
.km-sub__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-size: 14px;
  color: var(--km-encre);
  padding: 20px 11px;
  cursor: pointer;
}
.km-sub__toggle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.km-sub__toggle:hover,
.km-sub__toggle[aria-expanded='true'] {
  color: var(--km-bleu);
}
.km-sub__toggle[aria-expanded='true']::after {
  transform: rotate(-135deg) translateY(-2px);
}
.km-sub__menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--km-trait);
  border-radius: 0 0 var(--km-rayon) var(--km-rayon);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  z-index: 110;
}
.km-sub__menu[hidden] {
  display: none;
}
.km-sub__menu a {
  white-space: normal;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 0;
  color: var(--km-texte);
}
.km-sub__menu a:hover,
.km-sub__menu a:focus {
  background: var(--km-gris);
  color: var(--km-bleu);
}

/* --------------------------------------------------------------------------
   Bloc de titre : H1 et chapo
   Le theme ouvre chaque page par un <nav> contenant le logo et le titre, puis
   une <section class="info"> qui porte le chapo. Le logo etant desormais dans
   l'entete, on masque le doublon et on reunit titre et chapo en un seul bloc.
   -------------------------------------------------------------------------- */

nav img.logo,
nav .span4 {
  display: none !important;
}

nav {
  padding: 0;
}
nav .row-fluid .span8 {
  width: 100% !important;
  margin-left: 0 !important;
  float: none !important;
}
nav h1 {
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 34px;
  line-height: 1.2;
  color: var(--km-rose);
  font-weight: 300;
}
nav h1 strong {
  font-weight: 700;
}

/* Chapo : la premiere section .info suivant le titre. */
section.info:first-of-type {
  padding-top: 14px;
  padding-bottom: 26px;
}
section.info:first-of-type p {
  /* Ces paragraphes portent un text-align:center en attribut style dans le
     HTML des pages : on les ramene au fer a gauche, comme le titre. */
  text-align: left !important;
  font-size: 17px;
  line-height: 1.65;
  color: var(--km-texte);
  max-width: 46em;
  margin: 0 0 12px;
}

/* --------------------------------------------------------------------------
   Bloc d'ouverture (hero) : titre, chapo, visuel et formulaire
   Voir hero.php. Deux colonnes sur grand ecran, empilees sur telephone.
   -------------------------------------------------------------------------- */

.km-hero {
  background: linear-gradient(180deg, #eef5fa 0%, rgba(238, 245, 250, 0) 100%);
  border-bottom: 1px solid var(--km-trait);
}
.km-hero__inner {
  max-width: var(--km-largeur);
  margin: 0 auto;
  padding: 30px var(--km-gouttiere) 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 36px;
  align-items: start;
}

.km-hero__copy {
  min-width: 0;
}
.km-hero__titre {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 300;
  color: var(--km-rose);
  text-align: left;
}
.km-hero__titre strong {
  font-weight: 700;
}

.km-hero__chapo p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--km-texte);
  text-align: left;
  max-width: 46em;
}
.km-hero__chapo p:last-child {
  margin-bottom: 0;
}

.km-hero__points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.km-hero__points li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--km-encre);
}
/* La coche est decorative : dessinee en CSS, elle n'est pas lue a voix haute
   et n'ajoute aucune requete. */
.km-hero__points li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--km-bleu);
  border-bottom: 2.5px solid var(--km-bleu);
  transform: rotate(-45deg) translate(1px, -2px);
}

/* --------------------------------------------------------------------------
   Formulaire de devis dans le bloc d'ouverture
   Les icones sont des SVG integres en data-URI : aucune requete reseau,
   aucune police d'icones, et elles restent nettes a toute definition.
   -------------------------------------------------------------------------- */

/* Dans l'ancien theme, .right-form est positionne en absolu et decale de la
   moitie de la grille pour flotter au-dessus du visuel. Le hero le remet dans
   le flux : sans cela il sort de la colonne et deborde la page. */
.km-hero__form .right-form,
.km-hero__form .form {
  position: static !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding-left: 0;
  padding-right: 0;
  float: none !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
}

.km-hero__form .form {
  background: #fff;
  border: 1px solid var(--km-trait);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 40, 70, .10);
  padding: 0;
  overflow: hidden;
}

/* En-tete de la carte */
.km-hero__form .text-center {
  background: linear-gradient(135deg, #0075b0, #005b8a);
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  padding: 14px 22px;
  margin: 0;
  text-align: center;
}
.km-hero__form form {
  padding: 16px 20px 18px;
}

.km-hero__form .row-fluid {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.km-hero__form .row-fluid > [class*='span'] {
  flex: 1 1 170px;
  width: auto !important;
  margin-left: 0 !important;
  float: none !important;
  margin-bottom: 10px;
  /* Les champs sont inline-block : la ligne de base ajoutait une dizaine de
     pixels par rangee, soit une soixantaine sur l'ensemble du formulaire. */
  display: flex;
  flex-direction: column;
  line-height: 0;
}
/* Groupes de dates : ils occupent les deux colonnes de leur rangee, sous
   « Ville » et « Code postal ». Etiquette au-dessus, trois champs alignes
   en dessous. En pleine largeur ils ajoutaient une rangee inutile. */
.km-hero__form .row-fluid > [class*='span']:has(input[placeholder='YYYY']) {
  display: flex;
  /* Rangee avec retour a la ligne : l'etiquette occupe toute la largeur, les
     trois champs se placent cote a cote en dessous. */
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.km-hero__form .row-fluid > [class*='span']:has(input[placeholder='YYYY']) label {
  flex: 0 0 100%;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
}
.km-hero__form input[placeholder='j'],
.km-hero__form input[placeholder='M'],
.km-hero__form input[placeholder='YYYY'] {
  flex: 0 0 auto;
  margin: 0 !important;
}

/* Champs : l'icone occupe la gouttiere de gauche. */
.km-hero__form input,
.km-hero__form select {
  width: 100%;
  /* 16 px minimum : en dessous, iOS zoome automatiquement sur le champ. */
  font-size: 16px;
  min-height: 44px;
  padding: 10px 14px 10px 42px;
  color: var(--km-encre);
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 19px 19px;
  border: 1px solid #cfdae4;
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.km-hero__form input::placeholder {
  color: #93a4b3;
}
.km-hero__form input:focus,
.km-hero__form select:focus {
  border-color: #0075b0;
  box-shadow: 0 0 0 3px rgba(0, 117, 176, .15);
  outline: none;
}
/* Un champ rempli mais invalide se signale sans attendre l'envoi. */
.km-hero__form input:invalid:not(:placeholder-shown) {
  border-color: #d98b8b;
}

/* La liste deroulante recoit son propre chevron, a droite. */
.km-hero__form select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230075b0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.2 19 6v5.7c0 4-2.9 7.5-7 9-4.1-1.5-7-5-7-9V6z'/%3E%3Cpath d='m9.2 12.1 1.9 1.9 3.7-3.7'/%3E%3C/svg%3E");
  background-position: right 12px center, 12px center;
  background-size: 15px 15px, 19px 19px;
  padding-right: 36px;
}

/* Groupes de dates : etiquette au-dessus, trois champs courts alignes. */
.km-hero__form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--km-texte);
  margin: 0 0 6px;
}
.km-hero__form input[placeholder='j'],
.km-hero__form input[placeholder='M'] {
  width: 54px !important;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}
.km-hero__form input[placeholder='YYYY'] {
  width: 74px !important;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

/* Bouton d'envoi */
.km-hero__form .row6 {
  margin-top: 4px;
}
.km-hero__form .btn,
.km-hero__form .button,
.km-hero__form input[type='submit'] {
  width: 100%;
  min-height: 48px;
  font-size: 16.5px;
  font-weight: 700;
  /* Le degrade blanc de Bootstrap 2 (.btn) masquait la couleur de marque. */
  background-image: none;
  background-color: var(--km-rose);
  color: #fff;
  border: 0;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 6px 16px rgba(190, 73, 145, .32);
  cursor: pointer;
  transition: background-color .18s ease, transform .1s ease;
}
.km-hero__form .btn:hover,
.km-hero__form input[type='submit']:hover {
  background-color: #a53d7e;
  color: #fff;
}
.km-hero__form .btn:active,
.km-hero__form input[type='submit']:active {
  transform: translateY(1px);
}

/* Mention de reassurance sous le bouton */
.km-hero__form .form::after {
  content: 'Vos données ne servent qu’à établir votre devis.';
  display: block;
  padding: 0 20px 14px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--km-texte);
  text-align: center;
}

.km-hero__form input[name='nom'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M4.8 20c0-3.5 3.2-5.8 7.2-5.8s7.2 2.3 7.2 5.8'/%3E%3C/svg%3E");
}
.km-hero__form input[name='prenom'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M4.8 20c0-3.5 3.2-5.8 7.2-5.8s7.2 2.3 7.2 5.8'/%3E%3C/svg%3E");
}
.km-hero__form input[name='tel'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.4 3.6h2.9l1.4 3.8-1.9 1.5a11.6 11.6 0 0 0 5.9 5.9l1.5-1.9 3.8 1.4v2.9a1.5 1.5 0 0 1-1.7 1.5C11.7 18 6 12.3 5 5.3a1.5 1.5 0 0 1 1.4-1.7z'/%3E%3C/svg%3E");
}
.km-hero__form input[name='email'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.2' width='18' height='13.6' rx='2.2'/%3E%3Cpath d='m3.6 6.6 8.4 5.8 8.4-5.8'/%3E%3C/svg%3E");
}
.km-hero__form input[name='enfants'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.6' r='2.9'/%3E%3Cpath d='M3.4 19.4c0-3 2.5-5 5.6-5s5.6 2 5.6 5'/%3E%3Cpath d='M16.4 7.4a2.7 2.7 0 0 1 0 5.2'/%3E%3Cpath d='M18.2 19.4c0-1.9-.6-3.3-1.8-4.2'/%3E%3C/svg%3E");
}
.km-hero__form select[name='Regime'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.2 19 6v5.7c0 4-2.9 7.5-7 9-4.1-1.5-7-5-7-9V6z'/%3E%3Cpath d='m9.2 12.1 1.9 1.9 3.7-3.7'/%3E%3C/svg%3E");
}
.km-hero__form input[name='ville'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.2s6.8-5.4 6.8-10.6a6.8 6.8 0 1 0-13.6 0C5.2 15.8 12 21.2 12 21.2z'/%3E%3Ccircle cx='12' cy='10.4' r='2.5'/%3E%3C/svg%3E");
}
.km-hero__form input[name='cp'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa3b5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.4 12 5l8 5.4v8.1a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5z'/%3E%3Cpath d='m4.4 10.8 7.6 5 7.6-5'/%3E%3C/svg%3E");
}
.km-hero__form input[name='jour'] { background-image: none; }
.km-hero__form input[name='mois'] { background-image: none; }
.km-hero__form input[name='annee'] { background-image: none; }
.km-hero__form input[name='jour3'] { background-image: none; }
.km-hero__form input[name='mois3'] { background-image: none; }
.km-hero__form input[name='annee3'] { background-image: none; }

@media (max-width: 640px) {
  .km-hero__form form {
    padding: 16px;
  }
  .km-hero__form .text-center {
    padding: 15px 16px;
    font-size: 16px;
  }
  .km-hero__form .row-fluid > [class*='span'] {
    flex-basis: 100%;
  }
  .km-hero__form .row-fluid > [class*='span']:has(input[placeholder='YYYY']) {
    flex-basis: 100%;
  }
  .km-hero__form .form::after {
    padding: 0 16px 16px;
  }
}

@media (max-width: 980px) {
  .km-hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 22px;
  }
  .km-hero__titre {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .km-hero__titre {
    font-size: 25px;
  }
  .km-hero__chapo p {
    font-size: 16px;
  }
  .km-hero__points {
    gap: 8px 16px;
  }
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.km-partners {
  background: var(--km-gris);
  border-top: 1px solid var(--km-trait);
  padding: 28px 16px;
}
.km-partners__inner {
  max-width: var(--km-largeur);
  margin: 0 auto;
}
.km-partners__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--km-encre);
  margin: 0 0 16px;
  text-align: center;
}
.km-partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  align-items: center;
}
.km-partners__grid a {
  background: #fff;
  border: 1px solid var(--km-trait);
  border-radius: var(--km-rayon);
  padding: 10px;
  display: grid;
  place-items: center;
  min-height: 64px;
}
.km-partners__grid img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.km-footer {
  background: var(--km-bleu);
  color: #fff;
  padding: 28px 16px 0;
}
.km-footer a {
  color: #dceaf5;
  text-decoration: none;
}
.km-footer a:hover,
.km-footer a:focus {
  color: #fff;
  text-decoration: underline;
}
.km-footer__cols {
  max-width: var(--km-largeur);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}
.km-footer__col h2 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.km-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}
.km-footer__col li {
  list-style: none;
  line-height: 1.4;
}
/* Mentions legales : plus discretes, mais en blanc. Le bleu clair d'origine
   (#cfe3f1) tombait a 4,1:1 de contraste sur le fond bleu, sous le seuil
   d'accessibilite ; le blanc remonte a 5,2:1 tout en pesant moins visuellement
   grace a une taille reduite. */
.km-footer__legal {
  max-width: var(--km-largeur);
  margin: 22px auto 0;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 11.5px;
  line-height: 1.55;
  color: #fff;
}
/* L'ancien theme impose « p { font-size: 1.25rem } » : un selecteur
   d'element, qui l'emporte sur la taille posee au conteneur. On la redonne
   donc aux paragraphes eux-memes. */
.km-footer__legal p {
  margin: 0 0 6px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #fff;
}
.km-footer__legal p:last-child {
  margin-bottom: 0;
}
.km-footer__legal a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Adaptations telephone et tablette
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .km-burger {
    display: grid;
    place-items: center;
    margin-left: auto;
    order: 2;
  }

  /* La barre doit pouvoir passer a la ligne, sinon le panneau reste coince
     a cote du logo au lieu de se deployer dessous. */
  .km-header__bar {
    flex-wrap: wrap;
    row-gap: 0;
  }

  /* Le menu quitte la ligne de l'entete pour un panneau deroulant. */
  .km-nav {
    order: 3;
    flex: 0 0 100%;
    display: none;
    justify-content: flex-start;
    border-top: 1px solid var(--km-trait);
    margin: 0 calc(var(--km-gouttiere) * -1);
  }
  .km-nav[data-open='true'] {
    display: block;
  }
  .km-nav__list {
    width: 100%;
  }
  .km-nav__list {
    flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .km-nav__list > li {
    border-bottom: 1px solid var(--km-trait);
  }
  .km-nav__list a,
  .km-sub__toggle {
    white-space: normal;
    width: 100%;
    padding: 14px var(--km-gouttiere);
    border-bottom: 0;
  }
  .km-nav__list a[aria-current='page'] {
    background: var(--km-gris);
    border-bottom: 0;
  }
  /* Le sous-menu s'ouvre dans le flux, pas en superposition. */
  .km-sub__menu {
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--km-gris);
  }
  .km-sub__menu a {
    padding-left: calc(var(--km-gouttiere) + 16px);
  }

  /* L'appel a l'action rejoint le panneau : la barre manque de place. */
  .km-header__cta--bureau {
    display: none;
  }
  .km-nav__cta-mobile {
    display: block;
    border-bottom: 0 !important;
    padding: 14px var(--km-gouttiere);
  }
  .km-nav__cta-mobile .km-header__cta {
    display: inline-block;
    margin: 0;
  }

  nav h1 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --km-gouttiere: 12px;
  }
  .km-header__bar {
    padding: 8px var(--km-gouttiere);
    gap: 10px;
  }
  .km-header__logo img {
    height: 38px;
  }
  .km-header__cta {
    font-size: 12.5px;
    padding: 8px 12px;
  }
  .km-sub__menu a {
    padding-left: 28px;
  }
  .km-partners__grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
  }
  .km-partners__grid a {
    min-height: 54px;
    padding: 7px;
  }
  .km-partners__grid img {
    max-height: 32px;
  }
}

/* --------------------------------------------------------------------------
   Corrections du theme d'origine sur petit ecran
   La grille Bootstrap 2 garde des largeurs fixes sous 768 px : on la rend
   fluide pour supprimer le defilement horizontal.
   -------------------------------------------------------------------------- */

@media (max-width: 979px) {
  .container,
  .row-fluid,
  .navbar .container {
    width: auto !important;
    max-width: 100% !important;
    padding-left: var(--km-gouttiere);
    padding-right: var(--km-gouttiere);
  }
  /* Le theme imbrique les conteneurs (section.container > div.container >
     div.row-fluid). Sans cette remise a zero, la gouttiere s'additionnerait a
     chaque niveau et le texte se retrouverait 48 px plus a droite que le menu. */
  .container .container,
  .container .row-fluid,
  .row-fluid .container,
  .row-fluid .row-fluid {
    padding-left: 0;
    padding-right: 0;
  }
  .row-fluid [class*='span'] {
    width: 100% !important;
    margin-left: 0 !important;
    float: none !important;
    display: block;
  }
  .row-fluid .offset6,
  .row-fluid .offset4,
  .row-fluid .offset8 {
    margin-left: 0 !important;
  }

  /* Le visuel de bandeau, en position absolue, depassait la fenetre. */
  .slider {
    position: relative;
    min-height: 0;
  }
  .slider > img {
    position: static !important;
    width: 100%;
    height: auto;
  }

  /* Le formulaire de devis passe sous le visuel au lieu de le chevaucher. */
  .right-form {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }
  .form {
    padding: 18px 14px;
  }
  .form input,
  .form select {
    width: 100% !important;
    max-width: 100%;
    /* 16 px minimum : en dessous, iOS zoome automatiquement sur le champ. */
    font-size: 16px;
    min-height: 44px;
  }
  .form .btn,
  .form .button,
  .form input[type='submit'] {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }

  /* Les images flottantes du contenu prenaient toute la largeur. */
  .item img[style*='float'],
  .info img[style*='float'] {
    float: none !important;
    display: block;
    margin: 0 auto 14px !important;
  }

  nav h1,
  .info h2 {
    font-size: 26px;
    line-height: 1.25;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }
  /* Le theme justifie le texte. Sur une colonne etroite cela cree des trous
     entre les mots et gene la lecture : on repasse au fer a gauche. */
  p, li, td, .item, .info, h1, h2, h3, h4 {
    text-align: left !important;
    hyphens: auto;
  }
  h1 {
    font-size: 25px !important;
    line-height: 1.25 !important;
  }
  h2 {
    font-size: 21px;
    line-height: 1.3;
  }
  h3 {
    font-size: 18px;
  }
  .item {
    margin-top: 24px !important;
  }
  table {
    font-size: 14px;
  }
  td, th {
    padding: 8px 10px;
  }
}

/* L'ancien theme masquait la barre de menu sous 979 px : on la neutralise,
   la nouvelle entete prend le relais. */
.navbar,
.navbar-inverse,
.nav-collapse,
.btn-navbar {
  display: none !important;
}
