/* ============================================================
   ABDERAHMANE CHAOUCHE — PORTFOLIO STYLES
   Dark premium theme — Inter — Mobile-first
   ============================================================ */

/* ---- 0. IMPORTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- 1. CSS VARIABLES ---- */
:root {
  --bg-primary:    #0d0f1a;
  --bg-secondary:  #111520;
  --bg-card:       #181b2a;
  --bg-card-hover: #1d2035;

  --border:        rgba(79, 142, 247, 0.12);
  --border-hover:  rgba(79, 142, 247, 0.38);

  --accent:        #4f8ef7;
  --accent-light:  #7ab3ff;
  --accent-violet: #8b5cf6;
  --accent-cyan:   #06d6e0;
  --accent-green:  #10d9a0;

  --text-primary:  #e8eaf6;
  --text-secondary:#9fa8b8;
  --text-muted:    #636b7a;

  --gradient-accent: linear-gradient(135deg, #4f8ef7 0%, #8b5cf6 100%);
  --gradient-hero:   linear-gradient(160deg, #0d0f1a 0%, #101628 60%, #0d1320 100%);

  --section-pad:   5rem 0;
  --container-max: 1100px;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;

  --shadow-card:   0 4px 28px rgba(0, 0, 0, 0.45);
  --shadow-hover:  0 8px 44px rgba(0, 0, 0, 0.65), 0 0 36px rgba(79, 142, 247, 0.09);

  --transition:    0.2s ease;
  --transition-med:0.32s ease;
  --nav-height:    64px;
}

/* ---- Light theme ---- */
[data-theme="light"] {
  --bg-primary:    #f5f6fa;
  --bg-secondary:  #ebedf5;
  --bg-card:       #ffffff;
  --bg-card-hover: #f0f1f7;

  --border:        #e2e5ec;
  --border-hover:  rgba(79, 142, 247, 0.45);

  --text-primary:  #1a1a2e;
  --text-secondary:#555555;
  --text-muted:    #888;

  --gradient-hero:   linear-gradient(160deg, #f5f6fa 0%, #ebedf5 60%, #f0f1f7 100%);

  --shadow-card:   0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover:  0 6px 28px rgba(0, 0, 0, 0.10), 0 0 24px rgba(79, 142, 247, 0.06);
}
[data-theme="light"] .navbar {
  background: rgba(245, 246, 250, 0.92);
}
[data-theme="light"] .nav-mobile {
  background: rgba(245, 246, 250, 0.97);
}

/* ---- 2. RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- 3. ACCESSIBILITY ---- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ---- 4. CONTAINER ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

/* ---- 5. TYPOGRAPHY ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.4rem); }
p { color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }
.accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* ---- 6. NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(13, 15, 26, 0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.nav-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-weight: 800; font-size: 1.15rem; color: var(--text-primary); letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0.2rem; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
  padding: 0.4rem 0.9rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent); background: rgba(79,142,247,0.1); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 0.4rem; border: none; background: none;
  border-radius: var(--radius-sm);
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: all var(--transition-med);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1.15rem; line-height: 1;
  padding: 0.35rem 0.5rem; margin-left: 0.5rem;
  color: var(--text-secondary); transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--text-primary); }

.lang-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.78rem; font-weight: 700; font-family: inherit;
  padding: 0.32rem 0.6rem; margin-left: 0.35rem; letter-spacing: 0.04em;
  color: var(--text-secondary); transition: all var(--transition);
}
.lang-toggle:hover { border-color: var(--border-hover); color: var(--text-primary); }

.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(13, 15, 26, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem 1.25rem;
  flex-direction: column; gap: 0.2rem; z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text-secondary); font-weight: 500;
  padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--accent); background: rgba(79,142,247,0.08);
}

/* ---- 7. PAGE OFFSET ---- */
.page-content { padding-top: var(--nav-height); }

/* ---- 8. SECTIONS ---- */
section { padding: var(--section-pad); }
.section-header { margin-bottom: 3rem; }
.section-label {
  display: inline-block; font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.8rem; padding: 0.28rem 0.85rem;
  background: rgba(79,142,247,0.08); border: 1px solid rgba(79,142,247,0.2);
  border-radius: 100px;
}
.section-title { margin-bottom: 0.6rem; color: var(--text-primary); }
.section-desc { color: var(--text-secondary); max-width: 560px; font-size: 1.02rem; }
.section-divider {
  width: 48px; height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px; margin-top: 1rem;
}

/* ---- 9. BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.68rem 1.4rem; font-size: 0.88rem; font-weight: 600;
  font-family: inherit; border-radius: var(--radius-sm);
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-accent); color: #fff;
  box-shadow: 0 2px 14px rgba(79,142,247,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 6px 26px rgba(79,142,247,0.48);
}
.btn-secondary {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
  background: rgba(79,142,247,0.08);
  color: var(--text-primary); border-color: var(--accent);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary); border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
  border: 1px solid var(--border); font-size: 1.05rem;
  transition: all var(--transition); text-decoration: none;
}
.btn-icon:hover {
  background: rgba(79,142,247,0.1);
  border-color: var(--accent); color: var(--accent);
}
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ---- 10. CARDS ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all var(--transition-med);
}
.card:hover {
  background: var(--bg-card-hover); border-color: var(--border-hover);
  box-shadow: var(--shadow-hover); transform: translateY(-4px);
}

/* ---- 11. BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.75rem; font-size: 0.76rem; font-weight: 600;
  border-radius: 100px;
  background: rgba(79,142,247,0.1); color: var(--accent);
  border: 1px solid rgba(79,142,247,0.22);
}
.badge-violet { background: rgba(139,92,246,0.1); color: #a78bfa; border-color: rgba(139,92,246,0.2); }
.badge-cyan   { background: rgba(6,214,224,0.1);  color: var(--accent-cyan);  border-color: rgba(6,214,224,0.2); }
.badge-green  { background: rgba(16,217,160,0.1); color: var(--accent-green); border-color: rgba(16,217,160,0.2); }
.badge-neutral{ background: rgba(255,255,255,0.05); color: var(--text-secondary); border-color: var(--border); }
.badge-sm { font-size: 0.69rem; padding: 0.18rem 0.6rem; }
.badges-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* ---- 12. SCROLL REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.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; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- 13. BACK TO TOP ---- */
.back-to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 44px; height: 44px; background: var(--gradient-accent);
  border: none; border-radius: 50%; color: #fff; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px);
  transition: all var(--transition); z-index: 990;
  box-shadow: 0 4px 18px rgba(79,142,247,0.38);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---- 14. AVAILABILITY PULSE ---- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

/* ---- 15. HERO ---- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center;
  background: var(--gradient-hero); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: 55vw; height: 55vw;
  background: radial-gradient(ellipse at center, rgba(79,142,247,0.055) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
}
.hero-content { max-width: 620px; }
.hero-availability {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.81rem; font-weight: 500; color: var(--accent-green);
  background: rgba(16,217,160,0.07); border: 1px solid rgba(16,217,160,0.22);
  border-radius: 100px; padding: 0.33rem 0.9rem; margin-bottom: 1.5rem;
}
.hero-availability::before {
  content: ''; width: 7px; height: 7px; background: var(--accent-green);
  border-radius: 50%; animation: pulse 2.2s infinite;
}
.hero-name { color: var(--text-primary); margin-bottom: 0.4rem; }
.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem); font-weight: 500;
  color: var(--accent); margin-bottom: 1.2rem;
}
.hero-pitch {
  font-size: 1.02rem; color: var(--text-secondary);
  margin-bottom: 1.75rem; line-height: 1.72;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.hero-socials { display: flex; gap: 0.45rem; margin-left: 0.25rem; }

/* Photo */
.hero-photo-wrap { position: relative; flex-shrink: 0; }
.hero-photo, .hero-photo-placeholder {
  width: 220px; height: 220px; border-radius: 50%;
  border: 3px solid rgba(79,142,247,0.3);
  box-shadow: 0 0 0 9px rgba(79,142,247,0.06), var(--shadow-card);
}
.hero-photo { object-fit: cover; object-position: top center; }
.hero-photo-placeholder {
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 800; color: var(--accent);
  letter-spacing: -0.02em;
}

/* ---- 16. STATS ---- */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-item { text-align: center; padding: 1.25rem; }
.stat-number {
  font-size: 2.1rem; font-weight: 800; display: block; margin-bottom: 0.3rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.81rem; color: var(--text-muted); font-weight: 500; }

/* ---- 17. CAN-DO ---- */
.can-do-list { display: flex; flex-direction: column; gap: 0.85rem; }
.can-do-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.can-do-item:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.can-do-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.05rem; }
.can-do-item p { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }

/* ---- 18. TWO-COL ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ---- 19. PROJECT CARDS ---- */
.projects-grid {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: center; align-items: stretch;
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: all var(--transition-med); text-decoration: none; color: inherit;
  width: calc((100% - 3rem) / 3);
  min-width: 0; overflow: hidden;
}
.project-card:hover {
  background: var(--bg-card-hover); border-color: var(--border-hover);
  box-shadow: var(--shadow-hover); transform: translateY(-5px);
}
.project-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.2);
}
/* ---- 19b. PROJECT CARD BANNER ---- */
.project-card-banner {
  margin: -1.75rem -1.75rem 0;
  height: 220px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; position: relative;
}
.project-card-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.project-card-banner img {
  width: 72px; height: 72px; object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
.project-card-banner .banner-svg {
  width: 72px; height: 72px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
.project-card-title { font-size: 1.02rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.project-card-context { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.project-card-bullets { display: flex; flex-direction: column; gap: 0.38rem; }
.project-card-bullets li {
  font-size: 0.86rem; color: var(--text-secondary);
  padding-left: 1.2rem; position: relative;
}
.project-card-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.project-card-footer { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.project-card-footer > .btn-primary { width: 100%; justify-content: center; text-align: center; }
.project-btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-btn-group .btn { font-size: 0.78rem; padding: 0.38rem 0.8rem; }

/* ---- 20. FILTERS ---- */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.38rem 1rem; font-size: 0.81rem; font-weight: 500; font-family: inherit;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); border-radius: 100px; cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: rgba(79,142,247,0.12); border-color: var(--accent); color: var(--accent);
}

/* ---- 21. SKILLS ---- */
.skills-categories { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-category {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.skill-category-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.2rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.skills-list { display: flex; flex-direction: column; gap: 0.7rem; }
.skill-item {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.skill-name { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.skill-level { font-size: 0.7rem; padding: 0.18rem 0.68rem; border-radius: 100px; font-weight: 600; }
.level-debutant {
  background: rgba(107,114,128,0.1); color: var(--text-muted);
  border: 1px solid rgba(107,114,128,0.2);
}
.level-intermediaire {
  background: rgba(79,142,247,0.1); color: var(--accent);
  border: 1px solid rgba(79,142,247,0.2);
}
.level-confiant {
  background: rgba(16,217,160,0.1); color: var(--accent-green);
  border: 1px solid rgba(16,217,160,0.22);
}
.languages-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
}
.language-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.25rem; text-align: center;
}
.language-flag { font-size: 1.8rem; margin-bottom: 0.5rem; }
.language-name { font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; font-size: 0.95rem; }
.language-level { font-size: 0.8rem; color: var(--text-muted); }

/* ---- 22. ABOUT / TIMELINE ---- */
.about-profile {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.about-photo, .about-photo-placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid rgba(79,142,247,0.3); margin: 0 auto 1rem;
}
.about-photo { object-fit: cover; object-position: top center; }
.about-photo-placeholder {
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--accent);
}
.about-profile h2 { font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.25rem; }

.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.75rem; top: 0.4rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--accent);
  transform: translateX(-4px);
}
.timeline-item.highlight::before {
  background: var(--gradient-accent); border: none;
  width: 12px; height: 12px; transform: translateX(-5px);
}
.timeline-date { font-size: 0.76rem; font-weight: 700; color: var(--accent); margin-bottom: 0.25rem; }
.timeline-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.timeline-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---- 23. CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; transition: all var(--transition);
}
.contact-info-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.contact-info-icon {
  font-size: 1.3rem; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,142,247,0.1); border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.12rem; }
