/* sos-consentement.css — bandeau cookies de sos-hygiene.fr (29.09.2026), au style du gabarit client
   (vert #2A5B3E, citron #CBE029, Plus Jakarta Sans / Inter, angles 4px). Servi en « no-cache » (.htaccess).
   Couches : bandeau 999 = sous l'en-tete et son menu deroulant (1000), sous le bouton d'appel (1000, remonte
   au-dessus du bandeau), sous la fenetre devis (2000). */

.sos-cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  max-height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  color: #1f2937;
  border-top: 3px solid #2A5B3E;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.14);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.sos-cc[hidden] { display: none; }
.sos-cc:focus { outline: none; }
.sos-cc:focus-visible { outline: 3px solid #1c3d29; outline-offset: -3px; }

.sos-cc-boite {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 64px 18px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 32px;
  align-items: center;
}
.sos-cc-titre {
  margin: 0 0 4px;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #1c3d29;
}
.sos-cc-texte { margin: 0; color: #1f2937; }
.sos-cc a,
.sos-cc a:visited {
  color: #2A5B3E;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sos-cc a:hover { color: #1c3d29; }

.sos-cc-boutons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
/* « Tout refuser » et « Tout accepter » : strictement le meme style (CNIL : meme poids visuel). */
.sos-cc-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 22px;
  background: #2A5B3E;
  color: #ffffff;
  border: 2px solid #2A5B3E;
  border-radius: 4px;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sos-cc-btn:hover { background: #1c3d29; border-color: #1c3d29; }
.sos-cc-boutons .sos-cc-btn { min-width: 152px; }
.sos-cc-perso {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  margin: 0;
  padding: 10px 6px;
  background: none;
  border: 0;
  color: #2A5B3E;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sos-cc-perso:hover { color: #1c3d29; }
.sos-cc-fermer {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 4px;
  color: #4b5563;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.sos-cc-fermer:hover { color: #1f2937; background: #f3f4f6; }
.sos-cc button:focus-visible,
.sos-cc a:focus-visible,
.sos-cc input:focus-visible {
  outline: 3px solid #1c3d29;
  outline-offset: 2px;
}

.sos-cc-choix {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.sos-cc-choix[hidden] { display: none; }
.sos-cc-choix label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.sos-cc-choix input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: #2A5B3E;
  cursor: pointer;
}
.sos-cc-choix .sos-cc-enregistrer { align-self: flex-start; }

/* Bouton d'appel flottant remonte au-dessus du bandeau (propriete translate : aucun decalage de mise en page). */
html.sos-cc-ouvert .floating-call-button { translate: 0 calc(-1 * var(--sos-cc-h, 0px)); }
@supports not (translate: 0) {
  html.sos-cc-ouvert .floating-call-button { bottom: calc(25px + var(--sos-cc-h, 0px)); }
}
/* Espace en fin de page tant que le bandeau est ouvert : le pied de page reste lisible. */
.sos-cc-espace { height: var(--sos-cc-h, 0px); }

/* Lien permanent « Gerer les cookies » (pied de page) */
.sos-cc-gerer,
.footer-bottom p a.sos-cc-gerer {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.9em;
  cursor: pointer;
}
.sos-cc-gerer:hover,
.footer-bottom p a.sos-cc-gerer:hover { color: var(--lime, #CBE029); }
/* Page sans pied de page (merci.html) : lien sous la carte, en gris lisible sur blanc. */
.sos-cc-pied { margin: 22px 0 0; font-size: 13px; }
.sos-cc-pied .sos-cc-gerer { color: #4b5563; margin-left: 0; text-decoration: underline; }
.sos-cc-pied .sos-cc-gerer:hover { color: #2A5B3E; }

@media (max-width: 768px) {
  .sos-cc { font-size: 12.5px; line-height: 1.42; }
  .sos-cc-boite {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px 6px;
  }
  .sos-cc-titre { font-size: 14.5px; margin-bottom: 2px; padding-right: 36px; }
  .sos-cc-long { display: none; }
  .sos-cc-fermer { top: 2px; right: 2px; }
  .sos-cc-choix label { font-size: 13px; }
  .sos-cc-boutons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sos-cc-boutons .sos-cc-btn { width: 100%; min-width: 0; padding: 10px 8px; font-size: 14px; }
  .sos-cc-perso { grid-column: 1 / -1; min-height: 32px; padding: 2px 8px; justify-self: center; font-size: 13.5px; }
  .sos-cc-choix .sos-cc-enregistrer { align-self: stretch; }
  @supports not (translate: 0) {
    html.sos-cc-ouvert .floating-call-button { bottom: calc(20px + var(--sos-cc-h, 0px)); }
  }
}

/* Pied de page : mention « artisans partenaires » (demande du client du 29.09.2026, .footer-partenaires).
   Regle placee ici parce que cette feuille est chargee par TOUTES les pages (16 gelees comprises) et servie en
   no-cache : pas de page gelee a retoucher, pas d'attente du cache de /style.css (1 mois). La phrase est la derniere
   ligne du pied ; sans cet espace, le bouton d'appel flottant (bas droite, 50 px a 20 px du bas sur mobile, 55 px a
   25 px au-dela de 768 px) en masquait la fin une fois la page defilee jusqu'en bas. */
.footer-bottom .footer-partenaires { margin-top: 8px; }

/* Mise en relation (08.10.2026) : liens legaux en derniere ligne du pied (l'espace bas pour le bouton
   d'appel flottant passe donc ici), bandeau du haut et case de consentement des formulaires. */
.footer-bottom .footer-legal { margin-top: 8px; padding-bottom: 56px; }
.footer-bottom .footer-legal a { color: inherit; text-decoration: underline; margin: 0 6px; display: inline-block; }
.bandeau-relation { margin: 0 0 6px; padding: 0 16px; text-align: center; font-size: 12.5px; line-height: 1.4; color: #fff; }
.bandeau-relation i { color: var(--lime, #CBE029); margin-right: 6px; }
.consent-relation { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: 12.5px; line-height: 1.45;
  color: var(--text-light, #555); text-align: left; cursor: pointer; }
.consent-relation input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary, #2A5B3E); }
.consent-relation a { color: var(--primary, #2A5B3E); text-decoration: underline; }
