/* PRO CLEANING : base.css. Le cadre commun à toutes les pages.
   Direction « On pousse la porte » (validée par Mahmoud le 15/11/2026) : voir DESIGN.md.
   Les couleurs, la police, l'en-tête, les boutons, le bouton de devis flottant, le pied de page.
   Sans JavaScript, ou avec les animations réduites, chaque page est dans son état final. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Les couleurs. Le blanc d'un lieu propre, le marine et le bleu du logo, la lumière du matin. */
  --blanc: #F5F7F9;
  --net: #FFFFFF;
  --marine: #022B5C;
  --marine-doux: #3C5879;
  --bleu: #00B6F8;
  /* Le bleu du logo ne se détache pas assez d'un fond clair : pour un repère qui porte un sens, ce bleu soutenu. */
  --bleu-fonce: #0077B6;
  --ciel: #DCE9F2;
  --brume: #C9D6E6;
  --soleil: #FFE2A6;
  --laiton: #B9975B;
  --ambre: #9A5200;
  --mur-ombre: #B4BFCA;
  --sol-jour: #E3E8EC;
  --sol-ombre: #98A4B0;

  /* Les champs du formulaire. */
  --champ-fond: #FFFFFF;
  --champ-bord: #6B7F99;
  --champ-erreur: #9A5200;

  /* Chaque surface règle ces quatre valeurs ; les composants ne lisent qu'elles. */
  --fond: var(--blanc);
  --texte: var(--marine);
  --secondaire: var(--marine-doux);
  --filet: rgb(2 43 92 / 0.14);

  /* Les mesures. */
  --marge: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4.5rem, 12svh, 8.5rem);
  --mesure: 36rem;
  --large: 80rem;
  --entete-h: 6.25rem;
  --contour: 3px solid var(--marine);

  /* Les durées et la courbe de tout ce qui arrive. */
  --d-court: 180ms;
  --d-moyen: 450ms;
  --d-long: 900ms;
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 56.25rem) {
  :root { --entete-h: 5rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--entete-h) + 1rem);
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgb(0 182 248 / 0.25);
}

:where(img, picture, video) { display: block; max-width: 100%; height: auto; }
:where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(p, h1, h2, h3, h4) { margin: 0; }
:where(a) { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:where(a:hover) { text-decoration-thickness: 2px; }
:where(strong) { font-weight: 700; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }

:focus-visible { outline: var(--contour); outline-offset: 3px; }
:where(a, button, input, select, textarea, summary) { scroll-margin-block: calc(var(--entete-h) + 1rem) 6rem; }

/* Les titres : Archivo en grande largeur, graisse moyenne. Posé, pas crié. */
h1, h2 {
  font-weight: 500;
  font-stretch: 125%;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, min(5.4vw, 9.5svh), 5.25rem); }
h2 { font-size: clamp(1.875rem, 4.2vw, 3.75rem); }
h3, h4 {
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.chapo { font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); line-height: 1.45; }
.petit { font-size: 0.875rem; color: var(--secondaire); }
.insecable { white-space: nowrap; }
.chiffres { font-variant-numeric: tabular-nums; }
.hors-vue {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Le lien d'évitement : visible au premier appui sur Tab. */
.evitement {
  position: fixed;
  z-index: 60;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--marine);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.evitement:focus { transform: none; }

/* ————— Les surfaces ————— */
.surface-marine, .surface-abysse, .pied {
  --fond: var(--marine);
  --texte: #FFFFFF;
  --secondaire: var(--brume);
  --filet: rgb(255 255 255 / 0.22);
}
.surface-bleu { --fond: var(--ciel); }
.surface-claire { --fond: var(--net); }
.surface-marine, .surface-abysse, .surface-bleu, .surface-claire {
  background: var(--fond);
  color: var(--texte);
}

/* ————— L'en-tête ————— */
.entete {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto 0;
}
.entete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(245 247 249 / 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--filet);
}
.entete__cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: var(--entete-h);
  padding: 0.75rem var(--marge) 0.5rem;
}
.entete__logo { display: block; flex: none; }
.entete__logo img { width: clamp(9.5rem, 13vw, 12.5rem); }
.menu { order: 3; flex: 1 0 100%; min-width: 0; }
.menu__liste {
  display: flex;
  gap: 1.5rem;
  margin-inline: calc(var(--marge) * -1);
  padding-inline: var(--marge);
  overflow-x: auto;
  scrollbar-width: none;
}
.menu__liste a {
  display: block;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-stretch: 110%;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.25rem) / 0 1.5px no-repeat;
  transition: background-size var(--d-moyen) var(--sortie);
}
.menu__liste a:hover, .menu__liste a:focus-visible { background-size: 100% 1.5px; }
.menu__liste a[aria-current="page"] { font-weight: 700; background-size: 100% 1.5px; }
.entete__actions { display: flex; align-items: center; gap: 0.75rem; }
/* Le devis a son bouton flottant, en bas de l'écran : celui de l'en-tête ne sert qu'à l'appel. */
.entete__actions .bouton--devis { display: none; }
.entete__actions .bouton { --_h: 2.75rem; font-size: 0.875rem; }
.bouton__numero { display: none; }

