
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg-dark: #0e2a1a;
    --bg-dark2: #122e1d;
    --green-light: #6fcf8e;
    --green-mid: #3aad6a;
    --accent-teal: #7de8c8;
    --accent-blue: #a8d4f5;
    --accent-lavender: #c5b8f5;
    --accent-pink: #f5b8d0;
    --accent-yellow: #f5e6a0;
    --accent-coral: #f5b89a;
    --accent-mint: #b8f5d8;
    --text-light: #f0ede0;
    --text-muted: rgba(255, 255, 255, 0.9);
    --dot-color: rgba(111,207,142,0.18);
    --radius: 0px;
    --tag-radius: 40px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: "Outfit", sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* DOT PATTERN */
  .dot-bg {
    position: relative;
  }
  .dot-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--dot-color) 3.5px, transparent 3.5px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(111,207,142,0.1);
  }

  .nav-logo {
    width: 2px;
    height: 2px;
  }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--green-light); }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 40px 60px;
    position: relative;
    overflow: hidden;
  }

  .hero h1 {
    font-family: "Rubik", sans-serif;
    font-size: clamp(60px, 11vw, 140px);
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text-light);
    position: relative;
    z-index: 1;
  }

  /* PROJECTS SECTION */
  .projects-section {
    background: var(--bg-dark);
  }

  .accordion-item {
    border-top: 1.5px solid rgba(240,237,224,0.15);
    overflow: hidden;
    transition: background 0.3s;
  }

  .accordion-item:last-child {
    border-bottom: 1.5px solid rgba(240,237,224,0.15);
  }

  .accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    transition: background 0.25s;
    gap: 16px;
  }

  .accordion-trigger:hover {
    background: rgba(255,255,255,0.04);
  }

  .accordion-trigger-name {
   font-family: "Outfit", sans-serif;
   font-weight: 500;
    font-size: clamp(26px, 4.5vw, 52px);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--text-light);
    line-height: 1;
    transition: color 0.2s;
  }

  .accordion-trigger:hover .accordion-trigger-name,
  .accordion-item.open .accordion-trigger-name {
    color: var(--accent);
  }

  .accordion-tag {
    font-family: "Outfit", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--tag-radius);
    border: 1.5px solid currentColor;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--accent);
    margin-left: auto;
    margin-right: 20px;
  }

  .accordion-arrow {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    color: var(--text-muted);
  }

  .accordion-item.open .accordion-arrow {
    transform: rotate(45deg);
  }

  .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
  }

  .accordion-item.open .accordion-body {
    max-height: 900px;
  }

  .accordion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 40px 44px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .accordion-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .accordion-description p {
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.85;
  }

  .project-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .meta-tag {
    font-family: "Outfit", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--tag-radius);
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
  }

  .accordion-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .accordion-images img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.25s;
    display: block;
  }

  .accordion-images img:hover {
    opacity: 0.85;
    transform: scale(1.02);
  }

  .accordion-images img:first-child:nth-last-child(1) {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  /* COLOR THEMES PER PROJECT */
  .proj-1 { --accent: #7de8c8; }
  .proj-2 { --accent: #a8d4f5; }
  .proj-3 { --accent: #6fcf8e; }
  .proj-4 { --accent: #f5d978; }
  .proj-5 { --accent: #f5b8d0; }
  .proj-6 { --accent: #c5b8f5; }
  .proj-7 { --accent: #f5e6a0; }
  .proj-8 { --accent: #f5b89a; }
  .proj-9 { --accent: #b8f5d8; }
  .proj-10 { --accent: #d4f5a0; }

  /* BG COLORS PER PROJECT (trigger hover bg) */
  .proj-1 .accordion-trigger:hover, .proj-1.open .accordion-trigger { background: rgba(125,232,200,0.07); }
  .proj-2 .accordion-trigger:hover, .proj-2.open .accordion-trigger { background: rgba(168,212,245,0.07); }
  .proj-3 .accordion-trigger:hover, .proj-3.open .accordion-trigger { background: rgba(111,207,142,0.07); }
  .proj-4 .accordion-trigger:hover, .proj-4.open .accordion-trigger { background: rgba(245,217,120,0.07); }
  .proj-5 .accordion-trigger:hover, .proj-5.open .accordion-trigger { background: rgba(245,184,208,0.07); }
  .proj-6 .accordion-trigger:hover, .proj-6.open .accordion-trigger { background: rgba(197,184,245,0.07); }
  .proj-7 .accordion-trigger:hover, .proj-7.open .accordion-trigger { background: rgba(245,230,160,0.07); }
  .proj-8 .accordion-trigger:hover, .proj-8.open .accordion-trigger { background: rgba(245,184,154,0.07); }
  .proj-9 .accordion-trigger:hover, .proj-9.open .accordion-trigger { background: rgba(184,245,216,0.07); }
  .proj-10 .accordion-trigger:hover, .proj-10.open .accordion-trigger { background: rgba(212,245,160,0.07); }

  /* FOOTER */
  footer {
    background: var(--bg-dark);
    padding: 72px 40px 40px;
    position: relative;
  }

  .footer-title {
    font-family: "Rubik", sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-light);
  }

  .footer-socials {
    display:flex;
    gap: 24px;
    margin-bottom: 20px;
 
  }

  .footer-socials a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 22px;
    transition: color 0.2s;
  }

  .footer-socials a:hover { color: var(--green-light); }

  .footer-email {
    font-size: 13px;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 48px;
  }

  .footer-email a {
color: inherit;
text-decoration: none;
}
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(240,237,224,0.1);
    padding-top: 24px;
  }
  

  .footer-copy {
    text-align: end;
    font-size: 9px;
    color: var(--text-muted);
  }

  .footer-logo-block {
    display: flex;
    flex-direction: column;
    
    gap: 6px;

  }
  .footer-logo-block img{
   max-width: 30%;
   height: auto;
  }

  .footer-logo-text {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-align: right;
    color: var(--text-light);
  }

  /* LIGHTBOX / CAROUSEL */
  .lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .lightbox-overlay.active {
    display: flex;
  }

  .lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    user-select: none;
  }

  .lightbox-img-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    touch-action: pan-y;
  }

  .lightbox-img-wrap img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    pointer-events: none;
  }

  .lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
  }

  .lightbox-close:hover { background: rgba(255,255,255,0.28); }

  .lightbox-nav {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .lightbox-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }

  .lightbox-btn:hover { background: rgba(255,255,255,0.22); }

  .lightbox-counter {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    min-width: 60px;
    text-align: center;
  }

  /* SVG LOGO */
  .logo-svg {
    fill: none;
    stroke: var(--green-light);
    stroke-width: 2;
  }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    nav { padding: 14px 20px; }

    .hero { padding: 0 20px 48px; }
    .hero h1 { font-size: clamp(52px, 18vw, 80px); line-height: 0.9; }

    .accordion-trigger { padding: 18px 20px; }
    .accordion-trigger-name { font-size: clamp(22px, 7vw, 36px); }
    .accordion-tag { font-size: 10px; padding: 4px 10px; margin-right: 10px; }

    .accordion-content {
      grid-template-columns: 1fr;
      padding: 24px 20px 36px;
      gap: 24px;
    }

    .accordion-images {
      grid-template-columns: 1fr 1fr;
    }

    footer { padding: 56px 20px 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-logo-block { align-items: flex-start; }
    .footer-logo-text { text-align: left; }
  }

  @media (max-width: 480px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 11px; }
  }

/* ─── GALLERY PREVIEW (image unique par accordéon) ─────── */
.accordion-images {
  /* override du grid à 2 colonnes : une seule image visible */
  display: block;
}

.gallery-preview {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-preview img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s, transform 0.25s;
}

.gallery-preview:hover img {
  opacity: 0.82;
  transform: scale(1.02);
}

/* Badge "1 / N" en bas à droite de l'image de prévisualisation */
.gallery-count-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255,255,255,0.9);
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* Icône "agrandir" au survol */
.gallery-preview::after {
  content: '⤢';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.gallery-preview:hover::after {
  opacity: 1;
}

/* ─── NAV LOGO LINK ─────────────────────────────────────── */
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ─── FOOTER SOCIALS — hérite de currentColor ───────────── */
.footer-socials a svg {
  fill: currentColor;
  transition: color 0.2s;
}
