/* ============================================================
   CDR JOB MARKET — FEUILLE DE STYLE PRINCIPALE
   Auteur       : Cœur De Roses
   Description  : Styles globaux, composants réutilisables
                  et mise en page de toutes les pages du site.
   Polices      : Playfair Display (titres) + Lato (corps)
                  Licence SIL OFL — usage commercial autorisé
============================================================ */


/* ============================================================
   1. VARIABLES CSS GLOBALES
   Toutes les couleurs, tailles et espacements sont centralisés
   ici pour faciliter les modifications futures.
============================================================ */
:root {
  /* Palette de couleurs principale */
  --couleur-primaire       : #8B1A1A;   /* Rouge bordeaux — couleur de la rose */
  --couleur-secondaire     : #c9a96e;   /* Or doux — rappel du nom "Cœur De Roses" */
  --couleur-accent         : #e8d5b0;   /* Or clair pour les fonds */
  --couleur-fond           : #f9f7f4;   /* Blanc cassé légèrement chaud */
  --couleur-fond-sombre    : #f0ece4;   /* Fond légèrement plus foncé pour les sections */
  --couleur-texte          : #2c2c2c;   /* Texte principal presque noir */
  --couleur-texte-doux     : #6b6b6b;   /* Texte secondaire gris moyen */
  --couleur-bordure        : #ddd5c8;   /* Bordure subtile chaude */
  --couleur-succes         : #2d6a4f;   /* Vert pour les messages de succès */
  --couleur-erreur         : #6B2737;   /* Bordeaux foncé pour les messages d'erreur */
  --couleur-avertissement  : #e07c24;   /* Orange pour les avertissements */

  /* Typographie */
  --police-titre  : 'Playfair Display', Georgia, serif;
  --police-corps  : 'Lato', Helvetica, sans-serif;

  /* Tailles de police */
  --taille-xs   : 0.75rem;    /* 12px */
  --taille-sm   : 0.875rem;   /* 14px */
  --taille-base : 1rem;       /* 16px */
  --taille-md   : 1.125rem;   /* 18px */
  --taille-lg   : 1.5rem;     /* 24px */
  --taille-xl   : 2rem;       /* 32px */
  --taille-xxl  : 2.75rem;    /* 44px */
  --taille-hero : 3.5rem;     /* 56px */

  /* Espacements */
  --espace-xs  : 0.25rem;
  --espace-sm  : 0.5rem;
  --espace-md  : 1rem;
  --espace-lg  : 2rem;
  --espace-xl  : 4rem;
  --espace-xxl : 6rem;

  /* Arrondis */
  --arrondi-sm  : 4px;
  --arrondi-md  : 8px;
  --arrondi-lg  : 16px;
  --arrondi-xl  : 32px;

  /* Ombres */
  --ombre-legere  : 0 2px 8px rgba(0, 0, 0, 0.06);
  --ombre-moyenne : 0 4px 20px rgba(0, 0, 0, 0.10);
  --ombre-forte   : 0 8px 40px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-rapide  : 0.15s ease;
  --transition-normale : 0.3s ease;

  /* Largeur maximale du contenu centré */
  --largeur-max : 1200px;
}


/* ============================================================
   2. RESET & BASE
   Normalisation des styles par défaut des navigateurs
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Défilement fluide pour les ancres */
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--police-corps);
  font-size: var(--taille-base);
  color: var(--couleur-texte);
  background-color: var(--couleur-fond);
  line-height: 1.7;
  /* Empêche le débordement horizontal involontaire */
  overflow-x: hidden;
}

/* Images responsives par défaut */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Liens de base */
a {
  color: var(--couleur-secondaire);
  text-decoration: none;
  transition: color var(--transition-rapide);
}

a:hover {
  color: var(--couleur-primaire);
}

/* Focus visible pour l'accessibilité clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--couleur-secondaire);
  outline-offset: 3px;
  border-radius: var(--arrondi-sm);
}

/* Listes sans style par défaut */
ul, ol {
  list-style: none;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--police-titre);
  color: var(--couleur-primaire);
  line-height: 1.2;
}


