/* ============================================
   STYLES — NETURB
   ============================================ */

/* Police Montserrat auto-hébergée — caractères latins étendus (accents, diacritiques) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Police Montserrat auto-hébergée — caractères latins de base */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

/* Typographie globale : police, taille, interligne, couleur, fond — toutes les pages */
body {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #1a1a1a !important;
    background-color: #f7f7f2 !important;
}

/* Style commun des titres h1–h5 : gras, sans bord inférieur — toutes les pages */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: #060708 !important;
    letter-spacing: -0.02em;
    line-height: 1.3 !important;
    scroll-margin-top: 80px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Tailles de titre par niveau — toutes les pages */
h1 { font-size: 2.2em !important; margin-bottom: 0.4em !important; }
h2 { font-size: 1.5em !important; margin-top: 2em !important; margin-bottom: 0.5em !important; }
h3 { font-size: 1.15em !important; margin-top: 1.2em !important; margin-bottom: 0.3em !important; }

/* Paragraphes justifiés — toutes les pages */
p {
    margin-bottom: 1.2em !important;
    text-align: justify;
    text-wrap: pretty;
}

/* Séparateur horizontal fin — toutes les pages */
hr {
    border: none !important;
    border-top: 1px solid #e0e0d8 !important;
    margin: 3em 0 !important;
}


/* ============================================
   PAGES FULL WIDTH — titre et blocs communs
   ============================================ */

/* Masque le bloc titre auto-généré par Quarto (h1 + auteur) — toutes les pages full-width */
#title-block-header,
h1.title {
    display: none !important;
}


/* ============================================
   NAVBAR
   ============================================ */

/* Supprime l'ombre et la bordure imposées par Quarto sur le header — toutes les pages */
#quarto-header,
#quarto-header * {
    box-shadow: none !important;
    border-top: none !important;
    outline: none !important;
}

/* Supprime la marge/bordure haute du body générée par Quarto — toutes les pages */
body, html {
    border-top: none !important;
    margin-top: 0 !important;
}

/* Barre de navigation principale : fond bleu-gris #5c7485 — toutes les pages */
.navbar {
    background-color: #5c7485 !important;
    border: none !important;
    padding: 2px 30px !important;
    align-items: center !important;
}

/* Masque le nom de marque Quarto dans la navbar (les liens sont centrés à la place) */
.navbar-brand {
    visibility: hidden !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Masque le conteneur de marque Quarto */
.navbar-brand-container {
    display: none !important;
}

/* Centre les liens de navigation dans la navbar */
.navbar-nav.navbar-nav-scroll {
    margin: 0 auto !important;
}

/* Liens de la navbar : blanc, arrondi, Montserrat — toutes les pages */
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.1em !important;
    font-weight: 400 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    transition: all 0.25s ease !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Fond légèrement clair au survol d'un lien de navbar */
.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.12) !important;
}

/* Lien actif (page en cours) : gras + fond légèrement clair */
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active > .nav-link,
.navbar-nav .nav-item.active > a {
    color: #ffffff !important;
    font-weight: 700 !important;
    background-color: rgba(255,255,255,0.15) !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Bouton hamburger (mobile) : bordure blanche discrète */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 4px !important;
    padding: 5px 9px !important;
    background: none !important;
}
.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}
/* Icône hamburger en blanc */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Menu collapsé sur mobile : fond bleu-gris identique à la navbar */
.navbar-collapse {
    background-color: #5c7485 !important;
}
.navbar-collapse .navbar-nav {
    padding: 0.5rem 0 1rem !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    margin-top: 4px !important;
}
/* Liens dans le menu collapsé mobile */
.navbar-collapse .nav-link {
    line-height: 2.2 !important;
    border-bottom: none !important;
    padding: 2px 16px !important;
}
.navbar-collapse .nav-link.active {
    border-bottom: none !important;
}
/* Dropdown dans le menu collapsé : fond transparent */
.navbar-collapse .dropdown-menu {
    box-shadow: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    min-width: unset !important;
    border: none !important;
}
/* Sélecteur de langue dans le menu collapsé mobile */
.navbar-collapse .lang-switcher {
    padding: 6px 16px 4px !important;
}


/* ============================================
   LIENS
   ============================================ */

/* Liens globaux : héritent la couleur, pas de soulignement par défaut — toutes les pages */
a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

/* Liens dans le footer : blancs */
#site-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
}
/* Liens dans le footer au survol : légèrement transparents */
#site-footer a:hover {
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
}

/* Liens soulignés dans le footer (ex. ANR-22-CE55-0006, Alexandre SUNÉ) */
#site-footer a.footer-underlined {
    text-decoration: underline !important;
    color: #ffffff !important;
}
#site-footer a.footer-underlined:hover {
    text-decoration: underline !important;
    color: rgba(255,255,255,0.85) !important;
}

/* Liens hors footer : soulignement au survol */
a:hover {
    text-decoration: underline !important;
}

/* Cartes membres de l'équipe (liens <a> cliquables) — Accueil fr/en */
.team-row-1 a, .team-row-2 a {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Effet de survol : légère élévation */
.team-row-1 a:hover, .team-row-2 a:hover {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}
/* Empêche tout soulignement sur les enfants des cartes équipe */
.team-row-1 a *, .team-row-1 a:hover *,
.team-row-2 a *, .team-row-2 a:hover * {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
}


/* ============================================
   CONTENU — pages normales
   ============================================ */

/* Carte blanche centrée (max 860px) — pages article : mentions légales, confidentialité… */
.page-layout-article main {
    max-width: 860px !important;
    padding: 40px 30px !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05) !important;
    margin: 20px auto !important;
}


