/* ===================================================================
   style.css — identité sobre, chercheuse / artiste-designeuse
   Papier + encre + vert mousse en accent unique.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,400&family=IBM+Plex+Sans:wght@400;500&display=swap');

@font-face {
  font-family: 'Abordage';
  src: url('../fonts/Abordage.woff2') format('woff2'),
       url('../fonts/Abordage.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Euskalibur';
  src: url('../fonts/Euskalibur-Dark.woff') format('woff'),
       url('../fonts/Euskalibur-Dark.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geneva';
  src: url('../fonts/Geneva.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;

}


:root {
  --papier: #ffffff;
  --papier-ombre: #474746;
  --encre: #1c1b17;
  --encre-douce: #404040;
  --mousse: #383838;
  --mousse-sombre: #363d2f;
  --violet-flash: #060606;
  --trait: #313131;
  --marge: clamp(1.5rem, 6vw, 4rem);
  --colonne: 680px;
  /* Euskalibur : réservée au nom du site */
  --police-nom: 'Euskalibur', 'Abordage', serif;
  /* Geneva : tous les autres textes (titres, projets, listes...) */
  --police-affiche: 'Geneva', 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: 'Geneva', 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a {
  color: var(--encre);
  text-decoration-color: var(--trait);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover, a:focus-visible {
  color: var(--mousse);
  text-decoration-color: var(--mousse);
}
a:focus-visible {
  outline: 2px solid var(--mousse);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--police-affiche);
  font-size: large;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

/* ---------- structure générale ---------- */


.page {
  max-width: var(--colonne);
  margin: 0 auto;
  padding: 0 var(--marge) 6rem;
}

/* ---------- en-tête / nav : bande pleine largeur ---------- */

header.entete {
  width: 100%;
  background: var(--papier);
  color: var(--violet-flash);
}

.entete-interieur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem var(--marge);
}

.entete-identite {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
}

.entete-nom {
  font-family: var(--police-nom);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--violet-flash);
}
.entete-nom a { text-decoration: none; color: var(--violet-flash); }

.entete-titre-fonction {
  font-family: var(--police-affiche);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

nav.entete-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.75rem;
  row-gap: 0.4rem;
}

nav.entete-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--violet-flash);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  opacity: 0.75;
}
nav.entete-nav a:hover,
nav.entete-nav a:focus-visible {
  opacity: 1;
  border-bottom-color: var(--violet-flash);
}
nav.entete-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--violet-flash);
}

/* ---------- accueil ---------- */

.accueil-intro {
  max-width: var(--colonne);
  margin: 0 auto;
  padding: 3rem var(--marge) 0;
  font-family: var(--police-affiche);
  font-size: 1.2rem;
  line-height: 1.65;
}

.accueil-intro p:last-child {
  font-family: var(--police-affiche);
  font-size: 1rem;
  color: var(--encre-douce);
}

.accueil-section-titre {
  margin-top: 3.5rem;
}

/* ---------- gabarit pleine largeur (parutions, cours) ---------- */

.page-large {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--marge) 6rem;
}

.page-large .liste-chrono .entree {
  grid-template-columns: 8rem 1fr;
}

@media (max-width: 520px) {
  .page-large .liste-chrono .entree {
    grid-template-columns: 1fr;
  }
}

/* ---------- page de détail parution/conférence ---------- */

.detail-mise-en-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.detail-meta {
  position: sticky;
  top: 2rem;
}

.detail-meta-bloc {
  padding: 1.1rem 0;
  border-top: 1px solid var(--trait);
}
.detail-meta-bloc:first-child { border-top: none; }

.detail-meta-bloc h3 {
  font-family: var(--police-affiche);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--encre-douce);
  margin: 0 0 0.35rem;
  font-weight: 500;
}

.detail-meta-bloc p { margin: 0; }

ul.detail-medias {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.detail-medias li { padding: 0.2rem 0; }

.detail-contenu {
  max-width: 720px;
}

.detail-contenu h1 {
  font-family: var(--police-affiche);
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.detail-contenu h3 {
  font-family: var(--police-affiche);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-flash);
  margin: 2rem 0 0.5rem;
  font-weight: 500;
}
.detail-contenu h3:first-of-type { margin-top: 0; }

.detail-contenu p {
  font-family: var(--police-affiche);
  font-size: 1.05rem;
  line-height: 1.7;
}

.detail-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait);
  font-size: 0.9rem;
  color: var(--encre-douce);
}
.detail-pagination a { color: var(--encre-douce); }
.detail-pagination a:hover { color: var(--violet-flash); }

