/* ============================================================
   MUZY — Design system partagé (pages intérieures)
   Identité : marine #071F32 · rouge #D22638 · pierre #F7F3EC
   Typo : Fraunces (display) + Montserrat (UI/texte)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --marine: #071F32;
  --marine-2: #0C2C46;
  --marine-deep: #04131F;
  --marine-80: rgba(7,31,50,0.80);
  --marine-55: rgba(7,31,50,0.55);
  --marine-10: rgba(7,31,50,0.08);
  --rouge: #D22638;
  --rouge-deep: #A81628;
  --or: #E7C9A0;
  --bleu-lien: #2C43C4;
  --pierre: #F7F3EC;
  --pierre-2: #EFE8DC;
  --sable: #E3D8C6;
  --blanc: #FFFFFF;
  --texte: #16242E;
  --gris: #56646E;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(7,31,50,0.06);
  --shadow-md: 0 16px 40px rgba(7,31,50,0.12);
  --shadow-lg: 0 34px 80px rgba(7,31,50,0.20);
  --maxw: 1280px;
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--texte); background: var(--blanc);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; font-size: 16px; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, .display { font-family: 'Fraunces', Georgia, serif; }
::selection { background: rgba(210,38,56,0.16); color: var(--marine); }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--marine); color: #fff; padding: 10px 18px; z-index: 500; font-weight: 600; border-radius: 0 0 8px 8px; transition: top 0.2s ease; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--rouge); }
.eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--rouge); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700; border-radius: var(--r-sm); cursor: pointer; border: 1.5px solid transparent; transition: all 0.3s var(--ease); }
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--rouge); color: #fff; box-shadow: 0 10px 26px rgba(210,38,56,0.30); }
.btn-primary:hover { background: var(--rouge-deep); transform: translateY(-2px); }
.btn-dark { background: var(--marine); color: #fff; }
.btn-dark:hover { background: var(--rouge); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--marine); border-color: var(--sable); }
.btn-outline:hover { border-color: var(--marine); background: var(--pierre); }

/* ============================================================
   HEADER (sticky, solide — pages intérieures)
   ============================================================ */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--sable); box-shadow: var(--shadow-sm); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 38px; height: 44px; transition: transform 0.4s var(--ease); }
.logo:hover svg { transform: translateY(-2px); }
.logo-name { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; letter-spacing: 3px; color: var(--marine); }
.logo-sub { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.55rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--marine-55); margin-top: -2px; }

.nav-main { display: flex; gap: 4px; }
.nav-main > li { position: relative; }
.nav-main > li > a { display: flex; align-items: center; height: 68px; padding: 0 16px; font-size: 0.9rem; font-weight: 600; color: var(--marine); position: relative; transition: color 0.3s var(--ease); }
.nav-main > li > a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-main > li:hover > a::after, .nav-main > li.current > a::after { transform: scaleX(1); }
.nav-main > li.current > a { color: var(--marine); }
.dropdown { position: absolute; top: calc(100% - 8px); left: 0; min-width: 268px; background: #fff; border: 1px solid var(--sable); box-shadow: var(--shadow-md); padding: 10px; border-radius: var(--r-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.28s var(--ease); }
.nav-main > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 16px; font-size: 0.87rem; font-weight: 500; color: var(--marine-80); border-radius: var(--r-sm); transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease; }
.dropdown a:hover { background: var(--pierre); color: var(--marine); padding-left: 22px; }

.header-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--marine); border: 1px solid var(--marine); color: #fff; cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 600; padding: 10px 18px; border-radius: var(--r-sm); transition: all 0.3s var(--ease); }
.icon-btn:hover { background: var(--rouge); border-color: var(--rouge); }
.icon-btn svg { width: 17px; height: 17px; }
.burger { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--marine); border: 1px solid var(--marine); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; }

/* ============================================================
   FIL D'ARIANE
   ============================================================ */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 16px clamp(18px,4vw,44px); font-size: 0.8rem; color: var(--marine-55); }
