@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/Baloo2.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --nuit: #17445c;
  --creme: #fff9ec;
  --jaune: #f9e27d;
  --turquoise: #4cc3bf;
  --menthe: #bfeedd;
  --lavande: #e2d8f7;
  --peche: #fbd5c6;
  --ciel: #cfe8fb;
  --texte: #24323b;
}

* { box-sizing: border-box; }

html { background: var(--creme); }

body {
  margin: 0;
  color: var(--texte);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, .marque { font-family: "Baloo 2", system-ui, sans-serif; color: var(--nuit); line-height: 1.15; }

a { color: var(--nuit); text-underline-offset: 3px; }
a:focus-visible, .bouton:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

.page { max-width: 62rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.entete { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.entete img { width: 3rem; height: auto; }
.entete .marque { font-size: 1.35rem; font-weight: 700; }

.hero {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
  margin-top: 1.5rem; padding: 2rem 1.5rem; border-radius: 2rem;
  background: linear-gradient(135deg, var(--ciel), var(--menthe) 55%, var(--jaune));
}
.hero img { width: min(16rem, 70%); justify-self: center; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0; }
.hero h1 span { display: block; font-size: .55em; font-weight: 600; color: #1f6f79; }
.hero p { font-size: 1.2rem; margin: .75rem 0 1.25rem; }

.bouton {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--nuit); color: #fff; font-weight: 700; text-decoration: none;
}
.bouton:hover { background: #0f3446; }
.bouton.secondaire { background: transparent; color: var(--nuit); border: 2px solid var(--nuit); }
.bouton.secondaire:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.piliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.pilier { padding: 1.25rem; border-radius: 1.25rem; }
.pilier h2 { font-size: 1.3rem; margin: 0 0 .25rem; }
.pilier p { margin: 0; }
.p1 { background: var(--ciel); } .p2 { background: var(--peche); } .p3 { background: var(--lavande); } .p4 { background: var(--menthe); }

.bientot { padding: 1.25rem 1.5rem; border-radius: 1.25rem; background: #fff; border: 2px dashed var(--turquoise); }
.bientot h2 { margin: 0 0 .25rem; font-size: 1.4rem; }
.bientot p { margin: 0; }
.bientot p + p { margin-top: .9rem; }

.texte { max-width: 44rem; }
.texte h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 2rem 0 .25rem; }
.texte h2 { font-size: 1.4rem; margin: 2rem 0 .25rem; }
.maj { color: #5b6b75; margin-top: 0; }

.pied { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #e8dcc0; font-size: .95rem; color: #5b6b75; }
.pied a { margin-right: 1rem; }

@media (min-width: 48rem) {
  .hero { grid-template-columns: 1.4fr 1fr; padding: 3rem; }
  .hero img { order: 2; width: 100%; max-width: 18rem; }
}

/* Barre du haut avec « Se connecter » (provisoire : le design de l'accueil sera refait). */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.se-connecter { border-radius: 999px; padding: .45rem 1.1rem; background: var(--nuit); color: #fff; font-weight: 700; text-decoration: none; }
.se-connecter:hover { filter: brightness(1.15); }
.se-connecter:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
