/* ============================================================
   PORTFOLIO — MAME SEYNABOU DIOP
   Charte graphique "Fleurir"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Couleurs charte Fleurir */
  --rose-poudre: #ecb5b3;
  --rose-clair: #f5d5d4;
  --rose-hover: #e09e9b;
  --beige-doux: #F4eceb;
  --beige-clair: #faf6f5;
  --bleu-ardoise: #5b799f;
  --bleu-fonce: #45617f;
  --bleu-clair: #7a9bbd;
  --blanc: #ffffff;
  --noir-doux: #2d2d2d;
  --gris-texte: #555555;
  --gris-clair: #999999;
  --separateur: #e8e0df;

  /* Typographie */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espacements */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --nav-height: 72px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--noir-doux);
  background: var(--blanc);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  /* Prevents right-click and dragging */
  -webkit-user-drag: none;
}

/* Allow pointer events only for interactive images (like lightbox thumbnails) */
.modal-gallery img {
  pointer-events: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Headings ── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose-poudre);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--bleu-ardoise);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-desc {
  font-size: 15px;
  color: var(--gris-texte);
  max-width: 600px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ── Decorative Elements ── */
.floral-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-poudre);
  display: inline-block;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--rose-poudre);
  margin: 20px auto;
}

.divider-left {
  margin: 20px 0;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: var(--nav-height);
}

.navbar.scrolled {
  border-bottom-color: var(--separateur);
  box-shadow: 0 2px 20px rgba(91, 121, 159, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bleu-ardoise);
  letter-spacing: 1px;
}

.nav-logo span {
  color: var(--rose-poudre);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gris-texte);
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--rose-poudre);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bleu-ardoise);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--bleu-ardoise) !important;
  color: var(--blanc) !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  transition: background 0.3s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--bleu-fonce) !important;
}

/* Hamburger Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--bleu-ardoise);
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--beige-doux);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-clair) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 121, 159, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 40px 0;
}

.hero-greeting {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--rose-poudre);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  color: var(--bleu-ardoise);
  line-height: 1.1;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--gris-texte);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  color: var(--bleu-ardoise);
  line-height: 1.7;
  padding-left: 20px;
  border-left: 2px solid var(--rose-poudre);
  margin-bottom: 36px;
  max-width: 460px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 1s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--bleu-ardoise);
  color: var(--blanc);
  border-radius: 4px;
}

.btn-primary:hover {
  background: var(--bleu-fonce);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 121, 159, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--bleu-ardoise);
  border: 1.5px solid var(--bleu-ardoise);
  border-radius: 4px;
}

.btn-outline:hover {
  background: var(--bleu-ardoise);
  color: var(--blanc);
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.5s;
}

.hero-photo-frame {
  position: relative;
  width: 400px;
  height: 500px;
  border-radius: 200px 200px 20px 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(91, 121, 159, 0.15);
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--rose-poudre);
  border-radius: inherit;
  z-index: 1;
  opacity: 0.4;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero-photo-decor {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid var(--rose-poudre);
  border-radius: 50%;
  opacity: 0.3;
}

.hero-photo-decor:nth-child(2) {
  top: -20px;
  right: -30px;
}

.hero-photo-decor:nth-child(3) {
  bottom: 40px;
  left: -40px;
  width: 80px;
  height: 80px;
}

/* ═══════════════════════════════════════════
   ABOUT / PRÉSENTATION
   ═══════════════════════════════════════════ */
#presentation {
  padding: var(--section-padding);
  background: var(--blanc);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-story h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--bleu-ardoise);
  margin-bottom: 20px;
}

.about-story p {
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

#presentation .about-values p {
  text-align: justify;
}

.about-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: var(--beige-doux);
  padding: 28px 24px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(91, 121, 159, 0.08);
}

.service-card h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--bleu-ardoise);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13px;
  color: var(--gris-texte);
  line-height: 1.7;
  margin-bottom: 0;
}

.about-values {
  margin-top: 40px;
}

.about-values h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--bleu-ardoise);
  margin-bottom: 24px;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--beige-clair);
  border-radius: 8px;
  border-left: 3px solid var(--rose-poudre);
}

.value-item .value-icon {
  width: 40px;
  height: 40px;
  background: var(--rose-poudre);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 16px;
}

.value-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--bleu-ardoise);
}

/* ═══════════════════════════════════════════
   COMPÉTENCES
   ═══════════════════════════════════════════ */
