/* =====================================================================
   thomal.fr — Site officiel de Thomas Malaisé, auteur indépendant
   Feuille de style principale
   Identité : bleu nuit, doré, ciel étoilé, sobriété littéraire
   ---------------------------------------------------------------------
   SOMMAIRE
    1. Polices & variables          12. Composant : couverture du roman
    2. Reset léger & base           13. Composant : timeline / avancement
    3. Fond étoilé                  14. Composant : actualités
    4. Accessibilité                15. Composant : citation / fragment
    5. Layout & utilitaires         16. Composant : portrait auteur
    6. Titres de section            17. Composant : formulaire
    7. En-tête & navigation         18. Pages légales / app / pro / secret
    8. Boutons & badges             19. Pied de page
    9. Hero                         20. Bouton retour haut
   10. Sections                     21. Animations
   11. Cartes & grilles             22. Responsive & reduced-motion
   ===================================================================== */


/* =====================================================================
   1. VARIABLES
   ===================================================================== */
:root {
  /* Couleurs — identité conservée et enrichie */
  --bleu-nuit:        #07111F;
  --bleu-noir:        #030712;
  --bleu-acier:       #1C2A3A;
  --bleu-profond:     #0C1A2E;   /* nuance intermédiaire ajoutée */
  --dore:             #E8C273;
  --dore-doux:        #F3DDA4;
  --dore-sombre:      #B8945080; /* doré atténué pour bordures */
  --blanc-casse:      #F5F1E8;
  --gris-texte:       #B9C0CA;
  --gris-discret:     #7D8794;
  --rouge-discret:    #B64A4A;

  /* Surfaces dérivées */
  --carte-fond:       rgba(28, 42, 58, 0.42);
  --carte-fond-fort:  rgba(28, 42, 58, 0.66);
  --carte-fond-haut:  rgba(28, 42, 58, 0.30);
  --bordure-doree:    rgba(232, 194, 115, 0.26);
  --bordure-doree-f:  rgba(232, 194, 115, 0.55);
  --bordure-acier:    rgba(125, 135, 148, 0.20);
  --voile-sombre:     rgba(3, 7, 18, 0.72);

  /* Typographie */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:  'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Mesures */
  --largeur-max:   1200px;
  --largeur-texte: 760px;
  --rayon:         16px;
  --rayon-petit:   10px;
  --rayon-pille:   999px;
  --transition:    220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Ombres & lueurs */
  --ombre-douce:  0 22px 55px -28px rgba(3, 7, 18, 0.95);
  --ombre-carte:  0 16px 40px -28px rgba(3, 7, 18, 0.95);
  --lueur-doree:  0 0 0 1px var(--bordure-doree-f),
                  0 14px 40px -20px rgba(232, 194, 115, 0.22);
}


/* =====================================================================
   2. RESET LÉGER & BASE
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--gris-texte);
  background-color: var(--bleu-noir);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--dore-doux);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--dore); }

ul { list-style: none; padding: 0; }

strong { color: var(--blanc-casse); font-weight: 600; }

::selection { background: rgba(232, 194, 115, 0.28); color: var(--blanc-casse); }

/* Titres */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--blanc-casse);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.005em;
}


