/* ════════════════════════════════════════════════════════════════════
   SENTINELLE DUARTÉ — components.css
   Composants UI : cartes, boutons, accordéons, formulaires, badges,
   mission cards, news cards, alertes, tableaux d'identifiants.
   ════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════
   CARTES
   ════════════════════════════════════════════════════════════════════ */
.card {
  background:
    /* Dégradé doré subtil bas-droite */
    radial-gradient(ellipse at 108% 108%,
      rgba(197, 155, 42, 0.09) 0%,
      rgba(248, 242, 220, 0.04) 40%,
      transparent 58%),
    var(--card-bg);
  border: 1px solid rgba(197, 155, 42, 0.13); /* très subtile — les brackets sont l'élément dominant */
  border-radius: 4px;
  padding: var(--space-lg);
  box-shadow: 0 2px 12px rgba(7, 23, 58, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Corner brackets — 8 traits or (≈ 1 cm) aux 4 angles */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(var(--gold) 0 0) 0    0    / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    0    / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 0    / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 0    / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    100% / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    100% / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 100% / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 100% / 1.5px 38px no-repeat;
  opacity: 0.38;
  transition: opacity .25s ease;
}
.card:hover::before { opacity: 0.72; }

/* Carte cliquable entièrement (lien occupant tout l'espace) */
.card--link { cursor: pointer; }
.card--link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card a.card-link {
  position: static;
  border-bottom: none;
}
.card a.card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: inline-block;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: none;
}

/* ════════════════════════════════════════════════════════════════════
   CARTES DE MISSION (les 6 axes)
   Design : pas de bordure pleine dominante — un 1px quasi-transparent
   sert de cadre, les 8 corner brackets or sont l'élément visible.
   ════════════════════════════════════════════════════════════════════ */
.mission-card {
  background:
    /* Dégradé doré subtil bas-droite */
    radial-gradient(ellipse at 108% 108%,
      rgba(197, 155, 42, 0.11) 0%,
      rgba(248, 242, 220, 0.05) 38%,
      transparent 58%),
    var(--card-bg);
  border: 1px solid rgba(197, 155, 42, 0.13); /* quasi-invisible, laisse les brackets dominer */
  border-radius: 4px;
  padding: var(--space-lg);
  box-shadow: 0 2px 12px rgba(7, 23, 58, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Corner brackets — 8 traits or (≈ 1 cm) aux 4 angles.
   Placés en ::after (::before est réservé au halo de reveal dans animations.css). */
.mission-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(var(--gold) 0 0) 0    0    / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    0    / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 0    / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 0    / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    100% / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    100% / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 100% / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 100% / 1.5px 38px no-repeat;
  opacity: 0.38;
  transition: opacity .25s ease;
}
.mission-card:hover::after { opacity: 0.72; }
.mission-card .section-number {
  margin-bottom: var(--space-sm);
}
.mission-card h3 {
  font-size: 21px;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}
.mission-card p {
  color: var(--ink);
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.65;
  max-width: none;
}
.mission-card ul {
  margin-top: var(--space-sm);
  padding-left: 0;
}
.mission-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.55;
  margin-bottom: 8px;
  color: var(--ink);
}
.mission-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* ════════════════════════════════════════════════════════════════════
   BOUTONS
   ════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1;
}
.btn:active { transform: scale(0.99); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
/* hover + focus + active : texte forcé en blanc (sinon la règle générique
   a:focus { color: gold } rendait le texte illisible une fois cliqué). */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
/* hover + focus + active : texte forcé en navy (corrige le texte orange
   sur fond orange une fois le bouton cliqué/focus). */
.btn-gold:hover,
.btn-gold:focus,
.btn-gold:focus-visible,
.btn-gold:active {
  background: #b48a1f;
  border-color: #b48a1f;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(31, 47, 90, 0.25);
}
.btn-ghost:hover,
.btn-ghost:focus,
.btn-ghost:focus-visible,
.btn-ghost:active {
  background: rgba(31, 47, 90, 0.06);
  color: var(--navy);
}

/* Sur fond foncé */
.btn-ghost--light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost--light:hover,
.btn-ghost--light:focus,
.btn-ghost--light:focus-visible,
.btn-ghost--light:active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  border-color: var(--gold);
}

.btn svg { width: 16px; height: 16px; }

