/* ============================================================================
   SITE DU DOUBLE MASTER DROIT - FINANCE — FEUILLE DE STYLE PRINCIPALE
   ----------------------------------------------------------------------------
   Ce fichier définit TOUTE l'apparence du site : couleurs, polices, espaces,
   et le style de chaque bloc (menu, hero, cartes, tableaux, pied de page...).

   💡 POUR UN ADMIN NON-TECHNIQUE :
   - Les couleurs et polices "par défaut" sont ci-dessous (bloc :root).
   - MAIS la vraie source de vérité, c'est le fichier assets/js/content.js,
     modifiable depuis la page admin.html (page d'administration).
   - Vous n'avez normalement JAMAIS besoin de toucher ce fichier CSS.
     Il est surtout utile si vous voulez, plus tard, un changement de mise
     en page que l'admin ne permet pas (à faire avec quelqu'un à l'aise en code).
   ========================================================================= */

/* ---------- 1. VARIABLES DE COULEURS / TYPOGRAPHIE (valeurs par défaut) --- */
:root {
  /* Bleu marine — couleur institutionnelle, reprise du sceau de l'association */
  --navy-950: #061225;
  --navy-900: #0b2a5c;
  --navy-800: #123566;
  --navy-700: #1c4480;
  --navy-100: #e8edf5;

  /* Bleu accent — boutons et liens (remplace l'ancien "or") */
  --gold-600: #14509e;
  --gold-500: #1f6fd6;
  --gold-300: #a9cdf5;

  /* Bleu foncé — code couleur des contenus "Droit" */
  --bordeaux-700: #17325e;
  --bordeaux-100: #e8edf6;

  /* Bleu vif — code couleur des contenus "Finance" */
  --emerald-700: #1f6fd6;
  --emerald-100: #e3edfb;

  /* Neutres (blanc / gris bleuté très clair, pas de crème) */
  --paper: #ffffff;
  --stone-100: #f4f7fb;
  --stone-200: #e6ecf5;
  --line: #d7e0ee;
  --ink-900: #14181f;
  --ink-700: #383c44;
  --ink-500: #6b6f78;
  --ink-on-dark: #eef1f6;
  --ink-on-dark-muted: rgba(238,241,246,0.72);

  /* Typographies */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Rythme */
  --container: 1180px;
  --radius: 3px;
  --shadow-soft: 0 18px 40px -22px rgba(11, 42, 92, 0.35);
  --shadow-card: 0 10px 30px -18px rgba(11, 42, 92, 0.28);
}

/* ---------- 2. RESET & BASE ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: 100px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; color: var(--navy-900); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold-500);
  display: inline-block;
}

/* Ligne de séparation "double compétence" : signature graphique du site.
   Un trait fin qui passe du bordeaux (Droit) à l'or à la marine (Finance). */
.dual-rule {
  height: 3px;
  width: 92px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bordeaux-700) 0%, var(--gold-500) 50%, var(--navy-800) 100%);
  margin: 18px 0 0;
}
.dual-rule--center { margin-left: auto; margin-right: auto; }

