/* ===============================
   BASE
   =============================== */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f4f4f4;
    font-family: 'Work Sans', sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    padding-top: 185px;
}

a {
    text-decoration: none;
    color: inherit;
}

.experience {
    margin: 40px 0;
}

.experience h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.experience ul {
    list-style: none; /* enlève les puces si tu veux */
    padding-left: 0;
}

.experience li {
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.tooltip {
    position: absolute;
    background: #404040;
    color: white;
    padding: 6px 10px;
    font-size: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.link-about {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity ease 0.2s;
}

.link-about:hover {
  opacity: 0.7;
}

.year {
    color: #333;
    font-weight: 600;
}

/* ===============================
   HEADER
   =============================== */

.box {
    width: 70%;
    margin: 0 auto;
}

.header-titre h1 {
    margin: 15px 0 0 0;
    font-size: 30px;
    transition: opacity ease 0.2s;
}

.header-titre h1 a:hover {
    opacity: 0.6;
}

.header-titre h3 {
    margin: 10px 0 15px 0;
    font-size: 15px;
    font-weight: normal;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #e5e5e5;
    z-index: 1000;
    opacity: 0.85;
}

/* layout interne */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* bloc droit */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 35px;
}

/* lien Short bio */
.short-bio-link {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    margin-left: 30px;
    margin-top: -14px;
    text-align:right;
}

.short-bio-link:hover {
    opacity: 0.6;
}

/* icônes */
.header-icons {
    display: flex;
    gap: 15px;
}

.header-icons img {
    width: 24px;
    opacity: 0.8;
}

.header-icons img:hover {
    opacity: 0.6;
}

.icon-link img {
    width: 24px;
    opacity: 0.8;
}

.icon-link img:hover {
    opacity: 0.6;
}

/* ===============================
   LAYOUT PROJET
   =============================== */

.container2 {
    width: 70%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.colonne {
    display: flex;
    flex-direction: column;
}

.colonne img.portrait {
    width: 100%;       /* réduit l’image à 80% de la largeur de sa colonne */
    height: auto; /* garde le ratio original */
    margin-right: auto;
    margin-left: auto;
    padding-top: 25px;
}

.colonne2 {
    display: flex;
    flex-direction: column;
    text-align: right;
}

/* Texte */

.container2 p {
    margin: 0 0 35px 0;
    text-align: justify;
}

/* Vidéo */

video {
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2);
}

.project-navigation {
    position: fixed;
    bottom: 50px;
    right: calc((100% - 70%) / 2);
    display: flex;
    gap: 10px;
}

.project-navigation a {
    font-size: 25px;
    text-decoration: none;
    font-weight: 1000;
    color: black; /* adapte à ton gris actuel */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-navigation a:hover {
    transform: translateY(-3px);
    opacity: 0.5;
}

/* ===============================
   IMAGES DANS COLONNE (image 1)
   =============================== */

.container2 figure {
    margin: 0;
}

.container2 figure img {
    width: 100%;
    margin: 0;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.container2 figure figcaption {
    margin-top: 10px;
    text-align: right;
    font-size: 14px;
}

/* ===============================
   GALERIE FULL WIDTH (images 2+)
   =============================== */

#galerie-fullwidth {
    width: 70%;
    margin: 60px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

#galerie-fullwidth figure {
    margin: 0;
}

#galerie-fullwidth img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

#galerie-fullwidth figcaption {
    margin-top: 10px;
    text-align: right;
    font-size: 14px;
}

/* ===============================
   GALERIE HOMEPAGE (INCHANGÉE)
   =============================== */

.gallery {
    max-width: 70%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.gallery img {
    width: 100%;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery img:hover {
    opacity: 0.7;
    transform: scale(1.03);
}

.gallery .large {
    grid-column: span 1;
}

.gallery figcaption {
    text-align: right;
    margin: 10px 0 30px 0;
}

/* ===============================
   FOOTER
   =============================== */

footer {
    margin: 40px auto 20px auto;
    color: #333;
}

footer p{
    padding-top: 40px;
    padding-bottom: 20px;
    font-size: 15px;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (min-width: 1024px) {
    
    .colonne img.portrait{
        margin-left:0;
        margin-right: 0;
        padding-top: 0;
        width: 80%;       /* réduit l’image à 80% de la largeur de sa colonne */
        max-width: 425px; /* optionnel : limite maximale pour ne pas qu’elle devienne trop grande */
        height: auto; /* garde le ratio original */
    }

    .header-titre h1 {
        font-size: 38px;
        margin: 30px 0 0 0;
    }

    .header-titre h3 {
        font-size: 18px;
    }

    .container2 {
        flex-direction: row-reverse;
        gap: 30px;
    }

    .colonne {
        width: 60%;
    }

    .colonne2 {
        width: 40%;
        padding-left: 50px; /* offset texte sans casser l’alignement */
    }

    .container2 p {
        text-align: justify;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .gallery .large {
        grid-column: span 2;
    }

    .short-bio-link {
    font-size: 18px;
        margin-top: 0;
    }
    
    .project-navigation a {
    font-size: 30px;
    }
    
    .project-navigation {
    gap: 20px;
    }
    
}

@media (max-width: 900px) {
    #galerie-fullwidth {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1201px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
        gap: 50px;
    }
}