/* ========================= */
/* TITRES */
/* ========================= */

h1, h2 {
    font-family: "Georgia", serif;
    color: #2b2b2b;
}

/* ========================= */
/* NAVIGATION */
/* ========================= */

nav ul {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav a:hover {
    color: #666;
}

/* ========================= */
/* SECTIONS */
/* ========================= */

section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ========================= */
/* APERCU (INDEX) */
/* ========================= */

#apercu img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.lien-galerie {
    margin-top: 20px;
    text-align: center;
}

.btn-galerie {
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.btn-galerie:hover {
    background-color: #555;
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* ========================= */
/* GALERIE (PAGE GALERIE) */
/* ========================= */

body {
    background: #000;
    color: #fff;
    margin: 0;
}

.galerie {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInPage 0.8s ease forwards;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.galerie h1 {
    text-align: center;
    color: #c7a17a;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* Bouton retour */

.retour {
    text-align: center;
    margin-bottom: 30px;
}

.btn-retour {
    display: inline-block;
    padding: 10px 20px;
    background: #c7a17a;
    color: #000;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-retour:hover {
    background: #e8c9a0;
}

/* ========================= */
/* CATEGORIES */
/* ========================= */

.categories {
    text-align: center;
    margin-bottom: 30px;
}

.categories button {
    background: #000;
    border: 2px solid #c7a17a;
    color: #c7a17a;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: 0.3s;
}

.categories button:hover,
.categories button.active {
    background: #c7a17a;
    color: #000;
}

.count {
    color: #e8c9a0;
    margin-left: 4px;
}

.categories a.avant-apres-link {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    border: 2px solid #c7a17a;
    color: #c7a17a;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
    transition: 0.3s;
}

/* Hover IDENTIQUE aux autres boutons */
.categories a.avant-apres-link:hover,
.categories a.avant-apres-link.active {
    background: #c7a17a !important;
    color: #000 !important;
}



.categories .avant-apres-link:hover {
    background: #ddd;
}
/* ========================= */
/* GRILLE */
/* ========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    opacity: 0;
    animation: fadeInGrid 1s ease forwards;
}

@keyframes fadeInGrid {
    to {
        opacity: 1;
    }
}

.grid .item {
    cursor: pointer;
}

/* ========================= */
/* IMAGES CLASSIQUES + FADE-IN */
/* ========================= */

.grid img {
    width: 100%;
	display: block;
    border-radius: 10px;
    border: 2px solid #c7a17a;
    transition: 0.3s;
}

.grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(199,161,122,0.5);
}

.item img {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.item img.loaded {
    opacity: 1;
    transform: scale(1);
}
/* Page contact */
#contact-page {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #000;
    color: #fff;
}

#contact-page header {
    text-align: center;
    padding: 40px 20px;
}

#contact-page h1 {
    color: #c7a17a;
    letter-spacing: 2px;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-section label {
    font-weight: bold;
    color: #c7a17a;
}

.contact-section input,
.contact-section textarea {
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #c7a17a;
    background: #111;
    color: #fff;
    font-size: 1em;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: #e8c9a0;
}
/* ========================================================= */
/* PAGE PORTRAIT */
/* ========================================================= */

#portrait-page {
    position: relative;
    background: #000;
    color: #fff;
    overflow-x: hidden; /* ← important */
    min-height: 100vh;  /* ← la clé */
}


#portrait-page::before {
    content: "";
    position: absolute;   /* ← on revient à absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/images/portrait/portrait_fond.JPG");
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0.22;
    z-index: -1;
    pointer-events: none; /* ← on garde ça */
}

/* ========================================================= */
/* TITRE PAGE PORTRAIT */
/* ========================================================= */

#portrait-page h1 {
    text-align: center;
    color: #c7a17a;                 /* Doré harmonisé */
    font-family: "Georgia", serif;
    font-size: 2.4rem;
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 10px;

    /* Légère lueur pour contrer le fond flou */
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Ligne dorée décorative */
#portrait-page h1::after {
    content: "";
    display: block;
    width: 90px;                    /* Taille idéale */
    height: 2px;
    background: #c7a17a;
    margin: 12px auto 0 auto;
    border-radius: 2px;
    opacity: 0.9;
}





/* Layout desktop */
.portrait-layout {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

/* Photo */
.portrait-photo-wrapper {
    flex: 1;
    border: 2px solid #c7a17a;
    border-radius: 12px;
    overflow: hidden;
}

.portrait-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texte */
.portrait-texte {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========================================================= */
/* TEXTE + LETTRINE */
/* ========================================================= */

#portrait-page .portrait-texte p {
    font-size: 1.2rem;        /* un poil plus grand */
    line-height: 1.7;
    text-align: justify;      /* justification propre */
    text-justify: inter-word; /* améliore l'espacement */
}

/* Lettrine */
#portrait-page .portrait-texte p::first-letter {
    font-family: "Georgia", serif;
    font-size: 3.4rem;
    font-weight: normal;
    float: left;
    line-height: 0.9;
    padding-right: 10px;
    padding-top: 4px;
    color: #c7a17a;           /* doré harmonisé */
}


/* Boutons */
.portrait-boutons {
    text-align: center;
    margin: 40px 0;
}

.portrait-boutons a {
    margin: 0 10px;
}

/* ========================================================= */
/* VERSION MOBILE */
/* ========================================================= */

@media (max-width: 900px) {

    .portrait-layout {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
        text-align: center;
    }

    .portrait-photo-wrapper {
        width: 80%;
        max-width: 320px;
        margin: 0 auto;
        border-radius: 10px;
    }

    .portrait-photo {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .portrait-texte {
        font-size: 1rem;
        line-height: 1.55;
        padding: 0 10px;
    }

    .portrait-boutons a {
        display: block;
        margin: 12px auto;
        width: 80%;
        max-width: 300px;
    }

    #portrait-page::before {
        filter: blur(18px);
        opacity: 0.18;
    }
}

/* ========================================================= */
/* TITRE MOBILE */
/* ========================================================= */

@media (max-width: 900px) {

    #portrait-page h1 {
        font-size: 1.9rem;
        margin-top: 25px;
        margin-bottom: 8px;
    }

    #portrait-page h1::after {
        width: 70px;
        height: 2px;
    }
}

/* ========================================================= */
/* FIX TITRE PORTRAIT MOBILE (FINAL) */
/* ========================================================= */

@media (max-width: 1200px) {

    #portrait-page h1 {
        color: #c7a17a !important;
        text-align: center !important;
        font-size: 1.9rem !important;
        margin-top: 25px !important;
        margin-bottom: 8px !important;
        letter-spacing: 2px !important;
        text-shadow: 0 0 8px rgba(0,0,0,0.6) !important;
    }

    #portrait-page h1::after {
        width: 70px !important;
        height: 2px !important;
        background: #c7a17a !important;
        margin: 10px auto 0 auto !important;
    }
}