/* =====================================================================
   3. FOND ÉTOILÉ
   ---------------------------------------------------------------------
   Si /assets/img/fond-etoile.webp est fourni, il peut être ajouté
   en background sur .star-layer. Sinon, le ciel est généré en CSS pur.
   ===================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 760px at 80% -10%, rgba(28, 42, 58, 0.6), transparent 60%),
    radial-gradient(960px 660px at 8% 112%, rgba(28, 42, 58, 0.42), transparent 62%),
    linear-gradient(180deg, var(--bleu-nuit) 0%, var(--bleu-noir) 100%);
}

/* Couche d'étoiles fines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(245, 241, 232, 0.95), transparent),
    radial-gradient(1.2px 1.2px at 28% 62%, rgba(245, 241, 232, 0.55), transparent),
    radial-gradient(1.7px 1.7px at 47% 30%, rgba(243, 221, 164, 0.75), transparent),
    radial-gradient(1.1px 1.1px at 63% 78%, rgba(245, 241, 232, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 74% 20%, rgba(245, 241, 232, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 88% 52%, rgba(243, 221, 164, 0.6), transparent),
    radial-gradient(1.1px 1.1px at 36% 88%, rgba(245, 241, 232, 0.45), transparent),
    radial-gradient(1.4px 1.4px at 92% 84%, rgba(245, 241, 232, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 54% 54%, rgba(245, 241, 232, 0.4), transparent),
    radial-gradient(1.3px 1.3px at 18% 44%, rgba(243, 221, 164, 0.5), transparent);
  background-repeat: no-repeat;
  opacity: 0.72;
}


/* =====================================================================
   4. ACCESSIBILITÉ
   ===================================================================== */
.skip-link {
  position: absolute;
  left: 50%;
  top: -64px;
  transform: translateX(-50%);
  background: var(--dore);
  color: var(--bleu-noir);
  padding: 0.65rem 1.3rem;
  border-radius: 0 0 var(--rayon-petit) var(--rayon-petit);
  font-weight: 600;
  z-index: 999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; color: var(--bleu-noir); }

:focus-visible {
  outline: 2px solid var(--dore);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}


/* =====================================================================
   5. LAYOUT & UTILITAIRES
   ===================================================================== */
.wrap {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: 1.7rem;
}

.section {
  padding-block: clamp(3.6rem, 7.5vw, 6.4rem);
  position: relative;
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(28, 42, 58, 0.26), rgba(28, 42, 58, 0));
  border-block: 1px solid var(--bordure-acier);
}

.section--tight { padding-block: clamp(2.6rem, 5vw, 4rem); }

.text-center { text-align: center; }

.lead-narrow { max-width: var(--largeur-texte); }
.center-block { margin-inline: auto; }


/* =====================================================================
   6. TITRES DE SECTION
   ===================================================================== */
.section-head { margin-bottom: 2.8rem; }
.section-head.text-center { margin-inline: auto; max-width: 56rem; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 1rem;
}
.section-kicker .sec-icon {
  width: 18px; height: 18px;
  color: var(--dore);
}
.section-kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--dore);
  opacity: 0.65;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.14rem;
  color: var(--gris-texte);
  max-width: 62ch;
}
.text-center .section-lead { margin-inline: auto; }


/* =====================================================================
   7. EN-TÊTE & NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.55);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  background: rgba(3, 7, 18, 0.93);
  border-bottom-color: var(--bordure-acier);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.4rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand:hover { color: inherit; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--blanc-casse);
  letter-spacing: 0.012em;
}
.brand-mark {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dore);
  margin-top: 0.12rem;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

/* Liste des liens */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.site-nav a {
  color: var(--gris-texte);
  font-size: 0.97rem;
  font-weight: 500;
  padding-block: 0.45rem;
  position: relative;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--dore);
  transition: width var(--transition);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blanc-casse); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }

