/* Biographie Sonore — « Confidences »
   Feuille de style unique, sans dépendance.
   Identité reprise du site d'origine : bordeaux #651814, gris lin #DEDAD6. */

@font-face {
  font-family: "Questrial";
  src: url("../fonts/questrial.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bordeaux: #651814;
  --bordeaux-fonce: #4a100d;
  --lin: #dedad6;
  --papier: #f6f4f2;
  --blanc: #ffffff;
  --encre: #2a2220;
  --gris: #675c58;

  --titre: "Questrial", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --texte: "Newsreader", Georgia, "Times New Roman", serif;

  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --large: 72rem;
  --lecture: 40rem;
  --espace: clamp(3rem, 8vw, 6rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.7;
  font-optical-sizing: auto;
}

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

a { color: var(--bordeaux); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 400;
  color: var(--bordeaux);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--blanc); color: var(--bordeaux); padding: 0.6rem 1rem;
  font-family: var(--titre);
}
.lien-evitement:focus { top: 1rem; }

/* ---------- Mise en page ---------- */

.conteneur {
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.lecture { max-width: var(--lecture); }

.section { padding-block: var(--espace); }
.section--lin { background: var(--lin); }
/* Deux sections claires consécutives : pas d'espace doublé entre elles.
   Une section à fond lin garde toujours son espace intérieur haut et bas. */
.section:not(.section--lin) + .section:not(.section--lin) { padding-top: 0; }

.deux-colonnes {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .deux-colonnes { grid-template-columns: 1fr 1fr; }
  .deux-colonnes--inverse > :first-child { order: 2; }
  .deux-colonnes--texte-large { grid-template-columns: 1.3fr 1fr; }
  .deux-colonnes--haut { align-items: start; }
}

/* Le double filet du logo « Confidences » */
.filet {
  display: block;
  width: min(14rem, 60%);
  height: 0.5rem;
  border-block: 1px solid currentColor;
  margin: 1.4rem 0 0;
  opacity: 0.8;
}
.centre .filet { margin-inline: auto; }
.centre { text-align: center; }

/* ---------- En-tête ---------- */

.entete {
  background: var(--bordeaux);
  color: var(--lin);
  position: sticky;
  top: 0;
  z-index: 50;
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.entete__logo { flex: none; }
.entete__logo img { width: 150px; height: auto; }

.menu-bouton {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid rgba(222, 218, 214, 0.5);
  color: var(--lin);
  font: 1rem var(--titre);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.menu-bouton__icone,
.menu-bouton__icone::before,
.menu-bouton__icone::after {
  display: block; width: 1.1rem; height: 1px; background: currentColor; position: relative;
}
.menu-bouton__icone::before,
.menu-bouton__icone::after { content: ""; position: absolute; left: 0; }
.menu-bouton__icone::before { top: -5px; }
.menu-bouton__icone::after { top: 5px; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 2.2vw, 2rem);
}
.nav a {
  color: var(--lin);
  text-decoration: none;
  font-family: var(--titre);
  font-size: 1.02rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { color: var(--blanc); border-bottom-color: var(--blanc); }

/* Menu mobile : le bouton n'apparaît que si le JavaScript est actif */
@media (max-width: 47.99rem) {
  .js .menu-bouton { display: inline-flex; }
  .js .nav { display: none; width: 100%; }
  .js .entete__barre { flex-wrap: wrap; }
  .js .entete.est-ouvert .nav { display: block; padding-bottom: 1rem; }
  .nav ul { flex-direction: column; }
  .nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid rgba(222, 218, 214, 0.2); }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.6); }
  .no-js .entete__barre { flex-wrap: wrap; padding-block: 0.75rem; }
  .no-js .nav ul { flex-direction: row; }
  .no-js .nav a { border: 0; padding: 0.2rem 0; }
}

/* ---------- Héros ---------- */

.heros__image {
  width: 100%;
  aspect-ratio: 2.6 / 1;
  min-height: 13rem;
  max-height: 34rem;
  object-fit: cover;
  object-position: center;
  background: var(--lin);
}
.heros__bandeau {
  background: var(--bordeaux);
  color: var(--lin);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.heros__bandeau h1 { color: var(--blanc); margin-bottom: 0.2em; }
.heros__avant {
  font-family: var(--titre);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  margin: 0 0 0.6rem;
}
.heros__apres {
  font-family: var(--titre);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  margin: 0;
}

/* Bandeau titre des pages intérieures */
.titre-page {
  background: var(--bordeaux);
  color: var(--lin);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.titre-page h1 { color: var(--blanc); margin: 0; }
.titre-page__sous {
  font-family: var(--titre);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  margin: 0.4rem 0 0;
}

/* Variante avec photographie (page contact) */
.titre-page--photo {
  position: relative;
  isolation: isolate;
  min-height: clamp(14rem, 40vw, 26rem);
  display: flex;
  align-items: flex-end;
}
.titre-page--photo img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
}
.titre-page--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(74, 16, 13, 0.85), rgba(74, 16, 13, 0.1) 70%);
}

