/* ============================================================
   style.css — Artemia Production
   Ordre : reset/variables — menu desktop — page accueil
           pages internes — menu responsive
   ============================================================ */


/* ════════════════════════════════════════════════════════════
   1. RESET & VARIABLES
   ════════════════════════════════════════════════════════════ */

:root {
  --creme:       #f5f0e6;
  --creme-fonce: #ede5d4;
  --creme-bord:  #ddd3bc;
  --brique:      #c94a28;
  --brique-pale: #f2ded7;
  --brun:        #2c1e12;
  --brun-mid:    #5a3e2b;
  --brun-light:  #9c7e68;
  --blanc:       #fdfaf4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--creme);
  color: var(--brun);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  line-height: 1.7;
  overflow-x: hidden;
}


/* ════════════════════════════════════════════════════════════
   2. MENU DESKTOP
   Barre de navigation horizontale fixe en haut de page
   ════════════════════════════════════════════════════════════ */

.topbar {
  background: var(--brun);
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 54px;
}

.topbar-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--creme);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.topbar-logo em {
  font-style: italic;
  font-weight: normal;
  color: var(--brique);
}

/* Liste de premier niveau */
.topbar-nav {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  height: 54px;
}

/* Item de premier niveau */
.topbar-nav > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* Lien ou bouton de premier niveau */
.topbar-nav > li > a,
.topbar-nav > li > button {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  height: 100%;
}

.topbar-nav > li > a:hover,
.topbar-nav > li > button:hover {
  color: var(--creme);
  background: rgba(255, 255, 255, 0.05);
}

.topbar-nav > li > a.active {
  color: var(--brique);
}

.topbar-nav > li.open > button {
  color: var(--brique);
  background: rgba(255, 255, 255, 0.05);
}

/* Flèche indicatrice */
.nav-arrow {
  display: inline-block;
  font-style: normal;
  font-size: 0.45rem;
  line-height: 1;
  transition: transform 0.2s;
  pointer-events: none;
}

.topbar-nav > li.open > button .nav-arrow {
  transform: rotate(180deg);
}

/* Sous-menu déroulant */
.subnav {
  display: none;
  position: absolute;
  top: 54px;
  left: 0;
  min-width: 240px;
  background: var(--brun);
  border-top: 2px solid var(--brique);
  margin: 0;
  padding: 0.5rem 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.topbar-nav > li.open > .subnav {
  display: block;
}

.subnav li a {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.55);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.subnav li a:hover {
  color: var(--creme);
  background: rgba(255, 255, 255, 0.05);
}

.subnav li a.active { color: var(--brique); }

/* Hamburger : masqué en desktop */
.hamburger { display: none; }

/* Menu mobile : masqué par défaut, visible seulement via JS + classe .open */
.mobile-menu { display: none; }


/* ════════════════════════════════════════════════════════════
   3. PAGE ACCUEIL (index.html)
   ════════════════════════════════════════════════════════════ */

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  border-bottom: 1px solid var(--creme-bord);
}

.hero-left {
  background: var(--blanc);
  padding: 8vw 5vw 6vw 7vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--creme-bord);
  position: relative;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brique);
}

.hero-kicker {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--brique);
  flex-shrink: 0;
}

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: bold;
  line-height: 1.06;
  color: var(--brun);
  margin-bottom: 2.5rem;
}

h1 em {
  font-style: italic;
  font-weight: normal;
  color: var(--brique);
}

.hero-byline {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  color: var(--brun-light);
  letter-spacing: 0.08em;
  padding-top: 2rem;
  border-top: 1px solid var(--creme-bord);
}

.hero-right {
  background: var(--creme-fonce);
  padding: 8vw 5vw 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-right::after {
  content: '"';
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30rem;
  color: rgba(44, 30, 18, 0.04);
  position: absolute;
  top: -5rem;
  right: -2rem;
  line-height: 1;
  pointer-events: none;
}

.hero-intro {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--brun-mid);
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.hero-intro strong { color: var(--brun); font-weight: bold; }

.hero-toc {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--creme-bord);
  position: relative;
  z-index: 2;
}

.hero-toc-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 1rem;
}

.toc-list {
  counter-reset: toc;
  columns: 2;
  column-gap: 1.5rem;
}