.breadcrumb a { color: var(--marine-55); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }

/* ============================================================
   BANDEAU DE PAGE (page-hero)
   ============================================================ */
.page-hero { position: relative; background: var(--marine); color: #fff; overflow: hidden; padding: clamp(52px, 8vw, 96px) clamp(18px,4vw,44px) clamp(44px, 6vw, 72px); text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 380px at 20% -10%, rgba(210,38,56,0.22), transparent 60%); }
.page-hero::after { content: 'M'; position: absolute; right: 2vw; bottom: -12vw; font-family: 'Fraunces', serif; font-size: 34vw; line-height: 1; font-weight: 600; color: rgba(255,255,255,0.03); pointer-events: none; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #fff; justify-content: center; margin-bottom: 16px; }
.page-hero .eyebrow::before { background: var(--rouge); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.06; }
.page-hero h1 em { font-style: italic; color: var(--or); }
.page-hero p { font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255,255,255,0.78); max-width: 60ch; margin: 16px auto 0; }

/* --- Variante photo (cinématique) --- */
.page-hero.ph-photo { padding-top: clamp(70px, 10vw, 128px); padding-bottom: clamp(48px, 7vw, 84px); }
.page-hero.ph-photo::before, .page-hero.ph-photo::after { display: none; }
.page-hero .page-hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.page-hero .page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,19,31,0.50) 0%, rgba(4,19,31,0.30) 42%, rgba(4,19,31,0.86) 100%); }

/* --- Variante claire (éditoriale, pages sans photo) --- */
.page-hero.ph-light { background: var(--pierre); color: var(--texte); border-bottom: 1px solid var(--sable); }
.page-hero.ph-light::before { background: radial-gradient(680px 300px at 18% -20%, rgba(210,38,56,0.10), transparent 60%); }
.page-hero.ph-light::after { color: rgba(7,31,50,0.045); }
.page-hero.ph-light .eyebrow { color: var(--rouge); }
.page-hero.ph-light h1 { color: var(--marine); }
.page-hero.ph-light h1 em { color: var(--rouge); }
.page-hero.ph-light p { color: var(--gris); }

/* ============================================================
   EN-TÊTE DE PAGE RÉINVENTÉ (léger, éditorial, aligné au contenu)
   + sous-navigation d'ancres sticky (l'apport)
   ============================================================ */
.page-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(30px, 4.5vw, 56px) clamp(18px, 4vw, 44px) clamp(24px, 3vw, 34px); }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 500; color: var(--marine); letter-spacing: -0.018em; line-height: 1.04; max-width: 22ch; }
.page-head h1 em { font-style: italic; color: var(--rouge); }
.page-head .lead { margin-top: 16px; color: var(--gris); font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 62ch; }

.page-nav { position: sticky; top: 67px; z-index: 60; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--sable); border-bottom: 1px solid var(--sable); }
.page-nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.page-nav-inner::-webkit-scrollbar { display: none; }
.page-nav a { padding: 15px 15px; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--gris); white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.page-nav a:hover { color: var(--marine); }
.page-nav a.active { color: var(--marine); border-bottom-color: var(--rouge); }

.page-content h2[id], .section-anchor { scroll-margin-top: 132px; }

/* ============================================================
   MISE EN PAGE 2 COLONNES (contenu large + aside collant)
   Casse la « colonne raide » : utilise l'espace, ancre les infos utiles
   ============================================================ */
