/* Série 3 des corrections. Cette feuille est chargée en dernier : elle ne
   remplace aucune règle existante, elle les précise. */

/* 02 · Accès direct aux sections : un fondu bref couvre le saut. ---------- */
.fondu-saut {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--beige);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility 0s .15s;
}
.fondu-saut.est-actif { opacity: 1; visibility: visible; transition: opacity .15s ease; }
@media (prefers-reduced-motion: reduce) { .fondu-saut { display: none; } }

/* 02 · Le bloc orange du menu : le sous-titre passe sous le titre. -------- */
.prestation--appel .prestation__entete {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
}

/* 02 · L’adresse e-mail du menu tient sur une seule ligne. ---------------- */
.nav__infos .nav__mail { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 380px) { .nav__infos .nav__mail { font-size: 13px; } }

/* 05 · La barre du haut sur téléphone : pleine largeur, collée en haut,
   sur fond opaque et plus fine. Le texte de la page passe dessous. ------- */
@media (max-width: 899px) {
  body:not(.menu-ouvert) .nav,
  .menu-fermeture .nav {
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    transform: translateY(var(--nav-decalage, 0px));
    border-radius: 0;
  }
  body:not(.menu-ouvert) .nav__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-template-columns: none;
    background: var(--beige);
    border-radius: 0;
    padding: max(6px, env(safe-area-inset-top)) clamp(14px, 4vw, 24px) 6px;
    min-height: 0;
    box-shadow: 0 6px 22px #0000001c;
  }
  body:not(.menu-ouvert) .nav__principal,
  body:not(.menu-ouvert) .nav__actions {
    background: transparent;
    border-radius: 0;
    min-height: 42px;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  body:not(.menu-ouvert) .nav__principal { flex: 1 1 auto; }
  body:not(.menu-ouvert) .nav__actions { flex: 0 0 auto; gap: 12px; }
  body:not(.menu-ouvert) .nav__bar::before,
  body:not(.menu-ouvert) .nav__bar::after,
  body:not(.menu-ouvert) .nav__actions::before { display: none; }
  /* Barre sombre : la plaque entière fonce, d’un bord à l’autre. */
  body:not(.menu-ouvert) .nav--barre-sombre .nav__bar { background: #111; color: var(--beige); }
  body:not(.menu-ouvert) .nav--barre-sombre .nav__principal,
  body:not(.menu-ouvert) .nav--barre-sombre .nav__actions { background: transparent; }
  body:not(.menu-ouvert) .nav__logo { width: min(105px, 27vw); }
}

/* 05 · Les titres des trois cartes de la méthode sont centrés. ------------ */
@media (max-width: 899px) {
  .methode .etape h3 { text-align: center; max-width: none; margin-inline: auto; }
}

/* 04 · Le bouton de réservation, sur l’écran de fin du formulaire. -------- */
.projet-modal__reservation { margin-top: 18px; }

/* Bandeau de cookies ------------------------------------------------------ */
.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  padding: clamp(12px, 2vw, 22px);
  padding-bottom: max(clamp(12px, 2vw, 22px), env(safe-area-inset-bottom));
  pointer-events: none;
}
.cookies[hidden] { display: none; }
.cookies__boite {
  pointer-events: auto;
  max-width: 1170px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "titre actions" "texte actions";
  align-items: center;
  gap: 4px clamp(18px, 3vw, 44px);
  background: var(--beige);
  color: var(--noir);
  border-radius: var(--rayon, 6px);
  padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2vw, 28px);
  box-shadow: 0 18px 60px #00000055;
}
.cookies__titre {
  grid-area: titre;
  margin: 0;
  font: 400 var(--t-eyebrow, 12px)/1 var(--f-repere);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--noir);
}
.cookies__texte {
  grid-area: texte;
  margin: 0;
  font: 400 var(--t-small, 14px)/1.5 var(--f-texte);
  color: var(--gris-texte);
  max-width: 78ch;
}
.cookies__texte a { color: var(--noir); text-decoration: underline; text-underline-offset: 3px; }
.cookies__actions {
  grid-area: actions;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Accepter et refuser ont la même taille et la même place : aucun des deux
   n’est mis en avant par rapport à l’autre. */
.cookies__actions .bouton { min-width: 140px; justify-content: center; }
@media (max-width: 767px) {
  .cookies__boite { grid-template-columns: 1fr; grid-template-areas: "titre" "texte" "actions"; gap: 8px; }
  .cookies__actions { margin-top: 6px; }
  .cookies__actions .bouton { flex: 1 1 140px; min-width: 0; }
}

/* Le lien « Gérer les cookies », en bas de chaque page et dans la politique. */
.pied__cookies,
.lien-cookies {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pied__cookies:hover,
.lien-cookies:hover { color: var(--rouge-action); }

/* Pages légales : date, tableau et mention de langue. --------------------- */
.page-texte__date {
  font: 400 var(--t-eyebrow, 12px)/1.4 var(--f-repere);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris-texte);
  margin-bottom: 24px;
}
.page-texte__note { font-style: italic; }
.page-texte__table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: var(--t-small, 14px);
}
.page-texte__table th,
.page-texte__table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gris-ligne);
  color: var(--gris-texte);
}
.page-texte__table th { color: var(--noir); font-weight: 500; }
.page-texte b { color: var(--noir); font-weight: 500; }

/* Pages légales : la barre se lit sur le fond clair. --------------------- */
body.page-legale .nav__langue-exterieure,
body.page-legale .nav__horloges { color: var(--noir); }
body.page-legale .nav__langue-exterieure ul { color: var(--noir); }

/* 06 · Le titre du bloc orange du menu reprend la présentation des deux
   cartes de prestation : même police de repère, mêmes majuscules, même
   taille, même place en haut à gauche. Le sous-titre garde son style. */
.prestation--appel .prestation__entete > span:first-child {
  font-family: var(--f-repere);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 899px) {
  .menu-ouvert .prestation--appel .prestation__entete > span:first-child {
    font-size: clamp(9.5px, 2.3vw, 11px);
  }
}

/* 06 · La liste des pays de livraison prend l’allure des autres champs.
   Le chevron est dessiné en fond : les listes natives ne se mettent pas en
   forme de la même façon d’un navigateur à l’autre. */
.projet-modal select {
  width: 100%;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 13px 40px 13px 15px;
  color: #111;
  font: 14px/1.5 var(--f-texte);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.champ select {
  width: 100%;
  border: 1px solid #ffffff2e;
  border-radius: 6px;
  background: #171717;
  padding: 14px 40px 14px 16px;
  color: inherit;
  font: 400 var(--t-small)/1.5 var(--f-texte);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23faf8f4' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.champ select:focus { border-color: var(--rouge-vif); outline: none; }
.champ select option { background: #171717; color: var(--beige); }

/* 06 · La case « Ce numéro est sur WhatsApp », sous le téléphone, dans la
   fenêtre comme dans le formulaire de la page. */
.projet-modal .projet-case,
.champ .projet-case {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font: 400 13px/1.4 var(--f-texte);
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}
.projet-modal__coordonnees .projet-case { grid-column: 1 / -1; }
.projet-modal .projet-case input[type="checkbox"],
.champ .projet-case input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: #bf3421;
}
