:root{
  --bg: #0a1520;        /* fond bleu nuit plus foncé */
  --bg-light: #0f1e2d;  /* entêtes / footer plus foncé */
  --card: #132231;      /* cartes plus contrastées */
  --text: #f0f8ff;      /* texte principal plus blanc */
  --muted: #8fa8c2;     /* textes secondaires plus contrastés */
  --accent: #00e5ff;    /* bleu ciel plus vif */
  --accent-hover: #00b8d4; /* bleu pour hover */
  --glass: rgba(255,255,255,0.05);
}

/* Mode clair avec plus de contraste */
:root.light-mode {
  --bg: #f8f4e5;        /* fond crème plus chaud */
  --bg-light: #ffffff;  /* entêtes / footer */
  --card: #fffdf0;      /* cartes très légèrement jaunes */
  --text: #1a1a1a;      /* texte presque noir */
  --muted: #444444;     /* textes secondaires plus foncés */
  --accent: #ff9900;    /* orange vif pour accents */
  --accent2: #ff3333;   /* rouge vif */
  --accent3: #0066cc;   /* bleu foncé */
  --accent-hover: #e68a00; /* orange plus foncé pour hover */
  --glass: rgba(0,0,0,0.08);
}

/* ================= RESET & BASE ================= */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
}

.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* ================= HEADER ================= */
.header{
  background: linear-gradient(180deg, var(--bg-light), var(--bg));
  padding:18px 0;
  position:sticky;
  top:0;
  z-index:1200;
  transition: all 220ms ease;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,229,255,0.1);
}
.header.scrolled{
  padding:12px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  background: rgba(10,21,32,0.98);
}

.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;gap:14px;align-items:center}
.avatar{
  width:56px;height:56px;
  border-radius:10px;
  object-fit:cover;
  border:2px solid var(--accent);
  box-shadow: 0 4px 15px rgba(0,229,255,0.3);
}
.brand h1{font-size:18px;margin:0;color:var(--text); font-weight:700}
.role{margin:2px 0 0;color:var(--muted);font-size:13px; font-weight:600}

/* Navigation Desktop */
.nav{display:flex;align-items:center;gap:6px}
.nav a{
  margin-left:18px;
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  position:relative;
  padding:8px 12px;
  border-radius:8px;
  transition: all 220ms ease;
  background: rgba(0,229,255,0.05);
}
.nav a:hover{
  color:var(--accent);
  background: rgba(0,229,255,0.1);
  transform: translateY(-2px);
}
.nav a::after{
  content:"";
  position:absolute;
  left:12px;
  bottom:-8px;
  width:calc(100% - 24px);
  height:2px;
  background:var(--accent);
  transition:width 260ms ease;
  transform: scaleX(0);
}
.nav a:hover::after{
  transform: scaleX(1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-theme {
  padding: 8px 12px;
  font-size: 14px;
  background: var(--card);
  color: var(--accent);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-theme:hover {
  background: var(--accent);
  color: #001a33;
  transform: translateY(-2px);
}

/* Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu Mobile */
.nav-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(10, 21, 32, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  padding: 80px 20px 40px;
}

.nav-mobile.active {
  left: 0;
}

.nav-mobile-link {
  color: var(--text);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 16px 24px;
  margin: 8px 0;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  max-width: 280px;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.1);
}

.nav-mobile-link:hover {
  background: var(--accent);
  color: #001a33;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,229,255,0.3);
}

/* Empêcher le scroll quand le menu est ouvert */
body.nav-open {
  overflow: hidden;
}

/* ================= HERO SECTION ================= */
.hero{
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
  padding:80px 0;
  position:relative;
  overflow:hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,229,255,0.1) 0%, transparent 50%);
}

.hero-inner{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:50px;
  align-items:center;
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
  position:relative;
  z-index:2;
}

/* Hero Text */
.hero-text{
  opacity:0; transform: translateY(18px);
  transition: all 700ms cubic-bezier(.2,.9,.2,1);
}
.hero-text.in-view{ opacity:1; transform:none }

.hero-text h2{
  font-size:2.4rem;
  margin:0 0 16px;
  color:var(--text);
  line-height:1.1;
  font-weight:800;
}
.hero-text h2 span {
  display: inline-block;
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--accent), #33eeff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight:800;
}

.hero-text p{
  margin:16px 0 24px;
  color:var(--text);
  max-width:680px;
  font-size:17px;
  line-height:1.7;
  font-weight:500;
  opacity:0.9;
}

