/* ============================================================
   INSTITUT PROMÉTHÉE — Styles globaux partagés
   Toutes les pages importent ce fichier
   ============================================================ */

/* ── POLICES ── */
/* Google Fonts : décommentez en production avec accès internet */
/* @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap'); */

/* ── VARIABLES ── */
:root {
  /* Palette principale */
  --blanc:        #FFFFFF;
  --ciel-leger:   #F0F7FD;
  --ciel:         #D6EAF8;
  --bleu-ip:      #1B6CA8;
  --bleu-fonce:   #0D3B6E;
  --bleu-nuit:    #082347;
  --or:           #C9A84C;
  --or-clair:     #F5EDD0;

  /* Neutres */
  --gris-bg:      #F5F7FA;
  --gris-border:  #DDE3EC;
  --gris-light:   #EEF1F6;
  --gris-texte:   #4A5568;
  --gris-doux:    #718096;
  --texte:        #1A2332;

  /* Types de publications */
  --rapport:      #0D3B6E;
  --note-action:  #1B6CA8;
  --note-eclairage: #2980B9;
  --expression:   #5D4E8C;
  --operation:    #C9A84C;

  /* Typographie */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-ui:      'Space Grotesk', system-ui, sans-serif;

  /* Tailles */
  --nav-h:        68px;
  --breadcrumb-h: 44px;
  --max-w:        1200px;
  --radius:       3px;

  /* Ombres */
  --shadow-sm:    0 2px 8px rgba(13,59,110,0.08);
  --shadow-md:    0 6px 20px rgba(13,59,110,0.12);
  --shadow-lg:    0 16px 48px rgba(13,59,110,0.16);

  /* Transitions */
  --transition:   0.22s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── UTILITAIRES ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── TYPOGRAPHIE ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h4, h5, h6, .ui-text { font-family: var(--font-ui); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bleu-ip);
  margin-bottom: 8px;
  display: block;
}

/* ── TAGS TYPES PUBLICATION ── */
.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px;
}
.tag-rapport         { background: var(--rapport);         color: #fff; }
.tag-note-action     { background: var(--note-action);     color: #fff; }
.tag-note-eclairage  { background: var(--note-eclairage);  color: #fff; }
.tag-expression      { background: var(--expression);      color: #fff; }
.tag-operation       { background: var(--operation);       color: var(--bleu-nuit); }
.tag-note            { background: var(--bleu-ip);         color: #fff; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 13.5px; font-weight: 600;
  padding: 11px 24px; border-radius: var(--radius);
  border: none; text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--bleu-fonce); color: #fff;
}
.btn-primary:hover { background: var(--bleu-ip); }

.btn-or {
  background: var(--or); color: var(--bleu-nuit);
}
.btn-or:hover { background: #debb65; }

.btn-outline {
  background: transparent; color: var(--bleu-fonce);
  border: 1.5px solid var(--bleu-fonce);
}
.btn-outline:hover { background: var(--bleu-fonce); color: #fff; }

.btn-outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-ghost {
  background: transparent; color: var(--bleu-ip);
  padding: 8px 0; font-size: 13px;
}
.btn-ghost:hover { color: var(--bleu-fonce); }
.btn-ghost::after { content: ' →'; }

/* ── NAVBAR ── */
#nav-placeholder { height: var(--nav-h); } /* réserve l'espace sous la nav fixe */

.ip-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gris-border);
  height: var(--nav-h);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ip-nav .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--bleu-fonce);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-mark-placeholder {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--or);
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-text .sup {
  font-family: var(--font-ui);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris-doux);
}
.nav-logo-text .main {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--bleu-fonce);
}

/* Pôles centre nav */
.nav-poles {
  display: flex; align-items: center; gap: 2px;
  list-style: none; flex: 1; justify-content: center;
}
.nav-pole-item { position: relative; }
.nav-pole-btn {
  background: none; border: none;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--gris-texte);
  padding: 8px 14px; border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-pole-btn:hover,
.nav-pole-btn[aria-expanded="true"] {
  color: var(--bleu-ip); background: var(--ciel-leger);
}

/* Mega dropdown pôle */
.nav-pole-dropdown {
  display: none;
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--gris-border);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  width: 520px;
  padding: 24px;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}