/* ============================================================
   3. UTILITAIRES GLOBAUX
============================================================ */

/* Conteneur centré avec largeur maximale */
.container {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--espace-lg);
}

/* Texte réservé aux lecteurs d'écran (accessibilité) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Message de chargement */
.chargement {
  color: var(--couleur-texte-doux);
  font-style: italic;
  text-align: center;
  padding: var(--espace-lg);
}


/* ============================================================
   4. BOUTONS
   Composant réutilisable sur toutes les pages
============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--police-corps);
  font-size: var(--taille-base);
  font-weight: 700;
  border-radius: var(--arrondi-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition-rapide),
              color var(--transition-rapide),
              border-color var(--transition-rapide),
              transform var(--transition-rapide);
  text-align: center;
  /* Empêche la sélection accidentelle du texte au clic */
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Bouton principal — fond sombre */
.btn--primary {
  background-color: var(--couleur-primaire);
  color: #fff;
  border-color: var(--couleur-primaire);
}

.btn--primary:hover {
  background-color: var(--couleur-secondaire);
  border-color: var(--couleur-secondaire);
  color: var(--couleur-primaire);
}

/* Bouton secondaire — contour seulement */
.btn--secondary {
  background-color: transparent;
  color: var(--couleur-primaire);
  border-color: var(--couleur-primaire);
}

.btn--secondary:hover {
  background-color: var(--couleur-primaire);
  color: #fff;
}

/* Bouton contour doré */
.btn--outline {
  background-color: transparent;
  color: var(--couleur-secondaire);
  border-color: var(--couleur-secondaire);
}

.btn--outline:hover {
  background-color: var(--couleur-secondaire);
  color: var(--couleur-primaire);
}


/* ============================================================
   BOUTONS SPÉCIFIQUES AU HERO
   Sur fond sombre, les boutons ont des couleurs plus claires
   au repos pour améliorer la lisibilité et le contraste.
============================================================ */

/* Bouton primaire dans le hero — fond clair au repos */
.hero .btn--primary {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn--primary:hover {
  background-color: var(--couleur-secondaire);
  border-color: var(--couleur-secondaire);
  color: var(--couleur-primaire);
}

/* Bouton secondaire dans le hero — contour clair au repos */
.hero .btn--secondary {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero .btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Variante petite taille */
.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: var(--taille-sm);
}


/* ============================================================
   5. EN-TÊTE (HEADER)
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--couleur-primaire);
  box-shadow: var(--ombre-moyenne);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: var(--espace-lg);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.logo__cdr {
  font-family: var(--police-titre);
  font-size: var(--taille-lg);
  font-weight: 700;
  color: var(--couleur-secondaire);
  letter-spacing: 2px;
}

.logo__jobmarket {
  font-family: var(--police-titre);
  font-size: var(--taille-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

/* Navigation */
.header__nav .nav__list {
  display: flex;
  align-items: center;
  gap: var(--espace-md);
}

.nav__link {
  font-size: var(--taille-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-rapide),
              border-color var(--transition-rapide);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav__link:hover,
.nav__link--active {
  color: var(--couleur-secondaire);
  border-bottom-color: var(--couleur-secondaire);
}

/* Bouton hamburger — visible uniquement sur mobile */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--espace-sm);
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: transform var(--transition-normale),
              opacity var(--transition-normale);
}


/* ============================================================
   6. SECTION HERO
============================================================ */
.hero {
  background-color: var(--couleur-primaire);
  /* Légère texture géométrique en arrière-plan via CSS */
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 169, 110, 0.05) 0%, transparent 40%);
  color: #fff;
  padding: var(--espace-xxl) 0;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--espace-xl);
}

/* Étiquette au-dessus du titre */
.hero__label {
  font-size: var(--taille-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--couleur-secondaire);
  margin-bottom: var(--espace-md);
}

/* Titre principal */
.hero__title {
  font-family: var(--police-titre);
  font-size: var(--taille-hero);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--espace-lg);
}

/* Partie accentuée du titre en or */
.hero__title--accent {
  color: var(--couleur-secondaire);
}

