/* Rentrer chez soi — habillage du site.
   Charte : bleu nuit #1a2236, bleu soir #2b3a5a, crème #f3e9d2,
   lumière de fenêtre #ffb84d, coucher de soleil #c98b5e, titres en Georgia. */

:root {
  --nuit: #1a2236;
  --soir: #2b3a5a;
  --creme: #f3e9d2;
  --creme-clair: #faf5ea;
  --lumiere: #ffb84d;
  --couchant: #c98b5e;
  --encre: #1a2236;
  --encre-douce: #4a5168;
  --trait: rgba(26, 34, 54, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --largeur: 48rem;
}

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

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

body {
  margin: 0;
  background: var(--creme-clair);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: inherit; text-decoration-color: var(--couchant); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, .bouton:focus-visible { outline: 3px solid var(--lumiere); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.2; margin: 0; text-wrap: balance; }

.dedans { max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; }
.large { max-width: 60rem; }

/* ---------- Le soir : l'en-tête ---------- */

.soir {
  position: relative;
  overflow: hidden;
  color: var(--creme);
  text-align: center;
  background: linear-gradient(180deg, #1c2338 0%, var(--soir) 45%, #4b4a64 70%, #8a6b6a 88%, var(--couchant) 100%);
  padding: 1.25rem 0 4.5rem;
}

.soir::before { /* quelques étoiles, discrètes */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(243,233,210,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 34% 8%, rgba(243,233,210,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 14%, rgba(243,233,210,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 88% 30%, rgba(243,233,210,.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 38%, rgba(243,233,210,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 34%, rgba(243,233,210,.4), transparent 60%);
  pointer-events: none;
}

.barre {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 60rem; margin: 0 auto; padding: 0 1.25rem;
  font-size: 0.95rem;
}
.barre .nom { font-family: var(--serif); font-size: 1.1rem; text-decoration: none; letter-spacing: 0.01em; }
.barre nav { display: flex; gap: 1.1rem; }
.barre nav a { text-decoration: none; opacity: 0.85; }
.barre nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--lumiere); }

.accueil { position: relative; padding-top: 2.5rem; }

.maison {
  width: 200px; height: 200px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(243,233,210,.12), 0 18px 60px rgba(255,184,77,.18);
}

.soir h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); letter-spacing: -0.01em; }

.accroche {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 4.2vw, 1.5rem);
  margin: 0.75rem 0 2rem;
  opacity: 0.92;
}

.boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.bouton {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.bouton svg { width: 1.2em; height: 1.2em; flex: none; }
.bouton.plein { background: var(--lumiere); color: var(--nuit); }
.bouton.plein:hover { background: #ffc66e; transform: translateY(-1px); }
.bouton.creux { border: 1.5px solid rgba(243,233,210,.55); color: var(--creme); }
.bouton.creux:hover { background: rgba(243,233,210,.1); }

/* ---------- Les sections crème ---------- */

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--trait); }

.surtitre {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--couchant); margin: 0 0 0.6rem;
}

section h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin-bottom: 1.25rem; }
section p { margin: 0 0 1rem; }
.chapeau { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; }

/* Le rythme en quatre temps */
.rythme {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
  counter-reset: temps;
}
.rythme li {
  counter-increment: temps;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  font-size: 0.95rem; line-height: 1.5;
}
.rythme li::before {
  content: counter(temps);
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--nuit); color: var(--lumiere);
  font-family: var(--serif); font-size: 1rem;
}
.rythme strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.15rem; margin-bottom: 0.2rem; }

/* Ce que tu trouveras */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.carte {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
}
.carte .icone {
  width: 2.6rem; height: 2.6rem; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--creme); color: var(--couchant);
  margin-bottom: 0.9rem;
}
.carte .icone svg { width: 1.4rem; height: 1.4rem; }
.carte h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.carte p { margin: 0; color: var(--encre-douce); font-size: 0.97rem; line-height: 1.55; }

/* Les réseaux */
.reseaux { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.reseau {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
a.reseau:hover { border-color: var(--couchant); transform: translateY(-1px); }
.reseau svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--nuit); }
.reseau .titre { display: block; font-weight: 600; line-height: 1.3; }
.reseau .detail { display: block; font-size: 0.88rem; color: var(--encre-douce); line-height: 1.3; }
.reseau.bientot { background: transparent; border-style: dashed; color: var(--encre-douce); }
.reseau.bientot svg { color: var(--encre-douce); opacity: 0.7; }

/* La lettre, bientôt */
.lettre {
  background: var(--nuit);
  color: var(--creme);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex; gap: 1.4rem; align-items: center;
}
.lettre .lampe {
  flex: none;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255,184,77,.35), rgba(255,184,77,0) 70%);
  color: var(--lumiere);
}
.lettre .lampe svg { width: 1.8rem; height: 1.8rem; }
.lettre h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.lettre p { margin: 0; opacity: 0.9; }
.etiquette {
  display: inline-block; vertical-align: middle;
  margin-left: 0.4rem; padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--lumiere); color: var(--nuit);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Prudence */
.prudence {
  border-left: 3px solid var(--couchant);
  padding: 0.25rem 0 0.25rem 1.1rem;
  color: var(--encre-douce);
  font-size: 0.97rem;
}
.prudence strong { color: var(--encre); }
.prudence a { white-space: nowrap; }

/* ---------- Le pied ---------- */

.pied {
  background: var(--nuit);
  color: rgba(243,233,210,.82);
  padding: 2.5rem 0 2.75rem;
  font-size: 0.93rem;
}
.pied .dedans { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: baseline; }
.pied .nom { font-family: var(--serif); font-size: 1.15rem; color: var(--creme); }
.pied nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.pied a { text-decoration-color: rgba(201,139,94,.7); }

/* ---------- Page de texte (mentions légales) ---------- */

.soir.court { padding: 1.25rem 0 3rem; }
.soir.court h1 { font-size: clamp(2rem, 7vw, 3rem); margin-top: 2.25rem; }

.texte h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
.texte h2:first-child { margin-top: 0; }
.texte dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; }
.texte dt { color: var(--encre-douce); }
.texte dd { margin: 0; }
.a-completer { background: #ffe9c2; border-radius: 4px; padding: 0 0.3rem; font-style: italic; }
.mise-a-jour { margin-top: 2.5rem; color: var(--encre-douce); font-size: 0.92rem; }

/* ---------- Petits écrans ---------- */

@media (max-width: 760px) {
  .rythme { grid-template-columns: repeat(2, 1fr); }
  .cartes { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  section { padding: 3rem 0; }
  .barre nav { display: none; }
  .maison { width: 160px; height: 160px; }
  .boutons .bouton { width: 100%; justify-content: center; }
  .reseaux { grid-template-columns: 1fr; }
  .lettre { flex-direction: column; align-items: flex-start; padding: 1.6rem 1.35rem; }
  .texte dl { grid-template-columns: 1fr; gap: 0; }
  .texte dd { margin-bottom: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
