
/* === PAGES ANNEXES === */
#about-me-hero, #skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}
.about-me-container, .skills-bloc {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 25px 0;
    gap: 25px;
}

.about-me-container .img-shape {
    float: left;
    width: 250px;              /* ajustable */
    height: 250px;
    margin: 0 25px 15px 0;
    border-radius: 50%;       /* courbes + harmonieuses */
    shape-outside:  circle(50%);
    /* inset(10px round 100px); arrondi du flux du texte */
    object-fit: cover;
    border: 2px solid var(--cyan);
    box-shadow:
    0 0 6px var(--cyan-glow),
    0 0 16px var(--cyan-glow);
    filter: brightness(0.5);
    transition : filter 0.5s ease;
    will-change: filter;
}
    .about-me-container .img-shape:hover {
        filter: brightness(0.75);
        cursor: pointer;
    }

 .about-me-bloc p strong {
    color: var(--violet);
 }
 .about-me-bloc p .kryptonis {
    color: var(--cyan);
    font-weight: 700;
 }

@media screen and (max-width: 600px) {
    .about-me-bloc {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-me-container .img-shape {
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 20px 0;
        shape-outside: none;
        display: block;
        border-radius: 10px;
        /*box-shadow:0 4px 20px 10px rgba(0,0,0,.6);*/
        /*border: 5px solid var(--obsidian-plum);*/
        filter: brightness(0.75);
    }
    .about-me-container .img-shape:hover {
        filter: brightness(0.75);
        cursor: none;
    }

    .about-me-bloc > p {
        margin-top: 25px;
    }
}


/* === Mansory === */

/* container */
#portfolio {
    display:flex;
    flex-direction: column;
    justify-content:flex-start;
    align-items: center;
    width: 100vw;
    padding:40px 20px;
}
#portfolio h3 {
    margin: 25px 0;
    color: var(--muted);
}
.portfolio-content {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.portfolio-content h4 {
    color: var(--violet);
    margin-bottom: 10px;
}
.portfolio-content p {
  max-width: 1000px;
  text-align: center;
  margin-bottom: 25px;
}

.masonry {
  width: min(1000px, 100%);
  column-gap: 18px;   /* default 3 colonnes desktop */
  column-count: 2;   /* évite que les liens soient éclatés */
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  column-break-inside: avoid;
}
/*.masonry a {
  pointer-events: none;
}*/

/* item */
.masonry-item {
  display: inline-block; /* IMPORTANT pour column layout */
  width: 100%;
  margin: 0 0 18px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}
.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .35s ease, box-shadow .35s ease;
  border-radius: 6px;
}
.masonry-item:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

/* responsive : 2 colonnes / 1 colonne */
@media (max-width: 980px) {
   .masonry {
    column-count: 2;
  }
  }
@media (max-width: 640px) {
  .masonry { column-count: 1;
  }
}

/* ================= Lightbox CSS-only (:target) ================= */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 2000;
  gap: 20px;
  background: rgba(6,6,8,0.0);       /* hidden by default */
  backdrop-filter: none;
}
.lightbox-content {
    position: relative;   /* 🔥 Le parent de référence */
    display: inline-block; /* pour que la croix colle à l’image */
}
.lightbox.open {
  display: flex;
  background: rgba(6,6,8,0.6);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  display: block;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox .lightbox__close {
  position: absolute;
  top: 10px;      /* décalé au-dessus de l’image */
  right: 10px;    /* collé au bord */
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--black-alt);
  text-decoration: none;
  font-size: 0.5rem;
  font-weight: 800;
  /*background: rgba(255,255,255,0.03);*/
  background: var(--cyan);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.lightbox-notarget {
  display: block;
}

@media screen and (width <= 760px) {
    .masonry {
    column-count: 1;
  }
   .masonry-item {
    pointer-events: none;
  }
  
  .lightbox-notarget {display: none;}
}


/* === DEMOS WEBDESIGN === */
#web-demos {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 25px;
}

.web-demos-grid {
  max-width: 1200px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 3fr));
  gap: 30px;
}
@media screen and (width <= 1150px) {
    .web-demos-grid {
        max-width: 800px;
        grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    }
}
@media screen and (width <= 650px) {
    .web-demos-grid {
        max-width: 650px;
        grid-template-columns: 1fr;
    }
}

.demo-web-card {
  position: relative;
  width: 350px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}
.demo-web-card img {
  width: 100%;
  display: block;
}
.demo-web-card-infos {
  position: relative;
  display: block;
  padding: 16px;
}
.demo-web-card-infos h4 {
  color: var(--cyan);
}

.demo-tags {
  font-size: .85rem;
  color: var(--muted);
}

.demo-web-card-infos .cta {
  width: 100px;
  height: 70px;
  position: absolute;
  top: -35px;
  right: 10px;
  font-size: 0.7em;
  padding: 5px;
}

.demos-web-card-hoverlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: flex-end; /* contenu en bas */
  padding: 20px;
  background: rgba(18, 15, 20, 0.75);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);

  border-radius: 15px;
  z-index: 40;

  transform: translateY(100%);
  opacity: 0;

  transition:
    transform .6s ease,
    opacity .4s ease;
}

/* Overlay stable */
.demo-web-card:hover .demos-web-card-hoverlay,
.demo-web-card:focus-within .demos-web-card-hoverlay {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.hoverlay-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}
.hoverlay-content .details {
  font-size: 0.7em;
  color: var(--white);
  text-align: left;
  margin-bottom: 10px;
}
.hoverlay-content .details strong {
  color: var(--cyan);
}

.btn-demo {
  align-self: flex-end;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--violet);
  color: var(--white);
  font-size: 0.8em;
  font-weight: 600;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}

.btn-demo:hover {
  background: var(--cyan);
  color: var(--black-alt);
}

/* --- RESPONSVE --- */
/* Desktop par défaut */
.web-demos--mobile {
  display: none;
}

/* Mobile */
@media (max-width: 650px) {
  .web-demos--desktop {
    display: none;
  }

  .web-demos--mobile {
    display: block;
  }
}

.web-demos--mobile .demo-web-card {
  margin: 25px auto;
  width: 350px;
  cursor: none;
}
.web-demos--mobile .demo-web-card span {
  color: var(--light-gray);
}

.demo-web-mob-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-web-mob-content .details {
  font-size: 0.8em;
  text-align: left;
  margin: 20px 0;
}
.demo-web-mob-content .details strong {
  color: var(--cyan);
}
.demo-web-mob-content a {
  align-self: flex-end;
}

.disclaimer {
  text-align: center;
  font-size: 0.6em;
  color: var(--violet);
}
