/* ============================================================================
 *
 *   marieleapouliquen.github.io — feuille de style
 *
 *   Sommaire :
 *     1. Variables (couleurs, polices, dimensions)
 *     2. Base (reset, html/body, titres, paragraphes, liens)
 *     3. Layout (container, header, nav, footer, main)
 *     4. Composants génériques
 *        4.1 Tableau d'actualités
 *        4.2 Publications
 *        4.3 Liens externes
 *        4.4 Vidéos intégrées
 *        4.5 Cartes ressources (Wiki, Terra Forma…)
 *        4.6 Boutons
 *     5. Accordéons (pages À propos & Recherche)
 *     6. Page d'accueil (nom, tagline, hero, contact, cartes nav)
 *     7. Page À propos (bio, identité, formations, expériences)
 *     8. Page Recherche (sections internes Cap Nature)
 *     9. Page Enseignement (cartes)
 *    10. Page Blog 
 *    11. Page SYA (galerie, bulles syllabus, programme, capstones)
 *    12. Responsive global
 *    13. License
 *
 * ============================================================================ */


/* ============================================================================
   1. VARIABLES
   ============================================================================ */

:root {
  --color-text:        #111111;
  --color-muted:       #666666;
  --color-light:       #999999;
  --color-bg:          #ffffff;
  --color-bg-alt:      #fafafa;
  --color-border:      #e5e5e5;
  --color-link:        #000000;
  --color-link-hover:  #666666;
  --color-accent:      #2c7da0;

  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', Consolas, Monaco, monospace;

  --max-width:   1150px;
  --text-base:   14px;
  --line-height: 1.4;
}


/* ============================================================================
   2. BASE
   ============================================================================ */

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

html {
  font-size: var(--text-base);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 1.5em 0 0.5em 0;
  color: var(--color-text);
}

h1 { font-size: 2.4rem; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; margin-top: 2em; }
h3 { font-size: 1.3rem; }

p, ul, ol { margin: 0 0 1em 0; }

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-link-hover); }

strong { font-weight: 600; }
em     { font-style: italic; }

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.5em;
  border-left: 3px solid var(--color-border);
  color: var(--color-muted);
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 3em 0;
}

img { max-width: 100%; height: auto; }

figure { margin: 2rem 0; }
figcaption {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  font-style: italic;
  text-align: center;
}


/* ============================================================================
   3. LAYOUT
   ============================================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  background: var(--color-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.site-brand:hover { color: var(--color-muted); }

/* Masque visuellement le nom sur l'accueil (mais garde la place) */
.site-brand-hidden { visibility: hidden; }
.site-brand-hidden::before {
  content: "Marie-Léa Pouliquen";
  visibility: hidden;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 400;
}

.site-nav a:hover,
.site-nav a.active { color: var(--color-text); }
.site-nav a.active { font-weight: 500; }

/* Lien externe dans le menu (Wiki Cap Nature) */
.site-nav .nav-external .nav-arrow {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-left: 0.15rem;
  transition: color 0.15s ease;
  display: inline-block;
  transform: translateY(-1px);
}

.site-nav .nav-external:hover .nav-arrow {
  color: var(--color-text);
}


/* ---------- Main ---------- */
.site-main {
  padding: 3rem 0 5rem 0;
  min-height: 60vh;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}
.site-footer a { color: var(--color-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-text); text-decoration: underline; }

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.footer-nav a { font-size: 0.9rem; }
.footer-nav a:hover { text-decoration: underline; }

.footer-credit { margin: 0; }


/* ============================================================================
   4. COMPOSANTS GÉNÉRIQUES
   ============================================================================ */

/* ---------- 4.1 Tableau d'actualités (accueil) ---------- */
.news-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.news-table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.news-table td.news-date {
  width: 130px;
  color: var(--color-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  padding-right: 1rem;
}

.news-table .news-content {
  line-height: 1.5;
}

.news-table .news-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  display: inline;
  line-height: 1.3;
}

.news-table .news-title:hover {
  color: var(--color-muted);
}

.news-table .news-title em {
  font-style: italic;
}

