@charset "UTF-8";

/* =========================================================
   LE CERCLE DES ROMANCIERS — Feuille de style
   ---------------------------------------------------------
   Palette : crème / encre / bordeaux
   Typo    : Cormorant Garamond (titres) + Lora (corps)
   Esprit  : page de livre, littéraire, minimal, généreux
   ========================================================= */

:root {
  --c-fond: #faf7f2;
  --c-fond-alt: #f3ede3;
  --c-fond-sombre: #1a1814;
  --c-encre: #1a1814;
  --c-encre-doux: #4a443c;
  --c-encre-mute: #8a8278;
  --c-accent: #6b1d1d;
  --c-accent-clair: #9b3d3d;
  --c-trait: #d9d0c1;
  --c-trait-doux: #e8e0d2;

  --f-titre: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-corps: "Lora", Georgia, "Times New Roman", serif;

  --pad-section: clamp(4rem, 9vw, 8rem);
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);

  --max-w: 1180px;
  --max-w-narrow: 720px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-fond);
  color: var(--c-encre);
  font-family: var(--f-corps);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Texture papier très subtile (SVG noise inline) */
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0, transparent 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent-clair); }
ul { padding-left: 1.1rem; }
ol { padding-left: 0; list-style: none; }

::selection { background: var(--c-accent); color: var(--c-fond); }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container.narrow { max-width: var(--max-w-narrow); }
.centered { text-align: center; }
.centered-block { text-align: center; }

/* ---------- TYPOGRAPHIE ---------- */
h1, h2, h3 {
  font-family: var(--f-titre);
  font-weight: 500;
  color: var(--c-encre);
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1.02; font-weight: 500; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; margin-bottom: 2rem; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.25; }
em { font-style: italic; color: var(--c-accent); }
p  { margin: 0 0 1.1rem; text-wrap: pretty; }

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: var(--c-encre);
  margin-bottom: 1.5rem;
}

.eyebrow,
.section-label {
  font-family: var(--f-corps);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 1.75rem;
}
.section-label.centered { text-align: center; }

.petite-mention,
.form-mention,
.phase-mois,
.optionnel {
  font-size: 0.9rem;
  color: var(--c-encre-doux);
  font-style: italic;
}

/* ---------- LETTRINE ---------- */
.lead-lettrine { overflow: hidden; }
.lettrine {
  font-family: var(--f-titre);
  float: left;
  font-size: clamp(3.5rem, 6vw, 4.75rem);
  line-height: 0.85;
  padding: 0.45rem 0.75rem 0 0;
  margin-top: 0.2rem;
  color: var(--c-accent);
  font-weight: 500;
  font-feature-settings: "kern" 1;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-trait);
  background: rgba(250, 247, 242, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 60px; }
.brand {
  font-family: var(--f-titre);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-encre);
  letter-spacing: 0.005em;
}
.brand:hover { color: var(--c-encre); }
.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a {
  color: var(--c-encre-doux);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--c-accent); }
.nav-cta {
  border: 1px solid var(--c-accent);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  color: var(--c-accent) !important;
  transition: all .25s var(--ease);
}
.nav-cta:hover { background: var(--c-accent); color: var(--c-fond) !important; }

@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 13vw, 9.5rem) 0 clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--c-trait);
  overflow: hidden;
}
.hero-ornement {
  position: absolute;
  right: -3vw;
  top: 8%;
  font-family: var(--f-titre);
  font-style: italic;
  font-size: clamp(20rem, 38vw, 38rem);
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
}
.hero-inner { max-width: 880px; position: relative; z-index: 1; }
.hero-title { margin: 0.5rem 0 2rem; }
.hero-sub {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  max-width: 640px;
  color: var(--c-encre-doux);
  margin-bottom: 2.75rem;
}
.hero-meta {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-trait);
  font-family: var(--f-titre);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--c-encre-doux);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.hero-meta .sep { color: var(--c-accent); opacity: 0.6; }

