/* ==================== */
/* 1. CONFIGURATION TYPO & BASE */
/* ==================== */

/* Déclaration des polices */
@font-face {
    font-family: 'Satoshi-Black';
    src:url('fonts/Satoshi-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi-Bold';
    src: url('fonts/Satoshi-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi-Medium';
    src: url('fonts/Satoshi-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
  }
body {
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    color: #f2f2f2;
    font-family: 'Satoshi-Medium', sans-serif; /* Police par défaut */
    overflow-x: hidden;
}

/* ==================== */
/* 2. NAV & HEADER (IDENTIQUE INDEX) */
/* ==================== */
.hamburger{
    display: none;
}
#header-photo {
    width: 100%;
    /* On retire le flex column centré qui cassait la nav */
    display: block; 
    padding: 0;
    margin-bottom: 50px;
    font-family: 'Satoshi-Black';
    letter-spacing: 2px;
}

/* Barre de navigation */
nav{
    position: fixed;
    top: 2vh;
    z-index: 10;
}

#headerproj{
    height: auto;
    padding: 20px ;
}

ul{
    margin: 0;
    list-style:none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 250px;
    font-size: 20px;
}
li a{
    text-decoration: none;
    color: #f2f2f2;
    text-shadow: 1px 1px 7px #1f1f1f;

}

li a:hover{
    color: #DA315A;
}

/* Titre de la page (Hero) */
.photo-hero {
    text-align: center;
    margin-top: 80px; /* Espace entre le menu et le titre */
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-out;
}

.titre-photo {
    font-family: 'Satoshi-Black', sans-serif; /* Le gros titre */
    font-size: 6em; /* Taille imposante */
    margin: 0;
    color: #DA315A;
    letter-spacing: -3px;
    line-height: 1;
    text-transform: uppercase;
}

.sous-titre-photo {
    font-family: 'Satoshi-Medium', sans-serif;
    font-size: 1.2em;
    margin-top: 15px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #888;
}

/* ==================== */
/* 3. GALERIE (VERSION MASONRY JS) */
/* ==================== */

.gallery-container {
    max-width: 100%;
    margin: 0 auto;
    /* On retire display: grid et column-count */
}

/* Le bloc de chaque photo */
.photo-item {
    width: 25%; /* 4 colonnes (environ 25% moins les marges) */
    float: left; /* Nécessaire si le JS ne charge pas, mais le JS va le gérer */
    overflow: hidden;
    position: relative;
    /* Plus d'aspect-ratio ici, on garde la taille naturelle */
}

.photo-item img {
    width: 100%;
    height: auto; /* Important : garde les proportions réelles */
    display: block;
    transition: transform 0.6s ease;
}

/* Le reste (Overlay, Hover) ne change pas, garde ton code actuel pour ça */
.photo-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}
.overlay {
    /* ... ton code overlay existant ... */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    line-height: normal;
}
.photo-item:hover .overlay { opacity: 1; }

.overlay h3 {
    margin: 0;
    font-family: 'Satoshi-Bold', sans-serif;
    font-size: 1.5em;
    color: #f2f2f2;
    transform: translateY(20px);
    transition: 0.3s;
}

.overlay p {
    margin: 5px 0 0 0;
    font-family: 'Satoshi-Medium', sans-serif;
    color: #DA315A;
    transform: translateY(20px);
    transition: 0.3s 0.1s;
}

.photo-item:hover h3, .photo-item:hover p {
    transform: translateY(0);
}

/* ==================== */
/* 4. RESPONSIVE (POUR MASONRY JS) */
/* ==================== */

/* Tablette */
@media screen and (max-width: 1100px) {
    .photo-item {
        width: 33%; /* 3 colonnes */
    }
}

