/* ============================================================
   style.css — Famille Rochetaing — Site généalogique
   Palette : Crème #F5EFE6 | Doré #C9A84C | Marine #1B3A6B | Blanc #FFF
   Typo : Montserrat (titres) + Playfair Display (citations)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --creme:       #F5EFE6;
  --creme-dark:  #EDE4D4;
  --or:          #C9A84C;
  --or-light:    #E8C97A;
  --or-dark:     #A07830;
  --marine:      #1B3A6B;
  --marine-light:#2A5298;
  --marine-dark: #0F2347;
  --blanc:       #FFFFFF;
  --texte:       #2C2C2C;
  --texte-light: #5A5A5A;
  --gris:        #8A8A8A;
  --gris-light:  #D4C8B8;

  /* Branches */
  --c-jean-pierre: #2E75B6;
  --c-daisy:       #C9A84C;
  --c-vivianne:    #5A9E6F;
  --c-gerard:      #C0392B;
  --c-alain:       #8E44AD;
  --c-andre:       #E67E22;
  --c-nicole:      #16A085;

  --shadow-sm: 0 2px 8px rgba(27,58,107,.08);
  --shadow-md: 0 4px 24px rgba(27,58,107,.12);
  --shadow-lg: 0 8px 40px rgba(27,58,107,.18);
  --radius:    8px;
  --radius-lg: 16px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--creme);
  color: var(--texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--or-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--or); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Utilitaires ────────────────────────────────────────────── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

.text-or    { color: var(--or); }
.text-marine{ color: var(--marine); }
.badge-or   { display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.12em;
              text-transform:uppercase; color:var(--or); }

/* Séparateur doré */
.divider-or {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--or), var(--or-light));
  margin: 1rem auto;
  border: none;
}
.divider-or--left { margin: 1rem 0; }

/* ── Typographie ────────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--marine);
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 700; }

.subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--texte-light);
  font-size: 1.1rem;
}

p { margin-bottom: .75rem; }

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(27,58,107,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,.2);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(15,35,71,.98); }

.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: 1400px; margin: 0 auto; padding: 0 2rem;
}

.navbar__logo {
  display: flex; align-items: center; gap: .75rem;
  color: var(--blanc);
  font-weight: 800; font-size: .95rem; letter-spacing: .05em;
  text-decoration: none;
}
.navbar__logo-icon { width: 36px; height: 36px; }
.navbar__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.navbar__logo-text span:first-child { font-size: .65rem; font-weight: 400; letter-spacing: .2em; color: var(--or); text-transform:uppercase; }
.navbar__logo-text span:last-child  { font-size: 1rem; font-weight: 800; }

.navbar__nav { display: flex; align-items: center; gap: .25rem; }
.navbar__nav a {
  color: rgba(255,255,255,.82);
  font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  padding: .5rem .9rem; border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}
.navbar__nav a:hover,
.navbar__nav a.active { color: var(--blanc); background: rgba(201,168,76,.15); }

.navbar__btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--or); color: var(--marine-dark) !important;
  font-size: .8rem !important; font-weight: 700 !important;
  padding: .5rem 1.1rem !important; border-radius: 50px !important;
  letter-spacing: .06em; text-transform: uppercase;
  transition: all var(--transition) !important;
}
.navbar__btn:hover { background: var(--or-light) !important; transform: translateY(-1px); }

/* Hamburger mobile */
.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .5rem;
}
.navbar__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blanc); border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0F2347 0%, #1B3A6B 40%, #2A5298 100%);
  z-index: 0;
}
.hero__bg-img {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1589553416260-f586c8f1514f?w=1600&q=80');
  background-size: cover; background-position: center;
  opacity: .35; z-index: 1;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,35,71,.85) 0%, rgba(27,58,107,.4) 60%, transparent 100%);
  z-index: 2;
}
.hero__content {
  position: relative; z-index: 3;
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  padding-top: 70px;
}
.hero__badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--or);
  margin-bottom: 1.5rem;
}
.hero__title {
  color: var(--blanc); margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero__title span { color: var(--or); display: block; }
.hero__divider {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.hero__divider-line { width: 50px; height: 1px; background: var(--or); }
.hero__divider-icon { color: var(--or); font-size: 1.2rem; }
.hero__subtitle {
  color: rgba(255,255,255,.82);
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 500px; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 2rem; border-radius: 50px; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none; cursor: pointer;
}
.btn--or {
  background: var(--or); color: var(--marine-dark); border-color: var(--or);
}
.btn--or:hover {
  background: var(--or-light); border-color: var(--or-light);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.4);
  color: var(--marine-dark);
}
.btn--outline {
  background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.4);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1); border-color: var(--blanc);
  transform: translateY(-2px); color: var(--blanc);
}
.btn--marine {
  background: var(--marine); color: var(--blanc); border-color: var(--marine);
}
.btn--marine:hover {
  background: var(--marine-dark); border-color: var(--marine-dark);
  transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--blanc);
}
.btn--sm { padding: .6rem 1.3rem; font-size: .75rem; }
.btn--danger { background: #C0392B; color: #fff; border-color: #C0392B; }
.btn--danger:hover { background: #A93226; }

.hero__badge-ile {
  position: absolute; right: 4rem; bottom: 3rem; z-index: 3;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,.3); border-radius: var(--radius-lg);
  padding: 1.2rem 1.8rem; text-align: center; color: var(--blanc);
}
.hero__badge-ile .label { font-size: .65rem; letter-spacing: .2em; text-transform:uppercase; color:var(--or); margin-bottom:.3rem; }
.hero__badge-ile .title { font-weight: 800; font-size: 1rem; }
.hero__badge-ile .sub   { font-size: .75rem; color: rgba(255,255,255,.65); }

/* ── Section Générique ──────────────────────────────────────── */
.section { padding: 6rem 0; }
.section--creme  { background: var(--creme); }
.section--blanc  { background: var(--blanc); }
.section--marine { background: var(--marine); color: var(--blanc); }
.section--dark   { background: var(--marine-dark); color: var(--blanc); }

.section__header { text-align: center; margin-bottom: 4rem; }
.section__header .badge-or { margin-bottom: .75rem; }
.section__header h2 { margin-bottom: .75rem; }
.section__header p  { color: var(--texte-light); max-width: 600px; margin: 0 auto; }

/* ── Cards Navigation Rapide ────────────────────────────────── */
.nav-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.nav-card {
  background: var(--blanc); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
  border: 1px solid var(--creme-dark); box-shadow: var(--shadow-sm);
  transition: all var(--transition); text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.nav-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,.05));
  opacity: 0; transition: opacity var(--transition);
}
.nav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--or-light); color: inherit; }
.nav-card:hover::before { opacity: 1; }