/* Tags Droit / Finance, réutilisés partout (badges, tableaux, cartes) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag--droit { background: var(--bordeaux-100); color: var(--bordeaux-700); }
.tag--finance { background: var(--emerald-100); color: var(--emerald-700); }
.tag--gold { background: var(--gold-300); color: #5b431a; }

/* ---------- 3. BOUTONS ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--gold-500); color: var(--navy-950); }
.btn--primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn--outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- 4. EN-TÊTE / NAVIGATION ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__bar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__logo {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid rgba(255,255,255,0.35);
  flex-shrink: 0; transition: width 0.4s cubic-bezier(0.4,0,0.2,1), height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; letter-spacing: 0.01em; }
.brand__subtitle {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--gold-300);
  text-transform: uppercase; margin-top: 2px; opacity: 1; max-height: 14px; overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.4s cubic-bezier(0.4,0,0.2,1), margin-top 0.4s ease;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  color: var(--ink-on-dark);
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 28px 16px;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 24px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease, bottom 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav__link:hover::after, .nav__item.is-open .nav__link::after, .nav__item--active .nav__link::after { transform: scaleX(1); }
.nav__item--active .nav__link { color: var(--gold-300); }
.nav__caret { width: 9px; height: 9px; opacity: 0.75; transition: transform 0.2s ease; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; left: 0;
  background: var(--paper);
  min-width: 260px;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  border-top: 3px solid var(--gold-500);
}
.nav__item.is-open .submenu,
.nav__item:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu__link {
  display: block; padding: 11px 14px; border-radius: 3px;
  color: var(--navy-900); font-size: 14px; font-weight: 600;
}
.submenu__link:hover { background: var(--stone-100); color: var(--bordeaux-700); }

.nav__cta { margin-left: 6px; }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px; color: #fff;
}
.nav-toggle svg { width: 26px; height: 26px; }

.site-header__bar { transition: height 0.4s cubic-bezier(0.4,0,0.2,1); }
.site-header.is-compact .site-header__bar { height: 60px; }
.site-header.is-compact .brand__logo { width: 34px; height: 34px; }
.site-header.is-compact .brand__subtitle { opacity: 0; max-height: 0; margin-top: 0; }
.nav__link { transition: padding-top 0.4s cubic-bezier(0.4,0,0.2,1), padding-bottom 0.4s cubic-bezier(0.4,0,0.2,1); }
.site-header.is-compact .nav__link { padding-top: 19px; padding-bottom: 19px; }
.site-header.is-compact .nav__link::after { bottom: 15px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 0 0; background: var(--navy-950);
    flex-direction: column; align-items: stretch; padding: 12px 20px 40px;
    overflow-y: auto;
    transform: translateX(100%); transition: transform 0.28s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 16px 6px; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__link::after { display: none; }
  .submenu {
    position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none; background: rgba(255,255,255,0.04); margin: 4px 0 8px;
  }
  .nav__item.is-open .submenu { display: block; }
  .submenu__link { color: var(--ink-on-dark); }
  .submenu__link:hover { background: rgba(255,255,255,0.08); color: var(--gold-300); }
  .nav__cta { margin: 16px 6px 0; }
}

/* ---------- 5. HERO --------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: 92vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.hero--page { min-height: 46vh; align-items: center; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,18,37,0.55) 0%, rgba(6,18,37,0.55) 40%, rgba(6,18,37,0.92) 100%),
    linear-gradient(90deg, rgba(6,18,37,0.75) 0%, rgba(6,18,37,0.25) 60%);
}
.hero__content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 84px; width: 100%; }
.hero--page .hero__content { padding-top: 60px; padding-bottom: 60px; }
.hero__kicker {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 12.5px; color: var(--gold-300); margin-bottom: 18px; display: block;
}
.hero__title {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  color: #fff; line-height: 1.08; max-width: 30ch;
}
.hero__title em { font-style: italic; color: var(--gold-300); }
.hero__lede {
  font-size: 18px; max-width: 56ch; margin-top: 22px; color: rgba(255,255,255,0.88);
  font-weight: 400;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero__meta { display:flex; gap: 22px; margin-top: 44px; flex-wrap: wrap; }
.hero__meta-item { font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }
.hero__meta-item b { color: #fff; display:block; font-family: var(--font-display); font-size: 22px; font-weight: 600; }

/* Bandeau chiffres clés */
.stats-band {
  background: var(--navy-900);
  border-top: 1px solid var(--gold-500);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stats-band__row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--container); margin: 0 auto; padding: 30px 28px;
}
.stat { text-align: left; padding: 0 18px; border-left: 1px solid rgba(255,255,255,0.14); color: #fff; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--gold-300); font-weight: 600; }
.stat__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; color: rgba(255,255,255,0.75); text-transform: uppercase; margin-top: 4px; }
@media (max-width: 780px) {
  .stats-band__row { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stat { border-left: none; padding-left: 0; }
}

/* ---------- 6. SECTIONS GÉNÉRIQUES ----------------------------------------- */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--alt { background: var(--stone-100); }
.section--navy { background: var(--navy-950); color: var(--ink-on-dark); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 14px; line-height: 1.12; }
.section-sub { font-size: 17px; color: var(--ink-500); margin-top: 16px; max-width: 60ch; }
.section--navy .section-sub { color: rgba(238,241,246,0.72); }

/* Bloc "split" image / texte, alterné */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split--reverse .split__media { order: 2; }
.split--reverse .split__text { order: 1; }
.split__media { position: relative; }
.split__media img { border-radius: 4px; box-shadow: var(--shadow-soft); width: 100%; height: 460px; object-fit: cover; }
.split__media-tag {
  position: absolute; bottom: -18px; left: -18px; background: #fff; padding: 14px 20px;
  border-radius: 4px; box-shadow: var(--shadow-card); font-family: var(--font-mono); font-size: 12.5px;
  border-left: 4px solid var(--gold-500);
}
.split__text h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 12px 0 18px; }
.split__text p { color: var(--ink-700); font-size: 16px; }
.split__text p + p { margin-top: 14px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media, .split--reverse .split__text { order: unset; }
  .split__media img { height: 300px; }
}