.toc-list li {
  counter-increment: toc;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.76rem;
  color: var(--brun-light);
  padding: 0.28rem 0;
  border-bottom: 1px dotted var(--creme-bord);
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.68rem;
  color: var(--brique);
  flex-shrink: 0;
}

.toc-list a { color: inherit; text-decoration: none; transition: color 0.2s; }
.toc-list a:hover { color: var(--brique); }

/* RUBRIQUE BAR */
.rubrique-bar {
  background: var(--brun);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.rubrique-bar::-webkit-scrollbar { display: none; }

.rubrique-item {
  font-family: Helvetica, Arial, sans-serif;
  padding: 0.9rem 1.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.4);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.rubrique-item:hover { color: var(--creme); background: rgba(255, 255, 255, 0.04); }
.rubrique-item.active { color: var(--brique); background: rgba(201, 74, 40, 0.08); }

/* SECTIONS */
main { background: var(--creme); }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--creme-bord);
}

.section-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.section-number {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.5rem;
  font-weight: normal;
  color: var(--creme-bord);
  line-height: 1;
  text-align: right;
  padding-top: 0.2rem;
}

.section-meta {
  border-left: 3px solid var(--brique);
  padding-left: 1.5rem;
}

.section-rubrique {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 0.7rem;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  font-weight: bold;
  line-height: 1.15;
  color: var(--brun);
}

h2 em { font-style: italic; font-weight: normal; color: var(--brique); }

h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--brun);
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}

h3:first-child { margin-top: 0; }

p {
  font-size: 0.95rem;
  color: var(--brun-mid);
  margin-bottom: 1rem;
  line-height: 1.8;
}

p strong { color: var(--brun); font-weight: bold; }

/* Listes de contenu — scopées aux zones article pour ne pas contaminer les menus */
.section ul,
.article-body ul {
  margin: 0.8rem 0 1.2rem;
}

.section ul li,
.article-body ul li {
  font-size: 0.93rem;
  color: var(--brun-mid);
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  border-bottom: 1px dotted var(--creme-bord);
}

.section ul li:first-child,
.article-body ul li:first-child { border-top: 1px dotted var(--creme-bord); }

.section ul li::before,
.article-body ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--brique);
  font-size: 0.78rem;
  top: 0.38rem;
  font-family: Helvetica, Arial, sans-serif;
}

.section ul li strong,
.article-body ul li strong { color: var(--brun); font-weight: bold; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.pull-quote {
  background: var(--brique);
  padding: 3rem 3.5rem;
  margin: 3.5rem 0 0;
  position: relative;
  overflow: hidden;
}

.pull-quote::before {
  content: '"';
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10rem;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: -2rem;
  left: 1.5rem;
  line-height: 1;
}

.pull-quote p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: normal;
  color: var(--blanc);
  line-height: 1.55;
  position: relative;
  z-index: 1;
  margin: 0;
}

.steps-list { margin-top: 1rem; }

.step {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--creme-bord);
}

.step:last-child { border-bottom: 1px solid var(--creme-bord); }

.step-n {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  font-weight: normal;
  color: var(--brique);
  line-height: 1;
  padding-top: 0.15rem;
}

.actors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--creme-bord);
  border: 1px solid var(--creme-bord);
  margin-top: 1.5rem;
}

.actor-card {
  background: var(--blanc);
  padding: 2.5rem 2rem;
  transition: background 0.25s;
}

.actor-card:hover { background: var(--brique-pale); }

.actor-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 0.7rem;
}

.actor-card h3 { margin-top: 0; font-size: 1.2rem; margin-bottom: 0.9rem; }

.enjeux-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
  border: 1px solid var(--creme-bord);
}

.enjeu {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--creme-bord);
  background: var(--blanc);
}

.enjeu:last-child { border-right: none; }

.enjeu-num {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: normal;
  color: var(--brique);
  opacity: 0.4;
  margin-bottom: 1rem;
  line-height: 1;
}

.enjeu h3 {
  margin-top: 0;
  font-size: 0.9rem;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brun);
  margin-bottom: 1rem;
}

.comp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.comp-tag {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brun-mid);
  border: 1px solid var(--creme-bord);
  padding: 0.45rem 1.2rem;
  background: var(--blanc);
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  cursor: default;
}