.nav-card__icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--creme); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; transition: all var(--transition);
}
.nav-card:hover .nav-card__icon { background: var(--or); }
.nav-card h3 { font-size: 1.05rem; color: var(--marine); margin: 0; }
.nav-card p  { font-size: .85rem; color: var(--texte-light); margin: 0; line-height: 1.5; }
.nav-card__arrow {
  color: var(--or-dark); font-weight: 700; margin-top: auto;
  font-size: .8rem; letter-spacing: .05em; display: flex; align-items: center; gap: .3rem;
  transition: gap var(--transition);
}
.nav-card:hover .nav-card__arrow { gap: .6rem; }

/* ── Section Héritage (2 colonnes) ──────────────────────────── */
.heritage { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.heritage__img-wrapper {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.heritage__img-wrapper img { width: 100%; height: 420px; object-fit: cover; filter: sepia(.2) contrast(1.05); }
.heritage__img-frame {
  position: absolute; inset: -8px; border: 2px solid var(--or);
  border-radius: calc(var(--radius-lg) + 8px); pointer-events: none;
  opacity: .4;
}
.heritage__stat {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--or); color: var(--marine-dark);
  border-radius: var(--radius-lg); padding: 1rem 1.5rem; text-align: center;
  box-shadow: var(--shadow-md);
}
.heritage__stat .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.heritage__stat .lbl { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.heritage__text .badge-or { margin-bottom: 1rem; }
.heritage__text h2 { margin-bottom: 1rem; }
.heritage__text p { color: var(--texte-light); margin-bottom: 1rem; }
.heritage__text .btn { margin-top: 1rem; }

/* ── Timeline ───────────────────────────────────────────────── */
.timeline-section { background: var(--marine); padding: 4rem 0; }
.timeline-section .section__header h2,
.timeline-section .section__header p { color: var(--blanc); }
.timeline-section .section__header p { color: rgba(255,255,255,.7); }

.timeline {
  display: flex; align-items: flex-start; gap: 0;
  position: relative; overflow-x: auto; padding-bottom: 1rem;
}
.timeline__line {
  position: absolute; top: 28px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4) 10%, rgba(201,168,76,.4) 90%, transparent);
}
.timeline__item {
  flex: 1; min-width: 140px; text-align: center; position: relative; padding-top: 0;
}
.timeline__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--or); margin: 21px auto 1rem;
  border: 3px solid var(--marine);
  box-shadow: 0 0 0 2px var(--or);
  position: relative; z-index: 1;
}
.timeline__year {
  font-size: 1.3rem; font-weight: 800; color: var(--or); margin-bottom: .3rem;
}
.timeline__label { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.4; }