/* Bouton burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--bordure-acier);
  border-radius: var(--rayon-petit);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
}
.nav-toggle:hover { border-color: var(--bordure-doree); }
.nav-toggle span {
  display: block;
  width: 21px; height: 1.6px;
  background: var(--blanc-casse);
  margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }


/* =====================================================================
   8. BOUTONS & BADGES
   ===================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--rayon-petit);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), color var(--transition),
              box-shadow var(--transition);
}
.button:hover { transform: translateY(-2px); }

.button-primary {
  background: linear-gradient(135deg, var(--dore) 0%, var(--dore-doux) 100%);
  color: var(--bleu-noir);
  box-shadow: 0 10px 28px -14px rgba(232, 194, 115, 0.6);
}
.button-primary:hover {
  color: var(--bleu-noir);
  box-shadow: 0 14px 34px -12px rgba(232, 194, 115, 0.7);
}

.button-secondary {
  background: transparent;
  color: var(--dore-doux);
  border-color: var(--bordure-doree);
}
.button-secondary:hover {
  color: var(--dore);
  border-color: var(--dore);
  background: rgba(232, 194, 115, 0.07);
}

.button-compact { padding: 0.6rem 1.15rem; font-size: 0.92rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}
.button-row.text-center { justify-content: center; }

.arrow { transition: transform var(--transition); }
.button:hover .arrow { transform: translateX(3px); }

/* Badges */
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.78rem;
  border-radius: var(--rayon-pille);
}
.badge--gold {
  background: var(--dore);
  color: var(--bleu-noir);
}
.badge--soft {
  background: rgba(232, 194, 115, 0.12);
  color: var(--dore-doux);
  border: 1px solid var(--bordure-doree);
}
.badge--build {
  background: rgba(125, 135, 148, 0.14);
  color: var(--gris-texte);
  border: 1px solid var(--bordure-acier);
}


/* =====================================================================
   9. HERO
   ===================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3.8rem, 9vw, 7.4rem);
  overflow: hidden;
}

/* Bannière en image de fond si fournie (via style inline ou classe) */
.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero-banner::after {
  /* Voile sombre pour garantir la lisibilité du texte HTML par-dessus */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.62) 55%, rgba(3, 7, 18, 0.4) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.6rem);
  align-items: center;
}

.hero-content { max-width: 39rem; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(2.7rem, 6.2vw, 4.5rem);
  line-height: 1.04;
  color: var(--blanc-casse);
  margin-bottom: 0.55rem;
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gris-discret);
  margin-bottom: 1.6rem;
}

.hero-hook {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-style: italic;
  color: var(--dore-doux);
  margin-bottom: 1.2rem;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--gris-texte);
}

.hero-media { display: flex; justify-content: center; }

/* Variante hero compacte (pages internes simples) */
.hero--compact { padding-block: clamp(2.8rem, 6vw, 4.6rem); }
.hero--compact .hero-title { font-size: clamp(2.1rem, 5vw, 3.3rem); }


/* =====================================================================
   10. SECTIONS — séparateurs décoratifs
   ===================================================================== */
.divider-star {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-block: 0.5rem 2.5rem;
  color: var(--dore);
}
.divider-star::before,
.divider-star::after {
  content: "";
  height: 1px;
  width: min(120px, 22vw);
  background: linear-gradient(90deg, transparent, var(--bordure-doree-f), transparent);
}
.divider-star span { font-size: 0.95rem; opacity: 0.85; }


/* =====================================================================
   11. CARTES & GRILLES
   ===================================================================== */
.card-grid { display: grid; gap: 1.4rem; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--carte-fond);
  border: 1px solid var(--bordure-acier);
  border-radius: var(--rayon);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--ombre-carte);
  transition: transform var(--transition), border-color var(--transition),
              background var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--bordure-doree);
  background: var(--carte-fond-fort);
}

.card-index {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dore);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.7rem;
}
.card h3 {
  font-size: 1.46rem;
  margin-bottom: 0.5rem;
  color: var(--blanc-casse);
}
.card p { font-size: 1.01rem; color: var(--gris-texte); }

/* Carte « projet » mise en avant — accueil & auteur */
.feature-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--carte-fond-fort);
  border: 1px solid var(--bordure-doree);
  border-radius: var(--rayon);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: var(--ombre-douce);
}
.feature-card .feature-body h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-block: 0.6rem 0.7rem;
}

/* Notice / bloc « en construction » */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  background: linear-gradient(135deg, rgba(28, 42, 58, 0.5), rgba(28, 42, 58, 0.2));
  border: 1px dashed var(--bordure-doree);
  border-radius: var(--rayon);
  padding: 1.6rem 1.8rem;
}
.notice .notice-icon {
  flex-shrink: 0;
  font-size: 1.45rem;
  color: var(--dore);
  line-height: 1;
  margin-top: 0.1rem;
}
.notice h3 { font-size: 1.28rem; margin-bottom: 0.3rem; }
.notice p { font-size: 1.01rem; }