/* ============================================
   CONTENU — pages pleine largeur
   ============================================ */

/* Layout full-width de base : pas de max-width — accueil, publications, conférences… */
.page-layout-full main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 80px 50px 50px 50px !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Fond blanc pour la page d'accueil */
.page-home .page-layout-full main {
    background: #ffffff !important;
}

/* Supprime le padding intérieur sur les pages de contenu (header + pub-body gèrent l'espacement) */
.page-publications .page-layout-full main,
.page-conferences .page-layout-full main,
.page-presse .page-layout-full main,
.page-outreach .page-layout-full main,
.page-data .page-layout-full main,
.page-legal .page-layout-full main {
    padding: 0 !important;
}

/* Cache le dépassement horizontal sur les pages de contenu (grilles pleine largeur) */
.page-publications,
.page-conferences,
.page-presse,
.page-outreach,
.page-data,
.page-legal {
    overflow-x: hidden !important;
}

/* Fond blanc uniforme pour le body et le conteneur Quarto — toutes les pages full-width */
.page-home body, .page-home .quarto-container,
.page-data body, .page-data .quarto-container,
.page-publications body, .page-publications .quarto-container,
.page-conferences body, .page-conferences .quarto-container,
.page-presse body, .page-presse .quarto-container,
.page-outreach body, .page-outreach .quarto-container,
.page-legal body, .page-legal .quarto-container {
    background: #ffffff !important;
}

/* En-tête de page (bande bleu clair avec titre + liens d'ancrage) — publications, conférences, presse, valorisation, outils, légal */
.pub-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #eef3f8;
  border-bottom: 1px solid #e4e0d8;
  padding: 44px 56px 40px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
/* Rangée de liens d'ancrage dans l'en-tête (Articles, WP, Thèses…) */
.pub-page-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.pub-page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}
.pub-page-nav a:hover { opacity: 0.65; }

