/* =========================================================
   Polices
   ========================================================= */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/HankenGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

/* =========================================================
   Couleurs et réglages communs
   ========================================================= */
:root {
  --marine: #0D1B2A;
  --teal-dark: #143D3C;
  --bleu: #3C6E71;
  --corail: #E07A3F;
  --laiton: #D4A017;
  --lin: #F2EFE6;

  --bg: var(--lin);
  --surface: #ffffff;
  --text: var(--marine);
  --text-soft: #565f6e;
  --accent: var(--corail);
  --border: rgba(13, 27, 42, 0.12);

  --font-title: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 16px 40px -18px rgba(13, 27, 42, 0.45);
  --shadow-card: 0 10px 28px -14px rgba(13, 27, 42, 0.3);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-height: 92px;
  --title-gap: clamp(1.5rem, 1rem + 1.5vw, 2rem); /* espace entre un grand titre et son texte */
  --head-width: 56rem; /* largeur des titres de section et de leur texte d'introduction */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* les liens #formats / #contact s'arrêtent sous l'en-tête fixe */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--marine);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.4rem); }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.2vw + 1rem, 1.7rem); }

p {
  margin: 0 0 1em;
  color: var(--text-soft);
  max-width: 62ch;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--marine);
  color: var(--lin);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

/* petite séparation (trait doré + point) entre deux sections beige qui se suivent */
.section-sep {
  position: relative;
}

.section-sep::before,
.section-sep::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.section-sep::before {
  top: 0;
  width: min(240px, 50%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--laiton), transparent);
}

.section-sep::after {
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--laiton);
}

/* en-têtes de section (petit titre + titre + texte), centrés sur toutes les sections */
.section-head {
  max-width: var(--head-width);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-head p {
  max-width: none;
}

/* même respiration partout entre un grand titre et son texte d'introduction */
.section-head h2,
.hero h1,
.page-hero h1 {
  margin-bottom: var(--title-gap);
}

.section-head p,
.hero-lede,
.page-hero p {
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laiton);
}

.section-head .eyebrow {
  color: var(--accent);
}

/* =========================================================
   Boutons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--lin);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: #be6836;
}

.btn-ghost-light {
  background: rgba(242, 239, 230, 0.12);
  border-color: rgba(242, 239, 230, 0.5);
  color: var(--lin);
}

.btn-ghost-light:hover {
  background: var(--lin);
  color: var(--marine);
}

/* =========================================================
   En-tête et menu
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--marine);
  color: var(--lin);
  border-bottom: 1px solid rgba(242, 239, 230, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
}

.brand-logo {
  height: 76px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 62px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: rgba(242, 239, 230, 0.88);
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--laiton);
  border-color: var(--laiton);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--lin);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* menu à 5 onglets : aucun libellé ne passe à la ligne, espacements resserrés sur les écrans moyens,
   et menu replié (bouton ☰) en dessous de 960 px */
.nav-links a,
.main-nav .btn {
  white-space: nowrap;
}

@media (min-width: 961px) and (max-width: 1120px) {
  .main-nav {
    gap: 1.25rem;
  }

  .nav-links {
    gap: 1.1rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--marine);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem var(--gutter);
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }
}

/* =========================================================
   Haut de page (accueil) et bandeau des pages secondaires
   ========================================================= */
.hero {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(212, 160, 23, 0.18), transparent 55%),
    linear-gradient(180deg, var(--marine), var(--teal-dark) 70%);
  color: var(--lin);
  padding: clamp(2.25rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  color: var(--lin);
}

.hero-lede {
  color: rgba(242, 239, 230, 0.86);
  font-size: 1.15rem;
  max-width: 46ch;
  text-align: justify;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-art {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--bleu), var(--marine));
  border: 1px solid rgba(242, 239, 230, 0.18);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    aspect-ratio: 16 / 10;
  }
}

.page-hero {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(212, 160, 23, 0.18), transparent 55%),
    linear-gradient(180deg, var(--marine), var(--teal-dark) 70%);
  color: var(--lin);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--lin);
  max-width: 24ch;
  margin-inline: auto;
}

.page-hero p {
  color: rgba(242, 239, 230, 0.86);
  font-size: 1.1rem;
  max-width: var(--head-width);
  margin-inline: auto;
}

/* =========================================================
   Événements : bandeau d'une ligne sous le haut de l'accueil et bloc « Événements à venir » des actualités
   (tous deux retirés automatiquement après la date de l'événement)
   ========================================================= */
