/* Site Véronique Vallery · feuille de style commune
   Palette et typographie reprises du prototype « Portrait interactif ». */

:root {
  --ink: #1c1b19;
  --muted: #6b6760;
  --faint: #8a857c;
  --line: #e6e2dc;
  --accent: #a8622e;
  --accent-dark: #8f5227;
  --bg: #ffffff;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.pad { padding-left: 64px; padding-right: 64px; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); }
.brand a:hover { color: var(--ink); }
.nav { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a.on { color: var(--ink); }
.nav a:hover { color: var(--ink); }
.pill { display: inline-block; background: var(--accent); color: #ffffff !important; padding: 12px 22px; border-radius: 999px; }
.pill:hover { background: var(--accent-dark); }
.btn { display: inline-block; background: var(--accent); color: #ffffff; padding: 16px 28px; font-weight: 500; font-size: 16px; border-radius: 999px; }
.btn:hover { background: var(--accent-dark); color: #ffffff; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* Page d'accueil : deux portes autour de la photo */
.home {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 480px minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 40px;
}
.door { display: flex; flex-direction: column; gap: 14px; max-width: 380px; border-radius: 4px; }
.door:focus-visible { outline: 2px solid var(--accent); outline-offset: 12px; }
.door-left { justify-self: end; text-align: right; align-items: flex-end; }
.door-right { justify-self: start; text-align: left; align-items: flex-start; }
.door h2 { margin: 0; font-family: var(--serif); font-size: 52px; line-height: 1.02; font-weight: 400; color: var(--ink); transition: color 0.2s ease; }
.door h2 span { display: block; }
.door:hover h2 { color: var(--accent); }
.door p { margin: 0; color: var(--muted); max-width: 340px; }
.go { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.door .go { margin-top: 6px; }
.go svg { transition: transform 0.2s ease; flex-shrink: 0; }
.door-right:hover .arr-r { transform: translateX(4px); }
.door-left:hover .arr-l { transform: translateX(-4px); }
.door-left .arr-r { display: none; }
.figure { display: flex; flex-direction: column; gap: 18px; }
.photo { position: relative; aspect-ratio: 2 / 3; background: #ffffff; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.caption { margin: 0; text-align: center; color: var(--muted); }
.home-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}
.home-foot a { color: var(--muted); }

/* Pages d'entrée : portrait interactif */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 480px minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
  padding-top: 16px;
  padding-bottom: 72px;
}
.hero-text { display: flex; flex-direction: column; gap: 22px; padding-top: 48px; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 3vw, 54px); line-height: 1.02; font-weight: 400; }
.hero h1 span { display: block; }
.lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 380px; }
.hint { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--faint); margin-top: 8px; }
.connector { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.photo-col { width: 100%; }
.dot {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0;
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.dot span { position: absolute; border-radius: 50%; }
.dot .pulse { width: 14px; height: 14px; background: var(--accent); animation: pulse 2.2s ease-out infinite; }
.dot .core { width: 14px; height: 14px; background: var(--accent); box-shadow: 0 0 0 3px #ffffff; }
.dot .ring { width: 30px; height: 30px; border: 2px solid var(--accent); opacity: 0; transition: opacity 0.2s ease; }
.dot.on .ring { opacity: 1; }
.dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot .pulse { animation: none; opacity: 0; } }
.words { align-self: center; display: flex; flex-direction: column; max-width: 400px; }
.word { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.word:last-child { border-bottom: 1px solid var(--line); }
.word button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 14px 0; border: 0;
  background: transparent; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 30px; color: var(--ink); font-weight: 400;
}
.word button i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0; flex-shrink: 0; transition: opacity 0.2s ease; }
.word.on button { font-weight: 500; }
.word.on button i { opacity: 1; }
.word p { display: none; margin: 0; color: var(--muted); padding: 0 0 22px 24px; }
.word.on p { display: block; }
.word .chute { font-size: 18px; margin: 0 0 10px; }
.words-title { margin: 0 0 14px; font-family: var(--serif); font-size: 30px; line-height: 1.1; font-weight: 400; }

/* Page Parcours : le récit à gauche, les références à droite */
.story { gap: 16px; }
.story h1 { margin-bottom: 6px; }
.story p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 420px; }
.story .hint { margin-top: 12px; }
.note { margin: 0; max-width: 720px; font-size: 14px; line-height: 1.5; color: var(--faint); border-left: 2px solid var(--line); padding-left: 14px; }

/* Contact et pied de page */
.contact { display: flex; flex-direction: column; gap: 24px; padding-top: 56px; padding-bottom: 40px; border-top: 1px solid var(--line); align-items: flex-start; }
.contact h2 { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.1; font-weight: 400; max-width: 800px; }
.contact-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.contact-row .tel { color: var(--muted); }
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; width: 100%;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }

/* Pages de texte (parcours, mentions légales) */
.prose { max-width: 720px; padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; }
.prose h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 3vw, 54px); line-height: 1.02; font-weight: 400; }
.prose h2 { margin: 16px 0 0; font-family: var(--serif); font-size: 30px; line-height: 1.1; font-weight: 400; }
.prose p { margin: 0; font-size: 18px; color: var(--muted); }
.prose .label { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--accent); }
.chute { display: block; margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--accent); }
.prose .note { font-size: 14px; color: var(--faint); border-left: 2px solid var(--line); padding-left: 14px; }

/* Téléphone et petites tablettes */
@media (max-width: 999px) {
  .pad { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 16px; }
  .nav a:not(.pill) { display: none; }
  .home, .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .figure, .photo-col { max-width: 400px; margin: 0 auto; width: 100%; }
  .figure { order: 1; }
  .door-right { order: 2; }
  .door-left { order: 3; justify-self: start; text-align: left; align-items: flex-start; }
  .door-left .arr-l { display: none; }
  .door-left .arr-r { display: inline; }
  .door h2 { font-size: 40px; }
  .hero-text { padding-top: 8px; }
  .hero h1 { font-size: 40px; }
  .words { align-self: start; max-width: none; }
  .home-foot { flex-direction: column; align-items: flex-start; }
}

/* Page FAQ : questions dépliables, même dessin que la liste des mots */
.faq { max-width: 760px; }
.faq h2 { margin-top: 24px; }
.faq .faq-intro { margin-top: -14px; font-size: 15px; color: var(--faint); }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 16px 0; font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0; flex-shrink: 0; transition: opacity 0.2s ease; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-list details[open] summary { font-weight: 500; }
.faq-list details[open] summary::before { opacity: 1; }
.faq-list details p { margin: 0; padding: 0 0 18px 24px; font-size: 17px; color: var(--muted); }
.faq-list details p:last-child { padding-bottom: 22px; }
.faq-list details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 999px) {
  .faq-list summary { font-size: 21px; }
}