/* Grille de cartes (objectifs, points forts...) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500);
  border-radius: 4px; padding: 30px 26px; box-shadow: var(--shadow-card);
}
.card--droit { border-top-color: var(--bordeaux-700); }
.card--finance { border-top-color: var(--emerald-700); }
.card__icon { width: 42px; height: 42px; color: var(--gold-600); margin-bottom: 18px; }
.card--droit .card__icon { color: var(--bordeaux-700); }
.card--finance .card__icon { color: var(--emerald-700); }
.card h4 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1180px) { .cards { grid-template-columns: repeat(2,1fr); } }

/* Métiers list */
.job-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.job-item {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  padding: 20px; border-radius: 4px; border: 1px solid var(--line);
}
.job-item__mark { font-family: var(--font-mono); color: var(--gold-600); font-weight: 700; font-size: 14px; margin-top: 2px;}
.job-item h5 { font-family: var(--font-body); font-weight: 700; font-size: 15.5px; color: var(--navy-900); margin: 0 0 4px; }
.job-item p { margin: 0; font-size: 14px; color: var(--ink-500); }
@media (max-width: 700px) { .job-list { grid-template-columns: 1fr; } }

/* ---------- 7. CITATION -------------------------------------------------- */
.quote-block { position: relative; padding: 90px 0; background: var(--navy-950); color: #fff; overflow: hidden; }
.quote-block__bg { position: absolute; inset: 0; opacity: 0.22; background-size: cover; background-position: center 20%; }
.quote-block__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,37,0.85), rgba(6,18,37,0.97)); }
.quote-block__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 0 28px; text-align: center; }
.quote-mark { font-family: var(--font-display); font-size: 56px; color: var(--gold-500); line-height: 1; display: block; margin: 0 0 10px; }
.quote-text { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.55; font-weight: 400; }
.quote-cite { margin-top: 30px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; color: var(--gold-300); text-transform: uppercase; }
.quote-cite .quote-role { display: block; color: rgba(255,255,255,0.65); text-transform: none; letter-spacing: 0; font-size: 14px; margin-top: 3px; }

/* ---------- 8. PROGRAMME / TABLEAUX --------------------------------------- */
.tabs { display: inline-flex; background: var(--stone-100); border-radius: 999px; padding: 5px; gap: 4px; }
.tab-btn {
  border: 1.5px solid var(--line); background: transparent; padding: 11px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; color: var(--navy-800); font-family: var(--font-body);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.tab-btn:hover:not(.is-active) { background: #fff; border-color: var(--navy-700); color: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.tab-btn.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.tab-panel { display: none; margin-top: 44px; }
.tab-panel.is-active { display: block; }

.semester-block { margin-bottom: 46px; }
.semester-block__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.semester-block__head h4 { font-size: 21px; }
.semester-block__head .tag { position: relative; top: -2px; }

.ue {
  border: 1px solid var(--line); border-left-width: 5px; border-radius: 4px;
  margin-bottom: 14px; background: #fff; overflow: hidden;
}
.ue--droit { border-left-color: var(--bordeaux-700); }
.ue--finance { border-left-color: var(--emerald-700); }
.ue--mixte { border-left-color: var(--gold-500); }
.ue summary {
  cursor: pointer; list-style: none; padding: 18px 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; font-weight: 700; color: var(--navy-900); font-size: 15.5px;
  transition: background 0.2s ease;
}
.ue summary:hover { background: var(--stone-100); }
.ue summary::-webkit-details-marker { display: none; }
.ue summary .ue-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--ink-500); }
.ue summary .chev { width: 11px; height: 11px; border-right: 2px solid var(--ink-500); border-bottom: 2px solid var(--ink-500); transform: rotate(-45deg); transition: transform 0.2s ease; flex-shrink:0; }
.ue[open] summary .chev { transform: rotate(45deg); }

