/* =========================================================
   Webinaire Api Restauration – 2026
   Police Barlow auto-hébergée (aucun appel à Google Fonts → RGPD OK)
   ========================================================= */

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"),
       url("../fonts/barlow-latin-600-normal.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-800-normal.woff2") format("woff2"),
       url("../fonts/barlow-latin-800-normal.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --navy: #312783;
  --yellow: #ffed00;
  --teal: #0daa8d;
  --white: #ffffff;

  --container-max: 1440px;   /* 1344px de contenu + 2 × 48px de marge */
  --gutter: 48px;

  --h1: 36px;
  --webinaire: 26px;
  --badge: 24px;
  --logo-w: 50px;
  --radius: 20px;
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  line-height: 1.15;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Le visuel prend l'espace restant : footer toujours en bas de l'écran */
.main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;      /* visuel centré verticalement si l'écran est plus haut que le contenu */
}
.main > .container { flex: 1 1 auto; }

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.header__inner {
  display: flex;
  align-items: flex-start;   /* logo collé au bord haut */
  gap: 32px;
}

/* Spacer à droite = largeur du logo, pour garder le titre centré sur la page */
.header__inner::after {
  content: "";
  flex: 0 0 var(--logo-w);
}

.header__logo {
  flex: 0 0 var(--logo-w);
  width: var(--logo-w);
}

.header__titre {
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px 0;
  text-align: center;
}

.header__h1 {
  margin: 0;
  font-size: var(--h1);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
}

.br-tablet { display: none; }

.header__sous-titre {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.header__webinaire {
  font-size: var(--webinaire);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Pastilles */
.badge {
  display: inline-block;
  padding: 0.2em 0.35em;
  border-radius: 6px;
  font-size: var(--badge);
  font-weight: 800;
  text-transform: uppercase;
}
.badge--yellow { background: var(--yellow); color: var(--navy); }
.badge--teal   { background: var(--teal);   color: var(--white); }

/* ---------- Visuel ---------- */
.main {
  padding: 48px 0;
}

.main__visuel {
  width: 100%;
  max-width: 1344px;         /* jamais plus large que le container */
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer__logos { width: 158px; }

.footer__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__link:hover { text-decoration-thickness: 2px; }
.footer__link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* =========================================================
   Tablette (≤ 991px)
   ========================================================= */
@media (max-width: 991px) {
  :root {
    --gutter: 32px;
    --h1: 28px;
    --webinaire: 20px;
    --badge: 18px;
    --logo-w: 38px;
    --radius: 15px;
  }
  .header__inner { gap: 24px; }
  .header__titre { padding: 32px 0 24px; }
  .header__sous-titre { margin-top: 12px; gap: 10px; }
  .br-tablet { display: inline; }
  .main { padding: 32px 0 40px; }
  .footer__logos { width: 140px; }
}

/* =========================================================
   Mobile (≤ 639px)
   ========================================================= */
@media (max-width: 639px) {
  :root {
    --gutter: 20px;
    --h1: 24px;
    --webinaire: 18px;
    --badge: 16px;
    --logo-w: 29px;
    --radius: 10px;
  }
  .header__inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .header__inner::after { display: none; }
  .header__titre { padding: 16px 0 28px; }
  .header__sous-titre { margin-top: 10px; gap: 8px; }
  .br-tablet { display: none; }
  .main { padding: 24px 0 32px; }
  .footer__inner {
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .footer__logos { width: 130px; }
}

/* Texte réservé aux lecteurs d'écran (accessibilité) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