#competences {
  padding: var(--section-padding);
  background: var(--beige-doux);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--blanc);
  padding: 32px 28px;
  border-radius: 10px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-poudre), var(--bleu-ardoise));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(91, 121, 159, 0.1);
}

.skill-icon {
  width: 48px;
  height: 48px;
  background: var(--beige-doux);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
  color: var(--bleu-ardoise);
  transition: background 0.3s ease;
}

.skill-card:hover .skill-icon {
  background: var(--rose-clair);
}

.skill-card h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--bleu-ardoise);
  margin-bottom: 10px;
  font-weight: 500;
}

.skill-card p {
  font-size: 13px;
  color: var(--gris-clair);
  line-height: 1.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.skill-tags span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: var(--beige-doux);
  color: var(--bleu-ardoise);
  border-radius: 20px;
}

/* ═══════════════════════════════════════════
   EXPÉRIENCES — Timeline
   ═══════════════════════════════════════════ */
#experiences {
  padding: var(--section-padding);
  background: var(--blanc);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--rose-poudre) 10%, var(--bleu-ardoise) 90%, transparent);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 70px;
  position: relative;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--blanc);
  border: 4px solid var(--rose-poudre);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(236, 181, 179, 0.2);
  transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--rose-poudre);
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0 8px rgba(236, 181, 179, 0.3);
}

.timeline-content {
  width: 45%;
  background: var(--blanc);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 40px rgba(91, 121, 159, 0.06);
  transition: all 0.4s ease;
  position: relative;
}

.timeline-content::after {
  content: "";
  position: absolute;
  top: 32px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -14px;
  border-width: 14px 0 14px 14px;
  border-color: transparent transparent transparent var(--blanc);
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -14px;
  border-width: 14px 14px 14px 0;
  border-color: transparent var(--blanc) transparent transparent;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  transform-origin: center right;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
  transform-origin: center left;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(91, 121, 159, 0.12);
  border-color: rgba(236, 181, 179, 0.3);
}

.timeline-date {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rose-poudre);
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(236, 181, 179, 0.1);
  padding: 6px 16px;
  border-radius: 30px;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--bleu-ardoise);
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.3;
}

.timeline-company {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--noir-doux);
  margin-bottom: 6px;
}

.timeline-type {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gris-clair);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-item:nth-child(odd) .timeline-type {
  justify-content: flex-end;
}

.timeline-desc {
  font-size: 14.5px;
  color: var(--gris-texte);
  line-height: 1.8;
  margin-bottom: 20px;
}

.timeline-missions {
  padding-left: 0;
  margin: 0;
}

.timeline-missions li {
  font-size: 14px;
  color: var(--gris-texte);
  line-height: 1.7;
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
  opacity: 0.9;
}

.timeline-item:nth-child(odd) .timeline-missions li {
  padding-left: 0;
  padding-right: 20px;
  text-align: right;
}

.timeline-missions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--bleu-ardoise);
  border-radius: 50%;
  opacity: 0.6;
}

.timeline-item:nth-child(odd) .timeline-missions li::before {
  left: auto;
  right: 0;
}

/* ═══════════════════════════════════════════
   RÉALISATIONS
   ═══════════════════════════════════════════ */
#realisations {
  padding: var(--section-padding);
  background: var(--beige-doux);
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 10px 22px;
  border: 1.5px solid var(--separateur);
  background: var(--blanc);
  color: var(--gris-texte);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--bleu-ardoise);
  color: var(--blanc);
  border-color: var(--bleu-ardoise);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--blanc);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(91, 121, 159, 0.12);
}

.project-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--beige-clair);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-image img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(91, 121, 159, 0.8), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay span {
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-card-info {
  padding: 22px 24px 26px;
}

.project-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-poudre);
  margin-bottom: 8px;
}

.project-card-info h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--bleu-ardoise);
  margin-bottom: 8px;
  font-weight: 500;
}

.project-card-info p {
  font-size: 13px;
  color: var(--gris-clair);
  line-height: 1.6;
}

/* ── Project Detail Modal ── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.project-modal.active {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.6);
  backdrop-filter: blur(8px);
}

.project-modal-content {
  position: relative;
  background: var(--blanc);
  border-radius: 16px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--beige-doux);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu-ardoise);
  z-index: 2;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: var(--rose-clair);
}

.modal-header {
  padding: 40px 40px 20px;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--bleu-ardoise);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 14px;
  color: var(--gris-texte);
  line-height: 1.8;
}

.modal-gallery {
  padding: 20px 40px 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.modal-gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-gallery img:hover {
  transform: scale(1.02);
}

.modal-gallery img:first-child {
  grid-column: 1 / -1;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  animation: lbIn 0.3s ease;
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* ═══════════════════════════════════════════
   HEARTS & HORIZONS
   ═══════════════════════════════════════════ */
