/* =========================
   STYLE GLOBAL
========================= */

:root {
    --rose: #d63384;
    --rose-clair: #f062a8;
    --rose-fonce: #a9155d;
    --noir: #141414;
    --noir-clair: #202020;
    --gris-fond: #f6f6f8;
    --gris-texte: #555;
    --blanc: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    color: #111;
}

main {
    overflow: hidden;
}

section {
    margin-bottom: 70px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    margin: 0 0 35px;
    color: #111;
}

h2 {
    margin: 0;
}

/* =========================
   PRÉSENTATION
========================= */

.presentation {
    width: 90%;
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
}

.presentation h1 {
    font-size: 42px;
    margin-bottom: 25px;
    color: var(--noir);
}

.presentation h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 5px;
    background-color: var(--rose);
    border-radius: 50px;
    margin: 18px auto 0;
}

.paragraphe {
    background-color: white;
    padding: 35px;
    border-radius: 24px;
    line-height: 1.8;
    font-size: 17px;
    color: #333;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* =========================
   ÉDITION ACTUELLE
========================= */

.titre-edition {
    font-size: 40px;
    margin: 50px 0 35px;
    color: var(--noir);
}

.edition_en_cours {
    width: 92%;
    margin: auto;
    background: linear-gradient(135deg, var(--rose), var(--rose-clair));
    color: white;
    display: flex;
    align-items: center;
    gap: 65px;
    padding: 55px 6%;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(214, 51, 132, 0.25);
}

.affiche_edition {
    flex: 0 0 520px;
    max-width: 520px;
}

.affiche_edition img {
    width: 100%;
    display: block;
    border-radius: 22px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
    transition: 0.3s ease;
}

.affiche_edition img:hover {
    transform: scale(1.03);
}

.description_edition {
    flex: 1;
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
}

/* =========================
   ARTISTES ET ANIMATIONS
========================= */

.artistes_presents,
.animations {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.artistes_presents h1,
.animations h1 {
    font-size: 38px;
}

.artistes_presents h1::after,
.animations h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--rose);
    border-radius: 50px;
    margin: 16px auto 0;
}

.carte {
    background: linear-gradient(135deg, var(--noir), var(--noir-clair));
    color: white;
    display: grid;
    grid-template-columns: 210px 1fr 270px;
    gap: 28px;
    padding: 28px;
    margin-bottom: 35px;
    border-radius: 24px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
    transition: 0.3s ease;
}

.carte:hover {
    transform: translateY(-5px);
}

.profil img {
    width: 210px;
    height: 240px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nom_artiste {
    color: var(--rose-clair);
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 8px;
}

.specialite_artiste,
.ville_artiste {
    margin: 5px 0;
    color: #e6e6e6;
    font-size: 14px;
    font-weight: bold;
}

.details p,
.description-artiste p {
    color: #eeeeee;
    font-size: 15px;
    line-height: 1.7;
}

.details a,
.lien-artiste a {
    display: inline-block;
    width: fit-content;
    background-color: white;
    color: var(--noir);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s ease;
}

.details a:hover,
.lien-artiste a:hover {
    background-color: var(--rose);
    color: white;
}

.galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: center;
}