.hero__subtitle {
  font-size: var(--taille-md);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: var(--espace-lg);
}

/* Boutons d'action du hero */
.hero__actions {
  display: flex;
  gap: var(--espace-md);
  flex-wrap: wrap;
}




/* ============================================================
   7. SECTIONS GÉNÉRIQUES
============================================================ */
.section {
  padding: var(--espace-xxl) 0;
}

/* En-tête de section avec titre à gauche et lien à droite */
.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--espace-xl);
  flex-wrap: wrap;
  gap: var(--espace-md);
}

.section__title {
  font-family: var(--police-titre);
  font-size: var(--taille-xl);
  color: var(--couleur-primaire);
}

/* Titre centré (utilisé dans la section "Comment ça marche") */
.section__title--centre {
  text-align: center;
  margin-bottom: var(--espace-xl);
}

.section__lien {
  font-size: var(--taille-sm);
  font-weight: 700;
  color: var(--couleur-secondaire);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ============================================================
   8. GRILLE D'OFFRES EN VEDETTE
============================================================ */
.offres__grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--espace-lg);
}

/* Carte d'offre d'emploi */
.offre__carte {
  background-color: #fff;
  border: 1px solid var(--couleur-bordure);
  border-radius: var(--arrondi-lg);
  padding: var(--espace-lg);
  box-shadow: var(--ombre-legere);
  transition: transform var(--transition-normale),
              box-shadow var(--transition-normale);
  display: flex;
  flex-direction: column;
  gap: var(--espace-md);
}

.offre__carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-moyenne);
}

.offre__secteur {
  font-size: var(--taille-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--couleur-secondaire);
  background-color: var(--couleur-accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--arrondi-xl);
  display: inline-block;
}

.offre__titre {
  font-family: var(--police-titre);
  font-size: var(--taille-md);
  color: var(--couleur-primaire);
}

.offre__entreprise {
  font-size: var(--taille-sm);
  color: var(--couleur-texte-doux);
}

.offre__meta {
  display: flex;
  gap: var(--espace-md);
  font-size: var(--taille-sm);
  color: var(--couleur-texte-doux);
  flex-wrap: wrap;
}

.offre__carte .btn {
  margin-top: auto;
  align-self: flex-start;
}


/* ============================================================
   9. SECTION ÉTAPES (COMMENT ÇA MARCHE)
============================================================ */
.etapes {
  background-color: var(--couleur-fond-sombre);
}

.etapes__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--espace-xl);
}

.etape__item {
  text-align: center;
  padding: var(--espace-lg);
}

/* Numéro de l'étape en grand, stylisé */
.etape__numero {
  font-family: var(--police-titre);
  font-size: 4rem;
  font-weight: 700;
  color: var(--couleur-accent);
  line-height: 1;
  margin-bottom: var(--espace-md);
}

.etape__titre {
  font-family: var(--police-titre);
  font-size: var(--taille-md);
  color: var(--couleur-primaire);
  margin-bottom: var(--espace-sm);
}

.etape__texte {
  font-size: var(--taille-base);
  color: var(--couleur-texte-doux);
}


/* ============================================================
   10. PIED DE PAGE (FOOTER)
============================================================ */
.footer {
  background-color: var(--couleur-primaire);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--espace-xl) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espace-lg);
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__slogan {
  width: 100%;
  font-size: var(--taille-xs);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: var(--espace-xs);
}