/* =====================================================================
   12. COMPOSANT — COUVERTURE DU ROMAN
   ===================================================================== */
.cover-card {
  position: relative;
  max-width: 350px;
  width: 100%;
  padding: 1rem;
  background: var(--carte-fond-fort);
  border: 1px solid var(--bordure-doree);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
}
.cover-frame {
  border-radius: var(--rayon-petit);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--bordure-acier);
}
.cover-img { width: 100%; height: 100%; object-fit: cover; }

.cover-caption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--gris-discret);
  font-style: italic;
}

/* Fausse couverture dessinée en CSS (fallback) */
.cover-faux {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem 1.4rem;
  background: linear-gradient(170deg, #142a44 0%, var(--bleu-nuit) 55%, var(--bleu-noir) 100%);
  overflow: hidden;
}
.cover-faux-sky {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 22% 24%, rgba(245,241,232,0.9), transparent),
    radial-gradient(1.3px 1.3px at 58% 16%, rgba(243,221,164,0.8), transparent),
    radial-gradient(1.8px 1.8px at 76% 34%, rgba(245,241,232,0.85), transparent),
    radial-gradient(1.2px 1.2px at 38% 42%, rgba(245,241,232,0.55), transparent),
    radial-gradient(1.4px 1.4px at 84% 12%, rgba(243,221,164,0.7), transparent),
    radial-gradient(1.2px 1.2px at 14% 56%, rgba(245,241,232,0.5), transparent);
  background-repeat: no-repeat;
}
.cover-faux-body { position: relative; }
.cover-faux-kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 0.5rem;
}
.cover-faux-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.16;
  color: var(--dore-doux);
  margin-bottom: 0.7rem;
}
.cover-faux-author {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--blanc-casse);
}
.cover-faux-statut {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bleu-noir);
  background: var(--dore);
  padding: 0.24rem 0.6rem;
  border-radius: var(--rayon-pille);
}

/* Bloc de remplacement générique (render_image) */
.img-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  padding: 1.8rem;
  background: linear-gradient(160deg, var(--bleu-acier), var(--bleu-noir));
  border: 1px solid var(--bordure-acier);
  border-radius: var(--rayon-petit);
  color: var(--gris-discret);
}
.img-fallback .ph-star { font-size: 1.7rem; color: var(--dore); opacity: 0.85; }
.img-fallback .ph-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--dore-doux);
  line-height: 1.25;
}
.img-fallback .ph-note { font-size: 0.82rem; letter-spacing: 0.04em; }
.img-fallback--portrait { aspect-ratio: 4 / 5; }
.img-fallback--cover    { aspect-ratio: 2 / 3; }
.img-fallback--wide     { aspect-ratio: 16 / 9; }
.img-fallback--icon     { aspect-ratio: 1 / 1; }


/* =====================================================================
   13. COMPOSANT — TIMELINE / AVANCEMENT
   ===================================================================== */
.timeline {
  position: relative;
  margin-top: 0.5rem;
  padding-left: 2.1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--dore), var(--bordure-acier));
}
.timeline-item {
  position: relative;
  padding: 0.4rem 0 1.5rem 0;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.1rem; top: 0.85rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bleu-noir);
  border: 2px solid var(--dore);
}
/* État : franchi */
.timeline-item.is-fait::before { background: var(--dore); }
/* État : en cours — point pulsé */
.timeline-item.is-encours::before {
  background: var(--dore);
  box-shadow: 0 0 0 0 rgba(232, 194, 115, 0.55);
  animation: pulse 2.4s ease-out infinite;
}
/* État : à venir — point creux */
.timeline-item.is-avenir::before {
  background: var(--bleu-noir);
  border-color: var(--gris-discret);
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem;
}
.timeline-title {
  font-family: var(--serif);
  font-size: 1.24rem;
  color: var(--blanc-casse);
}
.timeline-item.is-avenir .timeline-title { color: var(--gris-texte); }
.timeline-state {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.timeline-item.is-fait    .timeline-state { color: var(--dore); }
.timeline-item.is-encours .timeline-state { color: var(--dore-doux); }
.timeline-item.is-avenir  .timeline-state { color: var(--gris-discret); }
.timeline-detail { font-size: 1rem; color: var(--gris-texte); margin-top: 0.15rem; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 194, 115, 0.5); }
  70%  { box-shadow: 0 0 0 11px rgba(232, 194, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 194, 115, 0); }
}