.galerie img {
    width: 125px;
    height: 175px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid var(--rose);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.galerie img:hover {
    transform: scale(1.06);
}

/* =========================
   ANIMATIONS EN ROSE
========================= */

.animations .carte {
    background: linear-gradient(135deg, var(--rose), var(--rose-clair));
    box-shadow: 0 18px 38px rgba(214, 51, 132, 0.32);
}

.animations .profil img {
    border: 3px solid white;
}

.animations .details p {
    color: white;
}

.animations .details a {
    background-color: white;
    color: var(--rose);
}

.animations .details a:hover {
    background-color: var(--noir);
    color: white;
}

.animations .galerie img {
    border: 3px solid white;
}

/* =========================
   BOUTONS
========================= */

.bouton-decouvrir {
    text-align: center;
    margin: 35px 0 70px;
}

.bouton-decouvrir a {
    display: inline-block;
    background-color: var(--rose);
    color: white;
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 10px 22px rgba(214, 51, 132, 0.25);
    transition: 0.3s ease;
}

.bouton-decouvrir a:hover {
    background-color: var(--rose-fonce);
    transform: translateY(-3px);
}

.animations + .bouton-decouvrir a {
    background-color: var(--noir);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.animations + .bouton-decouvrir a:hover {
    background-color: var(--rose);
}

/* =========================
   COMMENTAIRES BLANC / NOIR / ROSE
========================= */

.commentaires {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    color: #111;
}

/* Titre */
.commentaires h1 {
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #111;
}

.commentaires h1::before,
.commentaires h1::after {
    content: "💬";
    font-size: 22px;
    margin: 0 12px;
}

/* Sous-titre */
.commentaires > h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    color: #555;
    margin-bottom: 25px;
}

/* Formulaire blanc */
.commentaires form {
    background-color: #ffffff;
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 35px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #d63384;
}

/* Espacement */
.commentaires form p {
    margin: 0 0 18px;
}

/* Labels */
.commentaires label {
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
}

/* Champs */
.commentaires input[type="text"],
.commentaires textarea {
    width: 100%;
    border: 2px solid #e1e5ee;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background-color: #fff;
    color: #111;
    outline: none;
    transition: 0.3s ease;
}

/* Focus */
.commentaires input[type="text"]:focus,
.commentaires textarea:focus {
    border-color: #d63384;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.15);
}

/* Zone commentaire */
.commentaires textarea {
    min-height: 115px;
    resize: vertical;
}

/* Bouton */
.commentaires input[type="submit"] {
    background-color: #d63384;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.commentaires input[type="submit"]:hover {
    background-color: #161616;
    color: white;
    transform: translateY(-2px);
}

/* =========================
   COMMENTAIRES PRÉCÉDENTS
========================= */

.commentaires_precedents {
    margin-top: 30px;
}

.commentaires_precedents h2 {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    margin-bottom: 20px;
}

/* Carte commentaire */


.commentaire:hover {
    transform: translateY(-3px);
}

/* Icône */
.commentaire::before {
    content: "“";
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background-color: #d63384;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
    padding-bottom: 8px;
}

/* Nom + date */

.commentaire {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #d63384;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contenu-commentaire {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.meta {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 900;
    color: #111;
}

.texte-commentaire {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* REPONSE */

.commentaire-reponse{
    background:#fff6fb;
    border-left:4px solid var(--rose);
    padding:15px;
    margin-top:12px;
    border-radius:10px;
}

.commentaire-reponse strong{
    color:var(--rose);
}

.commentaire-reponse p{
    margin:5px 0;
}

/* Responsive */
@media screen and (max-width: 700px) {
    .commentaires {
        width: 92%;
        margin: 40px auto;
    }

    .commentaires h1 {
        font-size: 28px;
    }

    .commentaires h1::before,
    .commentaires h1::after {
        font-size: 20px;
        margin: 0 6px;
    }

    .commentaires > h2 {
        font-size: 18px;
    }

    .commentaires form {
        padding: 22px;
        border-radius: 18px;
    }

    .commentaires input[type="submit"] {
        width: 100%;
    }

    .commentaire {
        padding: 16px;
        gap: 12px;
    }

    .commentaire::before {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 17px;
    }
}
/* =========================
   INSCRIPTION NOIR + ROSE
========================= */

.inscription {
    width: 92%;
    max-width: 1100px;
    margin: 60px auto;
    padding: 60px 30px;
    background: linear-gradient(135deg, #111111, #1f1f1f);
    border-radius: 30px;
    text-align: center;
    color: white;
    border: 2px solid rgba(214, 51, 132, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35),
                0 0 35px rgba(214, 51, 132, 0.25);
    position: relative;
    overflow: hidden;
}

.inscription::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background-color: rgba(214, 51, 132, 0.25);
    border-radius: 50%;
    top: -90px;
    right: -70px;
}

.inscription::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background-color: rgba(214, 51, 132, 0.18);
    border-radius: 50%;
    bottom: -70px;
    left: -50px;
}

.inscription h1,
.inscription h2,
.bouton-inscription {
    position: relative;
    z-index: 1;
}

.inscription h1 {
    color: white;
    font-size: 40px;
    margin-bottom: 18px;
}

.inscription h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 5px;
    background-color: #d63384;
    border-radius: 50px;
    margin: 18px auto 0;
}

.inscription h2 {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 35px;
    color: #f2f2f2;
}

.bouton-inscription {
    display: flex;
    justify-content: center;
}

.bouton-inscription a {
    display: inline-block;
    background-color: #d63384;
    color: white;
    text-decoration: none;
    padding: 16px 45px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(214, 51, 132, 0.35);
    transition: 0.3s ease;
}

