/* ================================================================
   Rencontres entre PROS 2026 · Twiza
   Feuille de style unique. Écrite « téléphone d'abord » : les règles
   de base visent le petit écran, les blocs @media élargissent ensuite.

   Sommaire
   1. Polices
   2. Couleurs et mesures (variables)
   3. Base
   4. Utilitaires (sr-only, lien d'évitement, wrap)
   5. Boutons et liens
   6. En-tête (hero) et frise des dates
   7. Sections communes
   8. Carte des rencontres
   9. Galerie
   10. À quoi ressemble une rencontre
   11. Ce que tu y gagnes
   12. Appel final
   13. Pied de page
   (sections dans l'ordre de la page)
   ================================================================ */


/* ---------- 1. Polices (fichiers dans assets/fonts, licence OFL) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/roboto-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/roboto-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/roboto-latin-700-normal.woff2") format("woff2");
}


/* ---------- 2. Couleurs et mesures ---------- */
:root {
  /* Charte Twiza */
  --coral: #F05737;          /* boutons principaux */
  --coral-hover: #D9462A;
  --coral-text: #B93A1C;     /* corail assombri pour les liens dans le texte (contraste 5,7:1) */
  --orange: #F69222;         /* accents sur fond brun uniquement */
  --green: #87AB3D;          /* filets décoratifs */
  --brown: #432E1D;
  --text: #333333;
  --text-muted: #5A5A5A;

  /* Fonds */
  --bg: #FFFFFF;
  --cream: #FCEFD9;
  --line: #E6DCCB;

  /* Mesures */
  --font: "Roboto", Arial, sans-serif;
  --radius: 6px;
  --max: 1120px;
  --gutter: 20px;
  --section-y: clamp(56px, 9vw, 104px);
}


/* ---------- 3. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
iframe { border: 0; }
[hidden] { display: none !important; }
sup { font-size: 0.6em; line-height: 0; }

a { color: var(--coral-text); }
a:hover { color: var(--brown); }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
}
/* Sur fond brun, contour orange pour rester visible */
.hero :focus-visible,
.footer :focus-visible { outline-color: var(--orange); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}


/* ---------- 4. Utilitaires ---------- */
/* Texte lu par les lecteurs d'écran, invisible à l'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: #fff;
  color: var(--brown);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}


/* ---------- 5. Boutons et liens ---------- */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: 19px;          /* 19px gras = « grand texte » : le blanc sur corail reste lisible */
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  font-family: inherit;     /* pour les <button> */
  border: 0;
  cursor: pointer;
}

.btn--primary {
  background: var(--coral);
  color: #fff;
}
.btn--primary:hover { background: var(--coral-hover); color: #fff; }

/* Sur téléphone, les boutons prennent toute la largeur : plus faciles à toucher */
@media (max-width: 559px) {
  .btn { display: block; width: 100%; }
}


/* ---------- 6. En-tête (hero) ---------- */
.hero {
  background: var(--brown);
  color: #fff;
  padding: 0 var(--gutter) 32px;
}

.hero__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 0;
}
.hero__logo { display: inline-block; }
.hero__logo img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);   /* logo en blanc */
}

