/* ============================================================
   BIRANE NDIAYE PORTFOLIO — styles.css
   Lier dans index.html : <link rel="stylesheet" href="styles.css">
   ============================================================ */

:root {
  --sky: #38BDF8;
  --sky-dark: #0EA5E9;
  --sky-glow: rgba(56,189,248,0.18);
  --navy: #0B1526;
  --navy-mid: #112240;
  --navy-card: #162840;
  --white: #F0F8FF;
  --muted: #8BAFC8;
  --accent: #F97316;
  --border: rgba(56,189,248,0.15);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--sky-dark); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(11,21,38,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sky);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sky); }
.nav-cta {
  background: var(--sky);
  color: var(--navy) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--sky-dark); color: var(--white) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--sky); transition: 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 70% at 65% 50%, rgba(56,189,248,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(14,165,233,0.05) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sky-glow);
  border: 1px solid rgba(56,189,248,0.3);
  color: var(--sky);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--sky);
  animation: pulse 2s infinite;
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  opacity: 0; animation: fadeUp 0.7s 0.35s forwards;
}
.hero-name .highlight { color: var(--sky); }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--muted);
  margin: 0.8rem 0 1.5rem;
  opacity: 0; animation: fadeUp 0.7s 0.5s forwards;
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  opacity: 0; animation: fadeUp 0.7s 0.65s forwards;
}
.hero-tagline strong { color: var(--white); font-weight: 500; }
.hero-buttons {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem;
  opacity: 0; animation: fadeUp 0.7s 0.8s forwards;
}
.btn-primary {
  background: var(--sky);
  color: var(--navy);
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--sky-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,189,248,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  opacity: 0; animation: fadeUp 0.7s 0.95s forwards;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem;
}

/* Hero Photo */
.hero-photo {
  position: relative;
  opacity: 0; animation: fadeIn 1s 0.5s forwards;
}
.hero-photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.9);
  transition: transform 0.5s;
}
.hero-photo-frame:hover img { transform: scale(1.03); }
.hero-photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,21,38,0.7) 100%);
}
.hero-photo-border {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sky), transparent 60%);
  z-index: -1;
}
.hero-photo-tag {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  background: rgba(11,21,38,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-photo-tag-icon { font-size: 1.5rem; }
.hero-photo-tag-text { font-size: 0.82rem; }
.hero-photo-tag-text strong { display: block; color: var(--sky); font-size: 0.92rem; }

/* ── SECTIONS ── */
section { padding: 100px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-title span { color: var(--sky); }
.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--sky), transparent);
  border-radius: 2px;
  margin-bottom: 3rem;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.02rem; }
.about-text p strong { color: var(--white); font-weight: 500; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.value-card:hover { border-color: var(--sky); transform: translateY(-3px); }
.value-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.value-title { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--white); }
.value-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.about-photo-wrap { position: relative; }
.about-photo-wrap img {
  width: 100%;
  border-radius: 14px;
  filter: saturate(0.85);
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border: 2px solid var(--sky);
  border-radius: 14px;
  top: 14px; left: 14px;
  z-index: -1;
  opacity: 0.3;
}