.bouton-inscription a:hover {
    background-color: white;
    color: #d63384;
    transform: translateY(-3px);
}

/* Responsive */
@media screen and (max-width: 700px) {
    .inscription {
        padding: 42px 22px;
        border-radius: 24px;
    }

    .inscription h1 {
        font-size: 30px;
    }

    .inscription h2 {
        font-size: 17px;
    }

    .bouton-inscription a {
        font-size: 16px;
        padding: 13px 28px;
    }
}

/* =========================
   ÉDITIONS
========================= */

.editions,
.edition_precedentes {
    background: linear-gradient(135deg, var(--noir), var(--noir-clair));
    color: white;
    padding: 65px 20px;
    text-align: center;
}

.editions h1,
.edition_precedentes h1 {
    color: white;
    font-size: 38px;
    margin-bottom: 12px;
}

.editions h2,
.edition_precedentes h2 {
    font-size: 18px;
    font-weight: normal;
    color: #eeeeee;
    margin-bottom: 45px;
}

.grille_edition_precedentes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.item-edition_precedente {
    border-radius: 18px;
    overflow: hidden;
    background-color: #222;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    transition: 0.3s ease;
}

.item-edition_precedente:hover {
    transform: translateY(-6px);
}

.item-edition_precedente img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}

/* =========================
   RESPONSIVE
========================= */

@media screen and (max-width: 1000px) {
    .edition_en_cours {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .affiche_edition {
        flex: none;
        max-width: 520px;
    }

    .description_edition {
        text-align: left;
    }

    .carte {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .details {
        align-items: center;
    }

    .galerie {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .grille_edition_precedentes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 700px) {
    section {
        margin-bottom: 50px;
    }

    h1,
    .titre-edition,
    .presentation h1,
    .artistes_presents h1,
    .animations h1,
    .commentaires h1,
    .inscription h1,
    .editions h1 {
        font-size: 30px;
    }

    .presentation {
        margin: 40px auto;
    }

    .paragraphe {
        padding: 24px;
        font-size: 15px;
    }

    .edition_en_cours {
        width: 94%;
        padding: 32px 22px;
        border-radius: 22px;
    }

    .description_edition {
        font-size: 15px;
    }

    .carte {
        padding: 22px;
        border-radius: 20px;
    }

    .profil img {
        width: 210px;
        height: 210px;
    }

    .galerie img {
        width: 105px;
        height: 145px;
    }

    .commentaires form {
        padding: 24px;
    }

    .commentaire {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .inscription {
        padding: 42px 22px;
    }

    .inscription h2 {
        font-size: 17px;
    }

    .grille_edition_precedentes {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .item-edition_precedente img {
        height: 220px;
    }
}

@media screen and (max-width: 450px) {
    .profil img {
        width: 180px;
        height: 180px;
    }

    .galerie img {
        width: 95px;
        height: 130px;
    }

    .grille_edition_precedentes {
        grid-template-columns: 1fr;
    }

    .item-edition_precedente img {
        height: auto;
    }

    .bouton-decouvrir a,
    .bouton-inscription a {
        width: 100%;
        text-align: center;
    }
}


.btn-livret {
    display: inline-block;
    background-color: var(--rose);
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px 10px 18px;
    transition: 0.3s ease;
}

.btn-livret:hover {
    background-color: white;
    color: var(--rose);
    transform: translateY(-3px);
}

/* =========================
   MESSAGES FORMULAIRE
========================= */

.message-erreur {
    background-color: #fee4e2;
    color: #b42318;
    border: 1px solid #fecdca;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 800;
    margin: 0 0 22px;
}

/* =========================
   ACCESSIBILITÉ
========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn-livret:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 3px;
}

/* =========================
   SÉCURITÉ RESPONSIVE
========================= */

input,
textarea,
select,
img {
    max-width: 100%;
}

.texte-commentaire,
.description_edition,
.paragraphe,
.details {
    overflow-wrap: anywhere;
}

/* =========================
   RÉDUCTION DES ANIMATIONS
========================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* Espace stable sous le header pour artistes.php et animations.php */
.artistes_presents,
.animations {
    padding-top: 75px;
}

/* =========================
   LIGHTBOX IMAGES
========================= */

.profil img,
.galerie img,
.affiche_edition img {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex !important;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.fermer {
    position: fixed;
    top: 20px;
    right: 35px;
    z-index: 1000000;
}

.fermer:hover {
    color: #d63384;
}