.nav-pole-dropdown.open { display: grid; }

.nav-pole-dropdown-left h3 {
  font-family: var(--font-display);
  font-size: 17px; color: var(--bleu-fonce);
  margin-bottom: 12px;
}
.nav-pole-dropdown-left .decouvrir {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  color: var(--bleu-ip); text-decoration: none;
  border: 1px solid var(--bleu-ip); padding: 4px 12px; border-radius: 2px;
}
.nav-pole-dropdown-left .decouvrir:hover { background: var(--bleu-ip); color: white; }

.nav-pole-sous-themes { list-style: none; }
.nav-pole-sous-themes li { margin-bottom: 6px; }
.nav-pole-sous-themes a {
  font-size: 13px; color: var(--gris-texte);
  text-decoration: none; transition: color var(--transition);
}
.nav-pole-sous-themes a:hover { color: var(--bleu-ip); }

.nav-pole-dropdown-right { border-left: 1px solid var(--gris-border); padding-left: 24px; }
.nav-pole-pub-card {
  text-decoration: none; display: block;
}
.nav-pole-pub-card img {
  width: 100%; height: 100px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 10px;
}
.nav-pole-pub-card-img-placeholder {
  width: 100%; height: 100px;
  background: var(--ciel); border-radius: var(--radius);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.nav-pole-pub-card p {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  color: var(--bleu-fonce); line-height: 1.35;
  margin-top: 8px;
}
.nav-pole-pub-card p:hover { color: var(--bleu-ip); }

/* Droite nav : recherche + burger */
.nav-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.nav-search-btn {
  background: none; border: none;
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gris-texte); font-size: 18px;
  transition: all var(--transition);
}
.nav-search-btn:hover { background: var(--ciel-leger); color: var(--bleu-ip); }

.nav-burger-btn {
  background: none; border: 1.5px solid var(--gris-border);
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  transition: all var(--transition);
}
.nav-burger-btn span {
  width: 18px; height: 1.5px;
  background: var(--texte); border-radius: 2px;
  transition: all var(--transition);
}
.nav-burger-btn:hover { border-color: var(--bleu-ip); }
.nav-burger-btn:hover span { background: var(--bleu-ip); }

/* ── MENU BURGER (panneau latéral) ── */
.nav-drawer-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(8,35,71,0.5);
  backdrop-filter: blur(2px);
}
.nav-drawer-overlay.open { display: block; }

.nav-drawer {
  position: fixed; top: var(--nav-h); right: -380px; bottom: 0;
  width: 360px; z-index: 1002;
  background: white;
  overflow-y: auto;
  transition: right 0.3s ease;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(8,35,71,0.12);
}
.nav-drawer.open { right: 0; }

.nav-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gris-border);
}
.nav-drawer-header .langue {
  font-family: var(--font-ui); font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  color: var(--gris-texte);
}
.nav-drawer-header .langue a {
  text-decoration: none; font-weight: 600;
  color: var(--bleu-ip);
}
.nav-drawer-close {
  background: none; border: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--gris-texte);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-drawer-close:hover { background: var(--gris-light); color: var(--texte); }

.nav-drawer-body { padding: 24px; flex: 1; }

.nav-drawer-section { margin-bottom: 28px; }
.nav-drawer-section-title {
  font-family: var(--font-ui);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gris-doux); margin-bottom: 10px;
}
.nav-drawer-links { list-style: none; }
.nav-drawer-links li { border-bottom: 1px solid var(--gris-light); }
.nav-drawer-links a {
  display: block; padding: 11px 0;
  font-size: 14px; font-weight: 500;
  color: var(--texte); text-decoration: none;
  transition: color var(--transition);
}
.nav-drawer-links a:hover { color: var(--bleu-ip); }

.nav-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gris-border);
}
.nav-drawer-footer .social-row {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gris-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none; color: var(--texte);
  transition: all var(--transition);
}
.social-icon:hover { background: var(--bleu-ip); color: white; }

.nav-drawer-expressions {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--ciel-leger);
  border-radius: var(--radius);
  text-decoration: none; color: var(--texte);
  transition: background var(--transition);
}
.nav-drawer-expressions:hover { background: var(--ciel); }
.nav-drawer-expressions .label {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  color: var(--bleu-ip);
}
.nav-drawer-expressions .desc {
  font-size: 11.5px; color: var(--gris-doux);
}