table.prog {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
table.prog th {
  background: var(--stone-100); text-align: left; font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500);
  padding: 10px 22px; font-weight: 600;
}
table.prog td { padding: 12px 22px; border-top: 1px solid var(--stone-200); vertical-align: top; }
table.prog td.num { font-family: var(--font-mono); color: var(--ink-700); white-space: nowrap; }
table.prog tr.choice-head td { background: var(--stone-100); font-style: italic; color: var(--ink-500); font-size: 13px; padding-top: 8px; padding-bottom: 8px; }
table.prog tr.opt td.course { padding-left: 38px; }
table.prog td.course b { display:block; }
.prog-note { font-size: 12.5px; color: var(--ink-500); font-family: var(--font-mono); padding: 14px 22px; border-top: 1px solid var(--stone-200); background: var(--stone-100); }
@media (max-width: 700px) {
  table.prog, table.prog thead, table.prog tbody { display: block; width: 100%; }
  table.prog thead { display: none; }

  table.prog tr:not(.choice-head) {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px 8px;
    border-top: 1px solid var(--stone-200); padding: 14px 20px;
  }
  table.prog tr.choice-head { display: block; padding: 9px 20px 9px 20px; }
  table.prog tr.choice-head td { display: block; padding: 0; border: none; }

  table.prog td.course { display: block; width: 100%; padding: 0 0 2px; border: none; }
  table.prog td.course b { display: block; }

  table.prog td.num {
    display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 10px !important;
    border: none; background: var(--stone-100); border-radius: 999px; font-size: 12.5px; white-space: nowrap;
  }
  table.prog td.num::before {
    font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--gold-600); font-weight: 700;
  }

  /* Tableau standard : Enseignement · CM · TD · Coef. · ECTS */
  table.prog:not(.prog--simple) td.num:nth-of-type(2)::before { content: "CM"; }
  table.prog:not(.prog--simple) td.num:nth-of-type(3)::before { content: "TD"; }
  table.prog:not(.prog--simple) td.num:nth-of-type(4)::before { content: "Coef."; }
  table.prog:not(.prog--simple) td.num:nth-of-type(5)::before { content: "ECTS"; }

  /* Tableau simplifié (stage et mémoire) : Enseignement · Coef. · ECTS */
  table.prog.prog--simple td.num:nth-of-type(2)::before { content: "Coef."; }
  table.prog.prog--simple td.num:nth-of-type(3)::before { content: "ECTS"; }
}

.plaquette-cta {
  display: flex; align-items: flex-start; gap: 14px; background: var(--navy-100);
  border: 1px solid var(--navy-100); border-left: 4px solid var(--gold-500);
  border-radius: 4px; padding: 18px 22px; margin-top: 36px;
}
.plaquette-cta__icon { width: 22px; height: 22px; color: var(--gold-600); flex-shrink: 0; margin-top: 1px; }
.plaquette-cta p { margin: 0; color: var(--navy-900); font-weight: 600; font-size: 14.5px; line-height: 1.55; }