.news-table .news-venue {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* ---------- 4.2 Publications ---------- */
.publication {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.publication:last-child { border-bottom: none; }

.publication .pub-title   { font-weight: 600; margin: 0 0 0.3rem 0; font-size: 1.05rem; }
.publication .pub-authors { color: var(--color-muted); margin: 0 0 0.3rem 0; font-size: 0.95rem; }
.publication .pub-venue   { font-style: italic; margin: 0 0 0.5rem 0; font-size: 0.95rem; }

/* ---------- 4.3 Liens externes ---------- */
.external-link {
  display: inline-block;
  padding: 0.4rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--color-text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.external-link:hover { opacity: 0.6; }

/* ---------- 4.4 Vidéos intégrées (YouTube, Vimeo…) ---------- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0 0.5rem 0;
  border-radius: 4px;
  background: var(--color-bg-alt);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- 4.5 Cartes ressources (Wiki, Terra Forma, etc.) ---------- */
.resource-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0 0;
}

.resource-link {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.15s ease;
}

.resource-link:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.resource-link .resource-link-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.resource-link .resource-link-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.resource-link .resource-link-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ---------- 4.6 Boutons ---------- */
.btn-external {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.btn-external:hover {
  background: var(--color-text);
  color: var(--color-bg);
}


/* ============================================================================
   5. ACCORDÉONS HTML5 (pages À propos & Recherche)
   ============================================================================ */

/* Pleine largeur (pas de sidebar) */
body.page-accordion .page-content { max-width: none; }
body.page-accordion .container    { max-width: var(--max-width); }

/* Header de la page */
body.page-accordion .cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}
body.page-accordion .cv-header-text {
  flex: 1;
  min-width: 200px;
}
body.page-accordion .cv-header h1 { margin: 0 0 0.5rem 0; }

/* Bouton "Me contacter" en haut à droite */
.cv-pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.cv-pdf-button:hover {
  border-color: var(--color-text);
  background: var(--color-bg-alt);
}

/* Section accordéon (<details>) */
.accordion-section {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 1rem;
  background: var(--color-bg);
  overflow: hidden;
}

/* Le résumé = titre cliquable */
.accordion-section > summary {
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.15s ease;
}
.accordion-section > summary:hover { background: var(--color-bg-alt); }

/* Masque la flèche par défaut (Safari, Firefox) */
.accordion-section > summary::-webkit-details-marker { display: none; }
.accordion-section > summary::marker { display: none; }

/* Indicateur +/− personnalisé */
.accordion-section > summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-muted);
  transition: transform 0.2s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}
.accordion-section[open] > summary::after { content: "−"; }
.accordion-section[open] > summary {
  border-bottom: 1px solid var(--color-border);
}

/* Contenu déplié */
.accordion-content {
  padding: 1.5rem 2rem 2rem 2rem;
}
.accordion-content > *:first-child { margin-top: 0; }
.accordion-content > *:last-child  { margin-bottom: 0; }


/* ============================================================================
   6. PAGE D'ACCUEIL
   ============================================================================ */

/* ---------- Bloc identité cliquable (nom + tagline → À propos) ---------- */
.home-identity {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.home-identity:hover {
  opacity: 0.65;
  color: inherit;
}

.home-identity:hover .home-name h1,
.home-identity:hover .home-tagline {
  color: inherit;
}

/* ---------- Nom et tagline ---------- */
.home-name {
  text-align: left;
  margin-bottom: 0.5rem;
}

.home-name h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.home-name h1 strong { font-weight: 600; }

.home-tagline {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0 0 2rem 0;
  font-family: var(--font-sans);
}
.home-tagline a {
  color: var(--color-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.home-tagline a:hover { color: var(--color-text); }

/* ---------- Hero : intro à gauche, photo à droite ---------- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.home-intro p { margin-bottom: 1rem; }
.home-intro p:last-child { margin-bottom: 0; }

.home-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Bloc photo + contact dessous */
.home-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-photo-wrap .home-photo { margin-bottom: 2rem; }

.home-contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.contact-email {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}
.contact-email strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.3rem;
}
.contact-email a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.15s ease;
  word-break: break-all;
}
.contact-email a:hover { border-bottom-color: var(--color-text); }

.home-contact {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--color-bg);
}
.contact-icon:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  transform: translateY(-2px);
}
.contact-icon svg { display: block; }