.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.tag--strong {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--brown);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(34px, 7.6vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  max-width: 34em;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.hero__hint {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.hero__visual { position: relative; }

.hero__photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero__note {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.hero__note a { color: var(--orange); }
.hero__note a:hover { color: #fff; }

/* Frise des dates : un petit calendrier de trois semaines */
.cal {
  background: var(--cream);
  color: var(--brown);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  margin: -36px 12px 0;      /* chevauche le bas de la photo */
  position: relative;
}
.cal__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal__head {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.cal__head--we { color: var(--brown); font-weight: 700; }
.cal__day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
  border-radius: 4px;
  background: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
}
.cal__day small { font-size: 10px; font-weight: 500; }
.cal__day--we { background: var(--orange); }
.cal__day--off { background: transparent; color: #7A6A55; font-weight: 400; }
.cal__day--start,
.cal__day--end { box-shadow: inset 0 0 0 2px var(--brown); }

@media (min-width: 900px) {
  .hero { padding-bottom: 40px; }
  .hero__bar { padding: 24px 0 36px; }
  .hero__logo img { height: 40px; }
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .hero__copy { gap: 26px; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .cal {
    position: absolute;
    left: -32px;
    bottom: -24px;
    margin: 0;
    width: 300px;
  }
  .hero__note { margin-top: 56px; }
}


/* ---------- 7. Sections communes ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--cream { background: var(--cream); }

.section__title {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--brown);
  text-wrap: balance;
  padding-top: 14px;
  border-top: 4px solid var(--green);
  display: inline-block;
}

.section__intro {
  margin-top: 16px;
  font-size: 18px;
}


/* ---------- 8. Carte des rencontres ---------- */
.map-band {
  display: grid;
  gap: 36px;
  align-items: center;
}
.map-band__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.map-band__copy p {
  font-size: 18px;
  max-width: 32em;
}

/* Cadre de la carte Google My Maps intégrée */
.map-frame {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;       /* plus haut sur téléphone : la France entière tient */
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 900px) {
  .map-band { grid-template-columns: 1fr 1fr; gap: 64px; }
  .map-frame { aspect-ratio: 1 / 1; }
}


/* ---------- 9. Galerie ---------- */
/* Téléphone : bande qui défile au doigt, une photo s'aligne à chaque fois */
.gallery {
  display: flex;
  gap: 12px;
  margin: 28px calc(-1 * var(--gutter)) 0;   /* la bande va d'un bord à l'autre de l'écran */
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.gallery__item {
  flex: 0 0 82%;
  margin: 0;
  scroll-snap-align: start;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}

/* Ordinateur : mosaïque de 4 colonnes, la première photo en grand */
@media (min-width: 900px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 16px;
    max-width: var(--max);
    margin: 36px auto 0;
    padding: 0;
    overflow: visible;
  }
  .gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
  }
  .gallery__item--big { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item img {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
  }
}


/* ---------- 10. À quoi ressemble une rencontre ---------- */
.split {
  display: grid;
  gap: 40px;
}
.formats {
  margin-top: 20px;
  max-width: 40em;
}
.formats li {
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.formats li::before {   /* puce corail */
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.formats strong { color: var(--brown); }
.formats__more {
  margin-top: 16px;
  color: var(--text-muted);
}

.facts {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 24px;
  align-self: start;
}
.facts__row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.facts__row:last-child { border-bottom: 0; }
.facts dt {
  font-weight: 700;
  color: var(--brown);
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .facts { margin-top: 60px; }
}


/* ---------- 11. Ce que tu y gagnes ---------- */
.gains {
  margin-top: 36px;
  display: grid;
  gap: 40px;
}
.gain {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gain__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 6px;
}
.gain__img--map {
  object-fit: contain;
  background: #F4F1EC;
  padding: 12px;
}
.gain h3 {
  font-size: 21px;
  line-height: 1.25;
  color: var(--brown);
}

@media (min-width: 760px) {
  .gains { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .gain__img { aspect-ratio: 3 / 2; }
}


/* ---------- 12. Appel final ---------- */
.final__inner {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.final h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  color: var(--brown);
  text-wrap: balance;
}
.final p {
  font-size: 18px;
  max-width: 30em;
}
@media (max-width: 559px) {
  .final__inner { align-items: stretch; }
}


/* ---------- 13. Pied de page ---------- */
.footer {
  background: var(--brown);
  color: #fff;
  padding: 40px var(--gutter) 48px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer__logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer__tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  flex: 1 1 260px;
}
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__contact a {
  color: var(--orange);
  font-weight: 500;
  font-size: 17px;
}
.footer__contact a:hover { color: #fff; }