/* =====================================================================
   14. COMPOSANT — ACTUALITÉS
   ===================================================================== */
.news-list { display: grid; gap: 1.3rem; }

.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  background: var(--carte-fond);
  border: 1px solid var(--bordure-acier);
  border-left: 3px solid var(--dore);
  border-radius: var(--rayon-petit);
  padding: 1.6rem 1.8rem;
  transition: border-color var(--transition), background var(--transition),
              transform var(--transition);
}
.news-item:hover {
  background: var(--carte-fond-fort);
  border-left-color: var(--dore-doux);
  transform: translateX(3px);
}
.news-aside {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 116px;
}
.news-period {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--dore-doux);
}
.news-body h3 { font-size: 1.36rem; margin-bottom: 0.4rem; }
.news-body p  { font-size: 1.01rem; }
.news-meta {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--gris-discret);
  font-style: italic;
}


/* =====================================================================
   15. COMPOSANT — CITATION / FRAGMENT
   ===================================================================== */
.fragment {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  padding: 2.6rem 2.2rem;
  background: var(--carte-fond);
  border: 1px solid var(--bordure-acier);
  border-radius: var(--rayon);
}
.fragment::before {
  content: "\201C";
  position: absolute;
  top: -0.32em; left: 0.32em;
  font-family: var(--serif);
  font-size: 5.4rem;
  color: var(--dore);
  opacity: 0.26;
  line-height: 1;
}
.fragment blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.32rem, 2.7vw, 1.74rem);
  color: var(--dore-doux);
  line-height: 1.42;
}
.fragment-source {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris-discret);
}
.fragment--left { text-align: left; }
.fragment--left .fragment-text {
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2.4vw, 1.42rem);
  color: var(--gris-texte);
  line-height: 1.6;
}


/* =====================================================================
   16. COMPOSANT — PORTRAIT AUTEUR
   ===================================================================== */
.author-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1.9rem, 4.5vw, 3.6rem);
  align-items: center;
}
.portrait-frame {
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 390px;
  width: 100%;
  border: 1px solid var(--bordure-doree);
  box-shadow: var(--ombre-douce);
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}
.portrait-frame .img-fallback {
  width: 100%; height: 100%;
  aspect-ratio: auto;
}
/* Initiales TM dans le fallback portrait */
.portrait-frame .img-fallback .ph-star { display: none; }
.portrait-frame .img-fallback::before {
  content: "TM";
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--dore-doux);
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bordure-doree);
  border-radius: 50%;
}


/* =====================================================================
   17. COMPOSANT — FORMULAIRE
   ===================================================================== */
.contact-card {
  background: var(--carte-fond-fort);
  border: 1px solid var(--bordure-doree);
  border-radius: var(--rayon);
  padding: clamp(1.9rem, 4vw, 2.9rem);
  text-align: center;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.32rem, 3vw, 1.9rem);
  color: var(--dore-doux);
  margin-block: 0.6rem 1.5rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.social-row.text-center { justify-content: center; }
.social-tag {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--gris-texte);
  border: 1px solid var(--bordure-acier);
  border-radius: var(--rayon-pille);
  padding: 0.45rem 1.1rem;
  transition: border-color var(--transition), color var(--transition);
}
a.social-tag:hover { border-color: var(--bordure-doree); color: var(--dore); }
.social-tag .tag-soon { color: var(--dore); }

