/* ============================================================================
 * omnia amplecti — feuille d'identité graphique PARTAGÉE
 * ----------------------------------------------------------------------------
 * Source de vérité visuelle, RECOPIÉE de la page d'accueil (index.html du site).
 * Chaque page la charge en PREMIER, puis ajoute sa feuille propre qui RÉUTILISE
 * les variables ci-dessous. Voir IDENTITE.md pour la description.
 *
 * Identité : papier bleu-gris froid, marque BLEU MARINE, accent OR, serif
 * Cormorant Garamond en titres + Montserrat en corps. Angles nets, filets d'or,
 * capitales espacées, graisses légères. Composants préfixés « oa- ».
 * ========================================================================== */

:root {
  color-scheme: light;

  /* — Couleurs (identiques à l'accueil) — */
  --ink:        #1a1814;   /* encre / texte principal */
  --paper:      #f2f5fa;   /* fond de page (papier froid) */
  --paper-dark: #e6ecf6;   /* cartes / panneaux */
  --paper-hover:#dbe4f1;   /* survol de carte */
  --brand:      #1d3a5f;   /* bleu marine — marque, titres */
  --gold:       #b89a5a;   /* accent or */
  --gold-light: #d4b87a;   /* or clair */
  --muted:      #7a7060;   /* texte secondaire (brun-gris) */
  --line:       rgba(184, 154, 90, 0.25); /* filets / bordures (or discret) */

  /* — État (ajouts hors palette d'accueil, pour les données) — */
  --alerte:     #b23b2c;   /* rouge : alerte / saturation */
  --ok:         #3f7a45;   /* vert : valide */

  /* — Typographie — */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Montserrat', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --nav-h: 72px;
  --largeur: 1100px;
}

/* — Base — */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ── Barre supérieure (logo → accueil) ──────────────────────────────────── */
.oa-topbar {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.oa-logo {
  display: inline-flex; align-items: center;
  font-family: var(--serif); font-weight: 400; font-size: 1.3rem;
  letter-spacing: 0.03em; color: var(--brand); white-space: nowrap;
}
.oa-logo:hover { color: var(--brand); }
.oa-logo img { height: 2em; width: auto; margin-right: 0.5em; vertical-align: middle; }
.oa-topbar-note {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ── Bandeau de titre (hero allégé pour les sous-pages) ──────────────────── */
.oa-masthead { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 3rem) 0.5rem; }
.oa-eyebrow { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.oa-title {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; line-height: 1.05;
  font-size: clamp(2.6rem, 6vw, 4.5rem); color: var(--brand); margin: 0; text-wrap: balance;
}
.oa-title em { font-style: italic; }
.oa-tagline { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.03em; margin: 0.7rem 0 0; max-width: 62ch; }
.oa-divider { width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1.4rem 0 0.2rem; border: 0; }

/* ── Composants ─────────────────────────────────────────────────────────── */
.oa-button {
  display: inline-block; font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400;
  color: var(--ink); background: transparent; border: 1px solid rgba(184, 154, 90, 0.5);
  padding: 0.85rem 2.2rem; cursor: pointer; transition: color .3s, background .3s, border-color .3s;
}
.oa-button:hover { color: var(--paper); background: var(--gold); border-color: var(--gold); }

.oa-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--sans);
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  background: transparent; border: 1px solid var(--line); padding: 0.42rem 0.9rem; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.oa-chip:hover { color: var(--gold); border-color: var(--gold); }

.oa-card {
  background: var(--paper-dark); border: 1px solid rgba(184, 154, 90, 0.12);
}

.oa-dialog {
  max-width: 480px; border: 1px solid rgba(184, 154, 90, 0.4); background: var(--paper);
  color: var(--ink); padding: 1.6rem;
}
.oa-dialog::backdrop { background: rgba(26, 24, 20, 0.4); }
.oa-dialog h2 { font-family: var(--serif); font-weight: 400; margin-top: 0; color: var(--brand); }
.oa-dialog ul { padding-left: 1.1rem; }
.oa-dialog li { margin: 0.4rem 0; }

/* ── Pied de page (calqué sur l'accueil) ────────────────────────────────── */
.oa-footer { width: 100%; border-top: 1px solid rgba(184, 154, 90, 0.2); margin-top: 4rem; }
.oa-footer-inner {
  max-width: var(--largeur); margin: 0 auto; padding: 2.5rem clamp(1.2rem, 4vw, 3rem);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.oa-footer-logo { display: inline-flex; align-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--brand); }
.oa-footer-logo img { height: 1.75em; width: auto; margin-right: 0.45em; vertical-align: middle; }
.oa-footer-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.oa-footer-links a { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.oa-footer-links a:hover { color: var(--gold); }
.oa-footer-copy { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted); }

@media (max-width: 600px) {
  .oa-footer-inner { flex-direction: column; text-align: center; }
}
