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

body {
  min-height: 200vh;
  background: #cddbf7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* HEADER MAC - RESPONSIVE */
.mac-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 28px; background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
  border-bottom: 1px solid #ccc; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; font-size: 13px; z-index: 2000;
}

.header-left {
  display: flex; align-items: center; gap: 18px; flex-shrink: 1; min-width: 0; white-space: nowrap;
  max-width: 70%; /* ← RESPONSIVE : limite largeur */
}

.app-name { font-weight: 700; color: #333; }

.header-menu {
  display: flex; gap: 8px; color: #333; user-select: none;
}

.menu-link {
  color: #333; text-decoration: none; font-size: 13px; font-weight: 500; padding: 4px 8px;
  border-radius: 4px; transition: all 0.2s ease; white-space: nowrap; /* ← pas de wrap */
}

.menu-link:hover { background: rgba(0,0,0,0.05); color: #000; }

.header-right { display: flex; gap: 6px; flex-shrink: 0; }
.window-btn { width: 12px; height: 12px; border-radius: 50%; }
.window-btn.close { background: #ff5f57; }
.window-btn.min { background: #ffbd2e; }
.window-btn.max { background: #28ca42; }

/* MOBILE HEADER */
@media (max-width: 700px) {
  .header-left { gap: 4px; max-width: 60%; }
  .header-menu { gap: 4px; font-size: 11px; }
  .menu-link { padding: 2px 4px; font-size: 11px; }
  .app-name { font-size: 12px; }
}

/* STICKERS */
.stickers-container {
  position: relative; max-width: 900px; width: 95vw; margin: 80px auto 40px;
}
.stickers-img { width: 100%; height: auto; display: block; }
.hotspot { position: absolute; cursor: pointer; }

/* TOOLTIP */
/* POPUP NOTES - ARRONDI HAUT / PLAT BAS */
#tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 4000;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 420px;
  width: 90vw;
  max-height: 80vh;
  border-radius: 18px; /* ← ARRONDI HAUT SEUL */
  overflow: hidden;
  background: #fff;
  box-shadow: 
    0 0 0 2px #000,
    0 30px 60px rgba(0,0,0,0.4);
}

#tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Header jaune - suit radius */
#tooltip .notification-header {
  background: linear-gradient(90deg, #ffdd15 0%, #ffd700 100%);
  background-clip: padding-box;
  padding: 16px 60px 16px 20px;
  margin: 0;
  border-radius: 18px 18px 0 0; /* ← même radius haut */
}

/* Corps blanc - plat bas */
#tooltip .notification-body {
  background: #fff;
  background-clip: padding-box;
  padding: 18px 20px;
  margin: 0;
  border-radius: 0 0 0 0; /* ← PLAT BAS */
  font-size: 14px;
  color: #111;
  line-height: 1.45;
  max-height: 50vh;
  overflow-y: auto;
  border-top: none;
}

/* Boutons / titre (inchangés) */
#tooltip .window-buttons {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 8px;
}

#tooltip .window-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

#tooltip .window-btn.close { background: #ff5f57; }
#tooltip .window-btn.min { background: #ffbd2e; }
#tooltip .window-btn.max { background: #28ca42; }

#tooltip .notification-title {
  font-weight: 700;
  font-size: 18px;
  color: #000;
  padding-right: 70px;
  margin: 0;
}

#tooltip .notification-date {
  font-size: 11px;
  color: #555;
  padding-right: 70px;
  margin-top: 2px;
}

/* Héritage radius */
#tooltip > * {
  border-radius: inherit;
  background-clip: padding-box;
}


