/* ========== RESET SIMPLE ========== */ 
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #407da0 0, #0d2030 40%, #050910 100%);
  color: #f7fbff;
  min-height: 100vh;
}

/* ========== LAYOUT GLOBAL ========== */

.wrapper {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

main {
  padding-block: 4.5rem 3.5rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 1.5vw + 1.4rem, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 0.98rem;
  opacity: 0.9;
}

.card {
  border-radius: 24px;
  padding: 2.5rem 2.3rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
}

/* ========== HEADER / NAV ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(4, 10, 18, 0.88), rgba(4, 10, 18, 0.6));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7fbff, #c6e0ff);
  color: #071019;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.logo-text {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  color: #f7fbff;
}

/* ===== NAV DESKTOP ===== */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  font-size: 0.88rem;
}

.nav a {
  color: #dfe8f5;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  height: 2px;
  width: 0;
  background: #f7fbff;
  transition: width 0.18s ease;
}

.nav a:hover {
  opacity: 1;
}

.nav a.nav-link--active {
  opacity: 1;
}

.nav a.nav-link--active::after {
  width: 100%;
}

/* ========== BOUTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #0c1a26;
  background: #f7fbff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: #f7fbff;
}

.btn.big {
  padding-inline: 2.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ========== HERO ========== */

.hero {
  padding-block: 4.5rem 3.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
}

.hero-text {
  max-width: 640px;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 3vw + 1.8rem, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.92;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.9rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-photo {
  flex-shrink: 0;
}

.photo-frame {
  width: 230px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  padding: 6px;
  background: linear-gradient(135deg, #f7fbff, rgba(210, 234, 255, 0.1));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/*Highlights sous le hero*/
.home-highlights {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}

.highlight-card {
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  background: rgba(5, 16, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  opacity: 0.92;
}

/* ========== GRILLES GÉNÉRALES ========== */

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

.skills-list {
  list-style: none;
  font-size: 0.95rem;
}

.skills-list li + li {
  margin-top: 0.4rem;
}

/* PROJETS */

.projects-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 3rem 0 1.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  padding: 2rem 2.2rem 1.8rem;
  line-height: 1.5rem;
  border-radius: 18px;
  background: rgba(6, 19, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(3, 8, 14, 0.85);
}

.project-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.65;
}

.project-card h3 {
  margin: 2rem 0 0.4rem;
  font-size: 1.1rem;
}

.project-card p {
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 0.9rem;
}

.project-meta {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-bottom: 0.8rem;
}

.project-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.project-links a {
  font-size: 0.86rem;
  text-decoration: none;
  color: #dfeeff;
  position: relative;
}

.project-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: #dfeeff;
  transition: width 0.18s ease;
}

.project-links a:hover::after {
  width: 100%;
}

/* ========== CONTACT ========== */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-card p {
  max-width: 520px;
  font-size: 0.97rem;
  opacity: 0.92;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.9rem;
  opacity: 0.85;
}

/* ========== FOOTER ========== */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #020509;
  padding-block: 1.3rem 1.6rem;
  font-size: 0.82rem;
  color: #a8b4c4;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .hero-photo {
    align-self: center;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  main {
    padding-top: 3.3rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav {
    gap: 0.9rem;
  }

  .card {
    padding: 2.1rem 1.7rem;
  }

  .hero {
    padding-block: 3.3rem 3rem;
  }
}

/* ======================================================
   MENU MOBILE PLEIN ÉCRAN + ANIMATION DES LIENS
   ====================================================== */

.hamburger {
  width: 36px;
  height: 26px;
  display: none;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 300;
}

.hamburger span {
  display: block;
  height: 3.5px;
  width: 100%;
  border-radius: 8px;
  background: #f7fbff;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.2s ease;
}

/* animation hamburger -> X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* ========== OVERLAY ========== */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.7);
  backdrop-filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========== MENU MOBILE (PLEIN ÉCRAN) ========== */

@media (max-width: 840px) {

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2.4rem;
    padding-top: 5rem;

    background: rgba(5, 12, 20, 0.97);
    backdrop-filter: blur(14px);

    transform: translateY(-100%);
    transition: transform 0.55s cubic-bezier(.23,1,.32,1);

    z-index: 250;
  }

  .nav.active {
    transform: translateY(0);
  }

  /* ANIMATION DES LIENS */
  .nav a {
    opacity: 0;
    transform: translateY(22px);
    font-size: 1.55rem;
    letter-spacing: 0.16em;
    color: #f7fbff;
    text-align: center;

    transition: 
      opacity 0.45s ease,
      transform 0.45s ease;
  }

  .nav.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav.active a:nth-child(1) { transition-delay: 0.12s; }
  .nav.active a:nth-child(2) { transition-delay: 0.20s; }
  .nav.active a:nth-child(3) { transition-delay: 0.28s; }
  .nav.active a:nth-child(4) { transition-delay: 0.36s; }
}

