/* ==========================================================================
   Porsche Swiss Owners — version blanche
   Fond blanc cassé, texte noir, très grands titres, aucune ombre ni arrondi
   sauf les petits boutons ovales. La couleur vient des photographies.
   ========================================================================== */

:root {
  --fond: #f5f4ef;
  --encre: #0a0a0a;
  --gris: #5b5b57;
  --filet: rgba(10, 10, 10, 0.16);
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(18px, 3.2vw, 56px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.main-content { flex: 1 0 auto; }

/* ── Navigation (en haut de page, ne suit pas le défilement) ── */
.navigation-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 32px;
  padding: 20px var(--marge);
}

.wordmark { font-family: var(--titre); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.nav-links a { font-size: 19px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ── Petits boutons ovales ── */
.pill {
  display: inline-block;
  padding: 7px 20px;
  border: 1px solid var(--encre);
  border-radius: 999px;
  background: transparent;
  font-size: 19px;
  line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pill:hover { background: var(--encre); color: var(--fond); }
.pill-clair { background: #fff; border-color: #fff; color: var(--encre); }
.pill-clair:hover { background: var(--encre); border-color: var(--encre); color: #fff; }

/* ── Accueil : titre, grande photo ── */

.hero-photo { position: relative; margin-top: clamp(8px, 1.5vh, 20px); height: clamp(420px, 88vh, 980px); height: clamp(420px, calc(100svh - 130px), 1000px); }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .pill { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); white-space: nowrap; }

/* ── Temps forts : rangée qui défile ── */
.row-head { display: flex; justify-content: space-between; align-items: center; padding: clamp(56px, 8vw, 120px) var(--marge) 28px; }
.row-title { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.04em; }

.featured-grid {
  display: flex;
  gap: 12px;
  padding: 0 var(--marge);
  overflow-x: auto;
  scrollbar-width: none;
}
.featured-grid::-webkit-scrollbar { display: none; }

.ks-card { flex: 0 0 clamp(270px, 40vw, 620px); display: block; }
.ks-card-image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e6e4dd; }
.ks-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }
.img-back { opacity: 0; }
.ks-card:hover .img-back { opacity: 1; }
.ks-card-content { padding-top: 14px; }
.card-category { display: block; font-size: 16px; color: var(--gris); }
.card-heading { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.card-desc { margin-top: 8px; max-width: 34ch; font-size: 17px; color: var(--gris); }

/* ── Grand texte et présentation ── */
.section { padding: clamp(80px, 12vw, 180px) var(--marge) 0; }

.statement {
  font-size: clamp(30px, 5.4vw, 92px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 17em;
}
.statement-author { margin-top: 24px; font-size: 17px; color: var(--gris); }

.about-text { margin-top: clamp(56px, 8vw, 120px); max-width: 62ch; }
.about-text p { color: #2b2b28; }
.about-text p + p { margin-top: 1.1em; }
.about-text .lead { color: var(--encre); font-size: clamp(28px, 3.4vw, 52px); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 0.7em; }
.about-text .conclusion { color: var(--encre); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.about-text .pill { margin-top: 36px; }

/* ── Pages secondaires ── */
.page-header { padding: clamp(32px, 7vh, 90px) var(--marge) clamp(36px, 6vw, 80px); }
.page-title { font-family: var(--titre); font-weight: 900; font-size: clamp(54px, 12vw, 200px); line-height: 0.92; letter-spacing: -0.045em; }
.page-intro { margin-top: 28px; max-width: 26em; font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; line-height: 1.08; letter-spacing: -0.04em; }
.page-header .pill { margin-top: 28px; }
.page-body { padding: 0 var(--marge) clamp(80px, 12vw, 160px); }

.event-block { padding: clamp(36px, 5vw, 72px) 0; border-top: 1px solid var(--filet); scroll-margin-top: 24px; }
.event-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(32px, 6vw, 100px); align-items: start; margin-bottom: 28px; }
.event-card-date { display: block; font-size: 16px; color: var(--gris); }
.event-title { font-size: clamp(30px, 4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.event-description { max-width: 60ch; color: #2b2b28; }
.event-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e6e4dd; }
.gallery { columns: 3 300px; column-gap: 10px; }
.gallery img { width: 100%; height: auto; background: #e6e4dd; }
.gallery-item { display: block; width: 100%; margin-bottom: 10px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 4vmin; border: 0; background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 10, 10, 0.94); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-out; }

.contact-email { font-size: clamp(24px, 4.4vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; word-break: break-word; }
.contact-email a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-map { margin-top: clamp(48px, 7vw, 96px); }
.contact-map iframe { width: 100%; height: 380px; border: 0; filter: grayscale(1); }

/* ── Pied de page ── */
.ks-footer { margin-top: clamp(80px, 12vw, 180px); padding: 28px var(--marge) 32px; border-top: 1px solid var(--filet); }
.footer-wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; align-items: baseline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 18px; font-size: 15px; color: var(--gris); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) { .event-head { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Page d'accueil : titre et présentation centrés ── */
#about { text-align: center; }
#about .statement,
#about .about-text { margin-left: auto; margin-right: auto; }

/* Photos : pas de glisser-déposer, de sélection ni d'appui long pour enregistrer */
img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.page-credits { margin-top: 22px; max-width: 54em; font-size: 15px; line-height: 1.45; color: var(--gris); }
.page-credits a { text-decoration: underline; text-underline-offset: 3px; }
.page-credits a:hover { color: var(--encre); }


/* Page légale */
.page-title-small { font-size: clamp(32px, 5.4vw, 84px); line-height: 1; }
.legal { max-width: 68ch; }
.legal h2 { margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--filet); font-size: clamp(26px, 3vw, 44px); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 1.6em; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.legal p, .legal li { margin-top: 0.7em; color: #2b2b28; }
.legal ul { margin-top: 0.7em; padding-left: 1.2em; list-style: disc; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Menu, lecteur de photos et adaptation au téléphone ── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.main-navigation { position: relative; z-index: 60; }
.menu-toggle { display: none; }

.lightbox { padding: 64px 4vmin 52px; }
.lightbox img { cursor: default; }
.lightbox-button { position: fixed; z-index: 2; border: 1px solid rgba(245, 244, 239, 0.6); border-radius: 999px; background: transparent; color: #f5f4ef; font: inherit; line-height: 1; cursor: pointer; }
.lightbox-button:hover { background: #f5f4ef; color: #0a0a0a; }
.lightbox-close { top: 16px; right: 16px; padding: 10px 22px; font-size: 17px; }
.lightbox-previous, .lightbox-next { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 30px; }
.lightbox-previous { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: fixed; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 15px; color: rgba(245, 244, 239, 0.7); }

@media (max-width: 700px) {
  body { font-size: 17px; }

  .navigation-wrapper { flex-wrap: nowrap; padding: 14px var(--marge); }
  .wordmark { position: relative; z-index: 2; font-size: 20px; }
  .menu-toggle { position: relative; z-index: 2; display: inline-block; padding: 9px 22px; border: 1px solid var(--encre); border-radius: 999px; background: transparent; color: var(--encre); font: inherit; font-size: 17px; line-height: 1.2; cursor: pointer; }
  .nav-links { position: fixed; inset: 0; z-index: 1; display: none; flex-direction: column; justify-content: center; flex-wrap: nowrap; gap: 4px; padding: 80px var(--marge) 40px; background: var(--fond); }
  .nav-links a { font-size: clamp(40px, 13vw, 68px); font-weight: 500; line-height: 1.08; letter-spacing: -0.05em; }
  .menu-open { overflow: hidden; }
  .menu-open .nav-links { display: flex; }

  .hero-photo { height: 70vh; height: 70svh; min-height: 360px; }
  .hero-photo .pill { bottom: 18px; padding: 10px 20px; font-size: 16px; }
  .pill { padding: 11px 24px; font-size: 18px; }

  .row-head { padding-top: 64px; }
  .ks-card { flex-basis: 78vw; }
  #about .about-text { text-align: left; }

  .gallery { columns: 2 140px; column-gap: 6px; }
  .gallery-item { margin-bottom: 6px; }
  .lightbox-previous, .lightbox-next { display: none; }

  .footer-wrapper { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-nav { flex-direction: column; gap: 2px; }
  .footer-nav a { display: inline-block; padding: 7px 0; font-size: 19px; }
  .footer-bottom { flex-direction: column; }
}