/* ---------- Bannière paysage ---------- */
.home-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  background-image: url("/assets/img/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-bg-alt);
  border-radius: 6px;
  margin: 1rem 0 3rem 0;
}

/* Sur mobile : ratio plus haut pour mieux remplir l'écran étroit */
@media (max-width: 700px) {
  .home-banner {
    aspect-ratio: 16 / 9;
    margin: 1rem 0 2rem 0;
  }
}

/* ---------- Cartes de navigation (3 colonnes) ---------- */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0 3rem 0;
}

.home-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.15s ease;
}
.home-card:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.home-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 0.6rem 0;
  font-weight: 600;
}
.home-card p {
  margin: 0 0 1rem 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--color-text);
}
.home-card .home-card-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: auto;
  font-style: italic;
}


/* ============================================================================
   7. PAGE À PROPOS
   ============================================================================ */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  align-items: start;
  margin: 2rem 0 3rem 0;
  max-width: 960px;
}

.about-narrative p {
  margin: 0 0 1.4rem 0;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--color-text);
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  position: sticky;
  top: 2rem;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-sidebar .about-photo {
  position: static;
  margin-bottom: 2.5rem;
  width: 100%;
}

.about-sidebar .home-contact-block {
  width: 100%;
}

/* ---------- Mon parcours (liste expériences linéaires) ---------- */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
}

.job-entry {
  padding: 0.4rem 0 0.4rem 1.2rem;
  border-left: 2px solid var(--color-border);
}

.job-entry .job-period {
  margin: 0 0 0.3rem 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}

.job-entry h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  line-height: 1.35;
  color: var(--color-text);
}

.job-entry > p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.job-entry ul {
  font-size: 0.95rem;
  margin: 0.6rem 0 0 0;
  padding-left: 1.2rem;
}

.job-entry ul li {
  margin-bottom: 0.3rem;
  color: var(--color-text);
  line-height: 1.5;
}

.cv-download-note {
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--color-muted);
  font-style: italic;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Mobile : photo au-dessus du texte */
@media (max-width: 700px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-sidebar {
    position: static;
    max-width: 280px;
    margin: 0 auto;
    order: -1;
  }

  .about-photo {
    max-width: 220px;
    margin: 0 auto;
    order: -1;
    position: static;
  }
}

/* ============================================================================
   8. PAGE RECHERCHE (sections internes Cap Nature)
   ============================================================================ */

/* ---------- Carte vedette (Cap Nature) ---------- */
.research-feature {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-text);
  border-radius: 4px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  background: var(--color-bg-alt);
}
.research-feature h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}
.research-feature .research-feature-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin: 0 0 0.4rem 0;
  font-weight: 500;
}
.research-feature ul { margin-top: 0.8rem; }

/* ---------- Phrase d'accroche (lead) ---------- */
.accordion-content .lead {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 1.2rem;
}

/* ---------- Intertitres h4 et h5 ---------- */
.accordion-content h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--color-text);
}
.accordion-content h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
}

/* Séparateur entre sous-sections */
.section-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0 1.5rem 0;
}

/* ---------- Grille des 3 études doctorales ---------- */
.three-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem 0;
}

.study {
  padding: 1.2rem;
  background: var(--color-bg-alt);
  border-radius: 4px;
  border-left: 3px solid var(--color-text);
}
.study .study-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.3rem;
}
.study p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: var(--color-text);
}

/* ---------- Liste des publics (lycées + universités) ---------- */
.audience-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.audience-list li {
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 2px solid var(--color-border);
  margin-left: 0.3rem;
}
.audience-list li + li { margin-top: 0.3rem; }

/* ---------- Grille des 3 dispositifs (écoute amplifiée…) ---------- */
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
}
.device {
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.device p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  color: var(--color-muted);
}

/* ---------- Bloc questions de recherche ---------- */
.research-questions {
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-muted);
  border-radius: 0 4px 4px 0;
}
.research-questions p {
  margin: 0 0 0.6rem 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--color-text);
}
.research-questions p:last-child { margin-bottom: 0; }

/* ---------- Galerie d'images Cap Nature ---------- */
.capnature-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 2rem 0;
}
.capnature-gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  border-radius: 2px;
  cursor: zoom-in;
}
.capnature-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.capnature-gallery-item:hover img { transform: scale(1.05); }