/* Desktop reset */
@media (min-width: 841px) {
  .nav {
    display: flex !important;
    position: static;
    width: auto;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .hamburger {
    display: none !important;
  }
}
/* ======================================================
   AJOUT – SURLIGNAGE LIEN ACTIF (MENU MOBILE)
   ====================================================== */
@media (max-width: 840px) {

  .nav a.nav-link--active {
    opacity: 1;
  }

  .nav a.nav-link--active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, #f7fbff, #9fd3ff);
    border-radius: 999px;
    transform: translateX(-50%);
  }
}
/* ======================================================
   AJOUT – MENU MOBILE : TEXTE NET & PRO
   ====================================================== */
@media (max-width: 840px) {

  .nav a {
    opacity: 1;                /* ← enlève l’effet fade moche */
    filter: none;              /* ← aucun flou */
    transform: none;           /* ← pas de flottement */
  }

  .nav {
    text-rendering: optimizeLegibility;
  }
}
/* AJOUT – CROIX MENU PLUS VISIBLE */
@media (max-width: 840px) {
  .hamburger.active span {
    background: #ffffff;
  }
}
/* ======================================================
   AJOUT – LIEN ACTIF VISIBLE (CLIC MOBILE)
   ====================================================== */
@media (max-width: 840px) {

  .nav a {
    position: relative;
  }

  .nav a.nav-link--active {
    color: #ffffff;
    font-weight: 600;
  }

  .nav a.nav-link--active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    width: 48px;
    height: 4px;
    background: #ffffff;
    border-radius: 999px;
    transform: translateX(-50%);
    opacity: 1;
  }
}

/* ======================================================
   AJOUT – OPTION A : MENU MOBILE STABLE & LIENS CLIQUABLES
   (NE REMPLACE RIEN, SURCHARGE JUSTE POUR CORRIGER)
   ====================================================== */

@media (max-width: 840px) {

  /* Liens toujours cliquables */
  .nav a {
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Overlay ne bloque jamais les clics sur le menu */
  .nav-overlay {
    pointer-events: none;
  }

  .nav-overlay.active {
    pointer-events: none; /* <-- CORRECTION ICI (au lieu de auto) */
  }

  /* On désactive le blur derrière le texte du menu
     pour éviter le rendu flou/“sale” */
  .nav {
    backdrop-filter: none;
  }

  /* Feedback tactile léger */
  .nav a:active {
    transform: scale(0.96);
  }
}

/* AJOUT – scroll-lock (sécurité si jamais déplacé dans le fichier) */
body.menu-open {
  overflow: hidden;
}
/* ===============================
   LIGHTBOX GALLERY PRO
   =============================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 88%;
  max-height: 88%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  animation: lightboxFade 0.35s ease;
}

@keyframes lightboxFade {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* boutons navigation */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-prev,
.lightbox-next {
  font-size: 2.6rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.28);
}

@media (max-width: 720px) {
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
}