.contact-info-value { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.45rem; }
.form-input, .form-textarea {
  width: 100%; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: inherit; font-size: 0.9rem;
  padding: 0.72rem 1rem; transition: border-color var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,142,247,0.12);
}
.form-textarea { resize: vertical; min-height: 128px; }
.form-honeypot { display: none; }
.form-success {
  display: none; padding: 0.9rem 1rem;
  background: rgba(16,217,160,0.07); border: 1px solid rgba(16,217,160,0.25);
  border-radius: var(--radius-sm); color: var(--accent-green);
  font-size: 0.88rem; font-weight: 500; text-align: center; margin-top: 1rem;
}
.form-error { color: #ff6b6b; font-size: 0.83rem; margin-top: 0.4rem; }

/* ---- 23b. MOBILITY MAP ---- */
.mobility-card { padding-bottom: 1.25rem; }
.mobility-map {
  width: 100%; max-width: 420px; margin: 0 auto; display: block;
  height: auto; border-radius: var(--radius);
}
/* Lac */
.mobility-map .lake {
  fill: rgba(79, 142, 247, 0.18); stroke: rgba(79, 142, 247, 0.45);
  stroke-width: 1.4;
}
[data-theme="light"] .mobility-map .lake {
  fill: rgba(79, 142, 247, 0.22); stroke: rgba(79, 142, 247, 0.5);
}
/* Zone mobilité */
.mobility-map .mobility-zone {
  fill: rgba(16, 217, 160, 0.10); stroke: #10d9a0;
  stroke-width: 1.8; stroke-dasharray: 8 4;
}
[data-theme="light"] .mobility-map .mobility-zone {
  fill: rgba(16, 217, 160, 0.12); stroke: #0bb584;
}
/* Rive nord */
.mobility-map .shore-line {
  fill: none; stroke: rgba(79, 142, 247, 0.35); stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
/* Points villes */
.mobility-map .city-dot {
  fill: #4f8ef7; stroke: #111827; stroke-width: 2;
}
[data-theme="light"] .mobility-map .city-dot {
  fill: #3b7de6; stroke: #e8ecf4; stroke-width: 2;
}
.mobility-map .city-home {
  fill: #10d9a0; stroke: #111827; stroke-width: 2.5;
}
[data-theme="light"] .mobility-map .city-home {
  fill: #0bb584; stroke: #e8ecf4; stroke-width: 2.5;
}
/* Labels villes */
.mobility-map .city-label {
  fill: #c8cdd8; font-size: 11.5px; font-family: 'Inter', sans-serif;
  font-weight: 600;
}
[data-theme="light"] .mobility-map .city-label {
  fill: #2d3748;
}
.mobility-map .city-label-home {
  fill: #10d9a0; font-weight: 700; font-size: 12.5px;
}
[data-theme="light"] .mobility-map .city-label-home {
  fill: #0a8f6a;
}
/* Pulse Nyon */
.mobility-map .city-pulse {
  fill: none; stroke: #10d9a0; stroke-width: 2;
  animation: mapPulse 2.2s ease-out infinite;
}
@keyframes mapPulse {
  0%   { r: 7;  opacity: 0.8; }
  100% { r: 22; opacity: 0; }
}
/* Label lac */
.mobility-map .lake-label {
  fill: rgba(79, 142, 247, 0.45); font-size: 12px; font-family: 'Inter', sans-serif;
  font-weight: 500; font-style: italic;
}
[data-theme="light"] .mobility-map .lake-label {
  fill: rgba(59, 125, 230, 0.55);
}
/* Légende */
.mobility-map .legend-bg {
  fill: rgba(17, 24, 39, 0.85); stroke: rgba(79, 142, 247, 0.2); stroke-width: 1;
}
[data-theme="light"] .mobility-map .legend-bg {
  fill: rgba(255, 255, 255, 0.9); stroke: #d0d5dd;
}
.mobility-map .legend-dot {
  fill: #10d9a0;
}
.mobility-map .legend-text {
  fill: #9fa8b8; font-size: 10.5px; font-family: 'Inter', sans-serif;
  font-weight: 500;
}
[data-theme="light"] .mobility-map .legend-text {
  fill: #4a5568;
}

/* ---- 24. DISPO ENCART ---- */
.dispo-encart {
  background: rgba(16,217,160,0.055); border: 1px solid rgba(16,217,160,0.22);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.88rem; color: var(--accent-green);
}
.dispo-encart-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green); flex-shrink: 0; animation: pulse 2.2s infinite;
}