.footer__nav {
  display: flex;
  gap: var(--espace-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__lien {
  font-size: var(--taille-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-rapide);
}

.footer__lien:hover {
  color: var(--couleur-secondaire);
}

.footer__copyright {
  font-size: var(--taille-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* Mention de l'outil de développement */
.footer__credit {
  font-size: var(--taille-xs);
  color: rgba(255, 255, 255, 0.35);
}


/* ============================================================
   11. BANDEAU RGPD / COOKIES
   Affiché en bas de page si le consentement n'est pas encore donné
============================================================ */
.cookies__bandeau {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--couleur-primaire);
  border-top: 3px solid var(--couleur-secondaire);
  padding: var(--espace-lg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

/* Cache le bandeau par défaut (géré via JS) */
.cookies__bandeau[hidden] {
  display: none;
}

.cookies__contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-lg);
  flex-wrap: wrap;
}

.cookies__texte {
  font-size: var(--taille-sm);
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}

.cookies__lien {
  color: var(--couleur-secondaire);
  text-decoration: underline;
}

.cookies__actions {
  display: flex;
  gap: var(--espace-md);
  flex-shrink: 0;
}


/* ============================================================
   12. ANIMATIONS
============================================================ */

/* Animation d'apparition progressive (fade-in vers le haut) */
@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classe utilitaire pour déclencher l'animation */
.anime {
  animation: apparition 0.6s ease forwards;
}

/* Délais d'animation échelonnés pour les grilles */
.anime--delai-1 { animation-delay: 0.1s; }
.anime--delai-2 { animation-delay: 0.2s; }
.anime--delai-3 { animation-delay: 0.3s; }


/* ============================================================
   13. RESPONSIVE — TABLETTE (≤ 900px)
============================================================ */
@media (max-width: 900px) {

  /* Réduction de la taille du titre hero */
  .hero__title {
    font-size: var(--taille-xxl);
  }

  /* Navigation cachée sur tablette/mobile */
  .header__nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--couleur-primaire);
    padding: var(--espace-lg);
    box-shadow: var(--ombre-forte);
  }

  /* Navigation visible quand le menu est ouvert */
  .header__nav.nav--ouverte {
    display: block;
  }

  .header__nav .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--espace-md);
  }

  /* Affichage du bouton hamburger */
  .header__menu-btn {
    display: flex;
  }

  /* Animation du hamburger en croix quand ouvert */
  .header__menu-btn.ouvert span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header__menu-btn.ouvert span:nth-child(2) {
    opacity: 0;
  }
  .header__menu-btn.ouvert span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}




/* ============================================================
   LIEN DE RETOUR VERS LA PAGE DE SÉLECTION
   Affiché dans le header de toutes les pages prod et test
============================================================ */
.header__retour {
  font-size: var(--taille-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--arrondi-md);
  transition: color var(--transition-rapide),
              border-color var(--transition-rapide);
  white-space: nowrap;
  flex-shrink: 0;
}

.header__retour:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Variante test — bordure orange pour cohérence avec l'environnement */
.header__retour--test {
  color: rgba(224, 124, 36, 0.8);
  border-color: rgba(224, 124, 36, 0.4);
}

.header__retour--test:hover {
  color: #e07c24;
  border-color: #e07c24;
}