/* Buttons */
.hero-buttons{ display:flex; gap:16px; flex-wrap:wrap; margin-top:12px }
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 24px;
  border-radius:12px;
  background:var(--accent);
  color:#001a33;
  text-decoration:none;
  font-weight:700;
  font-size:15px;
  box-shadow: 0 8px 25px rgba(0,229,255,0.3);
  transition: all 320ms ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover{ 
  transform: translateY(-4px); 
  box-shadow: 0 16px 40px rgba(0,229,255,0.4);
  background: var(--accent-hover);
}

.btn.btn-cv{
  background: transparent;
  color:var(--accent);
  border:2px solid var(--accent);
  box-shadow: 0 8px 25px rgba(0,229,255,0.2);
}
.btn.btn-cv:hover{
  background: var(--accent);
  color:#001a33;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,229,255,0.4);
}

/* Social Icons */
.hero-socials{ margin-top:24px; display:flex; gap:14px; align-items:center; }
.hero-socials a{
  width:48px;height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--card); 
  color:var(--accent); 
  border-radius:12px; 
  text-decoration:none;
  transition: all 220ms ease;
  font-size:20px;
  border: 1px solid rgba(0,229,255,0.2);
}
.hero-socials a:hover{ 
  transform: translateY(-4px) scale(1.08); 
  background:var(--accent); 
  color:#001a33; 
  box-shadow: 0 12px 35px rgba(0,229,255,0.3); 
}

/* Hero Photo */
.hero-photo{
  width:340px;height:340px;
  border-radius:20px;
  overflow:hidden;
  border:4px solid rgba(0,229,255,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0; 
  transform: translateX(30px);
  transition: all 800ms cubic-bezier(.2,.9,.2,1);
  background: var(--card);
}
.hero-photo.in-view{ opacity:1; transform:none }
.hero-photo img{ width:100%; height:100%; object-fit:cover; display:block }

/* ================= SECTIONS GLOBALES ================= */
.section{ 
  padding:80px 0; 
  opacity:0; 
  transform: translateY(18px); 
  transition: all 700ms cubic-bezier(.2,.9,.2,1); 
}
.section.in-view{ opacity:1; transform:none; }
.section .container{ display:block; }

.section-light{ 
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
  border-top:1px solid rgba(0,229,255,0.1); 
  border-bottom:1px solid rgba(0,229,255,0.1);
}

.section h3{
  color:var(--accent);
  font-size:1.8rem;
  margin-bottom:16px;
  font-weight:700;
}

/* Two-column Layout */
.two-col{ display:grid; grid-template-columns: 1fr 340px; gap:32px; align-items:start; }

/* Cards */
.card{
  background: var(--card);
  padding:24px; 
  border-radius:16px; 
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  transition: all 320ms ease;
  border: 1px solid rgba(0,229,255,0.1);
}
.card:hover{ 
  transform: translateY(-8px); 
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  border-color: rgba(0,229,255,0.2);
}

.info-list, .contact-list{ list-style:none; padding:0; margin:0; color:var(--text); }
.info-list li{ margin:10px 0; font-size:15px; opacity:0.9; }
.info-list strong{ color:var(--accent); }

/* Card with Background - AMÉLIORÉ POUR VISIBILITÉ */
.card-bg {
  background: url("img/Jenovic.jpeg") no-repeat center center/cover;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 21, 32, 0) 0%,
    rgba(10, 21, 32, 0.1) 30%,
    rgba(10, 21, 32, 0.7) 70%,
    rgba(10, 21, 32, 0.95) 100%
  );
  border-radius: 16px;
}

