@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   YVELINK — Design system
   ==========================================================================
   Palette dérivée des 3 couleurs de la charte :
     --color-primary      #0D4E88  (bleu primaire)
     --color-primary-dark #04396B  (bleu foncé)
     --color-accent        #549818  (vert accent)

   Ratios de contraste vérifiés (WCAG 2.1 AA — texte normal ≥ 4.5:1,
   grand texte/UI ≥ 3:1) :
     - primary      sur blanc........ 8.53:1  (texte normal OK)
     - primary-dark sur blanc....... 11.65:1  (texte normal OK)
     - accent       sur blanc........ 3.57:1  (UI/grand texte SEULEMENT,
                                                 jamais pour du texte courant)
     - accent-text  sur blanc........ 5.96:1  (variante foncée du vert,
                                                 utilisable en texte normal)
     - text         sur blanc....... 17.40:1
     - text-muted   sur blanc........ 6.00:1
     - accent       sur primary-dark. 3.26:1  (OK pour anneaux de focus
                                                 sur fond bleu foncé)

   Règle d'usage : le vert d'accent (--color-accent) ne sert JAMAIS comme
   couleur de texte courant sur fond clair (échoue à 4.5:1). Il est réservé
   aux icônes, bordures, badges, gros titres et éléments d'interface.
   Pour du texte vert sur fond clair, utiliser --color-accent-text.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --color-primary: #0D4E88;
  --color-primary-dark: #04396B;
  --color-accent: #549818;
  --color-accent-text: #3D7011; /* variante foncée, lisible en texte normal */

  /* Neutres */
  --color-text: #1A1A1A;
  --color-text-muted: #5B6470;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F7FA;
  --color-border: #D6DCE3;

  /* États */
  --color-focus-light: #04396B;  /* anneau de focus sur fond clair */
  --color-focus-dark: #549818;   /* anneau de focus sur fond bleu foncé */
  --color-error: #B3261E;
  --color-error-bg: #FBEAE9;
  --color-success-text: #3D7011;
  --color-success-bg: #EFF6E8;

  /* Typo — taille de base généreuse (public senior) */
  --font-base: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1.125rem;   /* 18px */
  --line-height-base: 1.65;

  /* Espacement */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius: 10px;
  --max-width: 1140px;

  /* Dégradés de marque (boutons, bannières, pied de page) */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-primary-hover: linear-gradient(135deg, var(--color-primary-dark) 0%, #02213f 100%);
  --gradient-deep: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 55%, #02213f 100%);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  animation: pageFadeIn 0.1s ease-out;
}

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

h1, h2, h3, h4 {
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}
a:hover { color: var(--color-primary-dark); }