/* ---------- Bannière image Cap Nature ---------- */
.cap-nature-banner {
  margin: 2rem 0 1.5rem 0;
  text-align: center;
}

.cap-nature-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ---------- Bouton Wiki (Call To Action) ---------- */
.wiki-cta-wrapper {
  text-align: center;
  margin: 0 0 2.5rem 0;
}

.wiki-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.8rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.wiki-cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wiki-cta-arrow {
  font-size: 0.95rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.wiki-cta:hover .wiki-cta-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}


/* ============================================================================
   9. PAGE ENSEIGNEMENT
   ============================================================================ */

.teaching-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.teaching-cards:has(> a:nth-child(2)) {
  grid-template-columns: repeat(2, 1fr);
}

.teaching-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.15s ease;
}
.teaching-card:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.teaching-card .teaching-card-date {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.teaching-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.6rem 0;
  line-height: 1.3;
  color: var(--color-text);
}

.teaching-card p {
  margin: 0 0 0.8rem 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--color-text);
}

.teaching-card .teaching-card-meta {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid var(--color-border);
  font-style: italic;
}

/* ---------- Cartes modules Terra Klima ---------- */
.terra-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem 0;
}

.terra-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.25s ease;
}

.terra-card:hover {
  border-color: var(--color-text);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.terra-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.terra-card-content {
  padding: 1.3rem 1.5rem 1.5rem 1.5rem;
}

.terra-card .terra-card-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.terra-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.7rem 0;
  line-height: 1.25;
  color: var(--color-text);
}

.terra-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--color-muted);
}

@media (max-width: 700px) {
  .terra-cards {
    grid-template-columns: 1fr;
  }
}

/* Cours climat (cartes téléchargement PDF) */

.course-downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 1rem 0;
}

.download-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.15s ease;
}
.download-card:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.download-card .download-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-card .download-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
}

.download-card .download-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: auto;
}

.download-card::after {
  content: "↓";
  font-size: 1.2rem;
  margin-top: 0.6rem;
  color: var(--color-muted);
  align-self: flex-end;
}
.download-card:hover::after { color: var(--color-text); }

/* ---------- Ressources externes (page Enseignement) ---------- */
.external-resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 2rem 0;
}

.external-resource {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.15s ease;
}

.external-resource:hover {
  border-color: var(--color-text);
  background: var(--color-bg-alt);
  transform: translateY(-1px);
}

.external-resource .resource-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.external-resource .external-arrow {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-left: 0.2rem;
}

.external-resource:hover .external-arrow {
  color: var(--color-text);
}

.external-resource .resource-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.45;
}

@media (max-width: 700px) {
  .external-resources {
    grid-template-columns: 1fr;
  }
}


/* ============================================================================
   10. PAGE BLOG
   ============================================================================ */

.blog-header {
  margin: 0 0 4rem 0;
}

.blog-header-text {
  margin-bottom: 2.5rem;
}

.blog-header-text h1 {
  margin: 0 0 0.5rem 0;
}

.blog-header-text p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

.blog-header-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  background-image: url("/assets/img/banner-blog.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-bg-alt);
  border-radius: 6px;
}


/* Liste des billets */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-entry {
  padding: 2rem 0 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.blog-entry:first-child {
  padding-top: 1rem;
}

.blog-entry:last-child {
  border-bottom: none;
}

.blog-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  font-family: var(--font-sans);
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
  color: var(--color-text);
}

.blog-title em {
  font-style: italic;
}

.blog-venue {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.blog-content {
  font-size: 0.95rem;
  line-height: 1.65;
}

.blog-content p {
  margin: 0 0 0.9rem 0;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

.blog-content .video-embed {
  margin: 1.5rem 0 0.5rem 0;
}

/* Mobile */
@media (max-width: 700px) {
  .blog-header-banner {
    aspect-ratio: 16 / 9;
  }
  .blog-title {
    font-size: 1.2rem;
  }
}


/* ============================================================================
   11. PAGE SYA
   ============================================================================ */

/* ---------- Galerie mosaïque ---------- */
.sya-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 2rem 0 2.5rem 0;
}

.sya-gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  border-radius: 2px;
  cursor: zoom-in;
}

.sya-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.sya-gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

