/* === Polices personnalisées de Key Muller === */

/* --- Titres (H1, H2) : Sunlight Italic --- */
@font-face {
  font-family: 'Sunlight';
  src: url('../fonts/sunlight-italic-webfont.woff2') format('woff2'),
       url('../fonts/sunlight-italic-webfont.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- Texte courant (Regular) : Athauss Retina --- */
@font-face {
  font-family: 'Athauss';
  src: url('../fonts/athauss-retina-webfont.woff2') format('woff2'),
       url('../fonts/athauss-retina-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Texte italique : Athauss Retina Italic --- */
@font-face {
  font-family: 'Athauss';
  src: url('../fonts/athauss-retinaitalic-webfont.woff2') format('woff2'),
       url('../fonts/athauss-retinaitalic-webfont.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- Texte gras : Athauss Semibold --- */
@font-face {
  font-family: 'Athauss';
  src: url('../fonts/athauss-semibold-webfont.woff2') format('woff2'),
       url('../fonts/athauss-semibold-webfont.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Texte gras italique : Athauss Semibold Italic --- */
@font-face {
  font-family: 'Athauss';
  src: url('../fonts/athauss-semibolditalic-webfont.woff2') format('woff2'),
       url('../fonts/athauss-semibolditalic-webfont.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}


/* === Application des polices === */
/* Corps de texte */
body, p, li, a, span {
  font-family: 'Athauss', sans-serif;
  font-weight: 400;
}

/* Texte en gras */
strong, b {
  font-weight: 600;
}

/* Titres */
h1, h2 {
  font-family: 'Sunlight', serif;
  font-style: italic;
  letter-spacing: -0.5px;
}

/* Optionnel : h3, h4 avec Athauss gras */
h3, h4 {
  font-family: 'Athauss', sans-serif;
  font-weight: 600;
}

/* Masque le curseur système UNIQUEMENT quand on est sur un projet */
/* On garde le curseur normal, juste un petit style si tu veux */
.cursor-cta-on .project {
  cursor: pointer;
}

/* Pour éviter un petit flou si tu veux un rendu net en mouvement */
#cursor-cta { will-change: transform, opacity; }



/* BOUTON DE INDICATUR DE NAV, le truc qui ressemblais a un bug */
.nav-link::after {
  display: none !important; /* desagtiver actuellement */
  height: 1px;
  width: 14px;
  background-color: rgba(0,0,0,0.2);
  bottom: 0;
}

/* SECTION PROJET */
/* image priview */
#workPreview {
  transition: opacity .2s ease, transform .25s ease;
}

#workPreviewImg {
  transition: opacity .2s ease;
}


/* BOUTON DARK MODE */
/* BOUTON DARK MODE — VERSION PETITE */
.theme-toggle {
  width: 55px;
  height: 28px;
  background-color: #ffffff;      /* 🎨 NOUVEAU FOND LIGHT */
  border-radius: 9999px;
  padding: 3px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* BOUTON DARK MODE MAIS LA VERSION VIOLETTE DES PAGE DE BASE */
.darklightmodeviolet .theme-toggle {
  background-color: #c0a9ff;
}


/* Pastille LIGHT → noire
   Pastille DARK → blanche */
.toggle-thumb {
  width: 20px;
  height: 20px;
  background-color: #000000;      /* ⚫️ NOIR EN MODE LIGHT */
  border-radius: 50%;
  position: relative;
  z-index: 3;
  transition: 
    transform 0.3s ease,
    background-color 0.3s ease;
}

/* Icônes */
.theme-toggle img {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

/* Étoile à gauche */
.icon-stars {
  left: 7px;
  filter: brightness(0) invert(1);
  opacity: 0;
}

/* Soleil à droite */
.icon-sun {
  right: 7px;
  opacity: 1;
}

/* ===== DARK MODE ===== */
.theme-toggle.active {
  background-color: #2c2b2d;
}

/* Pastille devient blanche en mode dark */
.theme-toggle.active .toggle-thumb {
  transform: translateX(27px);
  background-color: #ffffff;     /* ⚪️ BLANC EN MODE DARK */
}

/* Icônes en dark mode */
.theme-toggle.active .icon-sun {
  opacity: 0;
}

.theme-toggle.active .icon-stars {
  opacity: 1;
}

/* BOUTON fonctionnalité */
/* BOUTON fonctionnalité */

body.dark-mode *:not(#site-nav *){
  color: white !important;
}

body.dark-mode:not(nav) {
  background-color: #2c2b2d;
}

/* --- changement de couleur violet pale a violet foncé --- */
/* --- HERO BG (light mode) --- */
.hero-bg {
  background-color: #c0a9ff; /* violet clair */
}

/* --- HERO BG (dark mode) --- */
body.dark-mode .hero-bg {
  background-color: rgba(69, 55, 118, 0.85); /* violet foncé avec opacité */
}

/* FOOTER — gradient LIGHT mode (déjà bon) */
body:not(.dark-mode) footer {
  background-image: linear-gradient(
    to bottom,
    transparent 0%,
    #c0a9ff 100%
  );
}

/* FOOTER — gradient DARK mode (violet deep + opacité) */
body.dark-mode footer {
  background-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(69, 55, 118, 0.85) 100%
  ) !important;
}

/* Light mode → la croix reste blanche comme actuellement */
body:not(.dark-mode) footer img[src*="small_cross.svg"] {
  filter: invert(1); /* BLANC */
}

/* Dark mode → noir #2c2b2d */
body.dark-mode footer img[src*="small_cross.svg"] {
  filter: none;                /* enlève invert */
  opacity: 0.35;               /* même niveau que la version light */
}

/*/PAGE PROJET/*/
/* ——— FOOTER DES PAGES PROJET ——— */

#project-footer .proj-footer-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  transition: transform 0.15s ease;
  color: #2c2b2d; /* noir */
}

/* Zoom léger */
#project-footer .proj-footer-icon:hover {
  transform: scale(1.15);
}

/* Pastille verte au hover */
#project-footer .proj-footer-icon::after {
  content: attr(data-social);
  position: absolute;
  bottom: -38px;  /* sous l'icône */
  left: 50%;
  transform: translateX(-50%);
  background: #cfff73;
  color: #2c2b2d;
  font-family: 'Athauss';
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#project-footer .proj-footer-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* Mode sombre : pastille reste VERTE (pas violette) */
body.dark-mode #project-footer .proj-footer-icon::after {
  background: #cfff73;
  color: #2c2b2d;
}

/* Icônes en blanc en mode dark */
body.dark-mode #project-footer .proj-footer-icon i {
  color: white;
}



/* --- Boutons projet — mode sombre --- */
/* === DARK MODE pour les boutons projet précédent / suivant === */

/* Fond noir + texte blanc */
body.dark-mode #project-nav a {
  background-color: #2c2b2d !important;
  color: white !important;
}

/* Icônes en blanc */
body.dark-mode #project-nav a img {
  filter: invert(1);
}

/* Hover en mode DARK → violet (#c0a9ff) */
body.dark-mode #project-nav a:hover {
  background-color: #c0a9ff !important;
}

/* Hover en mode LIGHT → vert (#cfff73) — déjà dans ton HTML mais on sécurise */
body:not(.dark-mode) #project-nav a:hover {
  background-color: #cfff73 !important;
}

/* ===========================
   Dégradés VIOLET (LIGHT/DARK)
   =========================== */

/* --- Dégradés "classiques" (du violet vers le transparent, pour tes sections) --- */

/* Light mode */
body:not(.dark-mode) [class*="from-[#c0a9ff]"]:not(footer) {
  background-image: linear-gradient(to bottom, #c0a9ff 0%, transparent 100%);
}

/* Dark mode : violet plus profond #453776 avec opacité */
body.dark-mode [class*="from-[#c0a9ff]"]:not(footer) {
  background-image: linear-gradient(
    to bottom,
    rgba(69, 55, 118, 0.85) 0%,
    transparent 100%
  );
}

/* --- FOOTER : dégradé inversé (du transparent vers le violet) --- */

/* Light mode */
body:not(.dark-mode) footer[class*="from-[#c0a9ff]"] {
  background-image: linear-gradient(
    to top,
    transparent 0%,
    #c0a9ff 100%
  );
}

/* Dark mode : même violet #453776 mais plus doux */
body.dark-mode footer[class*="from-[#c0a9ff]"] {
  background-image: linear-gradient(
    to top,
    transparent 0%,
    rgba(69, 55, 118, 0.6) 100%
  );
}


/* ===========================
   page work with me
   =========================== */
/* Boutons de service */
.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: #2c2b2d;
  color: white;
  font-family: 'Athauss';
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.service-btn:hover {
  background-color: #3b3a3c;
  transform: translateY(-2px);
}

/* Inputs */
.contact-input {
  width: 100%;
  padding: 14px 18px;
  background-color: #1f1e21;
  border-radius: 14px;
  outline: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  font-family: 'Athauss';
  transition: border-color 0.2s ease;
}

.contact-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-input:focus {
  border-color: #cfff73;
}

/* Boutons "type de projet" */
.project-type-btn {
  cursor: pointer;
}

/* État sélectionné */
.project-type-btn.active {
  background-color: #cfff73 !important;
  border-color: #2c2b2d !important;
}
/* --- PROJECT TYPE BUTTONS --- */
.project-type-btn {
  font-size: 0.9rem;
  padding: 6px 14px;
}

/* Active state → green */
.project-type-btn.active {
  background-color: #cfff73 !important;
}