/* ── SKILLS ── */
#competences { background: var(--navy-mid); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.skill-card:hover { border-color: rgba(56,189,248,0.4); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(56,189,248,0.08); }
.skill-card:hover::before { opacity: 1; }
.skill-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.skill-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.6; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(56,189,248,0.1);
  color: var(--sky);
  border: 1px solid rgba(56,189,248,0.2);
  letter-spacing: 0.04em;
}
.skill-bar-wrap { margin-top: 1rem; }
.skill-bar-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; }
.skill-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: linear-gradient(90deg, var(--sky), var(--sky-dark)); border-radius: 2px; transition: width 1s ease; }

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
}
.project-card:hover { border-color: rgba(56,189,248,0.4); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(56,189,248,0.1); }
.project-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.project-visual {
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.project-card.featured .project-visual { height: auto; min-height: 280px; }
.pv-1 { background: linear-gradient(135deg, #0B1526, #1a3a5c); }
.pv-2 { background: linear-gradient(135deg, #0a1f35, #0c3060); }
.pv-3 { background: linear-gradient(135deg, #111827, #1e3a5f); }
.pv-4 { background: linear-gradient(135deg, #0d1f3c, #163054); }
.project-visual .grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(56,189,248,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(56,189,248,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.project-icon { position: relative; z-index: 1; filter: drop-shadow(0 0 20px rgba(56,189,248,0.5)); }
.project-body { padding: 1.6rem; }
.project-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.project-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.2rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tech span {
  font-size: 0.72rem; padding: 0.2rem 0.6rem;
  border-radius: 4px; background: rgba(255,255,255,0.05);
  color: var(--muted); border: 1px solid rgba(255,255,255,0.08);
}

/* ── EXPERIENCE ── */
#experience { background: var(--navy-mid); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sky), rgba(56,189,248,0.1));
}
.timeline-item { position: relative; margin-bottom: 3.5rem; }
.timeline-dot {
  position: absolute;
  left: -2.45rem; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sky);
  border: 3px solid var(--navy-mid);
  box-shadow: 0 0 10px var(--sky);
}
.timeline-item:first-child .timeline-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.exp-period {
  font-size: 0.78rem;
  color: var(--sky);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.exp-company { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.exp-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.exp-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 0.8rem;
}
.exp-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.exp-list li {
  font-size: 0.88rem; color: var(--muted);
  padding-left: 1rem; position: relative;
  line-height: 1.5;
}
.exp-list li::before { content: '▸'; position: absolute; left: 0; color: var(--sky); font-size: 0.7rem; top: 3px; }

/* ── CERTIFICATIONS ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cert-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s;
}
.cert-card:hover { border-color: var(--sky); transform: translateY(-3px); }
.cert-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.cert-name { font-family: var(--font-head); font-size: 0.88rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.cert-platform { font-size: 0.75rem; color: var(--sky); margin-top: 0.4rem; }
.diplomes-row {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-top: 3rem;
}
.diplome-badge {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}
.diplome-badge strong { display: block; color: var(--sky); }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--navy-mid); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  position: relative;
  transition: all 0.25s;
}
.testimonial-card:hover { border-color: rgba(56,189,248,0.4); transform: translateY(-3px); }
.testimonial-quote { font-size: 3rem; color: var(--sky); opacity: 0.3; line-height: 1; margin-bottom: 0.5rem; font-family: Georgia, serif; }
.testimonial-text { font-size: 0.92rem; color: var(--muted); line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--navy));
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.testimonial-name { font-family: var(--font-head); font-size: 0.92rem; font-weight: 700; }
.testimonial-role { font-size: 0.78rem; color: var(--sky); }

/* ── CONTACT ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro { color: var(--muted); margin-bottom: 2.5rem; font-size: 1.02rem; line-height: 1.8; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--sky-glow);
  border: 1px solid rgba(56,189,248,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info-value { font-size: 0.98rem; color: var(--white); margin-top: 0.1rem; }
.contact-info-value a { color: var(--sky); text-decoration: none; }
.wa-btn-wrap { margin-top: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--sky); }
.form-submit {
  background: var(--sky);
  color: var(--navy);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  letter-spacing: 0.04em;
}
.form-submit:hover { background: var(--sky-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(56,189,248,0.25); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; }
.footer-logo span { color: var(--sky); }
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.footer-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-socials { display: flex; gap: 0.8rem; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }
.cv-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--sky);
  color: var(--sky);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.cv-download:hover { background: var(--sky); color: var(--navy); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.2s;
  animation: waFloat 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { display: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; display: block; }
  .exp-list { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-mid);
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
  }
  .hero-stats { gap: 1.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes waFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── RESPONSIVE (LA MAGIE) ── */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo, .about-photo-wrap { display: none; }
  .hero-tagline { margin: 0 auto; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .about-grid, .skills-grid, .projects-grid, .contact-wrap { grid-template-columns: 1fr; }
  .project-card.featured { grid-template-columns: 1fr; }
}
img {
  max-width: 100%;
  height: auto;
  display: block; /* Évite les espaces vides sous l'image */
}
.hero-photo {
  position: relative;
  z-index: 5; /* Force la photo à passer au premier plan */
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  
  /* Menu Mobile Slide-Down */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-mid);
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .nav-links.open { display: flex; animation: fadeIn 0.3s ease; }

  /* Animation Hamburger en X */
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-stats { flex-direction: column; align-items: center; gap: 1.5rem; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .section-title { font-size: 1.8rem; }
  .certs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .hero-photo, .about-photo-wrap { display: none; } /* <--- CETTE LIGNE CACHE VOS PHOTOS */
}