/* ---------- Diagramme à bulles (Syllabus 4 thèmes) ---------- */
.syllabus-bubbles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 700px;
}

.bubble {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.bubble h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.6rem 0;
  color: white;
  line-height: 1.25;
}

.bubble p {
  font-size: 0.82rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
}

/* Couleurs des 4 thèmes */
.bubble-eco  { background: #3a7a52; }  /* Vert forêt */
.bubble-geo  { background: #6dab87; }  /* Vert clair */
.bubble-clim { background: #4a7fa0; }  /* Bleu océan */
.bubble-res  { background: #7fc3d6; }  /* Bleu clair */

/* Imbrication visuelle façon mosaïque */
.bubble-eco  { transform: translate( 20px,  20px); }
.bubble-geo  { transform: translate(-10px, -10px); }
.bubble-clim { transform: translate( 10px, -20px); }
.bubble-res  { transform: translate(-15px,  10px); }

.bubble-eco:hover  { transform: translate( 20px,  17px); }
.bubble-geo:hover  { transform: translate(-10px, -13px); }
.bubble-clim:hover { transform: translate( 10px, -23px); }
.bubble-res:hover  { transform: translate(-15px,   7px); }

/* ---------- Programme par semestre ---------- */
.syllabus-program {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.semester h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-text);
  color: var(--color-text);
}

.program-item {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
  font-size: 0.95rem;
  line-height: 1.55;
}
.program-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.program-item em {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ---------- Cartes Capstone ---------- */
.capstone {
  border-left: 3px solid var(--color-border);
  padding: 0.5rem 0 0.5rem 1.2rem;
  margin: 1.5rem 0;
}
.capstone h4 {
  margin: 0 0 0.2rem 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
}
.capstone p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}
.capstone p:first-of-type {
  color: var(--color-muted);
  font-style: italic;
}


/* ============================================================================
   12. RESPONSIVE GLOBAL
   ============================================================================ */

/* ---------- Tablet (< 900 px) ---------- */
@media (max-width: 900px) {
  .home-cards,
  .home-projects {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tablet petit (< 800 px) ---------- */
@media (max-width: 800px) {
  .three-studies,
  .device-grid,
  .experience-cards,
  .resource-links {
    grid-template-columns: 1fr;
  }
  .capnature-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile (< 700 px) ---------- */
@media (max-width: 700px) {
  .home-name h1 { font-size: 2.4rem; }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-photo {
    max-width: 220px;
    margin: 0 auto;
    order: -1;
  }

  .about-bio,
  .home-hero-card {
    padding: 1.5rem;
    border-left: 1px solid var(--color-border);
  }

  .about-identity {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .about-identity dt { margin-top: 0.6rem; }
  .about-identity dt:first-child { margin-top: 0; }

  .accordion-section > summary {
    font-size: 1.2rem;
    padding: 1rem 1.2rem;
  }
  .accordion-content {
    padding: 1.2rem 1.4rem 1.5rem 1.4rem;
  }

  .sya-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .syllabus-program,
  .course-downloads {
    grid-template-columns: 1fr;
  }

  .teaching-cards:has(> a:nth-child(2)) {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile petit (< 600 px) ---------- */
@media (max-width: 600px) {
  :root { --text-base: 16px; }
  .container { padding: 0 1.2rem; }
  .site-nav { gap: 1rem; font-size: 0.85rem; }
  h1, .page-title { font-size: 2rem; }

  .syllabus-bubbles {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .bubble {
    aspect-ratio: 1.4 / 1;
    border-radius: 16px;
    padding: 1.2rem;
    transform: none !important;
  }
}

/* ============================================================================
   13. Page License
   ============================================================================ */

.license-page {
  max-width: 720px;
}

.license-headline {
  font-size: 1.1rem;
  padding: 1.2rem 1.5rem;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-text);
  border-radius: 0 4px 4px 0;
  margin: 0 0 2.5rem 0;
  line-height: 1.5;
}

.license-headline strong {
  font-family: var(--font-serif);
}

.license-exceptions {
  margin: 1rem 0 2rem 0;
}

.license-exceptions dt {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-top: 1rem;
  color: var(--color-text);
}

.license-exceptions dt:first-child {
  margin-top: 0;
}

.license-exceptions dd {
  margin: 0.3rem 0 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.license-page code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

