/* =====================
   THÈME MUSÉE HISTORIQUE (SOMBRE, SANS BLEU)
===================== */

:root{
  --bg: #0b0a08; /* noir chaud */

  /* mieux : séparer panneau "matière" (gradient) et fond solide */
  --panel-bg: linear-gradient(180deg, rgba(192,138,75,.22), rgba(192,138,75,.10));
  --panel-solid: #141210;

  --card-bg: #1b1814; /* vitrines / cartes */

  --text: #f2eee6;  /* ivoire */
  --muted: #c2b8aa; /* gris chaud */

  --accent: #c08a4b;  /* cuivre */
  --accent2: #8f6b3e; /* ocre foncé */

  --line: rgba(255,255,255,.10);
  --radius: 18px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;

  --bullet: rgba(192,138,75,.85);
}

/* =====================
   BASE
===================== */

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(192,138,75,.14), transparent 60%),
    radial-gradient(900px 520px at 80% 0%, rgba(143,107,62,.10), transparent 62%),
    var(--bg);
}

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 78px;
}

/* =====================
   HEADER (desktop stable)
===================== */

.site-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative; /* utile pour le menu mobile (position absolute du nav) */
}

.brand{
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.site-nav{
  display: flex;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a{
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}

/* bouton thème (desktop) */
.theme-toggle{
  flex: 0 0 auto;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
}
.theme-toggle:hover{ background: rgba(255,255,255,.08); }

/* =====================
   HERO + BANNIÈRE
===================== */

.hero-banner{
  position: relative;
  border-radius: 22px;
  padding: 36px 36px;            /* compact */
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);

  background:
    linear-gradient(to bottom, rgba(11,10,8,.55), rgba(11,10,8,.90)),
    radial-gradient(900px 420px at 18% 15%, rgba(192,138,75,.35), transparent 60%),
    url("images/top.jpg") center / cover no-repeat;
}

/* grain subtil */
.hero-banner::after{
  content:"";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .05;
  pointer-events: none;
}

/* hero cliquable (si tu l'utilises sur pages internes) */
.hero-link{
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-content{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-banner:hover{ filter: brightness(1.02); }

.name{
  font-weight: 900;
  letter-spacing: .25px;
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 6px;
}

.kicker{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 12px;
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
}

.subtitle{
  color: rgba(242,238,230,.82);
  max-width: 64ch;
}

/* =====================
   AXES (dans le hero)
===================== */

.axes{
  margin-top: 14px;
  max-width: 64ch;
}

.axes-title{
  display: block;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--accent2);
  margin-bottom: 6px;
}

.axes ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.axes li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 3px;
}

.axes li::before{
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =====================
   PORTRAIT (cartouche)
===================== */

.hero-photo{
  display: flex;
  justify-content: center;
}

.hero-photo img{
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: #0d0c0a;
  box-shadow: 0 18px 42px rgba(0,0,0,.60);
}

/* =====================
   SECTIONS
===================== */

.section{
  margin-top: 60px;
  position: relative;
}

.section::before{
  content:"";
  display: block;
  width: 96px;
  height: 2px;
  background: rgba(192,138,75,.55);
  border-radius: 2px;
  margin: 0 0 28px;
}

.section h2{
  margin: 0 0 18px;
  font-size: 2rem;
  letter-spacing: .25px;
}

/* =====================
   PANNEAUX (alt / alt1)
===================== */

.section.section-alt,
.section.section-alt1{
  background: var(--panel-solid);
  background-image: var(--panel-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: calc(var(--radius) + 2px);
  padding: 40px;
  margin-top: 30px;
  box-shadow: 0 18px 36px rgba(0,0,0,.45);
}

.section.section-alt{
  border-left: 4px solid rgba(192,138,75,.45);
  border-bottom: 4px solid rgba(192,138,75,.45);
}

.section.section-alt1{
  border-right: 4px solid rgba(192,138,75,.45);
  border-bottom: 4px solid rgba(192,138,75,.45);
}

.section.section-alt::before,
.section.section-alt1::before{
  display: none;
}

/* =====================
   STATS
===================== */

.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat{
  background: var(--panel-bg);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 12px 26px rgba(0,0,0,.40);
  border-left: 4px solid rgba(192,138,75,.55);
}

.stat strong{
  display: block;
  font-size: 1.05rem;
}

.stat span{
  color: rgba(242,238,230,.72);
}

/* =====================
   CARTES / GRILLES
===================== */

.grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card,
.card1{
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,.55);
  background: rgba(255,255,255,.05);
}

.card1 h3,
.card h3{
  margin: 0 0 10px;
  letter-spacing: .25px;
}

.card1 p,
.card p{
  margin: 0;
  color: rgba(242,238,230,.72);
}

/* =====================
   LISTES DE PUBLICATIONS
===================== */

.pub-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.pub-list li{
  position: relative;
  padding-left: 18px;
  margin: 0 0 8px;
}

.pub-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bullet);
}

.pub-list.tri li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--bullet);
}

/* liens dans les publications */
.pub-list a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.pub-list a:hover,
.pub-list a:focus{
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =====================
   FOOTER
===================== */

.site-footer{
  margin-top: 82px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(242,238,230,.70);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =====================
   NAV BURGER (mobile)
===================== */

.nav-toggle{
  display: none; /* desktop: caché */
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover{ background: rgba(255,255,255,.08); }

.nav-toggle-icon{
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  color: var(--text);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-icon::before{ top: -6px; }
.nav-toggle-icon::after{ top: 6px; }

/* état "ouvert" -> X */
.nav-open .nav-toggle-icon{ background: transparent; }
.nav-open .nav-toggle-icon::before{ top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-icon::after{ top: 0; transform: rotate(-45deg); }

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 900px){
	 /* le burger tout à droite */
  .nav-toggle{
    order: 3;
    margin-left: auto;
  }

  .wrap{ padding: 22px 16px 64px; }

  /* header sticky + burger */
  .site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    margin-bottom: 14px;
  }

  .nav-toggle{ display: inline-flex; }

  /* nav en panneau */
  .site-nav{
  display: none;
  position: absolute;
  top: calc(100% + 10px);

  right: 16px;
  left: auto;

  width: 33vw;                /* fluide */
  max-width: 360px;           /* limite élégante */
  min-width: 200px;           /* évite trop étroit */
  padding: 10px 10px 10px 2px;
    border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-solid); /* clair/sombre selon thème */
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(0,0,0,.25);

  text-align: left;           /* meilleure lisibilité */
}


  .nav-open .site-nav{
    display: grid;
    gap: 8px;
  }

  .site-nav a{
   padding: 10px 12px 10px 2px;
	 border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid transparent;
  }

  .site-nav a:hover{
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
  }

  /* hero */
  .hero-content{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }

  .hero-photo{ order: -1; }
  .hero-banner{ padding: 34px 20px; }

  /* grilles */
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .grid{ grid-template-columns: 1fr; }

  .section.section-alt,
  .section.section-alt1{ padding: 30px; }
}

@media (max-width: 500px){
  .stats{ grid-template-columns: 1fr; }
}

/* =====================
   LinkedIn bouton (si tu l'utilises)
===================== */
.libutton{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px;
  text-align: center;
  outline: none;
  text-decoration: none !important;
  color: #ffffff !important;
  width: 50px;
  height: 32px;
}