/* ── Map + Aperçu arbre ─────────────────────────────────────── */
.map-tree { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.map-block .badge-or { margin-bottom: .75rem; }
.map-block h2 { color: var(--marine); margin-bottom: 1rem; }
.map-block p { color: var(--texte-light); margin-bottom: 1.5rem; }
.map-placeholder {
  width: 100%; height: 320px; border-radius: var(--radius-lg);
  background: var(--creme-dark); display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 1rem;
  border: 2px dashed var(--gris-light);
  color: var(--texte-light); text-align: center;
}

.tree-preview .badge-or { margin-bottom: .75rem; }
.tree-preview h2 { color: var(--marine); margin-bottom: .5rem; }
.tree-preview > p { color: var(--texte-light); margin-bottom: 1.5rem; }

.tree-mini {
  background: var(--blanc); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--creme-dark); box-shadow: var(--shadow-sm);
  text-align: center;
}
.tree-mini__root { margin-bottom: 1.5rem; }
.tree-mini__node {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--marine); color: var(--blanc);
  border-radius: var(--radius); padding: .6rem 1rem;
  font-size: .8rem; font-weight: 600; gap: .15rem;
  min-width: 120px;
}
.tree-mini__node span:first-child { font-size: .65rem; color: var(--or); letter-spacing: .05em; }
.tree-mini__node-or {
  background: linear-gradient(135deg, var(--or), var(--or-dark));
  color: var(--marine-dark);
}
.tree-mini__connector { display: flex; align-items: center; gap: .5rem; margin: .4rem auto; width: fit-content; }
.tree-mini__line-h { width: 40px; height: 1px; background: var(--gris-light); }
.tree-mini__line-v { width: 1px; height: 20px; background: var(--gris-light); margin: 0 auto; }
.tree-mini__children { display: flex; gap: 1rem; justify-content: center; }

/* ── Galerie souvenirs ──────────────────────────────────────── */
.gallery-strip {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem;
  scrollbar-width: thin; scrollbar-color: var(--or-light) transparent;
}
.gallery-strip::-webkit-scrollbar { height: 4px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--or-light); border-radius: 2px; }

.gallery-strip__item {
  flex: 0 0 220px; height: 160px; border-radius: var(--radius);
  overflow: hidden; position: relative; cursor: pointer;
  background: var(--creme-dark); border: 1px solid var(--creme-dark);
}
.gallery-strip__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.5) contrast(1.1); transition: all var(--transition);
}
.gallery-strip__item:hover img { filter: sepia(.1) contrast(1.05); transform: scale(1.05); }
.gallery-strip__more {
  flex: 0 0 160px; height: 160px; border-radius: var(--radius);
  background: var(--marine); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  color: var(--blanc); text-decoration: none; transition: all var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}