/* ---------- Focus visible partout (clavier) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Lien d'évitement ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section { padding: var(--space-5) 0; }
section.soft { background: var(--color-bg-soft); }

.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- En-tête / navigation ---------- */
.site-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 2px 12px rgba(4,57,107,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  flex-wrap: nowrap;
  gap: var(--space-1);
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-link img { height: 56px; width: auto; }

.main-nav { width: auto; flex-shrink: 0; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
}
.main-nav a {
  display: inline-block;
  white-space: nowrap;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  transition: background-color .15s, color .15s;
}
.main-nav a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
}
.main-nav a[aria-current="page"] {
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
}
/* ---------- Actions d'en-tête (CTA) ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  flex-shrink: 0;
}
.header-connexion-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.2rem;
  border-radius: 50%;
  transition: color .15s, transform .15s;
}
.header-connexion-link:hover {
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 1180px) and (min-width: 881px) {
  .header-search { display: none; }
}

.header-search { position: relative; display: flex; align-items: center; }
.header-search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
  cursor: pointer;
  padding: 0;
  transition: background-color .15s, transform .15s;
}
.header-search__toggle:hover { background: #e7edf4; }
.header-search__form {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(4,57,107,0.16);
  padding: 0.25rem 0.25rem 0.25rem 1.1rem;
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: width .2s ease, opacity .2s ease;
}
.header-search__form.is-open {
  width: 240px;
  opacity: 1;
  pointer-events: auto;
}
.header-search__form input {
  border: none;
  min-height: auto;
  padding: 0.55rem 0;
  width: 100%;
  font-size: 0.95rem;
}
.header-search__form input:focus { outline: none; }

.header-search__results {
  position: absolute;
  right: 0;
  top: calc(100% + 3.4rem);
  width: 260px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(4,57,107,0.16);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
}
.header-search__results.is-open { display: flex; }
.header-search__results a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.header-search__results a:hover,
.header-search__results a:focus-visible {
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
}
.header-search__empty {
  margin: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.header-social { display: flex; align-items: center; gap: 0.5rem; }
.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  transition: transform .15s, box-shadow .15s;
}
.header-social a img { width: 20px; height: 20px; object-fit: contain; }
.header-social a:hover { transform: translateY(-2px); }

@media (max-width: 880px) {
  .header-search, .header-social { display: none; }
}

.nav-toggle {
  display: none;
}
@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(4,57,107,0.18);
  }
  .nav-toggle__icon {
    display: inline-block;
    width: 18px; height: 2px;
    background: #fff;
    position: relative;
  }
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px; height: 2px;
    background: #fff;
  }
  .nav-toggle__icon::before { top: -6px; }
  .nav-toggle__icon::after { top: 6px; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open {
    display: block;
    padding-top: var(--space-1);
    border-top: 1px solid var(--color-border);
  }
  .main-nav ul { flex-direction: column; gap: 0.15rem; }
  .main-nav a { display: block; border-radius: var(--radius); }
}

.cta-bar {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
  transition: transform .15s, box-shadow .15s, background-color .15s;
  box-shadow: 0 4px 10px rgba(4,57,107,0.12);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: var(--gradient-primary-hover); color: #fff; }
.btn-secondary {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-bg-soft) 100%);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 10px rgba(4,57,107,0.08);
}
.btn-secondary:hover { background: linear-gradient(135deg, var(--color-bg-soft) 0%, #e4ebf3 100%); }
.btn-accent {
  background: var(--gradient-deep);
  color: #fff;
  border: none;
}
.btn-accent:hover { background: linear-gradient(135deg, #02213f 0%, #010f1d 100%); color: #fff; }
.btn-green {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-text) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(61,112,17,0.20);
}
.btn-green:hover { background: linear-gradient(135deg, var(--color-accent-text) 0%, #2c5409 100%); color: #fff; }
.btn-danger {
  background: linear-gradient(135deg, #e4534b 0%, #b3242f 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(179,36,47,0.22);
}
.btn-danger:hover { background: linear-gradient(135deg, #cf3a35 0%, #931d27 100%); color: #fff; }
.btn-edit {
  /* Modifier / Éditer : ambre, distinct du bleu (ajouter) et du rouge
     (supprimer), convention courante pour une action d'édition. */
  background: linear-gradient(135deg, #F5A93B 0%, #C97A0C 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(201,122,12,0.22);
}
.btn-edit:hover { background: linear-gradient(135deg, #E0921F 0%, #A8650A 100%); color: #fff; }
.btn-info {
  /* Voir / consulter : sarcelle, pour les actions de lecture/consultation. */
  background: linear-gradient(135deg, #3BB7C9 0%, #1E7A8C 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(30,122,140,0.22);
}
.btn-info:hover { background: linear-gradient(135deg, #2EA0B2 0%, #146373 100%); color: #fff; }
.btn-block { width: 100%; }
.btn-sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.95rem;
  min-height: 38px;
}

/* ---------- Cartes parcours (hero) ---------- */
.path-cards {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
  margin-top: var(--space-3);
}
@media (min-width: 700px) {
  .path-cards { grid-template-columns: repeat(3, 1fr); }
}
.path-card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 18px;
  padding: var(--space-3);
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-shadow: 0 8px 22px rgba(4,57,107,0.08);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.path-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(4,57,107,0.14);
}
.path-card--green { border-top: 3px solid var(--color-accent); }
.path-card--blue  { border-top: 3px solid var(--color-primary); }
.path-card--green .icon-wrap { background: var(--color-success-bg); }
.path-card--blue  .icon-wrap { background: #E8EFF8; }
.icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-1);
}
.path-card .icon { font-size: 2.4rem; }
.path-card h3 { margin: 0; color: var(--color-primary-dark); }

/* ---------- Cartes génériques ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-3);
  height: 100%;
  box-shadow: 0 6px 18px rgba(4,57,107,0.07);
  transition: transform .15s, box-shadow .15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(4,57,107,0.12);
}
.card h3 { margin-top: 0; }

/* ---------- Cartes activités (bloc image + contenu) ---------- */
.activity-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.activity-card__media {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  overflow: hidden;
}
.activity-card__media .icon { font-size: 3rem; line-height: 1; }
.activity-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activity-card__body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }
.activity-card__body h3 { margin-top: 0; }
.activity-card__body .btn { margin-top: auto; align-self: flex-start; }
.card .price {
  display: inline-block;
  margin-top: var(--space-1);
  font-weight: 700;
  color: var(--color-accent-text);
}

.badge {
  display: inline-block;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.badge.badge-accent {
  background: #f1f6e9;
  color: var(--color-accent-text);
  border-color: var(--color-accent);
}

/* ---------- Tableau tarifs ---------- */
table.pricing {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2) 0;
}
table.pricing caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-primary-dark);
}
table.pricing th, table.pricing td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
}
table.pricing th { background: var(--color-bg-soft); }