.comp-tag:hover,
.comp-tag.feat {
  background: var(--brique);
  color: var(--blanc);
  border-color: var(--brique);
}

.finale {
  background: var(--brun);
  padding: 7rem 5vw;
  text-align: center;
}

.finale-orn {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  color: rgba(245, 240, 230, 0.2);
  letter-spacing: 1.5em;
  margin-bottom: 3rem;
}

.finale h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: normal;
  color: var(--creme);
  margin-bottom: 2.5rem;
}

.finale p {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  color: rgba(245, 240, 230, 0.6);
  font-size: 0.98rem;
  line-height: 1.82;
}

.finale p strong { color: rgba(245, 240, 230, 0.9); font-weight: normal; }

footer {
  background: var(--brun);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--creme);
}

.footer-logo em { font-style: italic; font-weight: normal; color: var(--brique); }

footer p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  color: rgba(245, 240, 230, 0.28);
  letter-spacing: 0.05em;
  margin: 0;
}

a { color: var(--brique); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

[id] { scroll-margin-top: 54px; }


/* ════════════════════════════════════════════════════════════
   4. PAGES INTERNES (articles, guides)
   ════════════════════════════════════════════════════════════ */

.hero-article {
  background: var(--blanc);
  border-bottom: 4px solid var(--brique);
  padding: 5rem 5vw 4rem;
}

.hero-article-inner {
  max-width: 820px;
  margin: 0 auto;
}

.breadcrumb {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--brun-light);
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--brun-light); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brique); }
.breadcrumb span { margin: 0 0.5rem; color: var(--creme-bord); }

.article-kicker {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 1.5rem;
}

.chapeau {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--brun-mid);
  border-left: 3px solid var(--brique);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-meta {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  color: var(--brun-light);
  letter-spacing: 0.06em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--creme-bord);
  margin-top: 1.5rem;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 5vw 5rem;
}

.article-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  margin: 3rem 0 1rem;
  padding-top: 3rem;
  border-top: 1px solid var(--creme-bord);
}

.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.article-body h3 { font-size: 1.15rem; margin: 2rem 0 0.7rem; }

.encadre {
  background: var(--brique-pale);
  border-left: 3px solid var(--brique);
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
}

.encadre p { margin-bottom: 0; color: var(--brun-mid); font-style: italic; }
.encadre p strong { color: var(--brun); font-style: normal; }


/* ════════════════════════════════════════════════════════════
   5. RESPONSIVE GLOBAL (mise en page des pages)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--creme-bord); padding: 6vw; }
  .hero-right { padding: 6vw; }
  .toc-list { columns: 1; }
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-number { text-align: left; font-size: 3rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .enjeux-grid { grid-template-columns: 1fr; }
  .enjeu { border-right: none; border-bottom: 1px solid var(--creme-bord); }
  .enjeu:last-child { border-bottom: none; }
  .actors-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   6. MENU RESPONSIVE (navigation mobile sous 860px)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {

  /* Masquer la nav desktop, afficher le hamburger */
  .topbar-nav { display: none; }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    height: 54px;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--creme);
    transition: transform 0.3s, opacity 0.3s;
  }

  /* Panneau menu mobile plein écran */
  .mobile-menu {
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brun);
    z-index: 99;
    overflow-y: auto;
    padding: 1.5rem 6vw 4rem;
  }

  .mobile-menu.open { display: block; }

  /* Libellé de catégorie */
  .mobile-cat {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--brique);
    padding: 1.5rem 0 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.2rem;
  }

  /* Liens du menu mobile */
  .mobile-menu a {
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.6);
    text-decoration: none;
    padding: 0.8rem 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.07);
    transition: color 0.2s;
  }

  .mobile-menu a:hover,
  .mobile-menu a.active { color: var(--creme); }

}


/* ════════════════════════════════════════════════════════════
   7. RESPONSIVE GLOBAL PETIT MOBILE (sous 620px)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 620px) {
  .rubrique-bar { display: none; }
  .step { grid-template-columns: 48px 1fr; gap: 1.2rem; }
  .step-n { font-size: 2.2rem; }
  .pull-quote { padding: 1.8rem; }
  .pull-quote::before { display: none; }
  footer { flex-direction: column; text-align: center; }
  .section { padding: 3.5rem 0; }
  h1 { font-size: 2.2rem; }
}