.gallery-strip__more:hover { background: var(--marine-light); color: var(--blanc); }
.gallery-strip__more span:first-child { font-size: 1.5rem; font-weight: 800; color: var(--or); }
.gallery-strip__more span:last-child  { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--marine-dark); color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand .logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer__brand .logo-text { color: var(--blanc); font-weight: 800; font-size: 1.1rem; }
.footer__brand p { font-size: .85rem; line-height: 1.7; }
.footer__citation {
  margin-top: 1.5rem; padding: 1rem 1.5rem;
  border-left: 2px solid var(--or); background: rgba(201,168,76,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.footer__citation p {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: .9rem; color: rgba(255,255,255,.8); margin: 0;
}
.footer__citation cite { font-size: .75rem; color: var(--or); font-style: normal; }

.footer__col h4 { color: var(--blanc); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__col ul a { font-size: .85rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color var(--transition); }
.footer__col ul a:hover { color: var(--or); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem;
}
.footer__bottom a { color: var(--or); }

/* ── Page Login ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--marine-dark) 0%, var(--marine) 50%, #2A5298 100%);
  position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1589553416260-f586c8f1514f?w=1400&q=70');
  background-size: cover; background-position: center; opacity: .12;
}
.login-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
  border-radius: var(--radius-lg); padding: 3rem;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card__logo { margin-bottom: 2rem; }
.login-card__logo svg { width: 60px; height: 60px; margin: 0 auto 1rem; }
.login-card__logo h1 { font-size: 1.5rem; color: var(--marine); margin: 0; }
.login-card__logo p  { color: var(--texte-light); font-size: .85rem; margin: .25rem 0 0; }

.form-group { text-align: left; margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 700; color: var(--marine); margin-bottom: .4rem; letter-spacing: .04em; }
.form-group input {
  width: 100%; padding: .85rem 1.1rem; border-radius: var(--radius);
  border: 1.5px solid var(--creme-dark); background: var(--creme);
  font-family: 'Montserrat', sans-serif; font-size: .9rem; color: var(--texte);
  transition: border-color var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--or); background: var(--blanc); }

.form-error {
  background: #fdecea; border: 1px solid #f5c6c2; border-radius: var(--radius);
  padding: .75rem 1rem; margin-bottom: 1rem; font-size: .85rem; color: #C0392B;
}
.form-success {
  background: #edfaf1; border: 1px solid #b7e8c8; border-radius: var(--radius);
  padding: .75rem 1rem; margin-bottom: 1rem; font-size: .85rem; color: #1e7e34;
}

.login-card .btn--or { width: 100%; justify-content: center; padding: 1rem; font-size: .88rem; }
.login-card__note { margin-top: 1.5rem; font-size: .78rem; color: var(--texte-light); }

/* ── Toasts / Alertes ───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--marine); color: var(--blanc);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg); font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; gap: .75rem;
  animation: slideInRight .3s ease forwards;
}
.toast--success { background: #1e7e34; }
.toast--error   { background: #C0392B; }
@keyframes slideInRight { from { transform: translateX(120%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .heritage { grid-template-columns: 1fr; gap: 3rem; }
  .map-tree  { grid-template-columns: 1fr; gap: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(15,35,71,.98); padding: 1rem 2rem; gap: .25rem;
  }

  .hero__badge-ile { display: none; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { justify-content: center; }

  .nav-cards { grid-template-columns: 1fr; }
  .timeline { gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .login-card { padding: 2rem 1.5rem; }
}

/* ── Animations d'entrée ────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Délais pour les grilles */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* ── Loader ─────────────────────────────────────────────────── */
.loader-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--marine-dark); display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
.loader-overlay.hide { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 48px; height: 48px; border: 3px solid rgba(201,168,76,.2);
  border-top-color: var(--or); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fiches membres (panneau latéral tree) ──────────────────── */
.member-panel {
  position: fixed; top: 70px; right: 0; bottom: 0; width: 340px;
  background: var(--blanc); box-shadow: -4px 0 24px rgba(27,58,107,.12);
  z-index: 500; overflow-y: auto; transform: translateX(100%);
  transition: transform var(--transition);
}
.member-panel.open { transform: translateX(0); }
.member-panel__header {
  background: var(--marine); color: var(--blanc); padding: 1.5rem;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.member-panel__close {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 1.5rem; line-height: 1; padding: 0; cursor: pointer;
}
.member-panel__photo {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--or); object-fit: cover; margin-bottom: .75rem;
  background: var(--creme-dark);
}
.member-panel__body { padding: 1.5rem; }
.member-panel__row { display: flex; gap: .75rem; margin-bottom: .75rem; }
.member-panel__label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or-dark); min-width: 80px; }
.member-panel__val   { font-size: .88rem; color: var(--texte); }

/* ── Placeholder photos ─────────────────────────────────────── */
.photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; background: var(--creme-dark);
  color: var(--gris); font-size: 2rem; border-radius: 50%;
}

/* ── Footer variantes (documents.html, histoire.html) ──────── */
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.footer__logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blanc);
  margin-bottom: .5rem;
}
.footer__tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer__social {
  display: flex;
  gap: .5rem;
}
.footer__social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 700;
  transition: background .2s;
}
.footer__social a:hover {
  background: var(--or);
  color: var(--marine-dark);
}
.footer__center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.footer__tree-svg svg {
  opacity: .4;
}
.footer__citation {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .92rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  margin: 0;
}
.footer__cite-author {
  font-size: .75rem;
  color: var(--or);
  font-style: normal;
}
.footer__nav h4 {
  color: var(--blanc);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer__nav ul a {
  font-size: .84rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__nav ul a:hover {
  color: var(--or);
}

/* Navbar déconnexion style */
.navbar__logout {
  padding: .3rem .8rem;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 6px;
  color: rgba(255,255,255,.7) !important;
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s;
}
.navbar__logout:hover {
  background: rgba(255,255,255,.1);
  color: var(--blanc) !important;
  border-color: rgba(255,255,255,.4);
}

/* Navbar links générique */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.navbar__links a {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.navbar__links a:hover,
.navbar__links a.active {
  color: var(--or);
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__center {
    order: -1;
  }
}