/* Tablette petite / Gros mobile */
@media screen and (max-width: 768px) {
    .photo-item {
        width: 50%; /* 2 colonnes */
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .photo-item {
        width: 100%; /* 1 colonne */
        float: none;
    }
}

/* Réseaux sociaux fixes */
.reseaux-sociaux {
    position: fixed;  /* INDISPENSABLE : permet de fixer l'élément par rapport à l'écran */
    bottom: 20px;     /* Espace depuis le bas de l'écran */
    left: 20px;       /* Espace depuis la gauche de l'écran */
    z-index: 1000;    /* Pour s'assurer qu'ils sont au-dessus du reste */
    display: flex;    
    flex-direction: column; /* Pour les mettre l'un sous l'autre */
    gap: 15px;        /* Espace entre les deux logos */
}
.social-link {
    width: 40px; height: 40px;
    background: rgba(13,13,13,0.8);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.social-link:hover { background: #DA315A; transform: scale(1.1); }
.social-link img { width: 20px; }





@media screen and (max-width: 576px) {
    .hamburger {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #f2f2f2;
        margin: 5px 0;
        transition: 0.3s;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        transition: 0.3s;
        z-index: 999;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .vertinav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .vertinav li {
        margin: 20px 0;
    }
    
    .vertinav a {
        color: #f2f2f2;
        text-decoration: none;
        font-size: 1.5em;
        transition: 0.3s;
    }
    
    .vertinav a:hover {
        color: #DA315A;
    }
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}


/* ==================== */
/* 5. LIGHTBOX (POP-UP) */
/* ==================== */

.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000; /* Au-dessus de tout (même du menu) */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(13, 13, 13, 0.95); /* Fond sombre quasi opaque */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px; /* Limite la largeur sur grand écran */
    text-align: center;
    animation: zoomIn 0.3s;
}

.lightbox-content img {
    width: auto;
    max-width: 100%;
    max-height: 80vh; /* L'image ne dépassera jamais 80% de la hauteur de l'écran */
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-caption {
    margin-top: 15px;
    color: #f2f2f2;
    text-align: center;
}

.lightbox-caption h3 {
    font-family: 'Satoshi-Bold';
    font-size: 1.5em;
    margin: 10px 0 5px 0;
    color: #DA315A; /* Ta couleur rose */
}

.lightbox-caption p {
    font-family: 'Satoshi-Medium';
    font-size: 1.1em;
    color: #ccc;
}

/* Bouton Fermer (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    font-family: sans-serif;
    z-index: 2001;
}

.close-btn:hover,
.close-btn:focus {
    color: #DA315A;
    text-decoration: none;
    cursor: pointer;
}

/* Animation d'ouverture */
@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0} 
    to {transform:scale(1); opacity:1}
}

/* Responsive Mobile */
@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 95%;
    }
    .close-btn {
        top: 10px;
        right: 20px;
    }
}


/* ==================== */
/* 7. FORMULAIRE & FOOTER (IDENTIQUE INDEX) */
/* ==================== */

/* Formulaire */
#formulaire {
    max-width: 800px;
    margin: 80px auto 50px auto;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#formulaire p {
    color: #DA315A;
    font-family: 'Satoshi-Medium';
    margin-bottom: 15px;
}

#formcontact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#nomprenom {
    display: flex;
    gap: 20px;
}

#nomprenom div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.champ {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-family: 'Satoshi-Medium';
    color: #f2f2f2;
    font-size: 1.1em;
}

span { color: #DA315A; }

input[type="text"],
input[type="email"],
textarea {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #0d0d0d;
    color: #f2f2f2;
    font-family: 'Satoshi-Medium';
    font-size: 1em;
    width: 100%; /* Important pour remplir le bloc */
    box-sizing: border-box;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.demande {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

input[type="radio"] {
    accent-color: #DA315A;
    transform: scale(1.1);
}

#bouton {
    background-color: #DA315A;
    color: #f2f2f2;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Satoshi-Bold';
    font-size: 1.1em;
    transition: background-color 0.3s;
    align-self: center; /* Centre le bouton */
    margin-top: 10px;
}

#bouton:hover {
    background-color: #c02a4e;
}

/* Messages PHP (Succès / Erreur) */
.ok { color: #2ecc71; text-align: center; margin-top: 15px; }
.pasok { color: #e74c3c; text-align: center; margin-top: 15px; }

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.contact-info {
    font-family: 'Satoshi-Medium';
    color: #f2f2f2;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-info a {
    color: #f2f2f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #DA315A;
}

/* Responsive Formulaire */
@media screen and (max-width: 768px) {
    #formulaire {
        margin: 40px 15px;
        padding: 20px;
    }
    #nomprenom {
        flex-direction: column;
        gap: 15px;
    }
    #bouton {
        width: 100%;
    }
}

.sous-titre-photo a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #e4405f;            /* teinte Instagram */
    background: #fff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  }
  
  .sous-titre-photo a:hover {
    color: #c32aa3;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  }
  
  .sous-titre-photo a:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  
  /* Optionnel : petite pastille façon gradient Instagram */
  .sous-titre-photo .insta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
  }