/* ---------- 9. PERSONNES (bureau, responsables) ---------------------------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.people-grid--2 { grid-template-columns: repeat(2, 1fr); }
.person { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px 24px; }
.person__photo {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: top center;
  margin: 0 auto 18px; display: block; box-shadow: var(--shadow-card); border: 3px solid var(--stone-100);
}
.person__avatar {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--navy-900); color: var(--gold-300); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden; border: 3px solid var(--stone-100);
}
.person__avatar span { font-size: 15px; letter-spacing: 0.04em; }
.person__avatar::after { content:""; position:absolute; inset:0; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; }
.person__name { font-family: var(--font-display); font-size: 19px; color: var(--navy-900); font-weight: 600; }
.person__role { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-600); margin: 5px 0 12px; }
.person__bio { font-size: 14.5px; color: var(--ink-500); text-align: left; }
.person__contact { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13.5px; }
.person__contact a { color: var(--navy-800); font-weight: 600; transition: color 0.2s ease; }
.person__contact a:hover { color: var(--bordeaux-700); }
@media (max-width: 900px) { .people-grid, .people-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .people-grid, .people-grid--2 { grid-template-columns: 1fr; } }

/* ---------- 10. GALERIE ----------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 190px; object-fit: cover; border-radius: 4px; }
.gallery a:nth-child(4n+1) img, .gallery a:nth-child(4n+1) { grid-row: span 2; }
.gallery a:nth-child(4n+1) img { height: 100%; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2,1fr); } .gallery a:nth-child(4n+1) { grid-row: span 1; } .gallery a:nth-child(4n+1) img { height: 190px; } }

/* ---------- 10bis. CARROUSEL (promotions, futurs partenaires...) ---------- */
.carousel { position: relative; display: flex; align-items: center; gap: 16px; }
.carousel__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 2px 20px; flex: 1;
}
.carousel__track::-webkit-scrollbar { height: 7px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.carousel__slide {
  flex: 0 0 270px; scroll-snap-align: start; border: none; background: none; padding: 0;
  cursor: pointer; text-align: left; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-card); position: relative; font-family: inherit;
}
.carousel__slide img { width: 100%; height: 320px; object-fit: cover; display: block; transition: transform 0.35s ease; }
.carousel__slide:hover img { transform: scale(1.05); }
.carousel__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px;
  background: linear-gradient(0deg, rgba(6,18,37,0.92), rgba(6,18,37,0));
  color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 600;
}
.carousel__caption small {
  display: block; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.78);
  font-weight: 400; margin-top: 4px; text-transform: none; letter-spacing: 0;
}
.carousel__arrow {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy-900); font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card);
}
.carousel__arrow:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
@media (max-width: 700px) {
  .carousel__slide { flex-basis: 210px; }
  .carousel__slide img { height: 240px; }
  .carousel__arrow { width: 40px; height: 40px; font-size: 19px; }
}

/* ---------- 10ter. FENÊTRE AGRANDIE (LIGHTBOX) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 26px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(6,18,37,0.88); }
.lightbox__panel {
  position: relative; z-index: 1; background: #fff; border-radius: 6px; max-width: 900px; width: 100%;
  max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.lightbox__image { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.lightbox__body { padding: 36px 34px; }
.lightbox__title { font-size: 25px; margin-bottom: 6px; }
.lightbox__subtitle { color: var(--ink-500); font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.lightbox__list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.lightbox__group { margin-bottom: 20px; }
.lightbox__group:last-child { margin-bottom: 0; }
.lightbox__group-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-600); font-weight: 700; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--stone-200); }
.lightbox__names { display: flex; flex-wrap: wrap; gap: 8px; }
.lightbox__name-chip { background: var(--stone-100); padding: 7px 13px; border-radius: 999px; font-size: 13.5px; color: var(--ink-700); font-weight: 600; }
.lightbox__flat-item { font-size: 14.5px; color: var(--ink-700); padding: 8px 0; border-bottom: 1px solid var(--stone-200); }
.lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(6,18,37,0.78); color: #fff; font-size: 16px; cursor: pointer;
}
.lightbox__close:hover { background: var(--navy-950); }
@media (max-width: 720px) {
  .lightbox__panel { grid-template-columns: 1fr; }
  .lightbox__image { height: 220px; min-height: 0; }
  .lightbox__list { columns: 1; }
}

/* ---------- 10quater. SECTIONS PERSONNALISÉES (ajoutées depuis l'admin) ---------- */
.extra-blocks:empty { display: none; }
.extra-blocks > div:first-child { padding-top: 96px; }


