/* ==========================================================
   Octobre Rose 2026 — Programme & exposantes
   Week-end Santé & Bien-être · Saint-Marcel-sur-Aude
   ========================================================== */

:root {
  color-scheme: light;

  --fond: #FDF3F4;
  --bordeaux: #A91F50;
  --rose: #CC718D;
  --pastel: #F6D7DF;
  --texte: #222222;
  --texte-doux: #5B4C51;
  --blanc: #FFFFFF;
  --ligne: #EBCBD4;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Nothing You Could Do", "Segoe Script", cursive;

  --gouttiere: 1.5rem;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: max(var(--gouttiere), env(safe-area-inset-left));
}

section[id] {
  scroll-margin-top: 1rem;
}

/* ---------- En-tête ---------- */

.hero {
  overflow: hidden;
}

.hero__inner {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero__ribbon {
  position: absolute;
  top: 0.5rem;
  right: -2.25rem;
  width: 9.5rem;
  height: auto;
  pointer-events: none;
}

.hero__ribbon path {
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.7;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.7rem 0.25rem;
  background: var(--pastel);
  border-radius: 3px;
  color: var(--bordeaux);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  position: relative;
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 11.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero__title em {
  display: block;
  color: var(--bordeaux);
  font-style: normal;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 0.9rem;
  color: var(--texte-doux);
  font-size: 1rem;
  line-height: 1.55;
}

/* Infos pratiques */
.infos {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
}

.infos li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.infos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bordeaux);
}

.infos__main {
  font-weight: 600;
}

.infos__main,
.infos__sub,
.nowrap {
  white-space: nowrap;
}

.infos__sub {
  display: block;
  color: var(--texte-doux);
}

/* Navigation rapide */
.nav-rapide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.nav-rapide a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--bordeaux);
  border-radius: 6px;
  color: var(--bordeaux);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.nav-rapide a:hover,
.nav-rapide a:active {
  background: var(--bordeaux);
  color: var(--blanc);
}

.nav-rapide a:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}

/* ---------- Titres de section ---------- */

.section-head__titre {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-head__titre::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-bottom: 0.9rem;
  background: var(--bordeaux);
}

.section-head__intro {
  max-width: 34rem;
  margin-top: 0.5rem;
  color: var(--texte-doux);
  font-size: 1rem;
  line-height: 1.5;
}

.section-head__note {
  margin-top: 0.4rem;
  color: var(--texte-doux);
  font-size: 0.8125rem;
  font-style: italic;
}

/* ---------- Programme ---------- */

.programme {
  padding: 2.75rem 0 3rem;
  background: var(--blanc);
}

.planning-wrap {
  margin-top: 2rem;
}

.planning {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.planning__col-heure {
  width: 3.6rem;
}

/* En-tête des jours : aplat bordeaux comme sur l'affiche */
.planning thead th {
  padding: 0.7rem 0.6rem 0.75rem;
  background: var(--bordeaux);
  color: var(--blanc);
  text-align: left;
  vertical-align: bottom;
}

.planning thead th:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-top-right-radius: 4px;
}

.planning thead th:nth-child(2) {
  border-top-left-radius: 4px;
}

.planning__coin {
  border-bottom: 1px solid var(--bordeaux);
}

.planning__jour {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
  opacity: 0.9;
}

.planning__date {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  line-height: 1.15;
  white-space: nowrap;
}

/* Lignes horaires : une ligne = une heure */
.planning tbody th,
.planning tbody td {
  height: 6rem;
  padding: 3px;
  border-top: 1px solid var(--ligne);
  text-align: left;
  vertical-align: top;
}

.planning tbody td {
  border-left: 1px solid var(--ligne);
}

