/* ============================================================
   PORTFOLIO — KOSCIUSZKO ENZO
   Feuille de style principale + animations
   ============================================================

   PERSONNALISATION RAPIDE :
   Modifie les variables CSS dans :root
   ============================================================ */

/* --- IMPORT POLICES ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- VARIABLES --------------------------------------------- */
:root {
  --creme:       #F5F0E8;
  --encre:       #1A1612;
  --terracotta:  #C4622D;
  --sable:       #E8DECE;
  --gris-chaud:  #8A7F72;
  --ligne:       #D4C9B8;

  --font-titre:  'Familjen Grotesk', sans-serif;
  --font-corps:  'Lora', serif;
  --font-mono:   'JetBrains Mono', monospace;

  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.25rem;
  --t-xl:   1.75rem;
  --t-2xl:  2.5rem;
  --t-3xl:  3.5rem;
  --t-4xl:  5rem;

  --espace-s:  1rem;
  --espace-m:  2rem;
  --espace-l:  4rem;
  --espace-xl: 7rem;

  --rayon:      4px;
  --ombre:      0 2px 20px rgba(26,22,18,0.08);
  --ombre-lg:   0 8px 40px rgba(26,22,18,0.14);
  --transition: 0.3s ease;
}

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

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

body {
  background-color: var(--creme);
  color: var(--encre);
  font-family: var(--font-corps);
  line-height: 1.7;
  cursor: none; /* on cache le curseur natif — remplacé par le custom */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: none; }
ul { list-style: none; }

/* ============================================================
   CURSEUR PERSONNALISÉ
   Un petit point terracotta + un anneau qui le suit avec délai
   ============================================================ */
#curseur-point {
  position: fixed;
  width: 8px; height: 8px;
  background-color: var(--terracotta);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

#curseur-anneau {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.25s ease, height 0.25s ease, opacity 0.2s ease;
  opacity: 0.5;
}

/* Agrandissement au survol des éléments interactifs */
body.curseur-hover #curseur-point {
  width: 12px; height: 12px;
  opacity: 0.7;
}
body.curseur-hover #curseur-anneau {
  width: 52px; height: 52px;
  opacity: 0.25;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--espace-l);
  background-color: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
  /* Animation d'entrée */
  animation: nav-entree 0.6s ease both;
}

@keyframes nav-entree {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-logo {
  font-family: var(--font-titre);
  font-size: var(--t-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-liens { display: flex; gap: var(--espace-m); align-items: center; }

.nav-lien {
  font-family: var(--font-titre);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-chaud);
  transition: color var(--transition);
  position: relative;
}

.nav-lien::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background-color: var(--terracotta);
  transition: width var(--transition);
}

.nav-lien:hover { color: var(--encre); }
.nav-lien:hover::after { width: 100%; }
.nav-lien.actif { color: var(--encre); }
.nav-lien.actif::after { width: 100%; background-color: var(--terracotta); }

.badge-wip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background-color: var(--ligne);
  color: var(--gris-chaud);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.4em;
  letter-spacing: 0.05em;
}

/* ============================================================
   LAYOUT
   ============================================================ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--espace-l) var(--espace-m);
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris-chaud);
}
.label::before { content: '—— '; color: var(--terracotta); }

.trait { border: none; border-top: 1px solid var(--ligne); margin: var(--espace-m) 0; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ligne);
  padding: 0.3em 0.8em;
  border-radius: 2px;
  color: var(--gris-chaud);
  transition: all var(--transition);
}
.tag:hover, .tag.actif {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background-color: rgba(196,98,45,0.05);
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-titre);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8em 1.8em;
  border: 1.5px solid var(--encre);
  border-radius: var(--rayon);
  cursor: none;
  transition: all var(--transition);
  background: transparent;
  color: var(--encre);
  position: relative;
  overflow: hidden;
}

/* Effet de remplissage au survol (slide from bottom) */
.btn::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0;
  background-color: var(--encre);
  transition: height 0.25s ease;
  z-index: 0;
}
.btn:hover::before { height: 100%; }
.btn span, .btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--creme); }

.btn-accent {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--creme);
}
.btn-accent::before { background-color: var(--encre); }
.btn-accent:hover { border-color: var(--encre); }

/* ============================================================
   ANIMATIONS AU SCROLL — classe de base
   Les éléments avec .reveal partent invisibles.
   Le JS ajoute .visible quand ils entrent dans la vue.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais en cascade pour les grilles */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   HERO — avec fond géométrique animé
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--espace-l);
  align-items: center;
  min-height: 88vh;
  padding: var(--espace-l) 0;
  position: relative;
}