@media (max-width: 720px) {
  .detail-mise-en-page {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .detail-meta { position: static; }
}

/* ---------- page de détail projet ---------- */

.projet-hero {
  width: 100%;
  height: 62vh;
  min-height: 320px;
  overflow: hidden;
  background: var(--mousse-sombre);
}
.projet-hero img,
.projet-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projet-corps {
  max-width: var(--colonne);
  margin: 0 auto;
  padding: 3rem var(--marge) 5rem;
}

.projet-entete h1 {
  font-family: var(--police-affiche);
  font-size: 2.2rem;
  font-weight: 400;
}

.projet-materiaux {
  color: var(--encre-douce);
  font-size: 0.95rem;
  margin-top: -0.5rem;
}

.projet-texte {
  margin-top: 2rem;
}
.projet-texte p {
  font-family: var(--police-affiche);
  font-size: 1.05rem;
  line-height: 1.75;
}

.projet-bloc {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.projet-bloc h3 {
  font-family: var(--police-affiche);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-flash);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

ul.projet-liste-simple {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--encre-douce);
}
ul.projet-liste-simple li { padding: 0.3rem 0; }
ul.projet-liste-simple strong { color: var(--encre); }

@media (max-width: 720px) {
  .projet-hero { height: 42vh; }
}

/* ---------- gabarit plein écran (page Projets) ---------- */

.page-plein {
  width: 100%;
  padding: 0 var(--marge) 5rem;
}

.page-plein-titre {
  padding: 2.5rem 0 0;
  font-family: var(--police-affiche);
  font-size: 2rem;
  font-weight: 400;
}

/* ---------- grille de projets (page Projets) ----------
   Toutes les vignettes ont exactement la même taille et le même
   format carré, alignées en lignes et colonnes régulières.
   Pour changer la taille : modifier max-width (plus grand = vignettes plus grandes)
   ou le nombre de colonnes dans repeat(2, 1fr). */

.grille-projets,
.grille-projets--pleine {
  list-style: none;
  margin: 1.75rem auto 0;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.grille-carte {
  display: block;
  width: 100%;
  text-decoration: none;
  color: var(--encre);
}

.grille-carte-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mousse-sombre);
}

.grille-carte-image img,
.grille-carte-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.grille-carte:hover .grille-carte-image img,
.grille-carte:focus-visible .grille-carte-image img,
.grille-carte:hover .grille-carte-image video,
.grille-carte:focus-visible .grille-carte-image video {
  transform: scale(1.04);
}

.grille-carte-titre {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--police-affiche);
  font-size: 1.05rem;
}

.grille-carte-annee {
  display: block;
  font-size: 0.85rem;
  color: var(--mousse);
}

@media (max-width: 900px) {
  .grille-projets,
  .grille-projets--pleine { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .grille-projets,
  .grille-projets--pleine { grid-template-columns: 1fr; }
}

/* ---------- listes chronologiques (parutions / cours / cv) ---------- */

ul.liste-chrono {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.entree {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.25rem 1.5rem;
  padding: 1.25rem 0;
  position: relative;
}
.entree::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4rem;
  height: 1px;
  background: var(--trait);
}
.entree:last-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 1px;
  background: var(--trait);
}

.entree-date {
  font-family: var(--police-affiche);
  font-size: 0.9rem;
  color: var(--mousse);
  padding-top: 0.2rem;
}

.entree-etiquette {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--encre-douce);
  margin-bottom: 0.3rem;
}

.entree-titre {
  font-family: var(--police-affiche);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  text-decoration: none;
  color: var(--encre);
}
a.entree-titre:hover, a.entree-titre:focus-visible {
  color: var(--mousse);
}

.entree-titre--statique {
  margin: 0 0 0.3rem;
}

.entree-desc {
  margin: 0.3rem 0 0;
  color: var(--encre-douce);
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .entree {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .entree-date { padding-top: 0; }
}

/* ---------- CV ---------- */

.cv-bloc { margin-top: 9rem; }
.cv-bloc:first-of-type { margin-top: 1.5rem; }

ul.cv-competences {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}
ul.cv-competences li {
  border: 1px solid var(--trait);
  border-radius: 2px;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.cv-telecharger {
  display: inline-block;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait);
  font-size: 0.95rem;
}

/* ---------- contact ---------- */

.contact-bloc {
  margin-top: 1.5rem;
}
.contact-bloc a {
  font-family: var(--police-affiche);
  font-size: 1.3rem;
}
ul.contact-liens {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
ul.contact-liens li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--trait);
}
ul.contact-liens li:last-child { border-bottom: 1px solid var(--trait); }

/* ---------- pied de page ---------- */

footer.pied {
  width: 100%;
  margin: 0;
  padding: 2rem var(--marge) 2.5rem;
  color: var(--encre-douce);
  font-size: 0.85rem;
  text-align: left;
}

.pied-nom {
  display: block;
  margin: 0;
  font-family: var(--police-nom);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--violet-flash);
}
.pied-nom a { text-decoration: none; color: inherit; }