/* Lucie Phil Good — identité du site de lancement (crème, bleu nuit, or) */

:root {
  --creme: #f6ece2;
  --nuit: #172436;
  --encre: #142037;
  --encre-douce: #3b4558;
  --or: #c5933b;
  --texte-nuit: #f3ece2;
  --marge: clamp(20px, 5.5vw, 80px);
  --largeur: 1200px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.1vw + .6rem, 1.3rem);
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 4px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

/* Bandeau de version de travail (à retirer avant publication) */
.bandeau-travail {
  background: var(--or); color: var(--encre);
  font-size: .8rem; text-align: center; padding: .35rem 1rem;
}

/* Titres */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); line-height: 1.04; max-width: 11ch; }
h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.1; }

.trait { display: block; width: 100px; height: 3px; background: var(--or); border: 0; margin: clamp(1.25rem, 2.4vw, 1.9rem) 0; }

/* Bouton : le même partout */
.bouton {
  display: inline-block;
  background: var(--nuit); color: var(--texte-nuit);
  font-family: var(--serif); font-size: clamp(1.1rem, 1.2vw + .6rem, 1.45rem);
  text-decoration: none; padding: .7em 1.4em; border: 1px solid var(--nuit);
}
.bouton:hover { background: var(--encre); color: #fff; }

/* En-tête */
.entete { position: relative; z-index: 2; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: clamp(18px, 2.4vw, 32px); padding-bottom: 10px; }
.logo img { height: clamp(26px, 2.6vw, 38px); width: auto; }
.nav { display: flex; align-items: center; white-space: nowrap; gap: clamp(14px, 2vw, 28px); font-size: clamp(.95rem, .6vw + .6rem, 1.15rem); }
.nav a { text-decoration: none; font-family: var(--serif); }
.nav a:hover { color: var(--or); }
.nav .separateur { width: 2px; height: 1.4em; background: var(--or); }
.langues { font-family: var(--sans); letter-spacing: .02em; }
.langues [aria-current] { font-weight: 600; }
.langues .indisponible { opacity: .5; cursor: not-allowed; }

/* Haut de page : texte à gauche, portrait mis en forme à droite */
.haut { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem); overflow-x: clip; }
.grille-haut { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.portrait { position: relative; width: min(100%, 440px); justify-self: center; isolation: isolate; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 30%; }

/* Portrait : rectangle doré décalé vers la droite et un peu plus bas que la photo */
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 1.5px solid var(--or);
  transform: translate(clamp(16px, 2.2vw, 30px), clamp(10px, 1.4vw, 20px));
}
.sous-titre { margin: 0 0 clamp(1.5rem, 2.6vw, 2.2rem); font-size: clamp(1.15rem, 1.1vw + .7rem, 1.55rem); }

/* Variante « inverse » (page À propos) : portrait à gauche sur ordinateur */
.grille-haut.inverse { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.grille-haut.inverse .portrait { order: -1; }
.accroche { font-family: var(--serif); font-size: clamp(1.25rem, 1.2vw + .8rem, 1.7rem); line-height: 1.35; margin: 0; max-width: 30ch; }

/* Textes longs et repères */
.texte-long { max-width: 62ch; }
.section .texte-long p { max-width: none; }
.texte-long p + p { margin-top: 1.1em; }
.reperes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; max-width: 62ch; }
.reperes li { display: grid; gap: .2rem; padding-left: 1.4rem; position: relative; }
.reperes li::before { content: ""; position: absolute; left: 0; top: .75em; width: .7rem; height: 2px; background: var(--or); }
.reperes strong { font-family: var(--serif); font-weight: 400; font-size: 1.25em; }
.section .precision { margin-top: 2.2rem; font-size: .9em; color: var(--encre-douce); max-width: 62ch; }