@media (min-width: 56.25rem) {
  .entete__cadre { flex-wrap: nowrap; padding-block: 0.75rem; }
  .menu { order: 0; flex: 0 1 auto; margin-left: auto; }
  .menu__liste { gap: clamp(1.25rem, 2.2vw, 2.25rem); margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 84rem) {
  .bouton__numero { display: inline; }
}

/* ————— Les boutons ————— */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-height: var(--_h, 3.5rem);
  padding: 0.375rem 1.5rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: none;
  color: var(--texte);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* Le bouton de devis : plein, avec les chevrons du logo dans un rond. Réservé à la demande de devis. */
.bouton--devis {
  --_fond: var(--marine);
  --_encre: #FFFFFF;
  --_rond: #FFFFFF;
  padding-right: 0.375rem;
  border-color: var(--_fond);
  background: var(--_fond);
  color: var(--_encre);
}
.bouton--devis::after {
  content: "";
  flex: none;
  width: calc(var(--_h, 3.5rem) - 0.75rem);
  height: calc(var(--_h, 3.5rem) - 0.75rem);
  border-radius: 50%;
  background: var(--_rond) url("../pro-cleaning-symbole.svg") 56% 50% / 38% auto no-repeat;
}
.bouton--devis:hover { background: color-mix(in srgb, var(--_fond) 88%, var(--bleu)); }
:is(.surface-marine, .surface-abysse) .bouton--devis {
  --_fond: #FFFFFF;
  --_encre: var(--marine);
  --_rond: var(--ciel);
}
/* « Appeler le 06… » : le numéro suit le mot comme dans une phrase. */
.bouton--appel { gap: 0.3em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (forced-colors: active) {
  .bouton--devis::after { display: none; }
  .bouton--devis { padding-right: 1.5rem; }
}

/* ————— Le bouton de devis flottant : toujours sous la main ————— */
.barre-action {
  position: fixed;
  z-index: 40;
  inset: auto 0 max(1rem, env(safe-area-inset-bottom)) 0;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  margin-inline: auto;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--marine);
  color: #fff;
  /* Le contour fin le garde lisible quand il passe sur un fond marine. */
  box-shadow: 0 0.75rem 2rem -0.75rem rgb(2 43 92 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.24);
}
.barre-action__lien {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 108%;
  text-decoration: none;
}
.barre-action__lien:hover { background: rgb(255 255 255 / 0.14); }
.barre-action .bouton--devis {
  --_h: 3rem;
  --_fond: var(--marine);
  border: 0;
  padding-left: 1.25rem;
  white-space: nowrap;
}
.barre-action :focus-visible { outline-color: #fff; outline-offset: -3px; }
/* Sur la page de devis, le formulaire est déjà là. */
.page-devis .barre-action { display: none; }

/* ————— Le pied de page ————— */
.pied {
  background: var(--fond);
  color: var(--texte);
  padding: clamp(3.5rem, 9svh, 6rem) var(--marge) 7.5rem;
}
.pied__cadre {
  display: grid;
  gap: 2.5rem 2rem;
  max-width: var(--large);
  margin-inline: auto;
}
.pied__marque img { width: 13rem; margin-bottom: 1.25rem; }
.pied__marque p { max-width: 20rem; color: var(--secondaire); }
.pied__titre {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: 0;
  color: var(--secondaire);
}
.pied__bloc li { padding-block: 0.3125rem; }
.pied__bloc a { display: inline-block; padding-block: 0.3125rem; text-decoration: none; }
.pied__bloc a:hover { text-decoration: underline; }
.pied__bloc a[aria-current="page"] { font-weight: 700; }
.pied__societe { color: var(--secondaire); font-variant-numeric: tabular-nums; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--filet);
  font-size: 0.875rem;
  color: var(--secondaire);
}
.pied__bas a { padding-block: 0.5rem; margin-block: -0.5rem; }
.pied :focus-visible { outline-color: #fff; }

@media (min-width: 40rem) {
  .pied__cadre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__marque, .pied__bas { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .pied__cadre { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
  .pied__marque { grid-column: auto; }
}