/* ── FIL D'ARIANE (toutes pages sauf home) ── */
.breadcrumb {
  background: var(--gris-bg);
  border-bottom: 1px solid var(--gris-border);
  height: var(--breadcrumb-h);
  display: flex; align-items: center;
}
.breadcrumb .container {
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a {
  font-family: var(--font-ui);
  font-size: 12px; color: var(--gris-doux);
  text-decoration: none; transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--bleu-ip); }
.breadcrumb .sep {
  font-size: 11px; color: var(--gris-border);
}
.breadcrumb .current {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600;
  color: var(--texte);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}

/* ── BARRE DE RECHERCHE (globale, en haut) ── */
.search-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1003;
  background: rgba(8,35,71,0.92);
  backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center;
  padding-top: 120px;
}
.search-overlay.open { display: flex; }
.search-overlay-inner { width: 100%; max-width: 640px; padding: 0 24px; }
.search-overlay label {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 12px; display: block;
}
.search-overlay input {
  width: 100%; background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: var(--font-body); font-size: 18px;
  color: white; outline: none;
  transition: border-color var(--transition);
}
.search-overlay input::placeholder { color: rgba(255,255,255,0.4); }
.search-overlay input:focus { border-color: var(--or); }
.search-overlay .hint {
  margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.4);
}
.search-overlay .close-search {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 24px; cursor: pointer;
}

/* ── FOOTER ── */
.ip-footer {
  background: var(--bleu-nuit);
  padding: 56px 0 28px;
}
.ip-footer .footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-brand-logo .mark {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--bleu-fonce);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.footer-brand-logo .mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-logo .mark-placeholder {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--or);
}
.footer-brand-logo .name {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: white;
}
.footer-brand p {
  font-size: 13px; color: rgba(255,255,255,0.45);
  line-height: 1.75; max-width: 260px;
}
.footer-brand .adresse {
  margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.3);
}
.footer-col h4 {
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--or); margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom-links {
  display: flex; gap: 20px; list-style: none;
}
.footer-bottom-links a {
  font-size: 11.5px; color: rgba(255,255,255,0.25);
  text-decoration: none; transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── NEWSLETTER (section réutilisable) ── */
.newsletter-section {
  background: var(--bleu-fonce);
  padding: 56px 0;
  text-align: center;
}
.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: white; margin-bottom: 6px;
}
.newsletter-section p {
  font-size: 14px; color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex; gap: 10px; max-width: 420px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 11px 16px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  font-family: var(--font-body); font-size: 14px; color: white;
  outline: none; transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--or); }

/* ── SECTION HEADERS ── */
.section-hd {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-hd-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: var(--bleu-nuit);
}
.link-voir-tout {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--bleu-ip); text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  transition: color var(--transition); white-space: nowrap;
}
.link-voir-tout:hover { color: var(--bleu-fonce); }
.link-voir-tout::after { content: ' →'; }

/* ── CARTES PUBLICATION ── */
.pub-card {
  border: 1px solid var(--gris-border);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pub-card-thumb {
  height: 160px; overflow: hidden;
  background: var(--ciel-leger);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.pub-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pub-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.pub-card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.pub-card-date { font-size: 11.5px; color: var(--gris-doux); }
.pub-card-title {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--bleu-fonce); line-height: 1.4;
  margin-bottom: 8px; flex: 1;
}
.pub-card-auteur { font-size: 12px; color: var(--gris-doux); }

/* ── ÉTAT VIDE ── */
.empty-state {
  border: 2px dashed var(--gris-border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  background: var(--gris-bg);
}
.empty-state-icon { font-size: 32px; margin-bottom: 10px; }
.empty-state-title {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--gris-texte); margin-bottom: 4px;
}
.empty-state-desc { font-size: 12.5px; color: #9aa5b4; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-poles { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 20px; }
  body { overflow-x: hidden; }
  .ip-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .section-hd { flex-direction: column; align-items: flex-start; gap: 6px; }
  .newsletter-form { flex-direction: column; }
  .nav-drawer {
    top: 0;
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .ip-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