/* Formulaire */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 620px;
  margin-inline: auto;
  text-align: left;
}
.form-row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dore-doux);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--blanc-casse);
  background: rgba(3, 7, 18, 0.55);
  border: 1px solid var(--bordure-acier);
  border-radius: var(--rayon-petit);
  padding: 0.78rem 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bordure-doree-f);
  background: rgba(3, 7, 18, 0.72);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--gris-discret); }

/* Honeypot — masqué aux humains, piège à robots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note { font-size: 0.86rem; color: var(--gris-discret); }

/* Messages de retour du formulaire */
.form-message {
  border-radius: var(--rayon-petit);
  padding: 1rem 1.2rem;
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}
.form-message--ok {
  background: rgba(232, 194, 115, 0.1);
  border: 1px solid var(--bordure-doree);
  color: var(--dore-doux);
}
.form-message--error {
  background: rgba(182, 74, 74, 0.12);
  border: 1px solid rgba(182, 74, 74, 0.45);
  color: #E9A9A9;
}


/* =====================================================================
   18. PAGES LÉGALES / APP / PRO / SECRET
   ===================================================================== */
.doc-page { max-width: var(--largeur-texte); margin-inline: auto; }
.doc-page h2 {
  font-size: 1.42rem;
  color: var(--dore-doux);
  margin-block: 2.1rem 0.6rem;
}
.doc-page h2:first-of-type { margin-top: 0.6rem; }
.doc-page p { margin-bottom: 0.95rem; }
.doc-page ul.doc-list {
  margin-bottom: 0.95rem;
  padding-left: 1.2rem;
}
.doc-page ul.doc-list li {
  list-style: disc;
  margin-bottom: 0.35rem;
}
.doc-meta {
  font-size: 0.9rem;
  color: var(--gris-discret);
  font-style: italic;
  margin-bottom: 1.6rem;
}

/* Espace pro */
.pro-block {
  background: var(--carte-fond);
  border: 1px solid var(--bordure-acier);
  border-radius: var(--rayon);
  padding: 1.6rem 1.7rem;
}
.pro-block h3 { font-size: 1.22rem; color: var(--dore-doux); margin-bottom: 0.4rem; }
.pro-block p  { font-size: 0.99rem; }
.pro-block .badge { margin-top: 0.7rem; }

/* Page secrète */
.secret-stage {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.lock-mark {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 1px solid var(--bordure-doree);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.6rem;
  background: var(--carte-fond);
}
.lock-mark .sec-icon { width: 38px; height: 38px; color: var(--dore); }
.secret-stage h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.secret-stage p { max-width: 46ch; }
.secret-sub { font-size: 0.96rem; color: var(--gris-discret); }


/* =====================================================================
   19. PIED DE PAGE
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--bordure-acier);
  background: rgba(3, 7, 18, 0.62);
  padding-block: 3rem 2.2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.34rem;
  color: var(--blanc-casse);
}
.footer-baseline {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dore);
  margin-top: 0.2rem;
}
.footer-roman {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--gris-texte);
}
.footer-roman .badge { align-self: flex-start; }

.footer-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 0.9rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--gris-texte); font-size: 0.95rem; }
.footer-col a:hover { color: var(--dore); }

.footer-copy {
  border-top: 1px solid var(--bordure-acier);
  padding-top: 1.4rem;
  font-size: 0.84rem;
  color: var(--gris-discret);
}


/* =====================================================================
   20. BOUTON RETOUR EN HAUT
   ===================================================================== */
.to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--carte-fond-fort);
  border: 1px solid var(--bordure-doree);
  color: var(--dore);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition),
              background var(--transition);
  z-index: 90;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--bleu-acier); }