/* même bleu-vert que le bas du haut de page, pour s'y fondre */
.event-band {
  background: var(--teal-dark);
  border-top: 1px solid rgba(242, 239, 230, 0.12);
  padding: 0.85rem 0;
  text-align: center;
}

.event-band a {
  color: var(--lin);
  font-size: 0.98rem;
  text-decoration: none;
}

.event-band a:hover {
  color: var(--laiton);
}

.event-label {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--laiton);
  color: var(--marine);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

/* bloc « Événements à venir » des actualités : un bandeau clair et fin, à l'inverse des cartes d'articles (sombres) */
.events-upcoming {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}

.event-strip {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  max-width: 900px;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-strip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* pastille de date, façon page de calendrier */
.event-strip-date {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 5.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--marine);
  color: var(--lin);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
}

.event-strip-date strong {
  font-family: var(--font-title);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.event-strip-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.event-strip-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--marine);
}

.event-strip-meta {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.event-strip .btn {
  flex: none;
}

@media (max-width: 640px) {
  .event-strip {
    flex-wrap: wrap;
  }

  .event-strip .btn {
    width: 100%;
    justify-content: center;
  }
}

/* pages Actualités et événement : haut de page plus compact et contenu qui démarre plus haut,
   pour voir l'essentiel sans faire défiler */
.page-hero-compact {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.section-compact-top {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.articles-label {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* page d'un événement : fiche pratique en petites cases (sans puces), photo en bandeau bas plus loin dans le texte */
.event-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.event-fact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--marine);
  font-size: 0.95rem;
  line-height: 1.5;
}

.event-fact-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.prose .event-photo {
  aspect-ratio: 21 / 8;
  object-fit: cover;
  margin: 0.5rem 0 0;
}

/* photos d'une soirée passée : deux photos en portrait côte à côte, sous une photo en paysage */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.prose .photo-grid img {
  margin: 0;
}

.prose .photo-wide {
  margin-bottom: 0.75rem;
}

/* =========================================================
   Agenda des événements (evenements/) : calendrier du mois, liste des prochains événements, événements passés
   ========================================================= */
.agenda-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .agenda-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.agenda-heading {
  font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem);
  margin-bottom: 1rem;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.prose .agenda-list {
  margin: 1rem 0 1.75rem;
}

.agenda-list .event-strip {
  max-width: none;
}

.agenda-vide {
  color: var(--text-soft);
  font-style: italic;
}

/* étiquettes « Soirée » / « Tournoi » et statut d'inscription, côte à côte */
.event-strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.event-strip-tags .event-label {
  margin-right: 0;
}

a.event-strip-title {
  text-decoration: none;
}

a.event-strip-title:hover {
  color: var(--accent);
}

.status-chip {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-ouverte {
  background: rgba(60, 110, 113, 0.15);
  color: var(--teal-dark);
}

.status-complet {
  background: rgba(224, 122, 63, 0.16);
  color: #9a4215;
}

.status-libre {
  background: rgba(212, 160, 23, 0.2);
  color: #6f5300;
}

/* calendrier dessiné par main.js */
.agenda-calendar:not(:empty) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cal-titre {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--marine);
}

.cal-titre::first-letter {
  text-transform: uppercase;
}

.cal-nav {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--marine);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cal-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cal {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
}

.cal th {
  padding: 0.2rem 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
}

.cal td {
  height: 2.9rem;
  border-radius: 8px;
  background: var(--bg);
  color: var(--marine);
  font-size: 0.9rem;
  text-align: center;
  vertical-align: middle;
}

.cal td.cal-vide {
  background: transparent;
}

.cal td.cal-aujourdhui {
  box-shadow: inset 0 0 0 2px var(--laiton);
}

.cal td.cal-evt {
  background: var(--marine);
}

.cal td.cal-evt.cal-passe {
  background: rgba(13, 27, 42, 0.4);
}

.cal td.cal-evt a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--lin);
  font-weight: 700;
  text-decoration: none;
}

/* petite pastille dorée sous le numéro d'un jour d'événement */
.cal td.cal-evt a::after,
.cal-pastille {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--laiton);
}

.cal td.cal-evt a::after {
  margin-top: 3px;
}

