/* Stadium de Vitrolles — « béton brut »
   Le site est traité comme le bâtiment : un bloc de béton brut au sommet irrégulier,
   avec de grands triangles discrets en fond. */

:root {
  --beton: #4a4844;         /* fond : béton brut, gris chaud */
  --beton-fonce: #2f2e2b;   /* ombres */
  --beton-clair: #6b6863;   /* joints, filets */
  --poussiere: #d6d2ca;     /* texte courant */
  --blanc: #f2efe9;         /* titres */
  --rouge: #d2232a;         /* triangles, action principale */

  --font: 'Archivo', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, p, figure { margin: 0; padding: 0; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font);
  font-variation-settings: 'wdth' 100;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--poussiere);
  background-color: var(--beton);
  /* Grain du béton + marques horizontales des banches */
  background-image:
    url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22320%22%20height%3D%22320%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.9%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20values%3D%220%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.22%200%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23n)%22%2F%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
  background-attachment: scroll;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blanc); outline-offset: 4px; }

/* ---------- Décor ---------- */

.backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Le haut du bâtiment n'est pas droit : une crête de petits pics irréguliers
   se découpe sur un ciel plus sombre */
.crest {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(1.75rem, 3.2vw, 3rem);
  background: rgba(0, 0, 0, 0.34);
  clip-path: polygon(0 0, 100% 0, 100.0% 88%, 99.5% 54%, 97.4% 84%, 92.9% 68%, 90.4% 83%, 87.2% 68%, 85.0% 86%, 83.1% 64%, 78.7% 82%, 75.1% 71%, 68.7% 86%, 66.1% 57%, 62.3% 85%, 57.7% 69%, 51.3% 85%, 46.7% 67%, 42.5% 87%, 40.6% 63%, 37.3% 84%, 34.1% 57%, 32.2% 84%, 27.2% 66%, 21.3% 82%, 18.4% 54%, 14.5% 83%, 12.1% 66%, 8.4% 88%, 4.2% 63%, 0.0% 87%);
}

/* Grands triangles très légers, comme les ouvertures de la façade vues de près */
.shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}
.shapes .l  { fill: #fff; opacity: 0.03; }
.shapes .d  { fill: #000; opacity: 0.1; }
.shapes .r  { fill: var(--rouge); opacity: 0.1; }
.shapes .r2 { fill: var(--rouge); opacity: 0.22; }

.page { position: relative; z-index: 1; }

/* Pages */
.page {
  max-width: 82rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8.5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Accueil ---------- */

.masthead {
  position: relative;
  container-type: inline-size;
}

.title {
  color: var(--blanc);
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  text-transform: uppercase;
  /* « de Vitrolles » mesure ~9,25 em : le titre remplit exactement la largeur, comme un bloc */
  font-size: calc(100cqi / 9.3);
  line-height: 0.86;
  letter-spacing: -0.015em;
}
.title-line { display: block; }

.photo {
  margin-top: clamp(2rem, 5vw, 4rem);
  position: relative;
  line-height: 0;
  /* Le cadre est « coulé » dans le béton : arête nette, ombre portée basse */
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.6);
}
.photo img {
  display: block;
  width: 100%;
  height: clamp(15rem, 38vw, 30rem);
  object-fit: cover;
  object-position: center 55%;
  filter: grayscale(0.35) contrast(1.05);
}

.columns {
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(0, 22rem);
  justify-content: space-between;
  gap: 2.5rem var(--gutter);
  align-items: start;
}

.prose p + p { margin-top: 1em; }
.prose p { max-width: var(--measure); }

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.read-more {
  font-size: 0.9375rem;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: var(--beton-clair);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.read-more:hover { color: var(--blanc); text-decoration-color: var(--blanc); }

/* Bouton : une dalle rouge avec un angle coupé en triangle */
.button {
  display: inline-block;
  padding: 1rem 2.75rem 1rem 1.5rem;
  background: var(--rouge);
  color: var(--blanc);
  font-weight: 700;
  font-variation-settings: 'wdth' 112;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%);
  transition: background-color 0.2s ease;
}
.button:hover { background-color: #b51b22; }
.button:focus-visible { outline-offset: 6px; }

.copyright {
  margin-top: auto;
  padding-top: clamp(3rem, 6vw, 5rem);
  font-size: 0.75rem;
  color: var(--beton-clair);
  color: color-mix(in srgb, var(--poussiere) 55%, var(--beton));
}

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

.page-contact { justify-content: flex-start; }

.back {
  align-self: flex-start;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--poussiere);
  transition: color 0.2s ease;
}
.back::before {
  content: '';
  width: 0.55rem;
  height: 0.6rem;
  background: currentColor;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.back:hover { color: var(--blanc); }

.subtitle {
  max-width: 14ch;
  color: var(--blanc);
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  text-transform: uppercase;
  font-size: clamp(2rem, 5.6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.page-contact .prose {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 1.125rem;
}

/* La consigne principale ressort en blanc */
.notice { color: var(--blanc); }

.email {
  align-self: flex-start;
  margin-top: 1.25rem;
  color: var(--blanc);
  font-weight: 700;
  font-variation-settings: 'wdth' 112;
  font-size: clamp(1.25rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 3px solid var(--rouge);
  padding-bottom: 0.2em;
  transition: border-color 0.2s ease;
}
.email:hover { border-bottom-color: var(--blanc); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .columns { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
