/* Page « À propos » (modèle page-a-propos.php) : chargé sur cette page seulement,
   après style.css et Swiper (custom/functions-about.php). Source : la maquette validée
   (docs/maquettes/a-propos/).
   Charte du thème : Playfair Display gras pour les titres, Open Sans pour le texte,
   encre #1f2624, bleu #3a478e, gris #f6f6f6, rayon 10 px.
   Page sobre : beaucoup de blanc, un surtitre au-dessus de chaque titre, textes justifiés
   sur bureau. Aucune animation d'apparition. La frise des dates réutilise le slider de cartes du thème (.slider + Swiper).
   Tailles en multiples de 5 px. */

.about {
  --ink: #1f2624;
  --blue: #3a478e;
  --blue-dark: #2e3875;
  --grey: #f6f6f6;
  --muted: #686f8c;
  --line: rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.about h2 {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.3;
  margin: 0 0 25px;
  text-wrap: balance;
}

.about p { margin: 0 0 20px; text-align: justify; hyphens: auto; }
.about p:last-child { margin-bottom: 0; }
.about a { color: var(--blue); text-underline-offset: 3px; }
.about img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 10px; }
.about picture { display: block; height: 100%; }
.about [lang="ja"] { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }

/* surtitre : quelques mots en capitales grasses, au bleu du site */
.about .about-eyebrow {
  margin: 0 0 15px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: left;
  hyphens: manual;
}

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

/* ------------------------------------------------------------ boutons */
.about .about-btn {
  display: inline-block;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 10px 40px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.about .about-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* bouton secondaire : même forme, en contour */
.about .about-btn--line { background: transparent; color: var(--blue); }
.about .about-btn--line:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.about-btn:focus-visible,
.about a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 35px; }
.about-actions--center { justify-content: center; }

/* ------------------------------------------------------------ rythme */
.about > section { margin-top: 180px; }

/* ------------------------------------------------------------ hero */
.about-hero { text-align: center; }

.about-hero__title {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  font-size: clamp(35px, 5.2vw, 70px);
  line-height: 1.15;
  max-width: 1000px;
  margin: 0 auto;
  text-wrap: balance;
}

.about-hero__title span { display: block; }

.about .about-hero__intro {
  font-size: 18px;
  line-height: 1.7;
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  hyphens: manual;
}

.about-hero__figure { margin: 70px 0 0; }
.about-hero__figure picture { aspect-ratio: 2 / 1; max-height: 620px; }

/* ------------------------------------------------------------ qui sommes-nous */
.about-letter {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 100px;
  align-items: center;
}

.about-letter__photos { margin: 0; }
.about-letter__portrait { aspect-ratio: 4 / 5; }
.about-letter__photos figcaption { margin-top: 10px; font-size: 13px; line-height: 1.6; font-style: italic; text-align: center; color: var(--muted); }
.about-letter--reverse { grid-template-columns: 7fr 5fr; }
.about > .about-letter--reverse { margin-top: 120px; }

/* ------------------------------------------------------------ les dates : le slider de cartes du thème */
.about-dates h2 { margin-bottom: 20px; }

/* la section .slider du thème coupe ce qui dépasse : on la laisse aller jusqu'aux bords du contenu */
.about-dates .slider { margin-inline: -20px; }

.about-dates .swiper { padding-block: 25px; }

/* le fond, le filet, l'ombre et le survol viennent de .slider .card-container (thème) */
.about-date {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
}

.about-date__year {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  font-size: 55px;
  line-height: 1.1;
}

.about-date__where { margin-top: 5px; font-size: 15px; color: var(--blue); }
.about .about-date__what { margin: auto 0 0; padding-top: 30px; font-size: 15px; line-height: 1.7; text-align: left; hyphens: manual; }