/* =====================================================================
   21. ANIMATIONS
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 820ms ease both; }
.hero-content > *:nth-child(1) { animation-delay: 60ms; }
.hero-content > *:nth-child(2) { animation-delay: 140ms; }
.hero-content > *:nth-child(3) { animation-delay: 220ms; }
.hero-content > *:nth-child(4) { animation-delay: 300ms; }
.hero-content > *:nth-child(5) { animation-delay: 380ms; }
.hero-content > *:nth-child(6) { animation-delay: 460ms; }
.hero-media { animation: fadeUp 950ms ease 300ms both; }


/* =====================================================================
   22. RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .author-grid,
  .feature-card { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .feature-card .feature-media { max-width: 320px; margin-inline: auto; }
  .portrait-frame { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 1.01rem; }

  .nav-toggle { display: flex; }

  .header-end {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(3, 7, 18, 0.98);
    border-bottom: 1px solid var(--bordure-acier);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 340ms ease;
  }
  .header-end.is-open { max-height: 460px; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.7rem 0.4rem;
  }
  .site-nav li { border-bottom: 1px solid var(--bordure-acier); }
  .site-nav a { display: block; padding: 1rem 0; font-size: 1.06rem; }
  .site-nav a::after { display: none; }

  .header-cta {
    margin: 0.9rem 1.7rem 1.3rem;
    justify-content: center;
  }

  .card-grid--2,
  .card-grid--3 { grid-template-columns: 1fr; }

  .news-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .news-aside { flex-direction: row; align-items: center; }

  .button-row .button { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 1.2rem; }
  .hero { padding-block: 2.8rem; }
  .fragment { padding: 2rem 1.3rem; }
  .fragment::before { font-size: 3.8rem; }
  .to-top { right: 1rem; bottom: 1rem; }
}


/* =====================================================================
   23. RÉDUCTION DES ANIMATIONS
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .timeline-item.is-encours::before { animation: none; }
}

/* ===================================================================
   Mes réseaux — logos cliquables
   =================================================================== */
.reseaux-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.reseau-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.reseau-logo-rond {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(232, 194, 115, 0.4);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.reseau-logo-rond svg {
  width: 32px;
  height: 32px;
  fill: #E8C273;
  transition: fill .25s ease;
}

.reseau-logo-nom {
  font-size: 0.85rem;
  color: var(--color-text-muted, #A9B0BC);
  transition: color .25s ease;
}

.reseau-logo:hover .reseau-logo-rond,
.reseau-logo:focus-visible .reseau-logo-rond {
  transform: translateY(-4px);
}

/* Couleurs officielles au survol */
.reseau-logo--instagram:hover .reseau-logo-rond,
.reseau-logo--instagram:focus-visible .reseau-logo-rond {
  background: #E4405F;
  border-color: #E4405F;
}
.reseau-logo--instagram:hover .reseau-logo-rond svg,
.reseau-logo--instagram:focus-visible .reseau-logo-rond svg { fill: #FFFFFF; }

.reseau-logo--tiktok:hover .reseau-logo-rond,
.reseau-logo--tiktok:focus-visible .reseau-logo-rond {
  background: #25F4EE;
  border-color: #25F4EE;
}
.reseau-logo--tiktok:hover .reseau-logo-rond svg,
.reseau-logo--tiktok:focus-visible .reseau-logo-rond svg { fill: #07111F; }

.reseau-logo--youtube:hover .reseau-logo-rond,
.reseau-logo--youtube:focus-visible .reseau-logo-rond {
  background: #FF0000;
  border-color: #FF0000;
}
.reseau-logo--youtube:hover .reseau-logo-rond svg,
.reseau-logo--youtube:focus-visible .reseau-logo-rond svg { fill: #FFFFFF; }

.reseau-logo--x:hover .reseau-logo-rond,
.reseau-logo--x:focus-visible .reseau-logo-rond {
  background: #F5F1E8;
  border-color: #F5F1E8;
}
.reseau-logo--x:hover .reseau-logo-rond svg,
.reseau-logo--x:focus-visible .reseau-logo-rond svg { fill: #07111F; }