.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-700); }
.check-list svg { width: 18px; height: 18px; color: var(--emerald-700); flex-shrink: 0; margin-top: 3px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 20px;}
.info-grid__item { background: #fff; padding: 22px; }
.info-grid__item .eyebrow { font-size: 11px; margin-bottom: 8px; }
.info-grid__item strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--navy-900); }
@media (max-width: 780px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- 11bis. RÉSEAUX SOCIAUX ---------- */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.social-links__item {
  width: 38px; height: 38px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease; flex-shrink: 0; margin-bottom: 0 !important;
}
.social-links__item svg { width: 17px; height: 17px; }
.social-links--on-dark .social-links__item { background: rgba(255,255,255,0.08); color: var(--ink-on-dark); }
.social-links--on-dark .social-links__item:hover { background: var(--gold-500); color: var(--navy-950); transform: translateY(-2px); }
.social-links--on-light .social-links__item { background: var(--navy-900); color: #fff; }
.social-links--on-light .social-links__item:hover { background: var(--gold-500); color: var(--navy-950); transform: translateY(-2px); }

/* ---------- 12. CONTACT ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 26px; margin-bottom: 16px; }
.contact-card h5 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: var(--gold-600); margin-bottom: 10px; }
.contact-card a.big-link, .contact-card .big-link { font-family: var(--font-display); font-size: 20px; color: var(--navy-900); font-weight: 600; transition: color 0.2s ease; }
.contact-card a.big-link:hover { color: var(--bordeaux-700); }
.contact-people { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.contact-person { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding-top:14px; border-top: 1px solid var(--stone-200); }
.contact-person:first-child { border-top: none; padding-top: 0; }
.contact-person__name { font-weight: 700; color: var(--navy-900); }
.contact-person__role { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-500); text-transform: uppercase; }
.contact-person__links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.contact-person__link { font-family: var(--font-mono); font-size: 13.5px; color: var(--emerald-700); font-weight: 600; transition: color 0.2s ease; text-align: right; }
.contact-person__link:hover { color: var(--navy-900); }
@media (max-width: 480px) {
  .contact-person__links { align-items: flex-start; }
  .contact-person__link { text-align: left; }
}

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; color: var(--navy-900); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 3px;
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink-900);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold-500); outline: none; }
.form-note { font-size: 12.5px; color: var(--ink-500); margin-top: 10px; }

/* ---------- 13. PIED DE PAGE ------------------------------------------------ */
.site-footer { background: var(--navy-950); color: var(--ink-on-dark-muted); padding: 76px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 100px; height: 100px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); }
.footer-brand h4 { color: var(--ink-on-dark); font-size: 16px; margin-bottom: 6px; }
.footer-brand p { font-size: 13.5px; color: var(--ink-on-dark-muted); max-width: 32ch; }
.footer-col h6 { font-family: var(--font-mono); text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.08em; color: var(--gold-300); margin-bottom: 16px; }
.footer-col h6.footer-col__sub { margin-top: 22px; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: var(--ink-on-dark-muted); margin-bottom: 10px; }
.footer-col .social-links__item { display: flex; margin-bottom: 0; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12.5px; color: var(--ink-on-dark-muted); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--ink-on-dark-muted); }
.footer-bottom a:hover { color: var(--gold-300); }
.footer-credit {
  color: var(--ink-on-dark-muted); font-size: 12.5px; letter-spacing: 0.01em;
  transition: color 0.2s ease; cursor: default;
}
.footer-credit:hover { color: var(--gold-300); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 14. ANIMATIONS AU SCROLL ("menu déroulant") ------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 15. DIVERS ------------------------------------------------------ */
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--gold-300); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold-500); color: var(--navy-950);
  padding: 12px 18px; z-index: 2000; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.admin-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 400;
  background: var(--navy-950); color: var(--gold-300); border: 1px solid var(--gold-500);
  padding: 10px 16px; border-radius: 999px; font-size: 12.5px; font-family: var(--font-mono);
  box-shadow: var(--shadow-soft); opacity: 0.85;
}
.admin-fab:hover { opacity: 1; }