#hearts-horizons {
  padding: var(--section-padding);
  background: var(--blanc);
  overflow: hidden;
}

.hh-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.hh-text h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--bleu-ardoise);
  margin-bottom: 20px;
}

.hh-text p {
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.9;
  margin-bottom: 16px;
}

.hh-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hh-categories span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 8px 18px;
  border: 1.5px solid var(--rose-poudre);
  color: var(--bleu-ardoise);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.hh-categories span:hover {
  background: var(--rose-poudre);
  color: var(--blanc);
}

.hh-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hh-logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hh-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  text-decoration: none;
}

.hh-btn-primary {
  background: var(--bleu-ardoise);
  color: var(--blanc);
}

.hh-btn-primary:hover {
  background: var(--bleu-fonce);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 121, 159, 0.25);
}

.hh-btn-outline {
  background: transparent;
  color: var(--bleu-ardoise);
  border: 1.5px solid var(--bleu-ardoise);
}

.hh-btn-outline:hover {
  background: var(--bleu-ardoise);
  color: var(--blanc);
}

/* H&H Modals */
.hh-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.hh-modal.active {
  display: flex;
}

.hh-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.6);
  backdrop-filter: blur(8px);
}

.hh-modal-content {
  position: relative;
  background: var(--blanc);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: modalIn 0.4s ease;
}

.hh-modal-body {
  padding: 48px;
}

.hh-modal-body h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--bleu-ardoise);
  margin-bottom: 20px;
}

.hh-modal-body p {
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

.hh-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.hh-modal-gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.hh-modal-gallery img:hover {
  transform: scale(1.02);
}

.hh-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--bleu-ardoise);
  color: var(--blanc);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hh-modal-cta:hover {
  background: var(--bleu-fonce);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 121, 159, 0.25);
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
#contact {
  padding: var(--section-padding);
  background: var(--beige-doux);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--bleu-ardoise);
  margin-bottom: 16px;
}

.contact-info>p {
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu-ardoise);
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91, 121, 159, 0.08);
}

.contact-detail span {
  font-size: 14px;
  color: var(--noir-doux);
}

.contact-form {
  background: var(--blanc);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(91, 121, 159, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bleu-ardoise);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--separateur);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--noir-doux);
  background: var(--beige-clair);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bleu-ardoise);
  box-shadow: 0 0 0 3px rgba(91, 121, 159, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--bleu-ardoise);
  color: var(--blanc);
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.form-submit:hover {
  background: var(--bleu-fonce);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bleu-ardoise);
  color: var(--blanc);
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--blanc);
}

.footer-logo span {
  color: var(--rose-poudre);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--rose-poudre);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  background: var(--rose-poudre);
  color: var(--blanc);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s 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;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .hero .container,
  .about-grid,
  .hh-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo-frame {
    width: 300px;
    height: 380px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    justify-content: flex-end;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    width: calc(100% - 60px);
    text-align: left;
    padding: 32px 24px !important;
  }

  .timeline-content::after,
  .timeline-item:nth-child(odd) .timeline-content::after {
    left: -14px;
    right: auto;
    border-width: 14px 14px 14px 0;
    border-color: transparent var(--blanc) transparent transparent;
  }

  .timeline-item:nth-child(odd) .timeline-type {
    justify-content: flex-start;
  }

  .timeline-item:nth-child(odd) .timeline-missions li {
    text-align: left;
    padding-left: 20px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) .timeline-missions li::before {
    left: 0;
    right: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
    --nav-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--blanc);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 20px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 16px;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--separateur);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-photo-frame {
    width: 260px;
    height: 320px;
  }

  .about-services {
    grid-template-columns: 1fr;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hh-gallery {
    grid-template-columns: 1fr;
  }

  .hh-gallery-item:first-child {
    grid-row: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .modal-header {
    padding: 30px 20px 10px;
  }

  .modal-header h3 {
    font-size: 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-title {
    font-size: 28px;
  }
}

/* ── Scroll to top button ── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--bleu-ardoise);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(91, 121, 159, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--rose-poudre);
  transform: translateY(-3px);
}