.cal-legende {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.agenda-past {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.agenda-past li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.agenda-past time {
  font-weight: 700;
  color: var(--marine);
}

.agenda-past-title {
  flex: 1;
  color: var(--text-soft);
}

.agenda-past a {
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 760px) {
  .event-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .event-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose .event-photo {
    aspect-ratio: 16 / 9;
  }
}

/* formulaire d'inscription dans la page d'un événement */
.prose .form-card {
  margin: 1.5rem 0 2rem;
}

/* =========================================================
   Pourquoi nous : 3 engagements numérotés + chiffres clés
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.pillar {
  border-top: 2px solid var(--laiton);
  padding-top: 1.25rem;
}

.pillar-number {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pillar h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* tous les chiffres sur une ligne, quel que soit leur nombre */
.figures {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.figure + .figure {
  border-left: 1px solid var(--border);
}

/* même orange que les numéros 01, 02, 03 ; un chiffre n'est jamais coupé sur 2 lignes */
.figure strong {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 0.6rem + 2.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
  white-space: nowrap;
}

.figure span {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* écrans moyens et mobiles : 2 par ligne, un chiffre seul en fin de liste prend toute la largeur */
@media (max-width: 960px) {
  .figures {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .figure:nth-child(odd) {
    border-left: 0;
  }

  .figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   Cartes photo : formats (accueil) et articles (actualités)
   ========================================================= */
/* 3 cartes par rangée ; une rangée incomplète (ex. 2 articles) reste centrée */
.xp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.xp-grid > * {
  flex: 0 1 calc((100% - 3.5rem) / 3);
  min-width: 0;
}

@media (max-width: 960px) {
  .xp-grid {
    max-width: 560px;
    margin-inline: auto;
  }

  .xp-grid > * {
    flex-basis: 100%;
  }
}

.xp-card {
  background: #14263A;
  border: 1px solid rgba(242, 239, 230, 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.xp-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

/* crédit photo très discret, en bas à droite de l'image ; plus net au survol */
.photo-credit {
  position: absolute;
  right: 0.6rem;
  bottom: 0.4rem;
  color: var(--lin);
  font-size: 0.6rem;
  line-height: 1.4;
  opacity: 0.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease;
}

.photo-credit:hover {
  opacity: 1;
}

.photo-credit a {
  color: inherit;
  text-decoration: none;
}

.photo-credit a:hover {
  text-decoration: underline;
}

.xp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
}

.xp-card h2,
.xp-card h3 {
  color: var(--laiton);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.xp-card p {
  color: rgba(242, 239, 230, 0.82);
  font-size: 0.95rem;
}

.xp-card p:last-of-type {
  margin-bottom: 1.75rem;
}

.xp-card .xp-tagline {
  font-style: italic;
  color: rgba(242, 239, 230, 0.65);
  margin-bottom: 1.75rem;
}

.xp-stats {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  text-align: center;
}

.xp-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.xp-stats svg {
  width: 26px;
  height: 26px;
  color: var(--laiton);
  margin-bottom: 0.45rem;
}

.xp-stats strong {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--lin);
}

.xp-stats span {
  font-size: 0.78rem;
  color: rgba(242, 239, 230, 0.6);
}

.xp-cta {
  margin-top: auto;
  align-self: flex-end;
}

/* Cartes d'articles (Actualités) : date dorée en petit, titre blanc cliquable, fin trait doré en haut */
.article-card {
  border-top: 3px solid var(--laiton);
}

.article-card .article-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 0.75rem;
}

.article-card h2 {
  color: var(--lin);
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-card h2 a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-card h2 a:hover {
  color: var(--laiton);
}

/* =========================================================
   Votre expérience (frise des 6 étapes)
   ========================================================= */
/* fond uni : le seul dégradé de la page reste celui du haut de page */
.journey-hero {
  background: var(--marine);
  color: var(--lin);
}

.journey-hero .section-head .eyebrow {
  color: var(--laiton);
}

.journey-hero .section-head h2 {
  color: var(--lin);
}

.journey-hero .section-head p {
  color: rgba(242, 239, 230, 0.86);
}

.journey {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

/* la ligne verticale qui relie les étapes */
.journey::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.7), rgba(242, 239, 230, 0.15));
  transform: translateX(-50%);
}

.journey-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.journey-content,
.journey-spacer {
  flex: 1 1 0;
  min-width: 0;
}

/* rond d'icône : même esprit que l'icône d'onglet (fond bleu nuit, cercle et icône dorés) ;
   l'ombre couleur marine « coupe » la ligne verticale autour du rond */
.journey-node {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #14263A;
  border: 2px solid var(--laiton);
  color: var(--laiton);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--marine);
}

.journey-node svg {
  width: 36px;
  height: 36px;
}

.journey-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.journey-step:nth-child(even) .journey-content {
  align-items: flex-start;
}

.journey-step-number {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 0.3rem;
}

.journey-content h3 {
  color: var(--lin);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  text-align: right;
}

.journey-content p {
  color: rgba(242, 239, 230, 0.8);
  font-size: 0.95rem;
  margin: 0;
  text-align: right;
}

.journey-step:nth-child(even) .journey-content h3,
.journey-step:nth-child(even) .journey-content p {
  text-align: left;
}

@media (max-width: 720px) {
  .journey::before {
    left: 28px;
  }

  .journey-step {
    gap: 1.25rem;
  }

  .journey-spacer {
    display: none;
  }

  .journey-node {
    order: 1;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  .journey-node svg {
    width: 30px;
    height: 30px;
  }

  .journey-content {
    order: 2;
    align-items: flex-start;
  }

  .journey-content h3,
  .journey-content p,
  .journey-step:nth-child(even) .journey-content h3,
  .journey-step:nth-child(even) .journey-content p {
    text-align: left;
  }
}

/* =========================================================
   Derrière O'Boulo : photo ronde + bulle de BD, juste avant le contact
   ========================================================= */
/* pas de marge en bas : la bulle mène directement au formulaire */
.founder {
  padding-bottom: 0;
}

.founder-inner {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.founder-photo {
  flex: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--laiton);
  box-shadow: 0 0 0 8px rgba(212, 160, 23, 0.15), var(--shadow-card);
}

.founder-bubble {
  position: relative;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
}

/* pointe de la bulle, tournée vers la photo */
.founder-bubble::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 22px;
  height: 22px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateY(-50%) rotate(45deg);
}

.founder-bubble .eyebrow {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.founder-hello {
  font-size: clamp(1.4rem, 1rem + 1vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.founder-bubble p {
  margin: 0;
  max-width: none;
  line-height: 1.75;
  text-align: justify;
  text-wrap: pretty; /* évite un mot seul sur la dernière ligne */
}

/* petit espace entre deux paragraphes de la bulle */
.founder-bubble p + p {
  margin-top: 0.75rem;
}

/* équivalent du Maj+Entrée de Word : <span class="ligne">…</span> passe à la ligne après la phrase,
   et sa dernière ligne reste justifiée (étirée jusqu'au bord droit) */
.founder-bubble .ligne {
  display: block;
  text-align-last: justify;
}

/* sur téléphone : photo au-dessus, pointe de la bulle vers le haut */
@media (max-width: 680px) {
  .founder-inner {
    flex-direction: column;
    gap: 1.75rem;
  }

  .founder-photo {
    width: 130px;
    height: 130px;
  }

  .founder-bubble::before {
    left: 50%;
    top: -12px;
    transform: translateX(-50%) rotate(135deg);
  }

  /* colonne étroite : une ligne courte étirée laisserait de grands trous entre les mots */
  .founder-bubble .ligne {
    text-align-last: auto;
  }
}

/* =========================================================
   Contact & devis
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.info-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.info-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card li {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* pastilles d'icône : même style que les étapes « Votre expérience » (fond bleu nuit, icône dorée) */
.info-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #14263A;
  color: var(--laiton);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -8px rgba(13, 27, 42, 0.6);
}

.info-card .icon svg {
  width: 20px;
  height: 20px;
}

/* zone d'intervention : titre, puis la liste des villes en plus petit */
.info-zone {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.info-zone strong {
  font-weight: 600;
}

.info-zone small {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--marine);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.field-check input {
  margin-top: 0.3rem;
}

.h-captcha {
  margin-bottom: 1.1rem;
}

/* le widget hCaptcha fait 303 px de large : on le réduit un peu sur les petits téléphones */
@media (max-width: 400px) {
  .h-captcha {
    transform: scale(0.85);
    transform-origin: left top;
    margin-bottom: 0;
  }
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--marine);
}

@media (max-width: 780px) {
  .contact-grid,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    gap: 0;
  }
}

/* =========================================================
   Actualités : mini bandeau en bas de l'accueil
   ========================================================= */
.news-band {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.news-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.news-band-head .eyebrow {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.news-band-head h2 {
  font-size: clamp(1.6rem, 1.4vw + 1rem, 2.1rem);
  margin-bottom: 0.75rem;
}

.news-band-all {
  font-weight: 600;
  color: var(--marine);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.news-band-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* chaque article : une ligne blanche cliquable (date, titre, flèche) */
.news-band-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 3rem 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--laiton);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-band-list a::after {
  content: '→';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 600;
  transition: right 0.18s ease;
}

.news-band-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.news-band-list a:hover::after {
  right: 1rem;
}

.news-band-list time {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.news-band-list span {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--marine);
}

@media (max-width: 760px) {
  .news-band-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   Textes longs : articles et page Confidentialité
   ========================================================= */
.prose {
  max-width: 48rem;
}

.prose p,
.prose li {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: none; /* la largeur est donnée par la colonne .prose, pas par chaque paragraphe */
}

/* articles d'actualités uniquement (la page Confidentialité n'utilise pas <article>) : texte justifié */
article.prose p,
article.prose li {
  text-align: justify;
}

.prose h2 {
  font-size: clamp(1.4rem, 1vw + 1.1rem, 1.8rem);
  margin-top: 2em;
}

/* pas d'espace en trop quand l'article commence directement par un intertitre (avec ou sans photo) */
.prose > h2:first-child,
.prose > img:first-child + h2 {
  margin-top: 0;
}

.prose h3 {
  font-size: clamp(1.15rem, 0.5vw + 1rem, 1.35rem);
  margin-top: 1.75em;
  margin-bottom: 0.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--accent);
  font-weight: 600;
}

.prose strong {
  color: var(--marine);
}

/* sauf le chiffre de la pastille de date d'un événement, clair sur fond bleu foncé */
.prose .event-strip-date strong {
  color: inherit;
}

/* liens dans le texte : couleur du texte, soulignés en orange */
.prose a:not(.btn) {
  color: var(--marine);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.prose a:not(.btn):hover {
  text-decoration-thickness: 2px;
}

.prose img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

/* bandeau des articles : titre long, donc plus petit que sur les autres pages */
.article-hero h1 {
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3.2rem);
  max-width: 30ch;
}

/* deux encadrés côte à côte (avantages / points de vigilance…), l'un sous l'autre sur mobile */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}

.compare > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--bleu);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem 0.6rem;
}

.compare > div + div {
  border-top-color: var(--accent);
}

.prose .compare h3,
.prose .compare h4 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.prose .compare li {
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* tableaux ; sur mobile, chaque ligne devient une petite carte (titre de colonne repris via data-label) */
.table-wrap {
  position: relative;
  margin: 1.5rem 0 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.prose thead th {
  background: var(--marine);
  color: var(--lin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose tbody th {
  color: var(--marine);
  font-weight: 600;
}

.prose td {
  color: var(--text-soft);
}

.prose tbody tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .prose tr {
    display: block;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .prose tbody tr:last-child {
    border-bottom: 0;
  }

  .prose th,
  .prose td {
    display: block;
    padding: 0.15rem 0;
    border: 0;
  }

  .prose tbody th {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .prose td::before {
    content: attr(data-label) " : ";
    font-weight: 600;
    color: var(--marine);
  }
}

/* checklist : des coches à la place des puces, dans un encadré blanc */
.prose .checklist {
  list-style: none;
  padding: 1.4rem 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.3em;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--bleu);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* encadré bleu nuit de fin d'article (texte, boutons, signature) */
.article-cta {
  margin-top: 3.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--marine);
  border-top: 3px solid var(--laiton);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.prose .article-cta h2 {
  color: var(--lin);
  margin-top: 0;
}

.prose .article-cta p {
  color: rgba(242, 239, 230, 0.86);
}

.prose .article-cta a:not(.btn) {
  color: var(--lin);
  text-decoration-color: var(--laiton);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0;
}

.prose .article-tagline {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--laiton);
  margin: 0;
}

/* sources en fin d'article : plus discrètes que le reste du texte */
.prose .sources-title {
  font-size: 1.15rem;
}

.prose .sources li {
  font-size: 0.9rem;
}

/* =========================================================
   Pied de page
   ========================================================= */
.site-footer {
  background: var(--marine);
  color: rgba(242, 239, 230, 0.85);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(242, 239, 230, 0.14);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-grid h4 {
  color: var(--lin);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--laiton);
}

.footer-brand {
  display: block;
  font-size: 1.3rem;
  color: var(--lin);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(242, 239, 230, 0.55);
}