/* Fond géométrique : grille de points en SVG */
.hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  /* Grille de points SVG répétée en fond */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.2' fill='%23D4C9B8'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0;
  z-index: 0;
  /* Animation d'apparition lente */
  animation: dots-apparition 1.8s ease 0.3s forwards;
  pointer-events: none;
}

@keyframes dots-apparition {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Dégradé masque qui cache les points vers le bas */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: -40px; right: -40px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--creme));
  pointer-events: none;
  z-index: 1;
}

.hero-contenu {
  position: relative;
  z-index: 2;
}

.hero-surtitre {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  /* Animation d'entrée propre au hero (pas de reveal JS) */
  opacity: 0;
  animation: hero-slide-up 0.7s ease 0.4s forwards;
}

.hero-titre {
  font-family: var(--font-titre);
  font-size: clamp(3rem, 6vw, var(--t-4xl));
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: hero-slide-up 0.7s ease 0.55s forwards;
}

.hero-titre em {
  font-family: var(--font-corps);
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

.hero-description {
  font-size: var(--t-lg);
  color: var(--gris-chaud);
  max-width: 45ch;
  margin-bottom: var(--espace-m);
  line-height: 1.6;
  opacity: 0;
  animation: hero-slide-up 0.7s ease 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-slide-up 0.7s ease 0.85s forwards;
}

@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Côté droit : photo + infos */
.hero-profil {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--espace-s);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: hero-slide-up 0.8s ease 0.6s forwards;
}

/* Effet parallaxe souris — géré en JS */
.hero-profil-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--espace-s);
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.profil-photo-cadre {
  position: relative;
  width: 280px;
  height: 320px;
}

.profil-photo-cadre::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 100%; height: 100%;
  border: 2px solid var(--terracotta);
  border-radius: var(--rayon);
  z-index: 0;
  transition: top 0.3s ease, left 0.3s ease;
}

.profil-photo-cadre:hover::before {
  top: 16px; left: 16px;
}

.profil-photo-cadre img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--rayon);
  filter: grayscale(20%);
  transition: filter var(--transition);
}

.profil-photo-cadre:hover img { filter: grayscale(0%); }

.profil-infos {
  width: 280px;
  background-color: var(--sable);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: var(--espace-s);
}

.profil-infos-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ligne);
  font-size: var(--t-sm);
}
.profil-infos-ligne:last-child { border-bottom: none; }
.profil-infos-ligne .key {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-chaud);
}

/* ============================================================
   TICKER — bandeau défilant entre sections
   ============================================================ */
.ticker-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  background-color: var(--sable);
  padding: 0.8rem 0;
  /* Pleine largeur, sort du conteneur main */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.ticker-piste {
  display: flex;
  gap: 0;
  /* La piste fait 2× sa largeur pour la boucle infinie */
  animation: ticker-defiler 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}

/* Ralentit au survol */
.ticker-wrapper:hover .ticker-piste { animation-play-state: paused; }

@keyframes ticker-defiler {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-titre);
  font-size: var(--t-base);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-chaud);
  padding: 0 2rem;
  /* Séparateur entre items */
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}

.ticker-item::after {
  content: '·';
  color: var(--terracotta);
  font-size: 1.5em;
  line-height: 1;
}

/* ============================================================
   CARTES AVEC EFFET SPOTLIGHT (lumière qui suit la souris)
   Le JS injecte les variables --mx et --my en style inline
   ============================================================ */
.spotlight-card {
  position: relative;
  overflow: hidden;
  background-color: var(--sable);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: var(--espace-m);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.spotlight-card::before {
  /* Halo lumineux centré sur la souris */
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(196,98,45,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  left: var(--mx, 50%);
  top:  var(--my, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.spotlight-card:hover::before { opacity: 1; }

/* Le contenu passe au-dessus du halo */
.spotlight-card > * { position: relative; z-index: 1; }

.spotlight-card:hover {
  border-color: rgba(196,98,45,0.35);
  transform: translateY(-3px);
  box-shadow: var(--ombre-lg);
}

/* ============================================================
   SECTIONS PRINCIPALES
   ============================================================ */
.section-titre {
  font-family: var(--font-titre);
  font-size: var(--t-2xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 var(--espace-m);
}

.section-competences,
.section-certifications,
.section-experiences,
.section-langues,
.section-hobbies {
  padding: var(--espace-l) 0;
  border-top: 1px solid var(--ligne);
}

/* ============================================================
   COMPÉTENCES — barres animées
   ============================================================ */
.competences-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--espace-l);
  margin-top: var(--espace-m);
}

.competences-bloc-titre {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris-chaud);
  margin-bottom: var(--espace-s);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ligne);
}
.competences-bloc-titre::before { content: '—— '; color: var(--terracotta); }

.competences-liste { display: flex; flex-direction: column; gap: 0.9rem; }

.comp-item { display: flex; flex-direction: column; gap: 0.3rem; }

.comp-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comp-item-nom {
  font-family: var(--font-titre);
  font-size: var(--t-base);
  font-weight: 700;
}

.comp-item-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--gris-chaud);
  letter-spacing: 0.08em;
}