/* ---------- Formulaires ---------- */
.form-field {
  margin-bottom: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-field label {
  font-weight: 700;
}
.form-field .hint { font-size: 0.95rem; color: var(--color-text-muted); }
input, textarea, select {
  font: inherit;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  min-height: 44px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); }
fieldset { border: 2px solid var(--color-border); border-radius: 8px; padding: var(--space-2); }
legend { font-weight: 700; padding: 0 0.4rem; }
.required-mark { color: var(--color-error); }

input[type="radio"],
input[type="checkbox"] {
  min-height: auto;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.3rem;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
}

input[type="file"] {
  padding: 0.45rem;
  min-height: auto;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  margin-right: 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #fff;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background: var(--gradient-primary-hover);
}
.field-hint { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

.form-message {
  border-radius: 8px;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.form-message.info {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.form-message.success { background: var(--color-success-bg); color: var(--color-success-text); }
.form-message.error { background: var(--color-error-bg); color: var(--color-error); }

/* ---------- Page Contact ---------- */
.grid-2--contact { align-items: stretch; }
.grid-2--contact .card { display: flex; flex-direction: column; height: 100%; }
.contact-card h2 { margin-bottom: var(--space-2); }
.contact-card h3 { margin-bottom: var(--space-1); }

.address-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-2);
  margin-bottom: var(--space-3);
}
.address-box__icon {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 0.2rem;
}
.address-box address {
  font-style: normal;
  margin: 0;
  line-height: 1.55;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: 0;
}
.download-buttons .btn {
  justify-content: flex-start;
  text-align: left;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-text) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(61,112,17,0.20);
}
.download-buttons .btn:hover {
  background: linear-gradient(135deg, var(--color-accent-text) 0%, #2c5409 100%);
}
.download-buttons .btn svg { flex-shrink: 0; }

/* ---------- Événements ---------- */
.event-card {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-2);
  background: #fff;
  box-shadow: 0 6px 18px rgba(4,57,107,0.07);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.event-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(4,57,107,0.12); color: inherit; }
.event-date {
  flex: 0 0 auto;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  text-align: center;
  font-weight: 700;
  min-width: 70px;
}
.event-date .day { display: block; font-size: 1.5rem; }
.event-date .month { display: block; font-size: 0.85rem; text-transform: uppercase; }