.page-layout { max-width: var(--maxw); margin: 0 auto; padding: clamp(38px, 5vw, 60px) clamp(18px, 4vw, 44px) clamp(60px, 8vw, 92px); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(34px, 4vw, 62px); align-items: start; }
.page-layout > .page-content { max-width: none; margin: 0; padding: 0; }
.page-aside { position: sticky; top: 132px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--pierre); border: 1px solid var(--sable); border-radius: var(--r-md); padding: 22px 24px; }
.aside-card h3 { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--marine-55); margin-bottom: 8px; font-weight: 700; }
.aside-card .a-item { padding: 13px 0; border-top: 1px solid var(--sable); font-size: 0.9rem; color: var(--gris); line-height: 1.55; }
.aside-card .a-item:first-of-type { border-top: none; }
.aside-card .a-item strong { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 1px; color: var(--marine-55); margin-bottom: 3px; font-weight: 700; }
.aside-card .a-item a { color: var(--bleu-lien); font-weight: 600; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 16px; }
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; gap: 28px; }
  .page-aside { position: static; }
}

/* ============================================================
   CONTENU (prose)
   ============================================================ */
.page-content { max-width: 840px; margin: 0 auto; padding: clamp(44px, 6vw, 76px) clamp(18px, 4vw, 44px) clamp(60px, 8vw, 96px); }
.page-content > *:first-child { margin-top: 0; }
.page-content h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 600; color: var(--marine); line-height: 1.14; margin: 48px 0 18px; padding-left: 18px; position: relative; letter-spacing: -0.01em; }
.page-content h2::before { content: ''; position: absolute; left: 0; top: 0.12em; bottom: 0.12em; width: 4px; border-radius: 4px; background: var(--rouge); }
.page-content h3 { font-size: 1.25rem; font-weight: 600; color: var(--marine); margin: 30px 0 12px; }
.page-content p { font-size: 1.02rem; color: var(--gris); line-height: 1.85; margin-bottom: 16px; }
.page-content p strong, .page-content li strong { color: var(--marine); font-weight: 700; }
.page-content ul { margin: 0 0 18px 4px; }
.page-content ul li { position: relative; padding-left: 26px; font-size: 1rem; color: var(--gris); line-height: 1.75; margin-bottom: 10px; }
.page-content ul li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--rouge); }
.page-content ol { margin: 0 0 18px 22px; }
.page-content ol li { font-size: 1rem; color: var(--gris); line-height: 1.75; margin-bottom: 10px; }
.page-content a { color: var(--bleu-lien); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.page-content a:hover { border-bottom-color: currentColor; }

.page-content img,
.content-img { width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-md); margin: 26px 0; }

.info-box { background: var(--pierre); border-left: 4px solid var(--rouge); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 22px 26px; margin: 26px 0; font-size: 1rem; line-height: 1.75; color: var(--gris); }
.info-box strong { color: var(--marine); }

.contact-block { background: var(--pierre); border: 1px solid var(--sable); border-radius: var(--r-md); padding: 28px; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 24px; }
.contact-block h4 { font-family: 'Montserrat', sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--marine-55); margin-bottom: 8px; font-weight: 700; }
.contact-block p { font-size: 0.95rem; margin: 0; color: var(--texte); }
.contact-block a { color: var(--bleu-lien); font-weight: 600; }

.section-anchor { scroll-margin-top: 90px; }

