/* ==========================================================================
   From Tee To Hole — Magazine Golf Lifestyle
   Typographie : wordmark (vectorisé depuis la maquette), Suranna, Gilda Display, Sora
   ========================================================================== */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Suranna"; font-weight: 400; font-display: swap;
  src: url("../fonts/suranna-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gilda Display"; font-weight: 400; font-display: swap;
  src: url("../fonts/gilda-display-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Gilda Display"; font-weight: 400; font-display: swap;
  src: url("../fonts/gilda-display-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #081c29;          /* couleur du titre de couverture */
  --ink-soft: #3d4a54;
  --muted: #6f7880;
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --line: #e2dfd8;
  --gold: #b08d57;
  --green: #2f5d45;

  --f-display: "Gilda Display", "Bodoni Moda", Didot, "Times New Roman", serif;
  --f-tagline: "Suranna", "Gilda Display", Georgia, serif;
  --f-text: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  /* motif alvéolé (balle de golf) repris de la maquette */
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0v16.2L0 32.3v32.4L28 80.8v16.2M28 16.2l28 16.1v32.4L28 80.8' fill='none' stroke='%23e6e3dc' stroke-width='1.2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) var(--hex);
  color: var(--ink);
  font: 300 16px/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark : SVG utilisé en masque pour prendre la couleur du texte */
.wordmark {
  display: block;
  aspect-ratio: 468.35 / 150.26;
  background: currentColor;
  -webkit-mask: url("../img/wordmark.svg") no-repeat center / contain;
          mask: url("../img/wordmark.svg") no-repeat center / contain;
}

.eyebrow {
  font: 400 12px/1.4 var(--f-text);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Masthead ---------- */
.masthead { padding: clamp(28px, 6vw, 64px) 0 0; }
.masthead__top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 14px; margin-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--ink);
}
.masthead__top a { text-decoration: none; }
.masthead__brand { display: block; color: var(--ink); text-decoration: none; }
.masthead__brand .wordmark { width: min(100%, 860px); }
.masthead__sub {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 24px;
  margin-top: clamp(4px, 1vw, 10px);
}
.tagline { font: 400 clamp(24px, 3.4vw, 40px)/1 var(--f-tagline); margin: 0; }
.motto { font: 400 13px/1.4 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }

/* ---------- Numéro en cours ---------- */
.issue {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  padding-block: clamp(40px, 7vw, 96px);
}
.cover-link { display: block; position: relative; perspective: 1600px; text-decoration: none; }
.cover {
  position: relative; width: 100%; aspect-ratio: 612.28 / 858.9;
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(8,28,41,.06), 0 30px 60px -20px rgba(8,28,41,.38), 0 12px 24px -12px rgba(8,28,41,.25);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { /* pli de reliure */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.12) 40%, transparent);
}
.cover-link:hover .cover, .cover-link:focus-visible .cover {
  transform: rotateY(-9deg) translateX(6px);
  box-shadow: 0 1px 0 rgba(8,28,41,.06), 0 40px 70px -24px rgba(8,28,41,.45), 0 16px 30px -14px rgba(8,28,41,.3);
}
.cover-link__hint {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 8px);
  background: var(--ink); color: #fff; font: 400 12px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 18px; opacity: 0; transition: .35s; pointer-events: none; white-space: nowrap;
}
.cover-link:hover .cover-link__hint, .cover-link:focus-visible .cover-link__hint { opacity: 1; transform: translate(-50%, 0); }

.issue__meta .eyebrow { margin: 0 0 18px; }
.issue__title { font: 400 clamp(34px, 4.6vw, 58px)/1.05 var(--f-display); margin: 0 0 14px; letter-spacing: -.005em; }
.issue__subtitle { font: italic 300 16px/1.5 var(--f-text); color: var(--ink-soft); margin: 0 0 34px; }

.toc { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.toc li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toc__rubrique { font: 400 11px/1.9 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.toc__titre { font: 400 21px/1.25 var(--f-display); display: block; }
.toc__accroche { font-size: 14px; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 13px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 17px 26px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: background .25s, color .25s;
  cursor: pointer;
}
.btn:hover { background: var(--green); border-color: var(--green); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Manifeste ---------- */
.manifesto { background: var(--ink); color: #f4f1ea; padding: clamp(56px, 9vw, 120px) 0; }
.manifesto blockquote {
  margin: 0 auto; max-width: 900px; text-align: center;
  font: 400 clamp(24px, 3.3vw, 40px)/1.3 var(--f-display);
}
.manifesto blockquote::before { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin: 0 auto 36px; }
.manifesto cite { display: block; margin-top: 30px; font: 400 12px/1.4 var(--f-text); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: #a9b3ba; }

/* ---------- Archives ---------- */
.archives { padding-block: clamp(56px, 8vw, 100px); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 36px; }
.section-title h2 { font: 400 clamp(28px, 3.2vw, 38px)/1 var(--f-display); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 28px; }
.card { text-decoration: none; display: block; }
.card .cover { transition: transform .4s; }
.card:hover .cover { transform: translateY(-6px); }
.card__label { margin-top: 16px; font: 400 11px/1.4 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card__title { font: 400 19px/1.25 var(--f-display); margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ink); padding: 44px 0 56px; margin-top: 0; background: rgba(251,250,247,.85); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.footer .wordmark { width: 220px; color: var(--ink); }
.footer__tag { font: 400 22px/1.2 var(--f-tagline); margin: 6px 0 0; }
.footer h3 { font: 400 11px/1.4 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.footer p { margin: 0; font-size: 14px; }
.footer a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer a:hover { border-color: var(--ink); }
.footer__legal { margin-top: 40px; font-size: 12px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Page simple (mentions légales) ---------- */
.prose { max-width: 720px; padding-block: 56px 96px; }
.prose h1 { font: 400 clamp(32px, 4vw, 48px)/1.1 var(--f-display); margin: 0 0 32px; }
.prose h2 { font: 400 24px/1.2 var(--f-display); margin: 40px 0 10px; }
.prose p { color: var(--ink-soft); }

/* Squelette pendant le chargement */
.skeleton { background: linear-gradient(100deg, var(--paper-2) 30%, #fff 50%, var(--paper-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .issue { grid-template-columns: 1fr; }
  .cover-link { max-width: 460px; margin: 0 auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .masthead__top .eyebrow:last-child { display: none; }
  .toc li { grid-template-columns: 1fr; gap: 2px; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