/* Liens "voir plus" éditoriaux */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.link-more:hover {
  color: var(--gold);
  border-bottom-color: var(--navy);
}
.link-more::after {
  content: '→';
  transition: transform 0.2s;
}
.link-more:hover::after { transform: translateX(3px); }

/* ════════════════════════════════════════════════════════════════════
   ACCORDÉONS (FAQ, missions détaillées)
   ════════════════════════════════════════════════════════════════════ */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
.accordion-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.accordion-head:hover { background: rgba(197, 155, 42, 0.06); }
.accordion-head .chevron {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--gold);
  transition: transform 0.3s;
  width: 18px;
  height: 18px;
}
.accordion.is-open .chevron { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 22px;
}
.accordion.is-open .accordion-body {
  max-height: 1500px;
  padding-bottom: 22px;
}
.accordion-body p,
.accordion-body ul,
.accordion-body ol {
  margin-bottom: var(--space-sm);
  color: var(--ink);
}
.accordion-body ul, .accordion-body ol {
  padding-left: var(--space-md);
}
.accordion-body ul { list-style: disc; }
.accordion-body ol { list-style: decimal; }
.accordion-body li::marker { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════════
   FORMULAIRES
   ════════════════════════════════════════════════════════════════════ */
.form-field {
  margin-bottom: var(--space-md);
}
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field .required {
  color: var(--red);
  margin-left: 4px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  background: #FEFCF7;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea {
  font-family: var(--font-mono);
  font-size: 14px;
  min-height: 140px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 42, 0.12);
}
.form-help {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.form-field--check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-field--check input { margin-top: 4px; }
.form-field--check label {
  font-family: var(--font-sans);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════
   TABLEAU D'IDENTIFIANTS (mentions, association)
   ════════════════════════════════════════════════════════════════════ */
.identity-grid {
  display: grid;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.identity-grid dt,
.identity-grid dd {
  padding: 14px 20px;
  font-size: 15px;
  line-height: 1.5;
}
.identity-grid dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(31, 47, 90, 0.03);
  border-bottom: 1px solid var(--border);
}
.identity-grid dd {
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.identity-grid dd:last-of-type,
.identity-grid dt:last-of-type { border-bottom: none; }

@media (min-width: 720px) {
  .identity-grid {
    grid-template-columns: 200px 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════
   ENCADRÉ DE CITATION / EXTRAIT JURIDIQUE
   ════════════════════════════════════════════════════════════════════ */
.legal-quote {
  background: rgba(31, 47, 90, 0.04);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  margin: var(--space-md) 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.legal-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  font-style: normal;
}

/* ════════════════════════════════════════════════════════════════════
   BADGE / ÉTIQUETTE
   ════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--gold);
  background: rgba(197, 155, 42, 0.08);
}
.badge--green {
  color: var(--green);
  background: rgba(45, 106, 79, 0.08);
  border-color: rgba(45, 106, 79, 0.3);
}
.badge--red {
  color: var(--red);
  background: var(--red-bg);
  border-color: rgba(178, 58, 46, 0.3);
}

/* ════════════════════════════════════════════════════════════════════
   ENCADRÉ D'ALERTE / INFO
   ════════════════════════════════════════════════════════════════════ */
.callout {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
}
.callout--alert {
  border-left-color: var(--red);
  background: var(--red-bg);
}
.callout--success {
  border-left-color: var(--green);
  background: rgba(45, 106, 79, 0.05);
}
.callout-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 500;
}
.callout--alert .callout-title { color: var(--red); }
.callout--success .callout-title { color: var(--green); }
.callout p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════════════
   FRISE CHRONOLOGIQUE (Histoire de l'association)
   ─ Mobile  : barre verticale à gauche, tous les items à droite
              (meilleure lisibilité sur petit écran)
   ─ Desktop : barre centrée, items alternés gauche / droite
   ════════════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 32px;            /* mobile : espace pour barre + pastille */
}

/* Barre verticale (mobile : à gauche) */
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

/* Élément de la frise */
.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

/* Pastille dorée (mobile : calée sur la barre à gauche) */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--gold);
}

/* Typographie commune des items */
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.timeline-title {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}
.timeline-item p {
  color: var(--ink);
  margin-bottom: 0;
}

/* ─── Desktop ≥720px : barre centrale + alternance gauche/droite ─── */
@media (min-width: 720px) {

  .timeline {
    padding-left: 0;             /* on annule le padding mobile */
  }

  /* Recentre la barre verticale */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Chaque item occupe la moitié de la largeur */
  .timeline-item {
    width: 50%;
    box-sizing: border-box;
  }

  /* Items impairs : à gauche de la barre, texte aligné à droite */
  .timeline-item:nth-child(odd) {
    padding-right: var(--space-lg);
    text-align: right;
  }

  /* Items pairs : poussés à droite de la barre, texte aligné à gauche */
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: var(--space-lg);
    text-align: left;
  }

  /* Pastille recentrée sur la barre, pour les deux côtés */
  .timeline-item::before {
    left: auto;                  /* annule le -32px du mobile */
  }
  .timeline-item:nth-child(odd)::before  { right: -7px; }  /* (14/2) */
  .timeline-item:nth-child(even)::before { left:  -7px; }
}

/* ════════════════════════════════════════════════════════════════════
   LISTE DE TÉLÉCHARGEMENTS (PDF guides, communiqués)
   ════════════════════════════════════════════════════════════════════ */
.dl-list {
  display: grid;
  gap: var(--space-sm);
}
.dl-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dl-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.dl-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--gold);
}
.dl-body { flex: 1; min-width: 0; }
.dl-body h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.dl-body p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.dl-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════
   BOUTON COPIER (utilisé pour l'email contact protégé)
   ════════════════════════════════════════════════════════════════════ */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(31, 47, 90, 0.25);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-copy:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-copy.copied {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════════
   PORTRAITS BUREAU
   ════════════════════════════════════════════════════════════════════ */
.team-card {
  position: relative;
  /* léger dégradé doré en coin bas-droite pour la profondeur */
  background:
    radial-gradient(ellipse at 110% 110%,
      rgba(197, 155, 42, 0.10) 0%,
      rgba(248, 242, 220, 0.05) 40%,
      transparent 60%),
    var(--card-bg);
  border: 1.5px solid var(--gold);          /* bordure dorée sur les 4 côtés */
  border-radius: 18px;                       /* angles bien arrondis */
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow:
    0 4px 18px rgba(7, 23, 58, 0.06),        /* ombre douce */
    inset 0 1px 0 rgba(255, 255, 255, 0.6);  /* arête haute subtile */
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow:
    0 14px 32px rgba(7, 23, 58, 0.12),
    0 0 0 1px rgba(197, 155, 42, 0.25),
    0 4px 16px rgba(197, 155, 42, 0.18);     /* léger halo doré au survol */
}
.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  border: 2px solid var(--gold);
}
.team-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.team-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════════════
   ITEMS D'ACTUALITÉ (news/article cards)
   ════════════════════════════════════════════════════════════════════ */
.news-item {
  background:
    radial-gradient(ellipse at 108% 108%,
      rgba(197, 155, 42, 0.08) 0%,
      transparent 55%),
    var(--card-bg);
  border: 1px solid rgba(197, 155, 42, 0.13);
  border-radius: 4px;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

/* Corner brackets news-item */
.news-item::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(var(--gold) 0 0) 0    0    / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    0    / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 0    / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 0    / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    100% / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 0    100% / 1.5px 38px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 100% / 38px 1.5px no-repeat,
    linear-gradient(var(--gold) 0 0) 100% 100% / 1.5px 38px no-repeat;
  opacity: 0.38;
  transition: opacity .25s ease;
}
.news-item:hover::before { opacity: 0.72; }
.news-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-meta .news-cat {
  color: var(--gold);
  margin-right: 12px;
}
.news-item h3 {
  font-size: 19px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.news-item h3 a { border-bottom: none; color: var(--navy); }
.news-item h3 a:hover { color: var(--gold); }
.news-item p {
  color: var(--ink);
  font-size: 15.5px;
  margin-bottom: 0;
  line-height: 1.6;
  max-width: none;
}

/* ════════════════════════════════════════════════════════════════════
   EMAIL PROTÉGÉ — visuel commun (texte affiché avec [at] et [.])
   ════════════════════════════════════════════════════════════════════ */
.js-email-protect {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  cursor: pointer;
}
.js-email-protect:hover { color: var(--gold); }
.js-email-protect .at,
.js-email-protect .dot {
  color: var(--gold);
  margin: 0 2px;
}

/* ════════════════════════════════════════════════════════════════════
   PIED DE PAGE FIXE MOBILE — Barre de navigation à 5 items
   --------------------------------------------------------------------
   Structure : Actions · Services · [Accueil FAB] · Saisir · Soutenir
   - Visible uniquement ≤ 768px
   - Position fixe en bas du viewport, safe-area iOS respectée
   - 5 items : 4 liens plats + 1 FAB central surélevé (favicon)
   - Surface tactile ≥ 48px (WCAG / Material 48dp)
   - Libellés courts sous les icônes pour la clarté
   - aria-current="page" stylé pour la page courante
   Centralisé ici pour être chargé une seule fois (pas de duplication).
   ════════════════════════════════════════════════════════════════════ */
:root {
  --footer-mobile-h: 64px;
}

/* Conteneur — masqué par défaut (desktop / tablette) */
.footer-mobile {
  display: none;
}

@media (max-width: 768px) {

  .footer-mobile {
    /* Positionnement fixe en bas, pleine largeur */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    /* Répartition des 5 items en flex */
    display: flex;
    justify-content: space-around;
    align-items: stretch;

    /* Hauteur tactile + padding safe-area iOS additif */
    min-height: var(--footer-mobile-h);
    padding: 4px 0.25rem calc(4px + env(safe-area-inset-bottom, 0px));

    /* Apparence — fond navy institutionnel, filet OR fin en haut */
    background: var(--navy, #1F2F5A);
    border-top: 1px solid rgba(197, 155, 42, 0.35); /* gold @ 35% */
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.25);

    /* Au-dessus du contenu défilant */
    z-index: 1000;

    /* Petite typo cohérente — hérite si non défini par le site */
    font-family: inherit;
  }

  /* Item de navigation (lien plat : Actions, Services, Contacter, Soutenir)
     Empile icône + libellé verticalement, surface tactile généreuse.
     Texte ivoire sur fond navy — contraste WCAG ≥ 12:1.
     Note : `border-bottom: none` neutralise le soulignement OR hérité
     de la règle globale `a { border-bottom: 1px solid var(--gold) }`
     définie dans base.css — ce trait n'a pas sa place dans la barre. */
  .footer-mobile__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;

    color: rgba(255, 255, 255, 0.88); /* ivoire légèrement adouci */
    text-decoration: none;
    border-bottom: none;               /* neutralise la bordure globale */
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;

    /* Transition douce sur la couleur uniquement (pas de bordure) */
    transition: color 0.25s ease, transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
  }
  /* Hover : transition de couleur ivoire → OR doré. Aucun soulignement. */
  .footer-mobile__item:hover,
  .footer-mobile__item:focus {
    color: var(--gold, #C59B2A);
    border-bottom: none;               /* surcharge la règle globale a:hover */
  }
  .footer-mobile__item .footer-mobile__icon {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
  }
  .footer-mobile__item .footer-mobile__label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* État actif : page courante — accent OR */
  .footer-mobile__item[aria-current="page"] {
    color: var(--gold, #C59B2A);
  }
  .footer-mobile__item[aria-current="page"] .footer-mobile__icon {
    color: var(--gold, #C59B2A);
  }

  /* Feedback tap */
  .footer-mobile__item:active {
    transform: scale(0.94);
    color: var(--gold, #C59B2A);
  }

  /* Focus clavier visible */
  .footer-mobile__item:focus-visible {
    outline: 2px solid var(--gold, #C59B2A);
    outline-offset: 2px;
    border-radius: 6px;
  }

  /* ─── FAB central (Accueil) — bouton surélevé doré ────────────
     Le 3e item (index 3 dans la barre) est mis en valeur :
     - Cercle plus grand qui dépasse vers le haut
     - Fond navy avec halo doré (cohérence charte)
     - Le favicon SVG est intégré en tant qu'image
  ──────────────────────────────────────────────────────────── */
  .footer-mobile__fab {
    flex: 0 0 auto;
    width: 58px;
    align-self: center;
    /* Surélévation : le bouton dépasse vers le haut */
    margin-top: -22px;
    padding: 0;
    text-decoration: none;
    border-bottom: none;               /* neutralise la bordure globale */
    -webkit-tap-highlight-color: transparent;
  }
  /* Surcharge explicite du hover global a:hover (qui repose la bordure) */
  .footer-mobile__fab:hover,
  .footer-mobile__fab:focus {
    border-bottom: none;
  }
  .footer-mobile__fab .footer-mobile__fab-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Cercle blanc — inversion : le FAB est désormais clair sur fond navy.
       Léger gradient interne très subtil pour donner du relief sans casser
       la consigne "flat" (lecture ivoire/blanc cassé en bord). */
    background:
      radial-gradient(circle at 35% 30%, #ffffff 0%, #f7f4ec 75%, #ece4cc 100%);
    /* Halo doré renforcé : double anneau OR + ombre portée plus marquée
       pour que le FAB reste l'élément dominant de la barre navy. */
    box-shadow:
      0 10px 22px rgba(0, 0, 0, 0.35),                /* ombre portée nette */
      0 0 0 3px var(--navy, #1F2F5A),                  /* anneau navy de détachement */
      0 0 0 5px rgba(197, 155, 42, 0.95),              /* anneau OR plein */
      0 0 0 9px rgba(197, 155, 42, 0.28);              /* halo OR diffus extérieur */
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }
  .footer-mobile__fab img,
  .footer-mobile__fab .footer-mobile__fab-icon {
    width: 38px;       /* favicon légèrement agrandi pour dominer */
    height: 38px;
    display: block;
    pointer-events: none;
    /* Renforce le côté "or" du favicon en le faisant respirer dans le blanc */
    filter: drop-shadow(0 1px 1px rgba(31, 47, 90, 0.15));
  }
  .footer-mobile__fab .footer-mobile__label {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold, #C59B2A); /* libellé OR pour la cohérence du FAB */
    text-align: center;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); /* lisibilité sur navy */
  }
  .footer-mobile__fab:hover .footer-mobile__fab-circle,
  .footer-mobile__fab:focus-visible .footer-mobile__fab-circle {
    transform: translateY(-3px);
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.45),
      0 0 0 3px var(--navy, #1F2F5A),
      0 0 0 5px rgba(197, 155, 42, 1),
      0 0 0 11px rgba(197, 155, 42, 0.40);
  }
  .footer-mobile__fab:active .footer-mobile__fab-circle {
    transform: scale(0.94);
  }
  .footer-mobile__fab:focus-visible {
    outline: none; /* l'anneau est géré sur fab-circle */
  }

  /* Décalage du body pour ne pas masquer le bas de page.
     La hauteur additionne FAB surélévation + safe-area. */
  body {
    padding-bottom: calc(var(--footer-mobile-h) + 8px + env(safe-area-inset-bottom, 0px));
  }

  /* Coupe-feu anti-débordement horizontal + coupures propres */
  html, body { overflow-x: hidden; }
  h1, h2, h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Sur mobile, le pied de page institutionnel (.site-footer) est
     remplacé par la barre fixe en bas (.footer-mobile). Les liens
     essentiels du footer institutionnel sont déjà accessibles via
     l'aside (réseaux + mentions + RGPD) et la barre fixe (Accueil,
     Actions, Services, Contacter, Soutenir). On masque donc le
     footer institutionnel pour éviter le doublon visuel. */
  .site-footer {
    display: none;
  }
}

/* ─── Très petits écrans : densification ────────────────────────── */
@media (max-width: 380px) {
  .footer-mobile__item {
    font-size: 9.5px;
    gap: 2px;
  }
  .footer-mobile__item .footer-mobile__icon {
    width: 20px;
    height: 20px;
  }
  .footer-mobile__fab,
  .footer-mobile__fab .footer-mobile__fab-circle {
    width: 54px;
    height: 54px;
  }
  .footer-mobile__fab {
    margin-top: -18px;
  }
  .footer-mobile__fab img,
  .footer-mobile__fab .footer-mobile__fab-icon {
    width: 32px;
    height: 32px;
  }
}

/* ─── Respect "réduire les animations" ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .footer-mobile__item,
  .footer-mobile__fab .footer-mobile__fab-circle {
    transition: none;
  }
  .footer-mobile__item:active,
  .footer-mobile__fab:active .footer-mobile__fab-circle,
  .footer-mobile__fab:hover .footer-mobile__fab-circle {
    transform: none;
  }
}