/* ---------- Accroche « L'histoire d'une vie » ---------- */

.accroche { padding-block: var(--espace) 0; }
.accroche h2 { margin-bottom: 0.15em; }
.accroche__sous {
  font-family: var(--titre);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  color: var(--gris);
  margin: 0;
}

/* ---------- Photographies d'album : coins photo ---------- */

.photo {
  margin: 0;
  position: relative;
  background: var(--blanc);
  padding: clamp(0.5rem, 1.2vw, 0.85rem);
  box-shadow: 0 1px 2px rgba(42, 34, 32, 0.12), 0 8px 24px -12px rgba(42, 34, 32, 0.35);
}
.photo::after {
  --c: var(--encre);
  --t: clamp(1.4rem, 3vw, 2rem);
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--c) 50%, transparent 50%) top left / var(--t) var(--t) no-repeat,
    linear-gradient(225deg, var(--c) 50%, transparent 50%) top right / var(--t) var(--t) no-repeat,
    linear-gradient(45deg, var(--c) 50%, transparent 50%) bottom left / var(--t) var(--t) no-repeat,
    linear-gradient(315deg, var(--c) 50%, transparent 50%) bottom right / var(--t) var(--t) no-repeat;
  opacity: 0.88;
}
.photo img { width: 100%; }
.photo--bordeaux::after { --c: var(--bordeaux); }

/* Photos de famille + légende */
.souvenirs {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 44rem) {
  .souvenirs { grid-template-columns: 1fr 1fr; }
}
.souvenir .photo { margin-bottom: 1.4rem; }
.souvenir p { max-width: 34rem; }

/* ---------- Le disque : extrait sonore ---------- */

.ecoute {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.4rem;
  align-items: center;
  background: var(--bordeaux);
  color: var(--lin);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.ecoute__disque {
  position: relative;
  width: clamp(5.5rem, 16vw, 7.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(222, 218, 214, 0.35), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.ecoute__disque img { width: 100%; height: 100%; object-fit: cover; }
.ecoute__disque::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--bordeaux) 0 9%, rgba(255, 255, 255, 0.7) 9.5% 11%, transparent 11.5% 100%),
    repeating-radial-gradient(circle, transparent 0 3px, rgba(255, 255, 255, 0.06) 3px 4px);
}
.ecoute__legende {
  font-family: var(--titre);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.35;
  margin: 0;
}
.ecoute__legende small {
  display: block;
  font-size: 0.85em;
  opacity: 0.8;
  margin-top: 0.2rem;
}
.ecoute audio {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 3rem;
  border-radius: 0;
}
.ecoute--sans-disque { grid-template-columns: 1fr; }

/* ---------- Étapes (page Comment ?) ---------- */

.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: etape;
}
.etape {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(101, 24, 20, 0.25);
}
.etape:last-child { border-bottom: 1px solid rgba(101, 24, 20, 0.25); }
.etape h3::before {
  content: counter(etape) ".";
  display: inline-block;
  min-width: 1.6em;
  color: var(--gris);
}
@media (min-width: 52rem) {
  .etape { grid-template-columns: 16rem 1fr; }
  .etape h3 { margin: 0; }
}
.etape__images {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}
.etape__images .photo { width: min(14rem, 100%); }