/* ---------- BOUTONS ---------- */
.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.95rem 1.85rem;
  font-family: var(--f-corps);
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-align: center;
  position: relative;
}
.btn-primary {
  background: var(--c-accent);
  color: var(--c-fond);
  border-color: var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-encre);
  border-color: var(--c-encre);
  color: var(--c-fond);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-encre);
  border-color: var(--c-encre);
}
.btn-ghost:hover {
  background: var(--c-encre);
  color: var(--c-fond);
}
.btn-large { padding: 1.15rem 2.1rem; font-size: 1.05rem; }

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--pad-section) 0;
  border-bottom: 1px solid var(--c-trait);
  position: relative;
}
.section:last-of-type { border-bottom: none; }

/* ---------- POUR QUI ---------- */
.prose-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.prose-list li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2.5rem;
  border-bottom: 1px solid var(--c-trait-doux);
  font-size: 1.1rem;
  line-height: 1.55;
}
.prose-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 1.25rem;
  color: var(--c-accent);
  font-weight: 500;
}
.prose-list li:last-child { border-bottom: none; }

/* ---------- PROMESSE ---------- */
.section-promesse { background: var(--c-fond-alt); }

/* ---------- PILIERS ---------- */
.piliers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 3.5rem;
}
.pilier {
  text-align: left;
  padding: 0 0.5rem;
}
.pilier-numero {
  font-family: var(--f-titre);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--c-accent);
  margin: 0 0 0.5rem;
  line-height: 1;
}
.pilier h3 {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--c-trait);
}
.pilier p { color: var(--c-encre-doux); margin: 0; }

/* ---------- PROGRAMME ---------- */
.section-programme { background: var(--c-fond-alt); }
.phases { margin: 3rem 0 0; }
.phase {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--c-trait);
  align-items: baseline;
}
.phase:last-child { border-bottom: none; }
.phase-numero {
  font-family: var(--f-titre);
  font-style: italic;
  font-size: 2.75rem;
  color: var(--c-accent);
  margin: 0;
  line-height: 1;
  letter-spacing: 0.05em;
}
.phase-corps h3 { margin-bottom: 0.5rem; }
.phase-mois {
  font-size: 1rem;
  color: var(--c-encre-doux);
  font-family: var(--f-titre);
  font-style: italic;
}
.phase-corps p { margin: 0; color: var(--c-encre-doux); line-height: 1.6; }

@media (max-width: 540px) {
  .phase { grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.75rem 0; }
  .phase-numero { font-size: 1.9rem; }
}

/* ---------- AUTEUR ---------- */
.auteur-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.auteur-photo { position: sticky; top: 110px; }
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(107, 29, 29, 0.04) 12px 13px),
    var(--c-fond-alt);
  border: 1px solid var(--c-trait);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-encre-mute);
  font-style: italic;
  font-family: var(--f-titre);
  text-align: center;
  font-size: 1.15rem;
}
.auteur-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--c-trait);
}
@media (max-width: 760px) {
  .auteur-grid { grid-template-columns: 1fr; }
  .auteur-photo { position: static; max-width: 280px; margin: 0 auto 2rem; }
}

/* ---------- TARIF ---------- */
.section-tarif {
  background: var(--c-fond-sombre);
  color: var(--c-fond);
  border-bottom: none;
  position: relative;
}
.section-tarif::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.97 0 0 0 0 0.92 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n2)'/></svg>");
  pointer-events: none;
  opacity: 0.7;
}
.section-tarif > * { position: relative; }
.section-tarif h2 { color: var(--c-fond); }
.section-tarif .section-label { color: var(--c-accent-clair); }

.tarif-card {
  max-width: 540px;
  margin: 3rem auto 0;
  padding: 3.5rem 2.5rem 2.75rem;
  background: rgba(250, 247, 242, 0.04);
  border: 1px solid rgba(250, 247, 242, 0.18);
  position: relative;
  text-align: center;
}
.tarif-card::before,
.tarif-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--c-accent-clair);
}
.tarif-card::before {
  top: -1px; left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}