.card-bg * {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-bg h4 {
  color: #ffffff !important;
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.card-bg .info-list li {
  color: #ffffff !important;
  margin: 12px 0;
  font-size: 15px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.card-bg .info-list strong {
  color: #00e5ff !important;
  font-weight: 700;
}

.card-bg .tech-tools-compact {
  margin-top: 15px;
}

.card-bg .tech-tool {
  background: rgba(0, 229, 255, 0.25);
  color: #ffffff !important;
  border: 1px solid rgba(0, 229, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.card-bg .tech-tool:hover {
  background: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

/* Adaptation pour le mode clair */
:root.light-mode .card-bg::before {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.7) 70%,
    rgba(255, 255, 255, 0.95) 100%
  );
}

:root.light-mode .card-bg * {
  color: #1a1a1a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

:root.light-mode .card-bg h4 {
  color: #1a1a1a !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

:root.light-mode .card-bg .info-list li {
  color: #1a1a1a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

:root.light-mode .card-bg .info-list strong {
  color: #ff9900 !important;
}

:root.light-mode .card-bg .tech-tool {
  background: rgba(255, 153, 0, 0.25);
  color: #1a1a1a !important;
  border: 1px solid rgba(255, 153, 0, 0.4);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* ================= COMPÉTENCES ================= */
.services {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg);
  color: var(--text);
}
.services .subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.services .title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text);
}
.services .title span {
  color: var(--accent);
}
.services .section-desc {
  max-width: 650px;
  margin: 0 auto 50px;
  font-size: 1rem;
  color: var(--muted);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 12px;
}
.skill-card {
  background: var(--card);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  transition: 0.4s;
  border: 1px solid transparent;
}
.skill-card i {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 15px;
}
.skill-card h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
}
.skill-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ================= TECHNOLOGIES & OUTILS ================= */
.tech-tools-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tech-tool {
  background: linear-gradient(145deg, rgba(0,229,255,0.1), rgba(0,229,255,0.05));
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0,229,255,0.1);
  transition: all 0.3s ease;
}
.tech-tool:hover {
  background: linear-gradient(145deg, rgba(0,229,255,0.2), rgba(0,229,255,0.1));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,229,255,0.1);
}

/* ================= EXPÉRIENCE TECHNIQUE ================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.tech-category {
  background: var(--card);
  padding: 25px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
}
.tech-category.in-view {
  opacity: 1;
  transform: translateY(0);
}
.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-color: rgba(0,229,255,0.1);
}
.tech-category h4 {
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-item {
  background: linear-gradient(145deg, rgba(0,229,255,0.1), rgba(0,229,255,0.05));
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0,229,255,0.15);
  transition: all 0.3s ease;
}
.tech-item:hover {
  background: linear-gradient(145deg, rgba(0,229,255,0.2), rgba(0,229,255,0.1));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,229,255,0.15);
}

/* ================= CONTACT SECTION - MODIFIÉ ================= */
#contact .two-col {
  gap: 60px; /* Plus d'espace entre le texte et le formulaire */
  align-items: center;
}

#contact .contact-text {
  max-width: 500px;
}

#contact .contact-text h3 {
  margin-bottom: 24px;
  font-size: 2rem;
  color: var(--accent);
}

#contact .contact-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text);
  opacity: 0.9;
}

.contact-list {
  margin-top: 20px;
}

.contact-list li {
  margin: 12px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list strong {
  color: var(--accent);
  font-weight: 700;
  min-width: 70px;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ================= CONTACT FORM - MODIFIÉ ================= */
.contact-form.floating-labels {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px; /* Plus d'espace entre les champs */
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form.floating-labels .form-group {
  position: relative;
  width: 100%;
}

.contact-form.floating-labels input,
.contact-form.floating-labels textarea {
  width: 100%;
  padding: 18px 15px 10px; /* Plus de padding */
  border-radius: 10px;
  border: 2px solid rgba(0,229,255,0.2);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  font-weight: 600; /* Texte en gras */
  transition: all 0.3s ease;
}

.contact-form.floating-labels input:focus,
.contact-form.floating-labels textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}

.contact-form.floating-labels label {
  position: absolute;
  top: 18px;
  left: 15px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 15px;
  background-color: transparent;
  font-weight: 600; /* Labels en gras */
}

.contact-form.floating-labels input:focus + label,
.contact-form.floating-labels input:not(:placeholder-shown) + label,
.contact-form.floating-labels textarea:focus + label,
.contact-form.floating-labels textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 12px;
  font-size: 13px;
  color: var(--accent);
  background: var(--card);
  padding: 0 8px;
  font-weight: 700;
}

.contact-form.floating-labels button[type="submit"] {
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  width: 100%;
}

/* Améliorations pour le mode clair */
:root.light-mode .contact-form.floating-labels input,
:root.light-mode .contact-form.floating-labels textarea {
  border: 2px solid rgba(255,153,0,0.3);
}

:root.light-mode .contact-form.floating-labels input:focus,
:root.light-mode .contact-form.floating-labels textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,153,0,0.1);
}

/* ================= FOOTER ================= */
.footer{ 
  padding:20px 0; 
  text-align:center; 
  color:var(--muted); 
  background:var(--bg-light); 
  margin-top:40px;
  border-top: 1px solid rgba(0,229,255,0.1);
}
.footer-socials {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--accent);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  font-size: 16px;
}
.footer-socials a:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--accent);
  color: #001820;
  box-shadow: 0 8px 20px rgba(0,229,255,0.12);
}