/* ---------- Galerie (album) ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.galerie .photo:first-child { grid-column: 1 / -1; }
@media (min-width: 52rem) {
  .galerie { grid-template-columns: repeat(6, 1fr); }
  .galerie .photo:first-child { grid-column: span 3; grid-row: span 2; }
  .galerie .photo { grid-column: span 3; }
  .galerie .photo:nth-child(n + 2) { grid-column: span 3; }
  .galerie .photo:nth-child(n + 4) { grid-column: span 2; }
  .galerie .photo img { height: 100%; object-fit: cover; }
}

.coffret-duo {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}
@media (min-width: 44rem) {
  .coffret-duo { grid-template-columns: 1fr 1fr; }
}
.pleine-largeur { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- À propos ---------- */

.portrait { max-width: 22rem; }
.liens-pro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}
.bouton {
  display: inline-block;
  background: var(--bordeaux);
  color: var(--blanc);
  font-family: var(--titre);
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--bordeaux);
  line-height: 1.2;
}
.bouton:hover { background: var(--bordeaux-fonce); }
.bouton--clair { background: transparent; color: var(--bordeaux); }
.bouton--clair:hover { background: var(--bordeaux); color: var(--blanc); }
.imdb img { width: 3.5rem; height: 3.5rem; }

.citation {
  margin: 0;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 44rem) {
  .citation { grid-template-columns: 11rem 1fr; }
}
.citation img { width: 11rem; }
.citation blockquote {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  line-height: 1.55;
  color: var(--bordeaux-fonce);
}

/* ---------- Tarifs ---------- */

.prix {
  font-family: var(--titre);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  color: var(--encre);
  margin: 0 0 1.5rem;
}
.prix strong { font-weight: 400; color: var(--bordeaux); white-space: nowrap; }
.liste-tirets { list-style: none; padding: 0; margin: 0 0 1.1em; }
.liste-tirets li { padding-left: 1.2em; text-indent: -1.2em; }
.liste-tirets li::before { content: "– "; }
.encart {
  background: var(--blanc);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 3px solid var(--bordeaux);
}

/* ---------- Contact ---------- */

.coordonnees {
  font-family: var(--titre);
}
.telephone {
  display: inline-block;
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  text-decoration: none;
  margin: 0.2rem 0 1.25rem;
  white-space: nowrap;
}
.formulaire { display: grid; gap: 1.1rem; }
.formulaire label { display: block; font-family: var(--titre); margin-bottom: 0.35rem; }
.formulaire input,
.formulaire textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--blanc);
  border: 1px solid #b9b0ab;
  padding: 0.75rem 0.9rem;
  border-radius: 0;
}
.formulaire input:focus,
.formulaire textarea:focus { outline: 2px solid var(--bordeaux); outline-offset: 0; border-color: var(--bordeaux); }
.formulaire textarea { min-height: 10rem; resize: vertical; }
.formulaire button { justify-self: start; cursor: pointer; font-size: 1.05rem; }
.formulaire__note { margin: 1rem 0 0; font-size: .9rem; }

/* ---------- Navigation entre pages ---------- */

.suite {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(101, 24, 20, 0.25);
  font-family: var(--titre);
}
.suite a { text-decoration: none; font-size: 1.1rem; }
.suite a:hover { text-decoration: underline; }
.suite__suivante { margin-left: auto; text-align: right; }

/* ---------- Pied de page ---------- */

.pied {
  background: var(--bordeaux-fonce);
  color: var(--lin);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  font-size: 0.98rem;
}
.pied a { color: var(--lin); }
.pied__grille {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .pied__grille { grid-template-columns: auto 1fr 1fr; gap: 3rem; }
}
.pied__logo img { width: 170px; }
.pied ul { list-style: none; margin: 0; padding: 0; font-family: var(--titre); }
.pied li + li { margin-top: 0.35rem; }
.pied address { font-style: normal; }
.pied address p { margin-bottom: 0.9rem; }
.pied__copyright {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(222, 218, 214, 0.2);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- Texte légal ---------- */

.texte-legal h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin-top: 2.2em; }
.texte-legal h2:first-child { margin-top: 0; }

@media print {
  .entete, .pied, .suite, .menu-bouton { display: none; }
  body { background: #fff; }
}
