/* Page de maintenance – Extranet Pau Béarn Habitat */

/* Police Rubik hébergée en local (licence SIL OFL, voir assets/fonts/OFL.txt).
   Fichier variable : couvre toutes les graisses de 300 à 900. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/rubik-latin.woff2") format("woff2");
}

:root {
  --bleu: #009be1;
  --bleu-texte: #0077ad;   /* bleu PBH assombri pour rester lisible en petit texte */
  --bleu-pale: #eaf5fc;
  --marine: #001e46;
  --brun: #61504c;         /* couleur de texte du site paubearnhabitat.fr */
  --blanc: #ffffff;

  /* Hauteur d'écran réellement visible (barres du navigateur mobile exclues) */
  --vh: 1vh;

  /* Espacements qui se resserrent sur les écrans peu hauts,
     pour que toute la page tienne sans défilement */
  --espace: clamp(8px, calc(var(--vh) * 2), 26px);
}

@supports (height: 1svh) {
  :root {
    --vh: 1svh;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--espace) 16px calc(var(--espace) * 0.75);
  font-family: "Rubik", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--brun);
  background-color: var(--blanc);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* En-tête : centré verticalement avec le bloc principal */
.entete {
  margin-top: auto;
  margin-bottom: var(--espace);
}

.entete__logo {
  width: clamp(64px, calc(var(--vh) * 11), 130px);
}

/* Bloc principal */
.carte {
  width: 100%;
  max-width: 620px;
  padding: calc(var(--espace) * 1.4) clamp(18px, 6vw, 48px) calc(var(--espace) * 1.3);
  text-align: center;
  background-color: var(--bleu-pale);
  border-radius: 28px;
}

.carte__picto {
  width: clamp(44px, calc(var(--vh) * 8), 100px);
  margin: 0 auto calc(var(--espace) * 0.6);
}

.carte__surtitre {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--bleu-texte);
}

.carte__titre {
  margin: 0 0 calc(var(--espace) * 0.7);
  font-size: clamp(1.35rem, calc(0.9rem + var(--vh) * 1.6), 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--marine);
  text-wrap: balance;
}

.carte__texte {
  max-width: 34em;
  margin: 0 auto calc(var(--espace) * 0.4);
  text-wrap: pretty;
}

.carte__texte strong {
  font-weight: 500;
  color: var(--marine);
}

/* Bloc contact */
.contact {
  margin-top: calc(var(--espace) * 1.1);
  padding: calc(var(--espace) * 0.9) 24px;
  color: var(--blanc);
  background-color: var(--marine);
  border-radius: 20px;
}

.contact__titre {
  margin: 0 0 calc(var(--espace) * 0.6);
  font-size: 1.05rem;
  font-weight: 400;
}

/* Les deux moyens de contact, alignés sur la même colonne */
.contact__liste {
  display: grid;
  gap: calc(var(--espace) * 0.6);
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.contact__ligne {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__picto {
  flex-shrink: 0;
  width: clamp(40px, calc(var(--vh) * 6.4), 56px);
  padding: 8px;
  background-color: var(--blanc);
  border-radius: 50%;
}

.contact__numero,
.contact__mail {
  color: var(--blanc);
  text-decoration: none;
}

.contact__numero {
  display: block;
  font-size: clamp(1.6rem, calc(1rem + var(--vh) * 1.6), 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.contact__note {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

.contact__mail {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--bleu);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.contact__numero:hover,
.contact__mail:hover {
  color: var(--bleu);
}

.contact__numero:focus-visible,
.contact__mail:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Pied de page */
.pied {
  margin-top: auto;
  padding-top: var(--espace);
  font-size: 0.875rem;
}

.pied p {
  margin: 0;
}

/* Écrans peu hauts (petits portables, fenêtre réduite) */
@media (max-height: 620px) {
  body {
    line-height: 1.42;
  }
}

/* Mobile */
@media (max-width: 560px) {
  :root {
    --espace: clamp(8px, calc(var(--vh) * 2), 22px);
  }

  body {
    font-size: 1rem;
    line-height: 1.45;
  }

  .entete__logo {
    width: clamp(64px, calc(var(--vh) * 11), 112px);
  }

  .carte {
    padding-inline: 16px;
    border-radius: 22px;
  }

  /* Sur téléphone, le texte revient à la ligne de lui-même */
  .saut {
    display: none;
  }

  .carte__picto {
    width: clamp(40px, calc(var(--vh) * 7), 80px);
  }

  .carte__titre {
    font-size: clamp(1.25rem, calc(0.8rem + var(--vh) * 1.2), 1.6rem);
  }

  .contact {
    padding-inline: 14px;
  }

  .contact__titre {
    font-size: 1rem;
  }

  .contact__ligne {
    gap: 10px;
  }

  .contact__picto {
    width: clamp(32px, calc(var(--vh) * 5), 48px);
    padding: 6px;
  }

  .contact__numero {
    font-size: clamp(1.5rem, calc(0.9rem + var(--vh) * 1.3), 1.85rem);
  }

  .contact__note {
    font-size: 0.85rem;
  }

  .contact__mail {
    font-size: 1rem;
  }
}

/* Très petits écrans de téléphone : le picto décoratif laisse sa place au texte */
@media (max-width: 560px) and (max-height: 620px) {
  .carte__picto {
    display: none;
  }
}