/* ---------- Hub ---------- */
@keyframes appCardIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(4,57,107,0.07);
  transition: transform .22s ease, box-shadow .22s ease;
  animation: appCardIn .5s ease both;
}
.app-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(4,57,107,0.15);
}
.app-card.is-soon {
  opacity: 0.65;
  pointer-events: none;
}
/* Thumbnail */
.app-card__thumb {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #e8eef5;
  flex-shrink: 0;
}
.app-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .38s ease;
}
.app-card:hover .app-card__thumb img {
  transform: scale(1.05);
}
.app-card__thumb--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  background: linear-gradient(135deg, #edf2f8 0%, #dce6f0 100%);
}
/* Body */
.app-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-1);
}
.app-card__body h3 {
  margin: 0 0 var(--space-1);
  font-size: 1.1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.app-card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
  line-height: 1.55;
}
.app-card__cta {
  align-self: flex-start;
  margin-top: var(--space-2);
  font-size: 0.9rem;
}

/* ---------- Hero Normandie (accueil) ---------- */
.hero-normandie {
  position: relative;
  background: var(--color-bg-soft);
  padding: var(--space-5) 0;
  padding-bottom: calc(var(--space-5) + 70px);
  overflow: hidden;
}
.hero-normandie .container { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-text);
  margin-bottom: var(--space-1);
}
.hero-normandie h1 {
  color: var(--color-primary-dark);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-2);
}
.hero-normandie > .container > p {
  max-width: 44rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.hero-horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  display: block;
  line-height: 0;
}
.hero-cta-bar {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

/* ---------- Bandeau stats ---------- */
.stats-band {
  background: var(--gradient-deep);
  padding: var(--space-3) 0;
}
.stats-band .container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.stats-band__item {
  text-align: center;
  color: #fff;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stats-band__number {
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stats-plus {
  font-size: 0.6em;
  font-weight: 800;
  vertical-align: baseline;
  position: relative;
  top: -0.2em;
}
.stats-band__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
}

/* ---------- Bannière de page (pages internes) ---------- */
/* Style Normandie : fond clair cohérent avec le hero de l'accueil. */
.page-header {
  position: relative;
  background: var(--color-bg-soft);
  color: var(--color-text);
  padding: var(--space-4) 0;
  border-bottom: 3px solid var(--color-accent);
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
}
.page-header .container > p {
  max-width: 46rem;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
/* Filet décoratif discret en arrière-plan */
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(84,152,24,0.06), transparent);
  pointer-events: none;
}

/* ---------- Bandeaux vagues (séparateurs de section) ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 56px;
  line-height: 0;
  margin: 0;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }
.wave-divider.flip { transform: scaleY(-1); }
.wave-fill-bg path { fill: var(--color-bg); }
.wave-fill-soft path { fill: var(--color-bg-soft); }
.wave-fill-primary-dark path { fill: var(--color-primary-dark); }
@media (prefers-reduced-motion: reduce) {
  .wave-divider { transition: none; }
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--gradient-deep);
  color: #fff;
  padding: var(--space-4) 0 var(--space-3);
  margin-top: var(--space-5);
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer .footer-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
  text-decoration: none;
}
.footer-logo-badge {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  line-height: 0;
}
.footer-logo { height: 80px; width: auto; display: block; }
.footer-logo-text {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  font-size: 0.9rem;
  color: #d9e3ee;
}
.social-links { display: flex; gap: var(--space-2); margin-top: var(--space-1); }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.social-links a img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ---------- Photo éditoriale (ex. équipe sur la page À propos) ---------- */
.photo-feature {
  margin: 0 0 var(--space-3);
  text-align: center;
}
.photo-feature img {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(4,57,107,0.14);
}
.photo-feature figcaption {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Évènements : toolbar + grille de tuiles ---------- */
.events-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.events-toolbar__controls { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.events-toolbar__controls select {
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
}
.events-search input {
  min-height: 44px;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 620px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}

.event-tile {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 6px 18px rgba(4,57,107,0.07);
  transition: transform .15s, box-shadow .15s;
}
.event-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(4,57,107,0.14); color: var(--color-text); }
.event-tile__img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-soft); }
.event-tile__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-tile__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.event-tile__body { padding: var(--space-2); }
.event-tile__date { margin: 0 0 0.3rem; font-size: 0.85rem; color: var(--color-accent-text); font-weight: 700; text-transform: uppercase; }
.event-tile__body h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.event-tile__lieu { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------- Évènements : page détail ---------- */
.event-detail { padding-top: var(--space-3); }
.event-breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.event-breadcrumb a { color: var(--color-primary); }
.event-detail__hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: var(--space-3);
}
.event-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
@media (min-width: 880px) {
  .event-detail__layout { grid-template-columns: 2fr 1fr; align-items: start; }
}
.event-detail__badge {
  position: static;
  display: inline-block;
  margin-bottom: var(--space-1);
}
.event-detail__meta { color: var(--color-text-muted); font-weight: 600; }

