/* Sylvain Lagrais — sections ajoutées avec l'admin (même esprit que style.css :
   papier, Roboto / Roboto Condensed, traits noirs, rouge #c4202e). */

/* ---------- Titre + paragraphes : option « centré » ---------- */
.constat.is-centered .method-intro { margin: 0 auto; text-align: center; }

/* ---------- Texte + photo ---------- */
.tp {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.tp--right { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.tp--right .tp-photo { order: 2; }
.tp-photo { position: relative; }
.tp-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.tp-photo::after {   /* petit trait rouge, rappel des signaux */
  content: ""; position: absolute; left: 0; bottom: -10px; width: 64px; height: 4px; background: var(--red);
}
.tp--right .tp-photo::after { left: auto; right: 0; }
.tp-text .section-title { margin-bottom: 22px; }
.tp-text p { margin: 16px 0 0; font-size: 19px; font-weight: 300; max-width: 60ch; }
.tp-text .tp-action { margin-top: 30px; }
.tp:not(:has(.tp-photo)) { grid-template-columns: 1fr; }

/* ---------- Citation ---------- */
.quote-section { padding-top: 88px; padding-bottom: 96px; }
.quote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote::before {
  content: "«";
  display: block;
  font-family: var(--font-head); font-weight: 300; font-size: 96px; line-height: .6;
  color: var(--red);
  margin-bottom: 26px;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  font-family: var(--font-head); font-weight: 300;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.22;
  text-transform: uppercase;
}
.quote blockquote p + p { margin-top: 14px; }
.quote figcaption {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px;
  font-size: 17px; font-style: italic; font-weight: 300; color: var(--ink-soft);
}
.quote figcaption::before { content: ""; width: 28px; height: 2px; background: var(--rule); }

/* ---------- Galerie ---------- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.gallery--1 { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery--1 img { aspect-ratio: auto; }
.gallery figcaption {
  margin-top: 10px; padding-top: 10px;
  border-top: 2px solid var(--rule);
  font-size: 16px; color: var(--ink-soft);
}

/* ---------- Bandeau avec un bouton ---------- */
.cta-band { text-align: center; }
.cta-title {
  margin: 0 auto; max-width: 22ch;
  font-family: var(--font-head); font-weight: 300;
  font-size: 50px; line-height: 1.02;
  text-transform: uppercase;
}
.cta-text { margin: 18px auto 0; max-width: 46ch; font-size: 20px; font-weight: 300; color: var(--ink-soft); }
.cta-action { margin: 32px 0 0; }

/* ---------- Colonnes ---------- */
.cols { display: grid; gap: 28px 40px; }
.cols--1 { grid-template-columns: minmax(0, 1fr); max-width: 700px; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { border-top: 2px solid var(--rule); padding-top: 18px; }
.col h3 {
  margin: 0 0 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.15;
  text-transform: uppercase;
}
.col p { margin: 8px 0 0; font-size: 17px; color: var(--ink-soft); }
.col h3 + p { margin-top: 0; }

/* ---------- Vidéo sans chapitres ---------- */
.player--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }

/* ---------- Tablette ---------- */
@media (max-width: 980px) {
  .cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--1 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  .tp, .tp--right { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .tp--right .tp-photo { order: 0; }
  .tp-photo img { aspect-ratio: 4 / 3; }
  .tp-text p { font-size: 18px; }
  .tp-text .btn { width: 100%; }

  .quote-section { padding-top: 60px; padding-bottom: 68px; }
  .quote::before { font-size: 72px; margin-bottom: 18px; }

  .gallery, .gallery--2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .cta-title { font-size: 34px; }
  .cta-text { font-size: 18px; }
  .cta-action .btn { width: 100%; }

  .cols--2, .cols--3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* Texte + photo sans photo : le texte prend toute la largeur, comme « Constat » */
.tp:not(:has(.tp-photo)) { display: block; }
.tp:not(:has(.tp-photo)) .tp-text { max-width: 62ch; }