/* La barre part à 0, le JS l'anime jusqu'à la valeur data-width */
.comp-barre {
  height: 4px;
  background-color: var(--ligne);
  border-radius: 2px;
  overflow: hidden;
}

.comp-barre-rempli {
  height: 100%;
  width: 0; /* démarre à 0 — animé par JS via transition */
  background: linear-gradient(to right, var(--terracotta), #D4885A);
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certif-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--espace-m);
  margin-top: var(--espace-m);
}

.certif-carte {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.certif-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.certif-logo {
  font-family: var(--font-titre);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: var(--encre);
  color: var(--creme);
  padding: 0.3em 0.7em;
  border-radius: 2px;
  white-space: nowrap;
}

.certif-score {
  font-family: var(--font-mono);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  text-align: right;
}
.certif-score span {
  font-size: var(--t-xs);
  color: var(--gris-chaud);
  font-weight: 400;
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Le score animé — JS écrit le nombre dans cet élément */
.certif-score-valeur { display: inline; }

.certif-nom {
  font-family: var(--font-titre);
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.2;
}

.certif-niveau {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--terracotta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.certif-modules { display: flex; flex-direction: column; gap: 0.4rem; }

.certif-module-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
  gap: 0.5rem;
}

.certif-module-nom { font-family: var(--font-corps); color: var(--gris-chaud); flex: 1; }
.certif-module-score { font-family: var(--font-mono); font-weight: 700; color: var(--encre); white-space: nowrap; }

.certif-module-barre {
  width: 60px; height: 3px;
  background-color: var(--ligne);
  border-radius: 2px;
  overflow: hidden;
}

.certif-module-barre-rempli {
  height: 100%;
  width: 0; /* animé par JS */
  background: linear-gradient(to right, var(--terracotta), #D4885A);
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.certif-meta {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--gris-chaud);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--ligne);
  padding-top: 0.7rem;
}
.certif-meta-ligne { margin-bottom: 0.2rem; }

.certif-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-color: var(--ligne);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
  margin-top: auto;
  cursor: none;
}
.certif-lien:hover { text-decoration-color: var(--terracotta); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--espace-m);
  padding: var(--espace-m) 0;
  border-bottom: 1px solid var(--ligne);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }

/* Trait vertical animé sur le côté gauche */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 108px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--terracotta), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.timeline-item.visible::before { opacity: 1; }

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--gris-chaud);
  letter-spacing: 0.1em;
  padding-top: 0.2rem;
}

.timeline-contenu-titre {
  font-family: var(--font-titre);
  font-size: var(--t-lg);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-lieu {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--terracotta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-texte {
  font-size: var(--t-sm);
  color: var(--gris-chaud);
  max-width: 60ch;
}

/* ============================================================
   LANGUES
   ============================================================ */
.langues-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--espace-m);
  margin-top: var(--espace-m);
}

.langue-carte {
  background-color: var(--sable);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: var(--espace-m);
  transition: all var(--transition);
}
.langue-carte:hover { border-color: var(--terracotta); transform: translateY(-2px); }

.langue-nom { font-family: var(--font-titre); font-size: var(--t-xl); font-weight: 700; margin-bottom: 0.3rem; }
.langue-niveau { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--terracotta); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; }
.langue-bareme { font-family: var(--font-corps); font-size: var(--t-sm); color: var(--gris-chaud); font-style: italic; }

/* ============================================================
   HOBBIES
   ============================================================ */
.hobbies-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: var(--espace-m);
}

.hobby-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-titre);
  font-size: var(--t-base);
  font-weight: 700;
  border: 1.5px solid var(--ligne);
  padding: 0.6em 1.4em;
  border-radius: 999px;
  color: var(--encre);
  transition: all 0.25s ease;
  /* Micro flottement */
  animation: flotter 3s ease-in-out infinite;
}

.hobby-tag:nth-child(2) { animation-delay: 0.5s; }
.hobby-tag:nth-child(3) { animation-delay: 1s; }

@keyframes flotter {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

.hobby-tag:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background-color: rgba(196,98,45,0.05);
  animation-play-state: paused;
}

/* ============================================================
   PAGE VEILLE
   ============================================================ */
.veille-hero {
  padding: var(--espace-l) 0 var(--espace-m);
  border-bottom: 1px solid var(--ligne);
}

.veille-titre {
  font-family: var(--font-titre);
  font-size: clamp(2.5rem, 5vw, var(--t-3xl));
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.veille-intro { max-width: 65ch; color: var(--gris-chaud); font-size: var(--t-lg); }

.onglets-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ligne);
  margin: var(--espace-m) 0 0;
}