/* la dernière date en date : carte au bleu du site */
.about-dates .swiper-slide.is-now .card-container { background: var(--blue); border-color: var(--blue); color: #fff; }
.is-now .about-date__where { color: rgba(255, 255, 255, 0.8); }

/* à venir : carte blanche en pointillé, année grisée */
.about-dates .swiper-slide.is-next .card-container { background: #fff; border: 1px dashed #b9bccb; box-shadow: none; }
.is-next .about-date__year { color: #b9bccb; }
.is-next .about-date__where { color: var(--muted); }

/* ------------------------------------------------------------ la boutique */
/* le pendant exact du bloc des tissus : deux photos d'un côté, le texte de l'autre */
.about-shop { display: grid; grid-template-columns: 7fr 5fr; gap: 100px; align-items: center; }
.about-shop__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-shop__photos picture { aspect-ratio: 2 / 3; }

/* adresse et horaires : deux lignes simples, chacune avec son icône
   (Hugeicons en fichiers locaux, recolorées au bleu du site par filtre, comme dans le tunnel d'achat) */
.about-shop__facts { list-style: none; margin: 25px 0 0; padding: 0; }
.about-shop__facts li { display: flex; align-items: flex-start; gap: 15px; line-height: 1.6; }
.about-shop__facts li + li { margin-top: 10px; }

.about .about-ico {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 0;
  filter: brightness(0) saturate(100%) invert(24%) sepia(58%) saturate(1015%) hue-rotate(202deg) brightness(91%) contrast(89%);
}

.about .about-shop__facts a { color: var(--ink); text-decoration: none; }
.about .about-shop__facts a:hover { color: var(--blue); text-decoration: underline; }

/* boutique et tissus : deux boutons de même largeur, côte à côte */
.about-shop .about-actions .about-btn,
.about-fabrics .about-actions .about-btn { flex: 1 1 auto; padding-inline: 20px; }
.about-shop .about-actions,
.about-fabrics .about-actions { align-items: stretch; }

/* ------------------------------------------------------------ les tissus */
.about-fabrics { display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: center; }
.about-fabrics__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-fabrics__photos picture { aspect-ratio: 2 / 3; }

/* ------------------------------------------------------------ vos avis : un carrousel, un avis à la fois */
.about-quotes .slider { max-width: 1000px; margin-inline: auto; }
/* toutes les diapositives ont la hauteur de l'avis le plus long : la page ne bouge pas quand l'avis change */
.about-quotes .swiper-slide.about-quote { display: flex; flex-direction: column; justify-content: center; height: auto; margin: 0; text-align: center; }

.about-quote blockquote {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  font-size: clamp(25px, 2.8vw, 35px);
  line-height: 1.4;
  margin: 0 0 25px;
  text-wrap: balance;
}

.about-quote figcaption { color: var(--muted); font-size: 15px; }
.about-quote cite { font-style: normal; color: var(--ink); }
.about-quotes .slider-nav { justify-content: center; margin-top: 35px; }

/* ------------------------------------------------------------ ateliers, envois */
.about-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* carte : la photo en haut, le texte sur fond gris, le bouton calé en bas */
.about-card {
  display: flex;
  flex-direction: column;
  background: var(--grey);
  border-radius: 10px;
  overflow: hidden;
}

.about-card__image { position: relative; aspect-ratio: 3 / 2; }
.about-card__image picture { position: absolute; inset: 0; }
.about-card img { border-radius: 0; object-position: var(--pos, center); filter: var(--tone, none); }
.about-card__body { display: flex; flex-direction: column; flex: 1; padding: 35px; }
.about-card h2 { font-size: 25px; margin-bottom: 15px; }
.about .about-card p:not(.about-eyebrow) { font-size: 15px; text-align: left; hyphens: manual; }
.about-card .about-actions { margin-top: auto; padding-top: 25px; }
.about .about-card .about-btn { width: 100%; padding-inline: 20px; }

/* ------------------------------------------------------------ questions : la FAQ des catégories
   Balisage et styles du thème (.section-faq dans style.css, toggleExpanded() dans global.js).
   Ici, seulement ce que les règles de la page changeraient sinon. */
.about-faq { max-width: 800px; margin-inline: auto; }
.about .section-faq .faq-item .question h2 { margin: 0; text-wrap: wrap; }
.about .section-faq .faq-text-description p { text-align: center; hyphens: manual; }
.about .section-faq .faq-item .question:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 5px; }

/* ------------------------------------------------------------ CTA final : photo en noir et blanc sous un voile bleu */
.about-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 80px 30px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.about-cta picture { position: absolute; inset: 0; }
.about-cta img { border-radius: 0; filter: grayscale(1) contrast(1.1); }
.about-cta::after { content: ""; position: absolute; inset: 0; background: rgba(58, 71, 142, 0.8); }

.about-cta__content { position: relative; z-index: 1; max-width: 1000px; }
.about-cta h2 { font-size: clamp(35px, 4.6vw, 60px); margin-bottom: 20px; color: #fff; }
.about .about-cta p { font-size: 18px; max-width: 620px; margin-inline: auto; text-align: center; hyphens: manual; }

.about .about-cta .about-btn { background: #fff; border-color: #fff; color: var(--blue); }
.about .about-cta .about-btn:hover { background: var(--grey); border-color: var(--grey); }
.about .about-cta .about-btn--line { background: transparent; color: #fff; }
.about .about-cta .about-btn--line:hover { background: #fff; color: var(--blue); }

/* ------------------------------------------------------------ tablette en paysage et petits écrans */
@media screen and (max-width: 1100px) {
  .about-letter,
  .about-letter--reverse { grid-template-columns: 1fr 1fr; gap: 50px; }

  /* boutique et tissus : les deux photos côte à côte sur toute la largeur, le texte dessous */
  .about-shop,
  .about-fabrics { grid-template-columns: 1fr; gap: 40px; }
  .about-shop__photos picture,
  .about-fabrics__photos picture { aspect-ratio: 4 / 3; }
  .about-fabrics__photos { order: -1; }

  /* trois cartes côte à côte seraient étriquées : une carte par ligne, la photo à gauche */
  .about-next { grid-template-columns: 1fr; }
  .about-card { flex-direction: row; }
  .about-card__image { flex: 0 0 40%; aspect-ratio: auto; min-height: 260px; }
  .about .about-card .about-btn { width: auto; padding-inline: 40px; }
}

/* ------------------------------------------------------------ mobile */
@media screen and (max-width: 839px) {
  .about > section { margin-top: 100px; }
  .about p { text-align: left; hyphens: manual; }

  .about-letter,
  .about-letter--reverse,
  .about-shop,
  .about-fabrics { grid-template-columns: 1fr; gap: 35px; }

  .about .about-hero__intro { margin-top: 20px; }
  .about-hero__title span { display: inline; }
  .about-hero__figure { margin-top: 45px; }
  .about-hero__figure picture { aspect-ratio: 4 / 3; }

  .about-letter__portrait { aspect-ratio: 4 / 3; }
  .about-letter:not(.about-letter--reverse) .about-letter__text { order: -1; }
  .about > .about-letter--reverse { margin-top: 70px; }

  .about-date { min-height: 260px; padding: 25px; }
  .about-date__year { font-size: 45px; }

  .about-shop__photos { gap: 15px; }

  .about-fabrics__photos { gap: 15px; }

  .about-cta { min-height: 480px; padding: 60px 20px; }

  .about-actions .about-btn { width: 100%; }
  .about .about-card .about-btn { width: auto; }
}

/* ------------------------------------------------------------ téléphone */
@media screen and (max-width: 600px) {
  .about-letter__portrait { aspect-ratio: 4 / 5; }
  .about-shop__photos picture,
  .about-fabrics__photos picture { aspect-ratio: 3 / 4; }

  .about-card { flex-direction: column; }
  .about-card__image { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
  .about-card__body { padding: 30px 25px; }
  .about .about-card .about-btn { width: 100%; padding-inline: 20px; }
}