.tarif-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}
.tarif-card-eyebrow {
  font-family: var(--f-corps);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-clair);
  margin: 0 0 2rem;
}
.tarif-prix-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 2rem;
}
.tarif-barre {
  font-family: var(--f-titre);
  font-size: 1.4rem;
  font-style: italic;
  text-decoration: line-through;
  color: rgba(250, 247, 242, 0.45);
}
.tarif-actuel {
  font-family: var(--f-titre);
  font-size: clamp(3.25rem, 7.5vw, 5.25rem);
  font-weight: 500;
  color: var(--c-fond);
  line-height: 1;
  letter-spacing: -0.01em;
}
.tarif-economie {
  font-family: var(--f-titre);
  font-style: italic;
  font-size: 1rem;
  color: var(--c-accent-clair);
  letter-spacing: 0.04em;
}
.tarif-inclus {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  text-align: left;
  font-size: 1rem;
  color: rgba(250, 247, 242, 0.85);
}
.tarif-inclus li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.08);
  position: relative;
}
.tarif-inclus li:last-child { border-bottom: none; }
.tarif-inclus li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--c-accent-clair);
  font-size: 0.85rem;
  top: 0.85rem;
}
.tarif-cta-line { margin: 0 0 1rem; }
.tarif-card .btn-primary { background: var(--c-accent); border-color: var(--c-accent); }
.tarif-card .btn-primary:hover { background: var(--c-fond); color: var(--c-encre); border-color: var(--c-fond); }
.tarif-card .petite-mention { color: rgba(250, 247, 242, 0.55); margin: 0; }

@media (max-width: 540px) {
  .tarif-card { padding: 2.5rem 1.5rem 2rem; }
  .tarif-card .btn { width: 100%; }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--c-trait);
  padding: 1.5rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--f-titre);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--c-encre);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color .2s ease;
}
.faq-item summary:hover { color: var(--c-accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--c-accent);
  transition: transform .25s ease;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "—"; font-size: 1.2rem; }
.faq-item p {
  margin: 1rem 0 0;
  color: var(--c-encre-doux);
}

/* ---------- CONTACT / FORM ---------- */
.section-contact { background: var(--c-fond-alt); }
.contact-form {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--f-corps);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--c-encre-doux);
  letter-spacing: 0.02em;
}
.field input,
.field textarea {
  font-family: var(--f-corps);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--c-fond);
  border: 1px solid var(--c-trait);
  border-radius: 2px;
  color: var(--c-encre);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(107, 29, 29, 0.08);
}
.contact-form .btn { justify-self: start; margin-top: 0.5rem; }
@media (max-width: 540px) {
  .contact-form .btn { width: 100%; justify-self: stretch; }
}
.form-mention { margin: 0; }

.form-success {
  margin-top: 2rem;
  padding: 2rem 2rem;
  background: var(--c-fond);
  border-left: 3px solid var(--c-accent);
  font-family: var(--f-titre);
  font-size: 1.25rem;
  color: var(--c-encre);
}
.form-success p { margin: 0 0 0.5rem; }
.form-success p:last-child { margin: 0; color: var(--c-encre-doux); font-style: italic; font-size: 1rem; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--c-fond-sombre);
  color: rgba(250, 247, 242, 0.7);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner a { color: rgba(250, 247, 242, 0.85); }
.footer-inner a:hover { color: var(--c-fond); }
.footer-inner p { margin: 0; }

/* ---------- ANIMATIONS SCROLL ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
[data-animate].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ACCESSIBILITÉ & PREFS ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* ---------- PRINT ---------- */
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .site-footer, .hero-ornement, .contact-form, .form-success,
  .cta-row, .btn, .nav-cta { display: none !important; }
  .section, .hero { padding: 1.5rem 0; border-bottom: 1px solid #ccc; page-break-inside: avoid; }
  h1, h2, h3 { color: black; }
  em, .section-label, .eyebrow, .lettrine, .pilier-numero, .phase-numero { color: #6b1d1d; }
  a { color: black; text-decoration: underline; }
  .tarif-card { background: white; color: black; border: 1px solid #ccc; }
  .tarif-actuel { color: black; }
}
