
/* ------------------------------------------------------------------
   Ajouts version statique : bandeau cookies, page confidentialité,
   pied de page légal, correctifs responsive
   ------------------------------------------------------------------ */

/* Bandeau de consentement */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #1a1a1a;
  color: #fff;
  border-top: 4px solid var(--brand-red);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}

.cookie-banner__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.cookie-banner__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1rem;
}

.cookie-banner__title i { color: var(--brand-red); margin-right: 6px; }

.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #e6e6e6;
  max-width: 720px;
}

.cookie-banner__text a { color: #ffb3b6; }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cookie--accept { background: var(--brand-red); color: #fff; }
.btn-cookie--accept:hover { background: #b9141b; }
.btn-cookie--refuse { background: #3a3a3a; color: #fff; border: 1px solid #5c5c5c; }
.btn-cookie--refuse:hover { background: #4a4a4a; }

@media (max-width: 820px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; padding: 14px 0; }
  .cookie-banner__actions { flex-direction: column; }
  .btn-cookie { width: 100%; }
}

/* Pied de page : liens légaux */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #3a3a3a;
  margin-top: 26px;
  padding-top: 16px;
}

.footer-bottom .copyright { margin: 0; color: #cfcfcf; font-size: 0.9rem; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.legal-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover { color: #ffb3b6; }

/* Page règles de confidentialité */
.legal-page { padding: 48px 0 20px; }

.legal {
  max-width: 860px;
  font-size: 1rem;
  line-height: 1.65;
}

.legal h2 {
  font-size: clamp(22px, 3vw, 28px);
  border-left: 5px solid var(--brand-red);
  padding-left: 12px;
  margin: 38px 0 12px;
}

.legal h3 { margin: 24px 0 8px; font-size: 1.08rem; }

.legal p, .legal li { color: #333; }

.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

.legal .updated {
  display: inline-block;
  background: #fff1f2;
  color: var(--brand-red);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 8px;
  font-size: 0.95rem;
}

.legal table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 8px;
}

.legal th, .legal td {
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th { background: #f7f7f7; font-weight: 700; }

.legal .note {
  background: #f7f7f7;
  border-left: 4px solid #d71920;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.legal a { color: #b9141b; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 560px) {
  .legal { font-size: 0.98rem; }
  .legal table { font-size: 0.9rem; }
  .legal th, .legal td { padding: 8px; }
  .legal-page { padding-top: 32px; }
}

/* Mention formulaires (version démo) */
.form-note {
  font-size: 0.82rem;
  color: #666;
  margin: 4px 0 0;
}

.form-confirm {
  background: #e9fce8;
  border: 1px solid #bde5b8;
  color: #2b6627;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 0;
}

/* Correctif d'accessibilité : cible de clic confortable */
.nav-toggle { cursor: pointer; }

/* Compléments page légale */
.legal .lead { font-size: 1.05rem; color: #333; }
.legal .todo {
  background: #fff6cc;
  border: 1px dashed #e0b800;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.92rem;
}
.legal a.cta {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Correctifs responsive (débordement horizontal constaté en test)
   ------------------------------------------------------------------ */
/* Les conteneurs à padding (bandeaux CTA) ajoutent leur padding à une largeur
   en vw : sans border-box ils dépassent la largeur de l'écran. */
.container { box-sizing: border-box; }
.container.cta-block { box-sizing: border-box; }

/* En-tête : le bloc texte de la marque doit pouvoir se réduire, sinon
   le titre « ALTEA MAINTENANCE » pousse la page hors écran en 320 px. */
.brand > div { min-width: 0; flex: 1 1 auto; }
.brand-name { overflow-wrap: normal; hyphens: none; }

@media (max-width: 560px) {
  .brand-name { font-size: 1.12rem; letter-spacing: 0.02em; }
  .eyebrow { font-size: 0.8rem; }
  .brand { gap: 10px; }
  .logo-img { width: 52px; }
  .cookie-banner__text { font-size: 0.86rem; }
}


/* Tablette : entre 821 et 1040 px, le menu horizontal comprime le titre de la
   marque et le coupe en deux lignes. On laisse le menu passer sous le logo. */
@media (min-width: 821px) and (max-width: 1040px) {
  .header-bar { flex-wrap: wrap; row-gap: 10px; }
  .header-bar nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; row-gap: 8px; }
  nav a { margin-left: 0; margin-right: 18px; }
  .brand-name { font-size: 28px; }
}

/* ------------------------------------------------------------------
   Formulaires (contact + rendez-vous) : champs, erreurs, consentement
   ------------------------------------------------------------------ */
.champ { display: grid; gap: 6px; }

.champ label {
  font-weight: 600;
  font-size: 0.92rem;
}

.champ2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.requis { color: var(--brand-red); font-weight: 700; }

.erreur-champ {
  margin: 0;
  font-size: 0.82rem;
  color: #b9141b;
  min-height: 0;
}

.erreur-champ:empty { display: none; }

input.invalide,
textarea.invalide,
select.invalide {
  border-color: #d71920;
  background: #fff8f8;
}

/* champ piège : invisible pour les humains, visible pour les robots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #444;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-red);
}

.form-statut {
  margin: 0;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 0;
}

.form-statut--ok {
  background: #e8f7e9;
  border: 1px solid #b6e0b9;
  color: #256c2a;
  padding: 12px 14px;
}

.form-statut--erreur {
  background: #fde8e9;
  border: 1px solid #f3b6b9;
  color: #8f1015;
  padding: 12px 14px;
}

@media (max-width: 560px) {
  .champ2 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Bouton d'appel fixe (mobile uniquement)
   ------------------------------------------------------------------ */
.appel-fixe { display: none; }

@media (max-width: 820px) {
  .appel-fixe {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;                     /* sous le bandeau cookies (999) */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--brand-red);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-tap-highlight-color: transparent;
  }

  .appel-fixe__icone {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
  }

  .appel-fixe strong { font-weight: 800; letter-spacing: 0.01em; }
  .appel-fixe:active { background: #b9141b; }
  .appel-fixe:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

  /* le contenu ne doit pas finir sous le bouton */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

  /* bandeau cookies : collé juste au-dessus du bouton d'appel */
  #cookie-banner { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); border-bottom: 0; }
}

/* très petits écrans : on garde une seule ligne lisible */
@media (max-width: 360px) {
  .appel-fixe { font-size: 0.94rem; gap: 8px; padding-left: 12px; padding-right: 12px; }
}

/* ------------------------------------------------------------------
   Logo + nom de marque cliquables (retour à l'accueil)
   Même couleur et même style qu'avant, sans soulignement ;
   au survol : simple ombre portée (pas de changement de couleur).
   ------------------------------------------------------------------ */
a.brand {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.22s ease, opacity 0.22s ease;
}

a.brand .brand-name {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

a.brand:hover,
a.brand:focus-visible {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

a.brand:active { opacity: 0.85; }

a.brand:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 4px; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  a.brand { transition: none; }
}

/* ------------------------------------------------------------------
   Boutons d'action (.cta) : vrais boutons, plus de lien bleu souligné
   ------------------------------------------------------------------ */
a.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-red);
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 20px rgba(215, 25, 32, 0.28);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  will-change: transform;
}

a.cta::after {
  content: "\2192";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s ease;
}

a.cta:hover {
  background: #b9141b;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(215, 25, 32, 0.38);
}

a.cta:hover::after { transform: translateX(4px); }

a.cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 4px 10px rgba(215, 25, 32, 0.32);
  transition-duration: 0.05s;
}

a.cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* sur fond rouge : bouton blanc */
.cta-block a.cta {
  background: #fff;
  color: var(--brand-red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.cta-block a.cta:hover {
  background: #fff;
  color: #a5121a;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.cta-block a.cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
}

.cta-block a.cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* le menu garde son style compact */
nav a.cta {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.16s ease;
}
nav a.cta::after { content: none; }
nav a.cta:hover { transform: translateY(-1px); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  a.brand, a.brand .logo-img, a.brand .brand-name,
  a.cta, a.cta::after { transition: none; }
  a.brand:hover, a.cta:hover { transform: none; }
}

/* ------------------------------------------------------------------
   Pages « zones d'intervention »
   ------------------------------------------------------------------ */
.zone-hero {
  padding: 56px 0 34px;
  background: linear-gradient(135deg, #fff3f4, #ffffff);
}

.zone-hero__grille {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.zone-hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 6px 0 12px;
  line-height: 1.18;
}

.zone-hero__accroche {
  font-size: 1.05rem;
  max-width: 640px;
}

.zone-puces {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
}

.zone-puces i { color: var(--brand-red); margin-right: 6px; }

.zone-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.zone-hero__image {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  background: #fff;
}

.zone-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* bouton téléphone, à côté des boutons principaux */
a.cta.cta-telephone {
  background: #fff;
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
  box-shadow: 0 6px 16px rgba(215, 25, 32, 0.14);
  padding: 11px 20px;
}

a.cta.cta-telephone::after { content: none; }
a.cta.cta-telephone:hover { background: #fff1f2; color: #a5121a; }
a.cta.cta-telephone i { font-size: 0.95em; }

/* FAQ */
.section-gris { background: #fafafa; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }

.zone-faq { display: grid; gap: 10px; max-width: 900px; }

.zone-faq__item {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 0 16px;
}

.zone-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.zone-faq__item summary::-webkit-details-marker { display: none; }

.zone-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brand-red);
  transition: transform 0.2s ease;
}

.zone-faq__item[open] summary::after { content: "−"; }
.zone-faq__item p { margin: 0 0 16px; color: #333; }

/* liens entre communes */
.zones-liste {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.zones-liste a {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: #252525;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.zones-liste a:hover {
  border-color: #f3b6b9;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* bandeau d'appel final */
.section-cta-final { padding-top: 0; }

.cta-final {
  background: var(--brand-red);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-final h2 { margin: 0 0 6px; font-size: 1.35rem; }
.cta-final p { margin: 0; opacity: 0.92; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cta-final a.cta { background: #fff; color: var(--brand-red); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.cta-final a.cta:hover { background: #fff; color: #a5121a; }
.cta-final a.cta-telephone { background: transparent; color: #fff; border-color: #fff; }
.cta-final a.cta-telephone:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

@media (max-width: 820px) {
  .zone-hero { padding: 36px 0 26px; }
  .zone-hero__grille { grid-template-columns: 1fr; gap: 20px; }
  .zone-hero__image { order: -1; }
  .cta-final { padding: 22px; }
  .cta-final__actions { width: 100%; }
}

/* ------------------------------------------------------------------
   Liens : même couleur et même style que le texte courant
   (plus de bleu ni de soulignement par défaut ; survol = rouge souligné)
   ------------------------------------------------------------------ */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* liens de cartes : rouge + flèche, sans soulignement */
.card > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-red);
  font-weight: 700;
}

.card > a::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.card > a:hover {
  color: #a5121a;
  text-decoration: none;
}

.card > a:hover::after { transform: translateX(3px); }

/* pied de page : liens de communes dans le style de la liste */
.footer-grid .areas a,
.footer-bottom .legal-links a {
  color: #fff;
  text-decoration: none;
}

.footer-grid .areas a:hover,
.footer-bottom .legal-links a:hover {
  color: #ffb3b6;
  text-decoration: underline;
}

/* liens déjà transformés en boutons : pas de soulignement au survol */
a.cta:hover,
a.cta:focus-visible,
.btn-cookie:hover,
.zones-liste a:hover,
a.brand:hover { text-decoration: none; }

/* ------------------------------------------------------------------
   Landing pages services
   ------------------------------------------------------------------ */
.liste-urgences {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px 24px;
}

.liste-urgences li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: #333;
}

.liste-urgences i {
  color: var(--brand-red);
  margin-top: 5px;
  flex: 0 0 auto;
}

.grille-prestations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.carte-prestation {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.carte-prestation h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.carte-prestation p { margin: 0; color: #444; font-size: 0.95rem; }

.etapes {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.etape {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 16px 18px;
}

.etape__numero {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.etape h3 { margin: 0 0 4px; font-size: 1rem; }
.etape p { margin: 0; color: #444; font-size: 0.94rem; }

.grille-engagements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.carte-engagement {
  background: #fff;
  border-left: 4px solid var(--brand-red);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.carte-engagement h3 { margin: 0 0 6px; font-size: 1rem; }
.carte-engagement p { margin: 0; color: #444; font-size: 0.94rem; }

.titre-secondaire { margin-top: 40px; }

.discret-lien { color: #555; font-size: 0.92rem; margin-top: 18px; }

@media (max-width: 560px) {
  .etape { flex-direction: column; }
  .carte-prestation { padding: 16px; }
}