/* ================= ANIMATIONS ================= */
.animated-title span,
.animated-paragraph {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.in-view .animated-title span {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.in-view .animated-paragraph {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* Hover Effects */
.skill-card:hover {
  background: linear-gradient(145deg, var(--card), var(--bg-light));
  border: 1px solid var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 229, 255, 0.15);
}

/* Animation Delays */
.tech-category:nth-child(1) { transition-delay: 0.1s; }
.tech-category:nth-child(2) { transition-delay: 0.2s; }
.tech-category:nth-child(3) { transition-delay: 0.3s; }
.tech-category:nth-child(4) { transition-delay: 0.4s; }

/* Animation pour les liens mobiles */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-mobile.active .nav-mobile-link {
  animation: slideInFromLeft 0.5s ease forwards;
}

.nav-mobile.active .nav-mobile-link:nth-child(1) { animation-delay: 0.1s; }
.nav-mobile.active .nav-mobile-link:nth-child(2) { animation-delay: 0.15s; }
.nav-mobile.active .nav-mobile-link:nth-child(3) { animation-delay: 0.2s; }
.nav-mobile.active .nav-mobile-link:nth-child(4) { animation-delay: 0.25s; }
.nav-mobile.active .nav-mobile-link:nth-child(5) { animation-delay: 0.3s; }
.nav-mobile.active .nav-mobile-link:nth-child(6) { animation-delay: 0.35s; }

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
  .nav {
    gap: 4px;
  }
  
  .nav a {
    margin-left: 12px;
    font-size: 13px;
    padding: 6px 10px;
  }
  
  /* Contact responsive */
  #contact .two-col {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .header-inner {
    position: relative;
  }
  
  .nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .brand h1 {
    font-size: 16px;
  }
  
  .role {
    font-size: 12px;
  }
  
  .avatar {
    width: 44px;
    height: 44px;
  }
  
  .btn-theme {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  /* Hero Mobile */
  .hero {
    padding: 60px 0;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-photo {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    order: -1;
  }
  
  .hero-text h2 {
    font-size: 1.8rem;
  }
  
  .hero-text h2 span {
    font-size: 2.1rem;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .hero-buttons {
    justify-content: center;
    gap: 12px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  /* Sections Mobile */
  .section {
    padding: 60px 0;
  }
  
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px; /* Plus d'espace sur mobile */
  }
  
  .card {
    padding: 20px;
  }
  
  /* Contact Mobile */
  #contact .two-col {
    gap: 30px;
  }
  
  #contact .contact-text {
    text-align: center;
  }
  
  #contact .contact-text h3 {
    font-size: 1.8rem;
  }
  
  #contact .contact-text p {
    font-size: 1rem;
  }
  
  .contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .contact-list li {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  
  .contact-list strong {
    min-width: auto;
  }
  
  .contact-form.floating-labels {
    max-width: 100%;
  }
  
  .contact-form.floating-labels input,
  .contact-form.floating-labels textarea {
    font-size: 15px;
    padding: 16px 12px 8px;
  }
  
  /* Skills Grid Mobile */
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skill-card {
    padding: 24px 16px;
  }
  
  /* Tech Grid Mobile */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tech-category {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .brand h1 {
    font-size: 14px;
  }
  
  .hero-text h2 {
    font-size: 1.6rem;
  }
  
  .hero-text h2 span {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-socials {
    justify-content: center;
  }
  
  .hero-socials a {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .nav-mobile-link {
    font-size: 1.2rem;
    padding: 14px 20px;
  }
  
  .footer-socials {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  /* Contact extra small */
  #contact .contact-text h3 {
    font-size: 1.6rem;
  }
  
  .contact-form.floating-labels {
    gap: 20px;
  }
  
  .contact-form.floating-labels button[type="submit"] {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ================= UTILITY CLASSES ================= */
.invisible{opacity:0 !important; transform:translateY(12px) !important}
.show{opacity:1 !important; transform:none !important}

/* Light Mode Specific Styles */
.header.light-mode {
  background: linear-gradient(180deg, rgba(255,204,0,0.2), rgba(255,77,77,0.1));
  color: var(--text);
}

.nav a:hover {
  color: var(--accent3);
}

/* Améliorations pour le mode clair */
:root.light-mode .nav a {
  background: rgba(255,153,0,0.05);
}

:root.light-mode .nav a:hover {
  background: rgba(255,153,0,0.1);
}

:root.light-mode .contact-form.floating-labels input,
:root.light-mode .contact-form.floating-labels textarea {
  border: 2px solid rgba(255,153,0,0.3);
}

:root.light-mode .tech-item,
:root.light-mode .tech-tool {
  background: linear-gradient(145deg, rgba(255,153,0,0.1), rgba(255,153,0,0.05));
  border: 1px solid rgba(255,153,0,0.15);
}

:root.light-mode .tech-item:hover,
:root.light-mode .tech-tool:hover {
  background: linear-gradient(145deg, rgba(255,153,0,0.2), rgba(255,153,0,0.1));
}