/* ============================================================
   14. RESPONSIVE — MOBILE (≤ 600px)
============================================================ */
@media (max-width: 600px) {

  /* Réduction des espacements globaux */
  .container {
    padding: 0 var(--espace-md);
  }

  .hero {
    padding: var(--espace-xl) 0;
  }

  .hero__title {
    font-size: var(--taille-xl);
  }

  /* Boutons du hero en colonne sur petit écran */
  .hero__actions {
    flex-direction: column;
  }

  /* Statistiques en colonne */
  .hero__stats {
    flex-direction: column;
    gap: var(--espace-lg);
  }

  /* Bandeau cookies en colonne */
  .cookies__contenu {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookies__actions {
    width: 100%;
    justify-content: flex-end;
  }
}


/* ============================================================
   MODE SOMBRE
   Activé par la classe .mode-sombre sur le <body>.
   Toutes les couleurs sont redéfinies pour un rendu
   confortable en environnement sombre.
   Sauvegardé en localStorage (cdrjm_theme).
============================================================ */
body.mode-sombre {
  --couleur-primaire       : #c0392b;   /* Rouge plus lumineux sur fond sombre */
  --couleur-secondaire     : #d4a956;   /* Or légèrement plus chaud */
  --couleur-accent         : #3a2a1a;   /* Fond accent sombre */
  --couleur-fond           : #121212;   /* Fond principal très sombre */
  --couleur-fond-sombre    : #1e1e1e;   /* Fond légèrement plus clair */
  --couleur-texte          : #e8e4df;   /* Texte principal clair */
  --couleur-texte-doux     : #9a9590;   /* Texte secondaire gris clair */
  --couleur-bordure        : #2e2e2e;   /* Bordure subtile sombre */
  --couleur-succes         : #4caf82;   /* Vert clair pour le mode sombre */
  --couleur-erreur         : #e57373;   /* Rouge clair pour les erreurs */
  --couleur-avertissement  : #ffb74d;   /* Orange clair */
  --ombre-legere  : 0 2px 8px rgba(0, 0, 0, 0.4);
  --ombre-moyenne : 0 4px 20px rgba(0, 0, 0, 0.5);
  --ombre-forte   : 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* Adaptation du header en mode sombre */
body.mode-sombre .header {
  background-color: #1a0a0a;
  border-bottom: 1px solid var(--couleur-bordure);
}

/* Adaptation du footer en mode sombre */
body.mode-sombre .footer {
  background-color: #0e0505;
}

/* Cartes et blocs blancs */
body.mode-sombre .candidature__carte,
body.mode-sombre .journal__bloc,
body.mode-sombre .profil__section,
body.mode-sombre .rapport__groupe,
body.mode-sombre .org-cand__carte,
body.mode-sombre .org-offres__carte,
body.mode-sombre .parametres__bloc,
body.mode-sombre .comparateur__budget-saisie,
body.mode-sombre .comparateur__offre-carte,
body.mode-sombre .offre__actions-carte,
body.mode-sombre .offre__bloc,
body.mode-sombre .retenu__carte,
body.mode-sombre .rapport-candidat__carte,
body.mode-sombre .modale-retrait__contenu,
body.mode-sombre .modale-refus__contenu,
body.mode-sombre .admin-bloc,
body.mode-sombre .admin-table,
body.mode-sombre .rapport__form--experience {
  background-color: #1e1e1e;
  border-color: var(--couleur-bordure);
}

/* Inputs et selects */
body.mode-sombre input,
body.mode-sombre select,
body.mode-sombre textarea {
  background-color: #2a2a2a;
  color: var(--couleur-texte);
  border-color: var(--couleur-bordure);
}

body.mode-sombre input::placeholder,
body.mode-sombre textarea::placeholder {
  color: var(--couleur-texte-doux);
}

/* Page de sélection environnement */
body.mode-sombre .selection__carte--prod {
  background-color: #1e1e1e;
  border-color: #2e2e2e;
}

body.mode-sombre .selection__carte--prod .carte__titre,
body.mode-sombre .selection__carte--prod .carte__description {
  color: var(--couleur-texte);
}

/* Tableau admin */
body.mode-sombre .admin-table th {
  background-color: #2a2a2a;
  color: var(--couleur-texte);
}

body.mode-sombre .admin-table td {
  border-color: var(--couleur-bordure);
  color: var(--couleur-texte);
}

body.mode-sombre .admin-table tr:nth-child(even) {
  background-color: #1a1a1a;
}

/* Bouton toggle mode sombre */
.theme-toggle {
  position: fixed;
  bottom: var(--espace-lg);
  right: var(--espace-lg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--couleur-primaire);
  border: 2px solid var(--couleur-secondaire);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--ombre-moyenne);
  transition: all var(--transition-rapide);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--ombre-forte);
}

.theme-toggle__tooltip {
  position: absolute;
  right: 52px;
  bottom: 50%;
  transform: translateY(50%);
  background-color: var(--couleur-texte);
  color: var(--couleur-fond);
  font-size: var(--taille-xs);
  font-family: var(--police-corps);
  padding: 4px 10px;
  border-radius: var(--arrondi-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-rapide);
}

.theme-toggle:hover .theme-toggle__tooltip {
  opacity: 1;
}

/* Anti-flash : appliqué immédiatement via script inline dans <head> */
html.mode-sombre-pre body { background-color: #121212 !important; }


.nav__info { color: var(--couleur-texte-doux); font-size: var(--taille-xs); cursor: default; }
.nav__btn-deco { background: none; border: none; cursor: pointer; font-family: var(--police-corps); font-size: var(--taille-sm); color: var(--couleur-primaire); padding: 0; text-decoration: underline; }