/* NOTIFICATION MAC - MOBILE ONLY */
.notification-mac {
  display: none; /* cachée desktop */
}
@media (max-width: 700px) {
  .notification-mac {
    display: flex; position: fixed; top: 40px; right: 20px; z-index: 1000;
    opacity: 0; transform: translateX(20px); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px; background: #ffffff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 1px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1); align-items: flex-start; gap: 12px; padding: 16px 20px 16px 16px;
  }
  .notification-mac.show { opacity: 1; transform: translateX(0); }
  .notification-name { font-weight: 700; font-size: 15px; color: #020202; margin-bottom: 4px; }
  .notification-message { font-size: 13px; color: #2a2a2c; line-height: 1.4; flex: 1; }
  .notification-close {
    width: 28px; height: 28px; border: none; background: rgba(255,255,255,0.2); font-size: 18px; color: #000;
    cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    margin-left: 8px; backdrop-filter: blur(10px);
  }
  .notification-close:hover { background: rgba(255,255,255,0.3); }
}



/* PORTFOLIO */
.portfolio-grid {
  width: min(1400px, 95vw); margin: 83px auto 120px; /* ← ESPACE GROS pour contact */
  position: relative; height: clamp(540px, 60vh, 600px);
  --winW: clamp(220px, 18vw, 200px); --winH: clamp(190px, 25vw, 260px);
  --x1: clamp(-320px, -32vw, -420px); --x2: clamp(-140px, -14vw, -60px); --x3: clamp(-40px, 24vw, 40px);
  --x4: clamp(140px, 14vw, 260px); --x5: clamp(320px, 32vw, 420px);
  --y1: clamp(20px, 15vh, 60px); --y2: clamp(-20px, -8vh, 40px); --y3: clamp(120px, 25vh, 180px);
  --y4: clamp(0px, -5vh, 30px); --y5: clamp(80px, 18vh, 140px);
}

.finder-window {
  position: absolute; left: 50%; top: 0%; width: var(--winW); border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid rgba(0,0,0,0.18); box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.window-1 { transform: translateX(calc(-50% + var(--x1))) translateY(var(--y1)); z-index: 1; }
.window-2 { transform: translateX(calc(-50% + var(--x2))) translateY(var(--y2)); z-index: 2; }
.window-3 { transform: translateX(calc(-50% + var(--x3))) translateY(var(--y3)); z-index: 3; }
.window-4 { transform: translateX(calc(-50% + var(--x4))) translateY(var(--y4)); z-index: 4; }
.window-5 { transform: translateX(calc(-50% + var(--x5))) translateY(var(--y5)); z-index: 5; }

.finder-window:hover { z-index: 25 !important; box-shadow: 0 35px 70px rgba(0,0,0,0.4), 0 1px 10px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.6); }

.filename {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 11px;
  color: #666; text-align: center; margin-bottom: 6px; letter-spacing: 0.3px; text-transform: uppercase;
}

.finder-topbar { background: #e6e6e6; height: 36px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid rgba(0,0,0,0.12); gap: 10px; }
.window-controls { display: flex; gap: 6px; }
.traffic-light { width: 12px; height: 12px; border-radius: 50%; }
.traffic-light.close { background: #ff5f57; }
.traffic-light.min { background: #ffbd2e; }
.traffic-light.max { background: #28ca42; }
.finder-top-title { font-size: 13px; font-weight: 700; color: #444; }

.item-image {
  width: 100%; aspect-ratio: 9 / 16; background-color: #f3f3f3; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.item-image img { width: 85%; height: 100%; object-fit: contain; display: block; }

.portfolio-folder {
  pointer-events: auto !important;
  z-index: 999 !important;
  cursor: pointer !important;
  position: absolute !important;
  left: 84% !important; /* À droite du portfolio */
  top: 23px !important;
  width: 120px !important;
  height: 120px !important;
}

.cv-folder {
  pointer-events: auto !important;
  z-index: 999 !important;
  cursor: pointer !important;
  position: absolute !important;
  left: 84% !important; /* À droite du portfolio */
  top: -82px !important;
  width: 120px !important;
  height: 120px !important;
}

.portfolio-folder:hover,
.cv-folder:hover {
  transform: scale(1.05) !important;
}

/* Mobile : centrés verticalement */
@media (max-width: 768px) {
/* MOBILE : CÔTE À CÔTE CENTRE */
/* MOBILE : GAUCHE/DROITE - ANTI-SUPERPOSITION */
@media (max-width: 768px) {
  .portfolio-folders {
    position: absolute !important;
    left: 50% !important;
    top: -32px !important;
    display: flex !important;
    justify-content: space-between !important; /* gauche/droite */
    align-items: center !important; /* alignés verticalement */
    gap: 0 !important; /* pas d'espace */
    transform: translateX(-50%) !important;
    width: 260px !important; /* largeur totale exacte */
  }
  
  .portfolio-folder, 
  .cv-folder {
    position: static !important; /* ← CLÉ : annule absolute */
    width: 110px !important;
    height: 110px !important;
    flex-shrink: 0 !important;
  }
  
  .portfolio-grid {
    padding-top: 170px !important;
  }
}



}
/* MOBILE PORTFOLIO : stack vertical + notification */
@media (max-width: 700px) {
  .portfolio-grid {
    height: auto; display: grid; grid-template-columns: 1fr; gap: 20px; padding: 0 10px; margin-bottom: 150px; /* ← gros espace contact */
  }
  .finder-window {
    position: relative !important; left: auto !important; top: auto !important; width: 100%; max-width: 350px; margin: 0 auto; transform: none !important;
  }
  
  .portfolio-grid { padding-top: 80px; }
  .finder-window:hover { transform: none !important; }
}

/* CONTACT CARD */
.download-section { display: flex; justify-content: center; margin: 0 auto 100px; /* ← espace bas */ }
.contact-card {
  max-width: 100%; width: clamp(420px, 87vw, 800px); height: auto; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.download-link:hover .contact-card { transform: translateY(-4px); }

/* DOCK */
.mac-dock {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 8px 14px;
  background: rgba(255,255,255,0.78); border-radius: 20px; box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.7);
  backdrop-filter: blur(20px); display: flex; gap: 14px; z-index: 1500;
}
.dock-icon {
  width: 42px; height: 42px; border-radius: 12px; background-size: cover; background-position: center; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dock-icon:hover { transform: translateY(-8px) scale(1.08); box-shadow: 0 12px 25px rgba(0,0,0,0.35); }
.dock-mail { background-image: url("images/dock-mail.png"); }
.dock-instagram { background-image: url("images/dock-instagram.png"); }
.dock-messages { background-image: url("images/dock-messages.png"); }
.dock-spotify { background-image: url("images/dock-spotify.png"); }

@media (max-width: 700px) {
  .mac-dock { bottom: 8px; padding: 6px 10px; gap: 10px; }
  .dock-icon { width: 36px; height: 36px; border-radius: 10px; }
}

.hotspot {
  position: absolute;
  cursor: pointer;
   /* debug */
   /* léger rouge transparent pour mieux voir */
}

/* MODAL OVERLAY */
/* MODAL SANS FOND NOIR */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  /* background: rgba(0,0,0,0.9); ← SUPPRIMÉ */
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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


.modal-content {
  max-width: 42vw;
  max-height: 95vh;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: rgba(255,255,255,0.95);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.site-footer {
  text-align: center;
  font-size: 10px;
  color: #333;
  opacity: 0.8;
  margin: 0 auto 89px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Mobile */
@media (max-width: 700px) {
  .modal-content {
    max-width: 98vw;
    max-height: 98vh;
    border-radius: 8px;
  }


}