table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 0.95rem; }
table th { background: var(--marine); color: #fff; text-align: left; padding: 14px 18px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.85rem; }
table td { padding: 14px 18px; border-bottom: 1px solid var(--sable); color: var(--gris); }
table tr:nth-child(even) td { background: var(--pierre); }

/* ============================================================
   GALERIE PHOTOS (« en images ») + zoom au clic
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; gap: 14px; margin: 32px 0; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--r-md); margin: 0; cursor: zoom-in; box-shadow: var(--shadow-sm); background: var(--pierre); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,19,31,0) 45%, rgba(4,19,31,0.6) 100%); opacity: 0; transition: opacity 0.3s var(--ease); }
.gallery figure:hover::before { opacity: 1; }
.gallery .zoom-badge { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: var(--r-sm); background: rgba(255,255,255,0.9); color: var(--marine); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(-6px); transition: all 0.3s var(--ease); pointer-events: none; }
.gallery figure:hover .zoom-badge { opacity: 1; transform: none; }
.gallery .zoom-badge svg { width: 17px; height: 17px; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; color: #fff; font-size: 0.82rem; font-weight: 500; opacity: 0; transform: translateY(8px); transition: all 0.3s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }

/* image de contenu : cliquable pour agrandir */
.content-img { cursor: zoom-in; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .gallery .g-big { grid-column: span 2; grid-row: span 2; }
  .gallery .g-wide { grid-column: span 2; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery .g-wide, .gallery .g-big, .gallery .g-tall { grid-column: auto; grid-row: auto; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(4,19,31,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .lb-stage { max-width: 92vw; max-height: 84vh; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: var(--r-sm); box-shadow: 0 40px 100px rgba(0,0,0,0.5); transition: opacity 0.2s ease; }
.lightbox .lb-cap { color: rgba(255,255,255,0.85); font-size: 0.9rem; text-align: center; max-width: 60ch; min-height: 1.2em; }
.lb-btn { position: absolute; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: all 0.25s var(--ease); }
.lb-btn:hover { background: #fff; color: var(--marine); border-color: #fff; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-count { position: absolute; top: 28px; left: 28px; color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; }
@media (max-width: 640px) { .lb-prev { left: 10px; } .lb-next { right: 10px; } .lb-btn { width: 44px; height: 44px; } }

/* Grille de cartes générique (élus, services, partenaires…) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 28px 0; }
.p-card { background: #fff; border: 1px solid var(--sable); border-radius: var(--r-md); padding: 26px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.p-card h3 { font-size: 1.15rem; color: var(--marine); }
.p-card p { font-size: 0.92rem; color: var(--gris); margin-top: 6px; }

/* ============================================================
   CATALOGUE COMPTES-RENDUS (recherche + filtre par année)
   ============================================================ */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 10px 0 22px; }
.catalog-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--pierre); border: 1px solid var(--sable); border-radius: var(--r-md); padding: 0 16px; height: 50px; }
.catalog-search svg { opacity: 0.4; flex-shrink: 0; }
.catalog-search input { flex: 1; border: none; background: none; outline: none; font-family: inherit; font-size: 0.95rem; color: var(--marine); }
.catalog-search input::placeholder { color: var(--marine-55); }
.year-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.year-filter button { padding: 9px 16px; border: 1px solid var(--sable); background: #fff; border-radius: 100px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--marine); cursor: pointer; transition: all 0.25s var(--ease); }
.year-filter button:hover { border-color: var(--marine); }
.year-filter button.active { background: var(--marine); color: #fff; border-color: var(--marine); }

.cr-count { font-size: 0.85rem; color: var(--gris); margin-bottom: 16px; }
.cr-list { display: flex; flex-direction: column; gap: 12px; }
.cr-item { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--sable); border-radius: var(--r-md); padding: 18px 22px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.cr-item:hover { border-color: var(--marine); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cr-date { flex-shrink: 0; width: 66px; height: 66px; border-radius: var(--r-sm); background: var(--marine); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.cr-date::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 2px; background: var(--rouge); }
.cr-date .d { font-family: 'Fraunces', serif; font-size: 1.45rem; font-weight: 600; line-height: 1; }
.cr-date .m { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.cr-body { flex: 1; min-width: 0; }
.cr-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--marine); }
.cr-body .cr-meta { font-size: 0.82rem; color: var(--gris); margin-top: 2px; }
.cr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cr-tag { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--rouge); background: rgba(210,38,56,0.08); padding: 3px 10px; border-radius: 100px; }
.cr-dl { flex-shrink: 0; }
.cr-dl .btn { padding: 11px 18px; font-size: 0.82rem; }
.cr-empty { text-align: center; padding: 50px 20px; color: var(--gris); border: 1px dashed var(--sable); border-radius: var(--r-md); }
@media (max-width: 620px) {
  .cr-item { flex-wrap: wrap; }
  .cr-dl { width: 100%; } .cr-dl .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--marine); color: rgba(255,255,255,0.75); padding-top: clamp(56px, 7vw, 88px); }
.footer-inner, .footer .wrap { max-width: var(--maxw); margin: 0 auto; padding-left: clamp(18px,4vw,44px); padding-right: clamp(18px,4vw,44px); }
.footer-top, .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer h3, .footer h4 { font-family: 'Montserrat', sans-serif; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; margin-bottom: 16px; }
.footer .brand-name { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; letter-spacing: 2px; color: #fff; display: flex; align-items: center; gap: 12px; }
.footer .brand-name svg { width: 34px; height: 40px; }
.footer address { font-style: normal; margin-top: 16px; line-height: 1.8; font-size: 0.9rem; }
.footer p, .footer li { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.7; }
.footer a:hover { color: #fff; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { transition: padding-left 0.25s var(--ease); }
.footer ul li a:hover { padding-left: 8px; }
.footer .urg strong, .footer strong { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 24px 0; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ============================================================
   DRAWER MOBILE + RECHERCHE
   ============================================================ */
.overlay { position: fixed; inset: 0; background: rgba(4,19,31,0.5); z-index: 199; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 88vw; background: #fff; z-index: 200; transform: translateX(100%); transition: transform 0.4s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--sable); }
.drawer-head .logo-name { color: var(--marine); }
.drawer-close { width: 44px; height: 44px; border: none; background: var(--pierre); border-radius: var(--r-sm); cursor: pointer; font-size: 1.5rem; color: var(--marine); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.dnav-item { border-bottom: 1px solid var(--marine-10); }
.dnav-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; font-weight: 600; color: var(--marine); cursor: pointer; }
.dnav-link .chev { transition: transform 0.3s ease; color: var(--marine-55); }
.dnav-item.open .chev { transform: rotate(180deg); }
.dsub { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); background: var(--pierre); }
.dnav-item.open .dsub { max-height: 460px; }
.dsub a { display: block; padding: 12px 22px 12px 34px; color: var(--marine-80); font-size: 0.9rem; font-weight: 500; border-top: 1px solid rgba(7,31,50,0.05); }
.dsub a:hover { color: var(--rouge); }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--sable); background: var(--pierre); font-size: 0.85rem; line-height: 1.7; }
.drawer-foot a { color: var(--rouge); font-weight: 600; }

.search { position: fixed; inset: 0; background: #fff; z-index: 300; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: all 0.28s var(--ease); }
.search.open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-head { display: flex; align-items: center; gap: 14px; padding: 16px clamp(18px,4vw,44px); border-bottom: 1px solid var(--sable); }
.search-field { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--pierre); padding: 0 20px; height: 56px; border-radius: var(--r-md); }
.search-field svg { opacity: 0.4; flex-shrink: 0; }
.search-field input { flex: 1; border: none; background: none; outline: none; font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--marine); }
.search-cancel { background: none; border: none; cursor: pointer; font-weight: 700; color: var(--rouge); font-size: 0.9rem; }
.search-body { flex: 1; overflow-y: auto; padding: 36px clamp(18px,4vw,44px); max-width: 900px; }
.search-body h3 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--marine-55); margin-bottom: 16px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.search-tags a { padding: 10px 18px; background: var(--pierre); border-radius: var(--r-sm); font-weight: 500; font-size: 0.9rem; color: var(--marine); transition: all 0.25s ease; }
.search-tags a:hover { background: var(--marine); color: #fff; }
.search-links a { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--marine-10); color: var(--marine); font-size: 0.98rem; }
.search-links a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); }
.search-links a:hover { color: var(--rouge); }

/* ============================================================
   RÉVÉLATIONS AU SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-main, .icon-btn .lbl { display: none; }
  .burger { display: flex; }
  .footer-top, .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .footer-top, .footer-grid { grid-template-columns: 1fr; }
  .contact-block { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
