/* iloj — feuille de style commune
   Page d'attente (body.attente), mentions légales (body.legal), page contact (body.qrcode).
   Page d'attente conçue mobile d'abord ; mise en page PC à partir de 700 px de large. */

/* ---------- Polices (auto-hébergées, voir dossier fonts/) ---------- */
@font-face {
  font-family: "Nunito";
  font-weight: 500;
  font-display: swap;
  src: local("Nunito Medium"), local("Nunito-Medium"), url("fonts/Nunito-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-display: swap;
  src: local("Nunito ExtraBold"), local("Nunito-ExtraBold"), url("fonts/Nunito-ExtraBold.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-weight: 400;
  font-display: swap;
  src: local("Roboto"), local("Roboto-Regular"), url("fonts/Roboto-Regular.ttf") format("truetype");
}

/* ---------- Couleurs ---------- */
:root {
  --fondsombre: #082b3a;
  --bleu: #0a3548;               /* bleu iloj : carte de la page contact */
  --beige: #f3efe3;
  --jaune: #fabd12;
  --noir: #000;
  --titres: "Nunito", system-ui, sans-serif;
  --courant: "Roboto", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondsombre);
  color: var(--beige);
  font-family: var(--courant);
  line-height: 1.2;
}
h1, p { margin: 0; }
img, svg { display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--jaune); outline-offset: 4px; border-radius: 4px; }

/* ---------- Page d'attente : structure ---------- */
.attente {
  min-height: 100vh;
  min-height: 100svh;            /* hauteur réellement visible sur mobile */
  display: flex;
  flex-direction: column;
  text-align: center;
}
.entete { padding-top: 52px; }
.logo { margin: 0 auto; width: 139px; height: auto; }

.contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 86px 10px 0;
}

/* Les trois points */
.points { display: flex; gap: 8px; margin-bottom: 18px; }
.points span { width: 9px; height: 9px; border-radius: 50%; background: var(--jaune); }
.points span:nth-child(2) { opacity: .6; }
.points span:nth-child(3) { opacity: .2; }

/* Titre */
h1 {
  font-family: var(--titres);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.2rem + 4.5vw, 4.375rem);   /* 40 px → 70 px */
  margin-bottom: 48px;
}
.souligne { display: inline-block; position: relative; }
.souligne::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -17px;
  height: 6px;
  background: var(--jaune);
}

.sous-titre {
  font-family: var(--titres);
  font-weight: 500;
  font-size: clamp(1.375rem, 0.85rem + 1.4vw, 2.1875rem); /* 22 px → 35 px */
  margin-bottom: 16px;
}
.texte {
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);  /* 17 px → 20 px */
  margin-bottom: 55px;
}

/* Bouton */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 222px;
  height: 51px;
  background: var(--jaune);
  color: var(--fondsombre);
  border-radius: 4px;
  font-family: var(--titres);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  transition: filter .15s;
}
.bouton:hover { filter: brightness(1.08); }

/* Pied de page */
.pied {
  margin-top: auto;              /* collé en bas de l'écran */
  padding: 56px 16px 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .875rem;            /* 14 px */
}
.pied a { text-decoration: underline; }

/* Mobile, écran de moins de 700 px de haut :
   le pied de page suit le contenu au lieu de rester en bas. */
@media (max-width: 699.98px) and (max-height: 699.98px) {
  .pied { margin-top: 0; }
}

/* ---------- PC (à partir de 700 px de large) ---------- */
@media (min-width: 700px) {
  .entete { padding-top: 77px; }
  .contenu {
    flex: 1;
    justify-content: center;     /* bloc centré dans l'espace restant */
    padding: 48px 24px;
  }
  h1 { margin-bottom: 21px; }
  .souligne::after { left: 0; right: 0; bottom: -1px; }
  .sous-titre { margin-bottom: 19px; }
  .texte { margin-bottom: 36px; }
  .pied {
    margin-top: 0;
    padding: 0 15px 14px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    font-size: 1.125rem;         /* 18 px */
  }
}

/* ---------- Mentions légales ---------- */
.legal {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.legal .entete { padding: 32px 16px 0; }
.legal .logo { width: 90px; }
.legal main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  margin-bottom: 40px;
  text-align: center;
}
.legal h2 {
  font-family: var(--titres);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--jaune);
  margin: 36px 0 10px;
}
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; }
.legal .retour { display: inline-block; margin-top: 32px; }
.legal .pied { margin-top: auto; }

/* ---------- Page contact (qrcode.html) ---------- */
.qrcode {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background: var(--bleu);
  padding: 2.4rem 2rem 2rem;
  border-radius: 4px;
  max-width: 460px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.accent-bar {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.logo-wrapper {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
}

.brand-name {
  font-family: var(--titres);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.brand-role {
  font-size: 0.9rem;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--titres);
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease-out, filter .15s, background-color .15s;
}

.btn:active { transform: translateY(1px); }
.btn:hover { filter: brightness(1.08); }

.btn-secondary {               /* Rendez-vous : jaune plein */
  background: var(--jaune);
  color: var(--fondsombre);
}

.btn-primary {                 /* Ajouter le contact : beige plein */
  background: var(--beige);
  color: var(--fondsombre);
}

.btn-outline {                 /* LinkedIn : contour beige */
  background: transparent;
  color: var(--beige);
  border-color: var(--beige);
}
.btn-outline:hover { background: rgba(243, 239, 227, 0.08); }

@media (max-width: 480px) {
  .card { padding: 2rem 1.4rem 1.6rem; }
  .brand-name { font-size: 1.1rem; }
}