/* Accueil : paragraphes successifs, infos pratiques, lien vers la suite */
.section p + p { margin-top: 1em; }
.section-pratique { padding-bottom: 0; }
.infos-pratiques { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.infos-pratiques li { padding-left: 1.3rem; position: relative; }
.infos-pratiques li::before { content: ""; position: absolute; left: 0; top: .75em; width: .7rem; height: 2px; background: var(--or); }
.section .mention-tva { margin-top: 1.1rem; font-size: .8em; color: var(--encre-douce); }
.lien-suite a { font-family: var(--serif); font-size: 1.15em; text-decoration: none; border-bottom: 1.5px solid var(--or); padding-bottom: 2px; }
.lien-suite a:hover { color: var(--or); }
.section .avant-bouton { margin-bottom: clamp(1.5rem, 2.6vw, 2.2rem); }
@media (max-width: 760px) {
}

/* Accueil : liste « Peut-être que… » et approche en trois temps */
.section .intro-liste { margin-top: 1.6rem; font-family: var(--serif); font-size: 1.15em; }
.liste-or { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; max-width: 62ch; }
.liste-or li { padding-left: 1.3rem; position: relative; }
.liste-or li::before { content: ""; position: absolute; left: 0; top: .75em; width: .7rem; height: 2px; background: var(--or); }
.section-approche { padding-top: 0; }
.trois-temps { list-style: none; counter-reset: temps; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.trois-temps li { counter-increment: temps; border-top: 1px solid rgba(20, 32, 55, .15); padding-top: 1.2rem; }
.trois-temps li::before { content: counter(temps, decimal-leading-zero); display: block; font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); color: var(--or); line-height: 1; margin-bottom: .8rem; }
.trois-temps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.2; margin: 0 0 .6rem; }
.section .trois-temps p { max-width: none; font-size: .95em; }
@media (max-width: 860px) { .trois-temps { grid-template-columns: 1fr; } }

/* Pages légales */
.page-legale { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.page-legale .conteneur > * { max-width: 68ch; }
.page-legale h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin: 2.2rem 0 .7rem; }
.page-legale p, .page-legale ul { margin: 0 0 1rem; font-size: .95em; }
.page-legale ul { padding-left: 1.2rem; }
.page-legale li + li { margin-top: .4rem; }
.page-legale a { text-decoration-color: var(--or); text-underline-offset: 3px; }
.page-legale .date-maj { margin-top: 2.5rem; font-size: .85em; color: var(--encre-douce); }
.pied a { color: inherit; text-decoration-color: var(--or); text-underline-offset: 3px; }

/* À propos : encadré sur le nom */
.hommage { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 62ch; border-left: 2px solid var(--or); padding: .4rem 0 .4rem clamp(1.2rem, 2.5vw, 2rem); }
.hommage h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.8rem); margin: 0 0 .8rem; }
.section .hommage p { max-width: none; }
.hommage blockquote { margin: 1rem 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.3; color: var(--encre); }
.hommage blockquote + p { margin-top: 0; }

.section .note-sophro { font-size: .85em; color: var(--encre-douce); font-style: italic; }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section p { margin: 0; max-width: 52ch; }
.section-nuit { background: var(--nuit); color: var(--texte-nuit); }
.section-nuit h2 { color: var(--texte-nuit); }
.section-fin { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* Pied de page */
.pied { border-top: 1px solid rgba(20, 32, 55, .12); padding: 2rem 0 2.5rem; font-size: .85rem; color: var(--encre-douce); }
.pied p { margin: 0 0 .75rem; max-width: 80ch; }
.a-valider { background: #fff1b8; color: var(--encre); padding: 0 .2em; }

/* Mobile : le titre et le bouton passent avant le portrait */
@media (max-width: 760px) {
  .grille-haut, .grille-haut.inverse { grid-template-columns: 1fr; gap: 2.75rem; }
  .grille-haut.inverse .portrait { order: 0; }
  .portrait { width: min(82%, 360px); }
  h1 { max-width: none; }
  .logo img { height: 22px; }
  .nav { gap: 10px; font-size: .9rem; }
}