.onglet-btn {
  font-family: var(--font-titre);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--gris-chaud);
  cursor: none;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.onglet-btn:hover { color: var(--encre); }
.onglet-btn.actif { color: var(--encre); border-bottom-color: var(--terracotta); }

.onglet-panneau { display: none; padding: var(--espace-l) 0; animation: apparition 0.35s ease; }
.onglet-panneau.actif { display: block; }

@keyframes apparition {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bornage-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--espace-m); }
.bornage-carte { background-color: var(--sable); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: var(--espace-m); transition: all var(--transition); }
.bornage-carte:hover { border-color: var(--terracotta); }

.bornage-numero { font-family: var(--font-mono); font-size: var(--t-3xl); font-weight: 700; color: var(--ligne); line-height: 1; margin-bottom: 0.5rem; }
.bornage-nom { font-family: var(--font-titre); font-size: var(--t-xl); font-weight: 700; margin-bottom: 0.5rem; }
.bornage-desc { font-size: var(--t-sm); color: var(--gris-chaud); }

.outils-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--espace-m); }
.outil-carte { background-color: var(--sable); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: var(--espace-m); display: flex; flex-direction: column; gap: 0.8rem; transition: all var(--transition); }
.outil-carte:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.outil-nom { font-family: var(--font-titre); font-size: var(--t-lg); font-weight: 700; }
.outil-desc { font-size: var(--t-sm); color: var(--gris-chaud); flex: 1; }
.outil-type { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--terracotta); letter-spacing: 0.1em; text-transform: uppercase; }

.news-liste { display: flex; flex-direction: column; gap: var(--espace-m); }
.news-carte { display: grid; grid-template-columns: 1fr 2fr; gap: var(--espace-m); background-color: var(--sable); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: var(--espace-m); transition: all var(--transition); }
.news-carte:hover { border-color: var(--terracotta); box-shadow: var(--ombre); }
.news-date { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--gris-chaud); letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.news-source { font-family: var(--font-titre); font-size: var(--t-base); font-weight: 700; margin-bottom: 0.5rem; }
.news-bornage { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.news-titre { font-family: var(--font-titre); font-size: var(--t-xl); font-weight: 700; line-height: 1.2; margin-bottom: 0.8rem; }
.news-resume { font-size: var(--t-sm); color: var(--gris-chaud); line-height: 1.7; margin-bottom: 1rem; }
.news-lien { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); text-decoration: underline; text-decoration-color: var(--ligne); text-underline-offset: 3px; transition: text-decoration-color var(--transition); }
.news-lien:hover { text-decoration-color: var(--terracotta); }

/* ============================================================
   PAGE RECTORAT WIP
   ============================================================ */
.wip-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--espace-m); }
.wip-code { font-family: var(--font-mono); font-size: 8rem; font-weight: 500; color: var(--ligne); line-height: 1; letter-spacing: -0.05em; }
.wip-titre { font-family: var(--font-titre); font-size: var(--t-2xl); font-weight: 700; }
.wip-desc { max-width: 50ch; color: var(--gris-chaud); }
.wip-barre-fond { width: 300px; height: 4px; background-color: var(--ligne); border-radius: 2px; overflow: hidden; }
.wip-barre-rempli { height: 100%; background-color: var(--terracotta); border-radius: 2px; animation: pulse-barre 2s ease-in-out infinite; }
@keyframes pulse-barre { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--ligne);
  padding: var(--espace-m) var(--espace-l);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--espace-xl);
}
.footer-nom { font-family: var(--font-titre); font-size: var(--t-sm); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-contact { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--gris-chaud); letter-spacing: 0.1em; }
.footer-contact a { color: var(--terracotta); transition: opacity var(--transition); }
.footer-contact a:hover { opacity: 0.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body { cursor: auto; } /* On remet le curseur natif sur mobile */
  #curseur-point, #curseur-anneau { display: none; }

  nav { padding: 1rem var(--espace-s); }
  main { padding: var(--espace-m) var(--espace-s); }

  .hero { grid-template-columns: 1fr; min-height: auto; gap: var(--espace-m); }
  .hero-profil { align-items: flex-start; }
  .profil-photo-cadre { width: 200px; height: 230px; }
  .profil-infos { width: 100%; }

  .competences-double { grid-template-columns: 1fr; }
  .langues-grille { grid-template-columns: 1fr; }
  .bornage-grille, .outils-grille { grid-template-columns: 1fr; }
  .news-carte { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
  .nav-liens { gap: var(--espace-s); }
  .badge-wip { display: none; }
  .timeline-item { grid-template-columns: 1fr; }
  .wip-code { font-size: 5rem; }
}
