@import './mainHeader.css';

.container{
    width: 100%;
    min-height: calc(100vh - 6em);
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, rgb(0 0 0), rgb(2, 0, 55));
}
.title-about {
    width: 100%;
    margin-top: 140px;
    padding: 15px;
    font-size: 50px;
    font-weight: bold;
    letter-spacing: 2px;
    color: rgb(217, 255, 251);
    text-shadow: 0 4px 1px gray;
}
.container .content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
}

.about-img{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    color: #fff;
}
.about-img img{
    width: 300px;
    height: 300px;
    object-fit: contain;
}
.identite{
    display: flex;
    flex-direction: column;
}
.title-identite{
    color: #fff;
}
.about-img span{
    color: rgb(143, 201, 8);
}
.detail-identite p{
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}
.detail-identite ul{
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
}
.detail-identite li{
    display: list-item;
    text-align: -webkit-match-parent;
    text-align: match-parent;
}
.button{
    display: flex;
    gap: 10px;
}
.button button{
    width: 90px;
    height: 30px;
    padding: 5px;
    color: rgb(143, 201, 8);
    font-size: 10px;
    background: none;
    border: 1px solid rgb(143, 201, 8);
    cursor: pointer;
    transition: 0.4s;
}
.button button:hover{
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
}

/* Règles spéciales sur les éléments Li */
li {
  list-style-type: disc;
}

li li {
  list-style-type: circle;
}


.about-details {
    margin-top: 10px;
    background-image: url(../img/technology-3435575_1920.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    padding: 15px;
}
.detail-colonne{
    display: flex;
    width: calc(100% - 20%);
    flex-direction: column;
    padding: 10px;
    gap: 15px;
    align-items: center;
    border-radius: 5px;
    color: #ffffff;
    margin: auto;
}


.title-about-detail,
.programming-skills-title,
.administration-skills-title,
.outils-skills-title,
.title-achievement-programming,
.title-achievement-administration{
    width: 100%;
    border-bottom: 1px solid;
    padding-bottom: 5px;
    text-align: center;
    color: rgb(11, 248, 205);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.aboutme{
    padding: 10px;
}
.training-list, .about-detail-list{
    display: flex;
    flex-direction: column;
    padding: 21px;
}
.training-list .training-item{
    display: flex;
}
.training-list{
    gap: 15px;
}

/* A vérifier pourquoi il fait sauter tout le CSS de la page About */

/* .training_list .training_item, *:first-child{
    width: 270px;
    flex: none;
} */

.training-list .training-item, .about-detail-list .about-detail-item >* {
    display: flex;
    flex-direction: column;
}

.training_list .training_item .dates,
.training_list .training_item .training_title{
    font-weight: 500;
}
.hobbies_list{
    margin-top: .4em;
    display: flex;
    flex-wrap: wrap;
}
.hobbies_list .hobbie{
    list-style: none;
    line-height: 1.5;
    display: inline-block;
}
li.hobbie:nth-child(odd) {
    width: 280px;
}
.hobbies_list .hobbie::before{
    content: "";
    width: .8em; 
    height: .8em; 
    background-color: rgb(200, 68, 161);
    display: inline-block;
    margin-right: .4em;
}

@media (max-width: 500px){
    .about-img{
        display: flex;
        flex-direction: column;
    }
}

/* Test changement page à propos */ 

.accordion {
  background: #f1f1f1;
  cursor: pointer;
  padding: 15px;
  margin: 8px 0;
  font-size: 18px;
  font-weight: bold;
  border: none;
  text-align: left;
  outline: none;
  width: 100%;
  transition: background 0.5s ease;
  border-radius: 5px;
}

.accordion:hover {
  background-color: #ddd;
}

.accordion.active {
  background-color: #007BFF;
  color: white;
}

.panel {
  background: rgb(18 24 54);
  border-left: 3px solid #007BFF;
  border-radius: 0 0 5px 5px;
  height: 0;
  /* Animation de déroulement */
  transition: height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 15px;
  overflow: hidden;
}
.accordion.active + .panel {
  padding: 15px;
}


/* ------ LIGHTBOX ------ */

/*
.thumb{
  max-width: 100%;
  cursor: zoom-in;
  border-radius: 10px;
}

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.is-open{ display: block; }

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

/* “dimension définie” : largeur/hauteur max */ /*
.lightbox__content{
  position: relative;
  margin: 6vh auto;
  width: min(1000px, 92vw);     /* largeur max */ /*
  height: min(700px, 84vh);     /* hauteur max */ /*
  background: #111;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
}

.lightbox__content img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
*/

/* ------ LIGHTBOX AMÉLIORÉE ------ */

.media-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* même taille pour images et pdf */
.thumb{
  width: 100%;
  height: 180px;              /* ajuste la hauteur pour “midi bloc” */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  object-fit: cover;
}

/* ✅ style "carte PDF" */
.thumb-pdf{
  background: #f2f2f2;
  display: grid;
  place-items: center;
  text-decoration: none;
  position: relative;
}

.thumb-pdf .pdf-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d32f2f;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.thumb-pdf .pdf-title{
  color: #111;
  font-weight: 700;
}

/* overlay dimensions (tu as déjà ça, je le rappelle) */
.lightbox{ position: fixed; inset:0; display:none; z-index:9999; }
.lightbox.is-open{ display:block; }
.lightbox__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.75); }

.lightbox__content{
  position: relative;
  margin: 6vh auto;
  width: min(1000px, 92vw);
  height: min(700px, 84vh);
  background: #111;
  border-radius: 14px;
  padding: 12px;
}

.lightbox__content img,
.lightbox__content iframe{
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 2;
}