/* Badge de section coloré (vert par défaut) — toutes les pages de contenu et accueil */
.pub-section-header {
  display: flex; width: fit-content; align-items: center;
  background: #eaf2db; border-radius: 12px;
  padding: 12px 26px; margin-bottom: 1.2rem; margin-top: 2rem;
}
.pub-section-header:first-child { margin-top: 0; }
.pub-section-header h2 {
  font-size: 1.5em !important; font-weight: 700 !important;
  color: #4a6e10 !important; text-transform: none !important;
  letter-spacing: 0.02em !important; margin: 0 !important; line-height: 1 !important;
}
/* Variante bleue — Conférences, Axe 2, chiffres clés */
.pub-section-header.blue   { background: #dbeafe; }
.pub-section-header.blue h2   { color: #1a4a80 !important; }
/* Variante orange — Axe 3, chiffres accueil */
.pub-section-header.orange { background: #fde8de; }
.pub-section-header.orange h2 { color: #8a3010 !important; }
/* Variante marron — Rapports de recherche */
.pub-section-header.brown  { background: #fef3e2; }
.pub-section-header.brown h2  { color: #7a5010 !important; }
/* Variante bleu-vert — Workshops */
.pub-section-header.teal   { background: #d8f4f8; }
.pub-section-header.teal h2   { color: #0891b2 !important; }
/* Variante violette — Valorisation / médiation */
.pub-section-header.purple { background: #f0eaff; }
.pub-section-header.purple h2 { color: #5a2fa8 !important; }

/* Liste de cartes d'événements médias (conférences, podcasts…) — page Valorisation fr/en */
.page-outreach .media-event-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 0; }
/* Carte événement : fond blanc, bordure gauche violette */
.page-outreach .media-event-card {
  background: #ffffff; border-radius: 14px; padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-left: 4px solid #7c4fcc;
  display: flex; align-items: center; gap: 1.2rem;
  text-decoration: none !important; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-outreach .media-event-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,79,204,0.12); text-decoration: none !important; }
/* Métadonnées de la carte événement (badge + titre + intervenants) */
.page-outreach .media-event-meta { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
/* Badge type d'événement (Podcast, Conférence…) */
.page-outreach .media-event-badge {
  font-size: 0.68em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #7c4fcc; background: #f0eaff; display: inline-block; padding: 3px 10px;
  border-radius: 20px; align-self: flex-start;
}
.page-outreach .media-event-title { font-size: 0.9em; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
.page-outreach .media-event-speakers { font-size: 0.81em; color: #777; font-style: italic; }
/* Bouton lien externe sur la carte événement */
.page-outreach .media-event-link {
  font-size: 0.78em; font-weight: 700; color: #7c4fcc !important; flex-shrink: 0; white-space: nowrap;
  padding: 6px 14px; border: 1.5px solid #7c4fcc; border-radius: 20px; transition: all 0.2s ease;
  text-decoration: none !important;
}
.page-outreach .media-event-card:hover .media-event-link { background: #7c4fcc; color: #ffffff !important; }

/* Carte vidéo MT180 (Ma thèse en 180 secondes) — page Valorisation fr/en */
.media-mt180-card { background: #ffffff; border-radius: 24px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 0; }
/* En-tête de la carte MT180 : dégradé violet */
.media-mt180-header { background: linear-gradient(135deg, #4c2e9a 0%, #7c4fcc 100%); display: flex; align-items: center; gap: 1rem; min-height: 80px; box-sizing: border-box; padding: 14px 28px 12px; }
.media-mt180-badge { font-size: 0.68em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #c4b0f5; background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 20px; flex-shrink: 0; }
.media-mt180-headline { font-size: 0.95em; font-weight: 700; color: #ffffff; line-height: 1.4; }
.media-mt180-body { padding: 20px 28px; }

/* Grille 2 colonnes de crédits/rapports téléchargeables — page Valorisation fr/en */
.credit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 2em; }
/* Carte de crédit/rapport : fond blanc, coins arrondis */
.credit-card {
  background: #ffffff; border-radius: 24px; box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.credit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); text-decoration: none !important; }
.credit-card *, .credit-card:hover * { text-decoration: none !important; }
.credit-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }
/* Badge éditeur/source de la carte */
.credit-publisher { font-size: 0.67em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; display: inline-block; padding: 3px 10px; border-radius: 20px; align-self: flex-start; border: 1.5px solid currentColor; }
.credit-title { font-size: 0.93em; font-weight: 700; color: #1a1a1a; line-height: 1.45; flex: 1; }
.credit-desc { font-size: 0.81em; color: #666; line-height: 1.5; }
.credit-footer { margin-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
/* Bouton de téléchargement PDF */
.credit-dl { font-size: 0.75em; font-weight: 700; padding: 6px 16px; border-radius: 20px; display: inline-flex; align-items: center; gap: 0.4em; flex-shrink: 0; color: #fff; transition: opacity 0.2s ease; }
.credit-card:hover .credit-dl { opacity: 0.85; }
/* Variante bleue (ex. rapport ANR) */
.c-blue { border-top: 6px solid #1a5fa8; }
.c-blue .credit-publisher { color: #1a5fa8; }
.c-blue .credit-dl { background: #1a5fa8; }


/* ============================================
   TABLEAUX
   ============================================ */

/* Style général des tableaux — pages article (mentions légales, outils…) */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.92em !important;
    margin: 1.5em 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* En-tête de tableau : fond terracotta */
thead th {
    background-color: #c04820 !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    text-align: left !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
}

/* Cellules du corps du tableau */
tbody td {
    padding: 9px 14px !important;
    border-bottom: 1px solid #e8e8e0 !important;
    color: #1a1a1a !important;
}

/* Ligne survolée : fond saumon clair */
tbody tr:hover {
    background-color: #f5ece6 !important;
}

/* Lignes paires : fond légèrement teinté */
tbody tr:nth-child(even) {
    background-color: #faf3ef !important;
}


/* ============================================
   MENU DÉROULANT — liste verticale
   ============================================ */

/* Panneau dropdown de la navbar (sous Publications, Conférences, Valorisation) */
.dropdown-menu {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
    padding: 6px 0 !important;
    background-color: rgba(30, 32, 30, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    min-width: 200px !important;
}

/* Force l'affichage du dropdown quand Bootstrap l'ouvre */
.dropdown-menu.show {
    display: block !important;
}

/* Items du dropdown : texte blanc uppercase, typographie Montserrat */
.dropdown-item {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.68em !important;
    font-weight: 600 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.70) !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    border: none !important;
    text-align: left !important;
    transition: color 0.15s ease !important;
}

/* Item survolé : texte blanc */
.dropdown-item:hover {
    background-color: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ouvre le dropdown au survol sur desktop */
.navbar-nav .dropdown:hover .dropdown-menu,
.navbar-nav .nav-item:hover .dropdown-menu {
    display: block !important;
}

/* Cache le séparateur Quarto/Bootstrap dans les dropdowns */
.dropdown-divider {
    display: none !important;
}

/* Cache la flèche chevron des dropdowns */
.dropdown-toggle::after {
    display: none !important;
}


/* ============================================
   BOUTONS — Publications
   ============================================ */

/* Bouton générique (PDF, lien externe) : vert #6b8e1a — page Publications fr/en */
.publi-btn {
    font-size: 0.78em !important;
    font-weight: 600 !important;
    padding: 2px 10px !important;
    border-radius: 8px !important;
    border: 1.5px solid #6b8e1a !important;
    color: #6b8e1a !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}
.publi-btn:hover {
    background: #6b8e1a !important;
    color: #fff !important;
    text-decoration: none !important;
}
/* Variante bleue : boutons sur les cartes Working Papers */
.wp-card .publi-btn,
.wp-card .publi-btn-cite {
    color: #1a5fa8 !important;
    border-color: #1a5fa8 !important;
}
.wp-card .publi-btn:hover,
.wp-card .publi-btn-cite:hover,
.wp-card .publi-btn-cite.open {
    background: #1a5fa8 !important;
    color: #fff !important;
}
/* Variante orange : boutons sur les cartes Thèses */
.these-card .publi-btn,
.these-card .publi-btn-cite {
    color: #c04820 !important;
    border-color: #c04820 !important;
}
.these-card .publi-btn:hover,
.these-card .publi-btn-cite:hover,
.these-card .publi-btn-cite.open {
    background: #c04820 !important;
    color: #fff !important;
}
/* Variante marron : boutons sur les cartes Rapports de recherche */
.report-card .publi-btn,
.report-card .publi-btn-cite {
    color: #b07d2a !important;
    border-color: #b07d2a !important;
}
.report-card .publi-btn:hover,
.report-card .publi-btn-cite:hover,
.report-card .publi-btn-cite.open {
    background: #b07d2a !important;
    color: #fff !important;
}


/* ============================================
   PUBLICATIONS — cartes
   ============================================ */

/* Rangée de boutons (PDF, Citer, En bref…) sous chaque carte — page Publications fr/en */
.publi-actions {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}


/* ============================================
   FOOTER — texte tout en blanc
   ============================================ */

/* Force toute la typographie du footer en blanc — footer.html, toutes les pages */
#site-footer a,
#site-footer span,
#site-footer div,
#site-footer li {
    color: #ffffff !important;
}


/* ============================================
   PRESSE — grille masonry & association
   ============================================ */

/* Grille 3 colonnes d'articles de presse — page Presse fr/en */
.media-press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 0; align-items: start; }
/* Carte article de presse : fond blanc, bordure haute terracotta */
.media-press-card {
    background: #ffffff; border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-top: 4px solid #c04820;
    display: flex; flex-direction: column; gap: 0.5rem;
    text-decoration: none !important; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-press-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.11); }
.media-press-card, .media-press-card:hover,
.media-press-card *, .media-press-card:hover * { text-decoration: none !important; }
/* Badge source (Le Monde, Le Figaro, AFP…) */
.media-source-badge {
    font-size: 0.68em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: #c04820; background: #fde8de; display: inline-block; padding: 3px 10px;
    border-radius: 5px; align-self: flex-start;
}
.media-press-title { font-size: 0.88em; font-weight: 700; color: #1a1a1a; line-height: 1.45; flex: 1; }
/* Lien "Lire l'article" en terracotta */
.media-press-cta { font-size: 0.75em; font-weight: 700; color: #c04820; margin-top: 0.3rem; }

/* Carte association (ex. AquiAirbnb) — page Presse fr/en */
.assoc-card {
    background: #ffffff; border-radius: 24px; box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    display: flex; flex-direction: column; text-decoration: none !important;
    color: inherit !important; transition: transform 0.2s ease, box-shadow 0.2s ease; max-width: 480px;
}
.assoc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.11); background: #ffffff !important; color: inherit !important; }
.assoc-card, .assoc-card:hover,
.assoc-card *, .assoc-card:hover * { text-decoration: none !important; color: inherit !important; }
.assoc-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }
/* Badge éditeur de la carte association */
.assoc-publisher {
    font-size: 0.67em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    display: inline-block; padding: 3px 10px; border-radius: 20px; align-self: flex-start;
    border: 1.5px solid #0891b2; color: #0891b2 !important;
}
.assoc-title { font-size: 0.93em; font-weight: 700; color: #1a1a1a; line-height: 1.45; }
.assoc-desc { font-size: 0.81em; color: #666; line-height: 1.5; }
.assoc-footer {
    margin-top: 0.8rem; display: flex; align-items: center;
    justify-content: space-between; gap: 0.8rem;
}
/* Bouton de téléchargement de la carte association */
.assoc-dl {
    font-size: 0.75em; font-weight: 700; padding: 6px 16px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 0.4em; flex-shrink: 0;
    color: #fff !important; background: #0891b2; border: 1.5px solid #0891b2; transition: opacity 0.2s ease;
}
.assoc-card:hover .assoc-dl { opacity: 0.85; }


/* ============================================
   PUBLICATIONS — boutons résumé & citation
   ============================================ */

/* Bouton "+ Citer" : vert par défaut, vire au blanc rempli quand ouvert — Publications fr/en */
.publi-btn-cite {
    font-size: 0.78em !important; font-weight: 600 !important; padding: 2px 10px !important;
    border-radius: 8px !important; border: 1.5px solid #6b8e1a !important;
    color: #6b8e1a !important; background-color: transparent !important;
    text-decoration: none !important; transition: all 0.2s ease !important;
    cursor: pointer !important; font-family: inherit !important;
}
.publi-btn-cite:hover,
.publi-btn-cite.open { background-color: #6b8e1a !important; color: #ffffff !important; }

/* Zone de citation dépliable (masquée par défaut, visible via JS) */
.publi-cite-body {
    display: none; position: relative; margin-top: 10px;
    padding: 12px 36px 12px 14px !important; border-top: 1px solid #e8e8e0;
    font-size: 0.79em !important; color: #333 !important; line-height: 1.5 !important;
    font-family: inherit !important; font-style: normal !important; text-align: left !important;
    background: #f5f7f0; border-radius: 8px;
    word-break: break-word !important; overflow-wrap: break-word !important;
}
.publi-cite-body.open { display: block; }
/* Bouton "copier" dans la zone de citation */
.publi-cite-copy {
    position: absolute; top: 8px; right: 8px; background: transparent;
    border: 1px solid #ccc; border-radius: 6px; padding: 4px 6px; cursor: pointer;
    color: #999; line-height: 0; font-family: inherit !important; transition: all 0.15s ease;
}
.publi-cite-copy:hover { background: #e8e4d8; color: #444; border-color: #aaa; }


/* ============================================
   PUBLICATIONS — articles de journaux académiques
   ============================================ */

/* Liste et cartes des articles publiés dans des revues — page Publications fr/en */
.article-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5em; }
.article-card {
    display: flex; background: transparent; border-radius: 0; overflow: visible;
    box-shadow: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.13); }
/* Panneau latéral gauche : fond vert clair avec nom de la revue */
.article-journal-panel {
    width: 130px; min-width: 130px; background: #eaf2db;
    display: flex; align-items: center; justify-content: center; padding: 24px 14px;
}
/* Nom de la revue : uppercase vert */
.article-journal-name {
    font-size: 0.82em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
    color: #6b8e1a; text-align: center; line-height: 1.35; word-break: break-word;
}
/* Corps de la carte article */
.article-body { flex: 1; padding: 14px 26px; border: none; background: #ffffff; }
.article-title { font-size: 0.97em; font-weight: 700; color: #1a1a1a; line-height: 1.45; margin-bottom: 0.35em; }
.article-authors { font-size: 0.83em; color: #777; font-style: italic; margin-bottom: 0.8em; }
/* Auteurs cliquables (lien vers page perso) : terracotta */
.article-authors a { color: #c04820 !important; }


/* ============================================
   PUBLICATIONS — thèses
   ============================================ */

/* Grille 2 colonnes de cartes thèses — page Publications fr/en */
.these-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-bottom: 2em; align-items: start; }
/* Carte thèse : fond blanc, coins arrondis */
.these-card {
    background: #ffffff; border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    display: flex; flex-direction: column; align-items: stretch; overflow: hidden;
    position: relative;
}
/* Corps centré de la carte thèse */
.these-body { flex: 1; padding: 24px 20px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; }
/* Avatar circulaire avec initiales du doctorant */
.these-avatar {
    width: 58px; height: 58px; border-radius: 50%; background: #fde8de; color: #c04820;
    font-size: 1.1em; font-weight: 700; display: flex; align-items: center;
    justify-content: center; margin-bottom: 0.5rem; letter-spacing: 0.03em; flex-shrink: 0;
}
.these-name { font-size: 1em; font-weight: 700; color: #1a1a1a; }
/* Université du doctorant en italique grisé */
.these-univ { font-size: 0.77em; color: #999; font-style: italic; margin-bottom: 0.4rem; }
.these-title { font-size: 0.86em; font-weight: 600; color: #333; line-height: 1.4; margin-bottom: 0.6rem; }


/* ============================================
   SÉLECTEUR DE LANGUE (navbar)
   ============================================ */

/* Sélecteur FR | EN injecté dans la navbar par footer.html — toutes les pages */
.lang-switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-right: 0.8rem !important;
}
.lang-switcher a, .lang-switcher .ls-sep {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.2em !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
}
/* Liens FR et EN */
.lang-switcher a {
    font-weight: 700 !important;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    padding: 6px 5px !important;
}
.lang-switcher a:hover { color: #ffffff !important; text-decoration: none !important; }
/* Langue active : blanc opaque */
.lang-switcher a.ls-active   { color: #ffffff !important; opacity: 1 !important; }
/* Langue inactive : très transparent */
.lang-switcher a.ls-inactive { color: rgba(255,255,255,0.35) !important; }
/* Séparateur "|" non cliquable */
.lang-switcher .ls-sep {
    color: rgba(255,255,255,0.25) !important;
    font-weight: 300 !important;
    pointer-events: none !important;
    user-select: none !important;
}


/* ============================================
   PUB-BODY — corps principal des pages de contenu
   ============================================ */

/* Zone de contenu (après l'en-tête) avec padding asymétrique — page Publications fr/en */
.page-publications .pub-body {
  padding: 32px calc(50vw - 50% + 24px) 48px calc(50vw - 50% + 56px);
  background: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
/* Padding symétrique pour les autres pages de contenu : conférences, presse, valorisation, outils, légal */
.page-conferences .pub-body,
.page-presse .pub-body,
.page-outreach .pub-body,
.page-data .pub-body,
.page-legal .pub-body {
  padding: 32px calc(50vw - 50% + 56px) 48px;
  background: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}


/* ============================================
   PUB-PAGE-TITLE — badge titre coloré par page
   ============================================ */

/* Badge titre dans l'en-tête de page — style commun à toutes les pages de contenu */
.pub-page-title {
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  padding: 8px 20px;
  border-radius: 12px;
  display: inline-block;
  text-transform: none;
}
/* Couleur du badge titre par page */
.page-publications .pub-page-title { color: #c04820; background: #f5ece6; }   /* Terracotta */
.page-conferences  .pub-page-title { color: #1a5fa8; background: #dbeafe; }   /* Bleu */
.page-presse       .pub-page-title { color: #8a3010; background: #fde8de; }   /* Rouge foncé */
.page-outreach     .pub-page-title { color: #5a2fa8; background: #f0eaff; }   /* Violet */
.page-data         .pub-page-title { color: #1a4a80; background: #dbeafe; }   /* Bleu marine */
.page-legal        .pub-page-title { color: #3a5a70; background: #dce8f0; }   /* Bleu acier */

/* Liens dans le corps des pages légales : terracotta */
.page-legal .pub-body a { color: #c04820 !important; }

/* H2 stylés comme des badges dans les pages légales (mentions légales, confidentialité) */
.page-legal .pub-body h2 {
  font-size: 0.82em !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #3a5a70 !important;
  background: #dce8f0 !important;
  padding: 7px 18px !important;
  border-radius: 8px !important;
  margin-top: 2rem !important;
  margin-bottom: 0.8rem !important;
  display: inline-block !important;
}


/* ============================================
   PUB-PAGE-NAV — couleurs des liens d'ancrage par page
   ============================================ */

/* Couleurs des ancres de navigation rapide dans l'en-tête de page, par ordre d'apparition */
.page-publications .pub-page-nav a:nth-child(1) { color: #6b8e1a !important; }   /* Articles */
.page-publications .pub-page-nav a:nth-child(2) { color: #1a5fa8 !important; }   /* WP */
.page-publications .pub-page-nav a:nth-child(3) { color: #c04820 !important; }   /* Thèses */
.page-publications .pub-page-nav a:nth-child(4) { color: #b07d2a !important; }   /* Rapports */
.page-conferences  .pub-page-nav a:nth-child(1) { color: #1a5fa8 !important; }   /* Conférences */
.page-conferences  .pub-page-nav a:nth-child(2) { color: #1a8070 !important; }   /* Workshops */
.page-presse       .pub-page-nav a:nth-child(1) { color: #c04820 !important; }   /* Airbnb */
.page-presse       .pub-page-nav a:nth-child(2) { color: #0891b2 !important; }   /* Association */
.page-outreach     .pub-page-nav a:nth-child(1) { color: #7c4fcc !important; }   /* Médiation */
.page-outreach     .pub-page-nav a:nth-child(2) { color: #1a5fa8 !important; }   /* Données */


/* ============================================
   CONFÉRENCES — surcharge section header (bleu)
   ============================================ */

/* Force le fond bleu clair pour les section-headers non qualifiés — page Conférences fr/en */
.page-conferences .pub-section-header:not(.teal):not(.blue):not(.orange):not(.brown):not(.purple) { background: #dbeafe; }
.page-conferences .pub-section-header:not(.teal):not(.blue):not(.orange):not(.brown):not(.purple) h2 { color: #1a4a80 !important; }


/* ============================================
   PAGE HOME — cartes stats & section headers
   ============================================ */

/* Cartes statistiques (chiffres clés du projet) — page Accueil fr/en */
.stat-card { display: flex !important; flex-direction: column !important; min-height: 160px !important; }
/* La partie blanche (texte descriptif) occupe l'espace restant */
.stat-card > div:last-child { flex: 1 !important; }

/* Section headers de la page Accueil : fond gris neutre (surcharge le vert par défaut) */
.page-home .pub-section-header,
.page-home .pub-section-header.blue,
.page-home .pub-section-header.orange { background: #c8c8c8 !important; }
.page-home .pub-section-header h2 { color: #1a1a1a !important; }


/* ============================================
   ACCORDÉON — Conférences & Workshops
   ============================================ */

/* Conteneur de la liste accordéon — pages Conférences fr/en */
.acc-list { display: flex; flex-direction: column; gap: 6px; }

/* Bloc annuel de l'accordéon : fond blanc, coins arrondis */
.accordion-year {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
/* Bouton de l'en-tête d'un bloc annuel */
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 15px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s ease;
}
.accordion-btn:hover { background: #f4f7fb; }
/* En-tête du bloc ouvert : fond bleu très clair */
.accordion-year.open .accordion-btn { background: #f0f5fc; }
/* Numéro d'année en grand bleu */
.accordion-year-num {
  font-size: 1.15em;
  font-weight: 800;
  color: #1a5fa8;
  min-width: 52px;
}
/* Variante vert-bleu pour les Workshops */
.accordion-year.teal-acc .accordion-year-num { color: #1a8070; }
/* Compteur d'événements dans l'en-tête (grisé) */
.accordion-count { font-size: 0.76em; color: #aaa; flex: 1; }
/* Corps du bloc : hauteur 0 par défaut, transition vers 1500px à l'ouverture */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-year.open .accordion-body { max-height: 1500px; }
/* Padding interne du corps */
.accordion-inner { padding: 4px 22px 18px; }
/* Ligne d'un événement dans le corps de l'accordéon */
.acc-event-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0ea;
}
.acc-event-item:last-child { border-bottom: none; padding-bottom: 0; }
/* Badge type d'événement (COMM, POSTER, INVITED…) : bleu */
.acc-event-badge {
  font-size: 0.64em;
  font-weight: 700;
  white-space: nowrap;
  color: #1a5fa8;
  background: #dbeafe;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* Badge vert-bleu pour les workshops */
.teal-acc .acc-event-badge { color: #1a8070; background: #d4f0ec; }
.acc-event-info { flex: 1; }
.acc-event-title { font-size: 0.86em; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
/* Intervenants en grisé */
.acc-event-speakers { font-size: 0.74em; color: #999; margin-top: 3px; }
/* Bouton "voir programme" sur les workshops */
.ws-more-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.64em;
  font-weight: 700;
  color: #1a8070 !important;
  background: #d4f0ec;
  border-radius: 20px;
  padding: 3px 9px;
  text-decoration: none !important;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.ws-more-btn:hover { background: #1a8070; color: #fff !important; text-decoration: none !important; }
/* Ligne mise en avant "Best Paper Award" */
.acc-event-item.best-paper {
  background: #fff8dc;
  border-radius: 8px;
  padding: 10px;
  margin: 0 -10px;
  border-bottom: none;
}
.acc-event-item.best-paper + .acc-event-item { border-top: 1px solid #f0f0ea; }
/* Badge "Best Paper" doré */
.best-paper-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.63em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6200;
  background: #fde68a;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}


/* ============================================
   PUBLICATIONS — marges asymétriques par section
   ============================================ */

/* Débordement latéral négatif pour que les grilles occupent toute la largeur du pub-body — Publications fr/en */
.page-publications .article-list   { margin-left: -48px; margin-right: -48px; }
.page-publications .wp-grid        { margin-left: -28px; margin-right: -28px; }
.page-publications .these-grid     { margin-left: -40px; margin-right: -40px; }
.page-publications .report-card    { margin-left: -20px; margin-right: -20px; }

/* ============================================
   VALORISATION — marges par section
   ============================================ */

/* Débordement latéral négatif des grilles — page Valorisation fr/en */
.page-outreach .media-video-grid   { margin-left: -44px; margin-right: -44px; }
.page-outreach .media-event-list   { margin-left: -24px; margin-right: -24px; }
.page-outreach .credit-grid        { margin-left: -36px; margin-right: -36px; }

/* ============================================
   PUBLICATIONS — article-cards (style panel spécifique à la page)
   ============================================ */

/* Surcharges du style de base des article-card dans le contexte de la page Publications */
.page-publications .article-list { gap: 0.75rem; margin-bottom: 0; }
.page-publications .article-card {
  flex-direction: row;
  align-items: stretch;
  background: #f4f7f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.page-publications .article-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.13); }
/* Panneau journal plus compact sur la page Publications */
.page-publications .article-journal-panel {
  width: 130px;
  min-width: 130px;
  background: #eaf2db;
  padding: 14px 10px;
  flex-shrink: 0;
}
.page-publications .article-journal-name { font-size: 0.78em; color: #6b8e1a; }
.page-publications .article-body { padding: 14px 20px; border: none; background: transparent; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.page-publications .article-title { font-size: 0.9em; margin-bottom: 0.3em; }
.page-publications .article-authors { font-size: 0.78em; margin-bottom: 0.7em; }


/* ============================================
   PUBLICATIONS — panneau "En bref" & bouton
   ============================================ */

/* Label "EN BREF" affiché dans le panneau latéral dépliant */
.article-brief-label {
  display: inline-block;
  font-size: 0.65em;
  font-weight: 800;
  color: #6b8e1a;
  background: rgba(107,142,26,0.12);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 0.3em;
  align-self: flex-start;
}
/* Texte du résumé en bref */
.article-brief-text {
  font-size: 0.8em;
  color: #3d6010;
  line-height: 1.6;
  font-style: italic;
}
/* Bouton "En bref ▶" dans la rangée de boutons de la carte */
.publi-btn-inbrief {
  font-size: 0.72em;
  font-weight: 700;
  color: #6b8e1a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: #eaf2db;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}
.publi-btn-inbrief:hover { background: #d4e8b0; }
/* Bouton actif : fond vert plein */
.article-card.brief-open .publi-btn-inbrief { background: #6b8e1a; color: #fff; }
/* Variante bleue : Working Papers */
.wp-card    .publi-btn-inbrief { color: #1a4a80; background: #dbeafe; }
.wp-card    .publi-btn-inbrief:hover,
.wp-card    .publi-btn-inbrief.open { background: #1a4a80; color: #fff; }
/* Variante orange : Thèses */
.these-card .publi-btn-inbrief { color: #8a3010; background: #fde8de; }
.these-card .publi-btn-inbrief:hover,
.these-card .publi-btn-inbrief.open { background: #8a3010; color: #fff; }
/* Variante marron : Rapports de recherche */
.report-card .publi-btn-inbrief { color: #7a5010; background: #fef3e2; }
.report-card .publi-btn-inbrief:hover,
.report-card .publi-btn-inbrief.open { background: #7a5010; color: #fff; }

/* Panneau latéral droit "En bref" sur les article-cards */
.article-brief-panel {
  width: 300px;
  min-width: 300px;
  flex-shrink: 0;
  background: #f0f7e4;
  display: flex;
  align-items: center;
  border-left: 1px solid #d0e8a8;
}
.article-brief-panel-inner { padding: 14px 20px; display: flex; flex-direction: column; gap: 0.35em; }
/* Panneau En bref des WP : bleu */
.wp-card    .article-brief-panel { width: 260px; min-width: 260px; background: #dbeafe; border-left-color: #93c5fd; }
.wp-card    .article-brief-label { color: #1a4a80; background: rgba(26,74,128,0.12); }
.wp-card    .article-brief-text  { color: #1e3a5f; }
/* Panneau En bref des Thèses : orange (pleine largeur, en bas de carte) */
.these-card .article-brief-panel { width: 100%; min-width: unset; background: #fde8de; border-left: none; border-top: none; }
.these-card .article-brief-label { color: #8a3010; background: rgba(192,72,32,0.12); }
.these-card .article-brief-text  { color: #6b2008; }
/* Panneau En bref des Rapports : marron */
.report-card .article-brief-panel { width: 280px; min-width: 280px; background: #fef3e2; border-left-color: #e8c87a; }
.report-card .article-brief-label { color: #7a5010; background: rgba(122,80,16,0.12); }
.report-card .article-brief-text  { color: #5c3d0c; }


/* ============================================
   PUBLICATIONS — working papers & rapports de recherche
   ============================================ */

/* Grille colonne unique des Working Papers — page Publications fr/en */
.wp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0;
  align-items: start;
}
/* Carte Working Paper : fond blanc, disposition en ligne */
.wp-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wp-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.13); transform: translateY(-2px); }
/* Corps de la carte WP */
.wp-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 0.4rem; justify-content: center; }
.wp-title { font-size: 0.88em; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
.wp-authors { font-size: 0.78em; color: #777; font-style: italic; margin-bottom: 0.2rem; line-height: 1.4; }


/* Carte Rapport de recherche : même structure que WP — page Publications fr/en */
.report-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  margin-bottom: 0;
}
.report-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.13); transform: translateY(-2px); }
.report-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 0.4rem; justify-content: center; }


/* ============================================
   PAGE HOME — hero banner
   ============================================ */

/* Bandeau hero pleine largeur avec dégradé et cartes projets — Accueil fr/en */
.page-home .home-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -80px;
  background: linear-gradient(135deg, #f7f5f0 0%, #eef3f8 100%);
  border-bottom: 1px solid #e4e0d8;
  padding: 90px 80px 72px;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 6rem;
}
/* Colonne gauche du hero : titre + description */
.page-home .home-hero-left {
  flex: 1;
  min-width: 340px;
  padding-right: 6rem;
}
/* Surtitre uppercase vert */
.home-hero-label {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b8e1a;
  margin-bottom: 1.2rem;
}
/* Grand titre du hero */
.home-hero-title {
  font-size: 3.4em;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
/* Mot accentué en terracotta dans le titre hero */
.home-hero-title .accent { color: #c04820; }
/* Description courte sous le titre */
.home-hero-desc { font-size: 1.05em; color: #555; line-height: 1.7; max-width: 500px; }
/* Colonne droite du hero : cartes projets */
.home-hero-cards { display: flex; gap: 1.2rem; flex-shrink: 0; }
/* Carte projet (AquiAirbnb / NETURB) dans le hero */
.hero-proj-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  width: 300px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  border-top: 4px solid #6b8e1a;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
/* Variante bleue : NETURB */
.hero-proj-card.blue { border-top-color: #1a5fa8; }
/* Nom court du projet (AquiAirbnb / NETURB) */
.hero-proj-name { font-size: 1.1em; font-weight: 800; color: #111; }
/* Nom complet du projet en grisé uppercase */
.hero-proj-fullname {
  font-size: 0.69em;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
/* Description courte du projet */
.hero-proj-desc { font-size: 0.78em; color: #555; line-height: 1.55; flex: 1; text-align: justify; }
/* Période du projet (ex. 2019 – 2023) */
.hero-proj-meta { font-size: 0.7em; font-weight: 600; color: #bbb; margin-top: 0.1rem; }


/* ============================================
   PAGE HOME — grille de thématiques (axe-grid)
   ============================================ */

/* Animation d'entrée de la modale axe de recherche */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Grille 3 colonnes des axes de recherche cliquables — Accueil fr/en */
.axe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.2rem;
  margin-left: -85px;
  margin-right: -85px;
  align-items: start;
}
/* Carte axe de recherche : fond coloré, cliquable */
.axe-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 34px 40px;
  text-align: left;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  user-select: none;
  min-height: 220px;
}
.axe-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.13); transform: translateY(-2px); }
/* Empêche tout soulignement sur la carte et ses enfants */
.axe-card, .axe-card:hover,
.axe-card *, .axe-card:hover * {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
}
/* Titre de l'axe dans la carte */
.axe-card-title { font-size: 1.45em; font-weight: 700; color: #1a1a1a; line-height: 1.4; }
/* Overlay de fond semi-transparent lors de l'ouverture d'une modale axe */
.axe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(247, 247, 242, 0.88);
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.axe-overlay.active { display: flex; }
/* Modale axe : deux colonnes (infos à gauche, publications à droite) */
.axe-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 100px);
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0,0,0,0.18);
  position: relative;
  animation: modalIn 0.25s ease;
  display: flex;
  flex-direction: column;
}
/* Bouton de fermeture × en haut à droite de la modale */
.axe-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.4em; color: #ccc;
  cursor: pointer; line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  z-index: 2;
}
.axe-modal-close:hover { color: #333; background: #f4f4f4; }
/* Corps de la modale en deux colonnes */
.axe-modal-body { display: flex; flex: 1; overflow: hidden; }
/* Colonne gauche : badge axe, titre, description */
.axe-modal-left {
  width: 280px;
  min-width: 280px;
  padding: 36px 32px 36px 36px;
  border-right: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Colonne droite : liste des publications associées */
.axe-modal-right { flex: 1; padding: 28px 36px 28px 28px; overflow-y: auto; }
/* Badge coloré de l'axe (Axe 1 / Axe 2 / Axe 3) */
.axe-modal-badge {
  font-size: 0.68em; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 3px 11px; border-radius: 20px;
  display: inline-block; margin-bottom: 16px;
}
.axe-modal-title { font-size: 1.15em; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin: 0 0 14px; }
.axe-modal-desc { font-size: 0.88em; color: #666; line-height: 1.75; margin: 0; }
/* Titre de section "Travaux associés" dans la colonne droite */
.axe-modal-right h4 {
  font-size: 0.68em; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.11em; color: #bbb; margin: 0 0 12px;
}
/* Ligne d'une publication dans la modale */
.axe-publi-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 0.85em; color: #333; line-height: 1.5;
}
.axe-publi-item:last-child { border-bottom: none; }
/* Tag type de publication (Article / WP) */
.axe-publi-tag {
  flex-shrink: 0; font-size: 0.7em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 6px; margin-top: 2px;
}
.axe-publi-tag.article { background: #eaf2db; color: #6b8e1a; }
.axe-publi-tag.wp { background: #f0eaff; color: #7c4dbb; }
/* Lien PDF dans la ligne de publication */
.axe-publi-link {
  font-size: 0.78em; font-weight: 600; text-decoration: none;
  margin-left: auto; flex-shrink: 0; align-self: center;
  padding: 2px 8px; border-radius: 6px;
  color: #c04820 !important;
  border: 1.5px solid currentColor;
  transition: background 0.15s, color 0.15s;
}
.axe-publi-link:hover { background: currentColor; color: #fff !important; }