.planning tbody th {
  padding: 0.35rem 0 0;
  color: var(--bordeaux);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

/* Case remplie */
.case {
  min-height: calc(6rem - 6px);
  padding: 0.5rem 0.55rem;
  border-radius: 3px;
  background: var(--pastel);
  box-shadow: inset 3px 0 0 var(--bordeaux);
}

.case__titre {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.case__org {
  margin-top: 0.25rem;
  color: var(--texte-doux);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Deux activités dans la même heure : cases empilées, heure exacte affichée */
.case + .case {
  margin-top: 3px;
}

.planning td:has(.case + .case) .case {
  min-height: 0;
}

.case__heure {
  margin-bottom: 0.2rem;
  color: var(--bordeaux);
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.2;
}

/* Temps fort : case bordeaux */
.case--fort {
  background: var(--bordeaux);
  box-shadow: none;
  color: var(--blanc);
}

.case--fort .case__titre {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.15;
}

.case__tag {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Ligne de fin 17h */
.planning .planning__fin th,
.planning .planning__fin td {
  height: auto;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ligne);
}

.planning .planning__fin td {
  padding-left: 0.6rem;
  color: var(--texte-doux);
  font-size: 0.8125rem;
  font-style: italic;
}

.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;
}

/* ---------- Exposantes ---------- */

.liste {
  padding: 2.75rem 0 3rem;
}

.exposantes {
  margin-top: 1.5rem;
  counter-reset: exposante;
  border-top: 1px solid var(--ligne);
}

.exposantes li {
  counter-increment: exposante;
  position: relative;
  padding: 1.05rem 0 1.1rem 2.75rem;
  border-bottom: 1px solid var(--ligne);
}

/* Numéro éditorial */
.exposantes li::before {
  content: counter(exposante, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.2rem;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

/* Petit trait rose (clin d'œil au ruban) */
.exposantes li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2.2rem;
  width: 1rem;
  height: 1px;
  background: var(--rose);
  opacity: 0.6;
}

.exposantes h3 {
  font-family: var(--serif);
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  /* Pour afficher les noms en MAJUSCULES, décommenter : */
  /* text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.02em; */
}

.exposantes .org {
  margin-top: 0.2rem;
  color: var(--bordeaux);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.exposantes .activite {
  margin-top: 0.15rem;
  color: var(--texte-doux);
  font-size: 1rem;
  line-height: 1.4;
}

/* ---------- Pied de page ---------- */

.footer {
  background: var(--pastel);
}

.footer__message {
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
  text-align: center;
}

.script {
  transform: rotate(-3deg);
  color: var(--bordeaux);
  font-family: var(--script);
  font-size: 1.6rem;
  line-height: 1.3;
}

.script--second {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  color: var(--texte);
  opacity: 0.85;
}

.footer__swash {
  display: block;
  width: 9rem;
  margin: 0.5rem auto 0;
}

.footer__swash path {
  fill: none;
  stroke: var(--bordeaux);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.partenaires {
  padding: 2rem 0 1.75rem;
  background: var(--blanc);
}

.partenaires__titre {
  color: var(--texte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.75rem 2rem;
  margin-top: 1.75rem;
}

.logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 8.5rem;
  text-align: center;
}

.logos img {
  width: auto;
  height: 4.75rem;
  object-fit: contain;
}

.logos__large {
  width: 10rem !important;
}

.logos span {
  margin-top: 0.6rem;
  color: var(--texte-doux);
  font-size: 0.75rem;
  line-height: 1.35;
}

.footer__bas {
  padding-top: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  color: var(--bordeaux);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ==========================================================
   Tablette
   ========================================================== */

@media (min-width: 40rem) {
  :root {
    --gouttiere: 2.5rem;
  }

  .hero__inner {
    padding-top: 3.5rem;
    padding-bottom: 2.75rem;
  }

  .hero__ribbon {
    top: 1.5rem;
    right: 0;
    width: 15rem;
  }

  .infos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.5rem;
  }

  .infos__sub {
    display: inline;
  }

  .infos__sub::before {
    content: "· ";
    color: var(--rose);
  }

  .nav-rapide {
    display: flex;
    gap: 0.75rem;
  }

  .nav-rapide a {
    min-width: 10rem;
  }

  .programme,
  .liste {
    padding: 4rem 0;
  }

  .exposantes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }

  .logos {
    gap: 2rem 3.5rem;
  }

  .logos img {
    height: 5.5rem;
  }

  .logos__large {
    width: 12rem !important;
  }
}

/* Planning : plus d'air dès que l'écran le permet */
@media (min-width: 30rem) {
  .planning__col-heure {
    width: 4rem;
  }

  .planning thead th {
    padding: 0.85rem 1rem 0.9rem;
  }

  .planning__date {
    font-size: 1.5rem;
  }

  .planning tbody th,
  .planning tbody td {
    height: 5.25rem;
  }

  .planning tbody th {
    font-size: 1.25rem;
  }

  .case {
    min-height: calc(5.25rem - 6px);
    padding: 0.6rem 0.8rem;
  }

  .case__titre {
    font-size: 0.9375rem;
  }

  .case__org {
    font-size: 0.875rem;
  }

  .case--fort .case__titre {
    font-size: 1.3125rem;
  }

  .case__tag {
    font-size: 0.6875rem;
  }
}

@media (min-width: 54rem) {
  .planning__col-heure {
    width: 6rem;
  }

  .planning thead th {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .planning tbody th,
  .planning tbody td {
    height: 4.75rem;
  }

  .planning tbody th {
    font-size: 1.5rem;
  }

  .case {
    min-height: calc(4.75rem - 6px);
    padding: 0.75rem 1.1rem;
  }

  .case__titre {
    font-size: 1rem;
  }

  .case__org {
    font-size: 0.9375rem;
  }

  .case--fort .case__titre {
    font-size: 1.5rem;
  }
}

/* ==========================================================
   Ordinateur
   ========================================================== */

@media (min-width: 64rem) {
  .hero__inner {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .hero__ribbon {
    top: 1rem;
    right: 1rem;
    width: 19rem;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .programme,
  .liste {
    padding: 5rem 0;
  }

  .exposantes {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3rem;
  }

  .exposantes li {
    padding-top: 1.5rem;
    padding-bottom: 1.6rem;
  }

  .exposantes li::before {
    top: 1.65rem;
  }

  .exposantes li::after {
    top: 2.65rem;
  }

  .footer__message {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .script {
    font-size: 2rem;
  }

  .script--second {
    font-size: 1.6rem;
  }
}