.event-sidebar {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-3);
  background: var(--color-bg-soft);
  position: sticky;
  top: var(--space-2);
}
.btn-block { display: block; width: 100%; text-align: center; }
.event-sidebar__block { margin-top: var(--space-3); }
.event-sidebar__block h3 { margin: 0 0 var(--space-1); color: var(--color-primary-dark); font-size: 1rem; }
.event-sidebar__dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.event-sidebar__dates li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.92rem;
}
.event-sidebar__dates li a { font-weight: 600; }

/* ---------- Actualités : tuiles (auteur en overlay) + corps d'article ---------- */
.article-tile__auteur {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(4,57,107,0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  border-radius: 999px;
}
.article-tile__auteur-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.article-tile__excerpt { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

.article-corps { margin-top: var(--space-2); line-height: 1.7; }
.article-corps p { margin: 0 0 1rem; }
.article-corps h2, .article-corps h3 { color: var(--color-primary-dark); margin: 1.6rem 0 0.8rem; }
.article-corps ul, .article-corps ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.article-corps li { margin-bottom: 0.4rem; }
.article-corps a { color: var(--color-primary); text-decoration: underline; }
.article-corps blockquote {
  margin: 0 0 1rem;
  padding: 0.6rem 1rem;
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-style: italic;
}
.article-corps img { max-width: 100%; border-radius: 10px; display: block; margin: 1rem 0; }

.article-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.2rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.article-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Modale Créneaux / Inscription ---------- */
.ea-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,57,107,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  z-index: 200;
}
.ea-modal-overlay[hidden] { display: none; }
.ea-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.ea-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.ea-modal__header h2 { margin: 0; font-size: 1.15rem; }
.ea-modal__close {
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0 0.3rem;
}
.ea-modal__close:hover { color: var(--color-primary-dark); }
.ea-modal__body { padding: var(--space-3); overflow-y: auto; }
.ea-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border);
}
.ea-modal__dates { display: flex; flex-direction: column; gap: 0.4rem; margin: var(--space-1) 0 var(--space-2); }
.ea-date-btn {
  text-align: left;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
}
.ea-date-btn:hover { border-color: var(--color-primary); }
.ea-date-btn.is-active { border-color: var(--color-primary); background: #E3EEFB; color: var(--color-primary-dark); }
.ea-modal__creneaux { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ea-creneau-btn {
  border: 2px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
}
.ea-creneau-btn:hover:not(:disabled) { border-color: var(--color-primary); }
.ea-creneau-btn.is-active { border-color: var(--color-primary); background: #E3EEFB; color: var(--color-primary-dark); }
.ea-creneau-btn:disabled { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }
.ea-creneau-btn__complet { font-size: 0.78rem; text-decoration: none; color: var(--color-error); }

/* ---------- Respect des préférences de mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