/* ---- 25. CASE STUDY ---- */
.case-study-header {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}
.case-study-back {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.83rem; color: var(--text-muted); margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.case-study-back:hover { color: var(--accent); }
.case-study-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.case-study-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem; }
.case-study-meta span { font-size: 0.81rem; color: var(--text-muted); }
.case-study-body { padding: 4rem 0; }
.case-study-layout { display: grid; grid-template-columns: 1fr 270px; gap: 3rem; align-items: start; }
.case-study-sidebar { position: sticky; top: calc(var(--nav-height) + 2rem); }
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1rem;
}
.sidebar-card-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.9rem;
}
.case-study-section { margin-bottom: 2.5rem; }
.case-study-section h3 {
  font-size: 1rem; color: var(--text-primary); margin-bottom: 0.9rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.case-study-list { display: flex; flex-direction: column; gap: 0.55rem; }
.case-study-list li {
  font-size: 0.9rem; color: var(--text-secondary);
  padding-left: 1.4rem; position: relative;
}
.case-study-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.case-study-section p { font-size: 0.92rem; line-height: 1.7; }
.case-study-cta {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 3rem 0; text-align: center;
}
.case-study-cta h3 { margin-bottom: 0.5rem; color: var(--text-primary); }
.case-study-cta p { margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ---- 26. FOOTER ---- */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 1.75rem 0; }
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 0.45rem; }

/* ---- 27. PAGE HEADER ---- */
.page-header {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}

/* ---- 28b. NAV CONTROLS ---- */
.nav-controls {
  display: flex; flex-direction: row; align-items: center;
  gap: 0.5rem; margin-left: 0.75rem; flex-shrink: 0;
}
.nav-controls .theme-toggle,
.nav-controls .lang-toggle { margin-left: 0; }

/* ---- 28c. CERTIFICATIONS GRID ---- */
.certifications-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.cert-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem;
}
.cert-badge-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-bottom: 0.5rem;
}
@media (max-width: 700px) {
  .certifications-grid { grid-template-columns: 1fr; }
}

/* ---- 28. RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-photo-wrap { order: -1; display: flex; justify-content: center; }
  .hero-badges, .hero-actions { justify-content: center; }
  .hero-availability { margin-left: auto; margin-right: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .case-study-layout { grid-template-columns: 1fr; }
  .case-study-sidebar { position: static; }
  .project-card { width: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-photo, .hero-photo-placeholder { width: 165px; height: 165px; }
  .project-card { width: 100%; }
  :root { --section-pad: 3.5rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-row { flex-direction: column; align-items: center; }
}
