/* --- VARIABLES ET POLICES --- */
:root {
    --green: #DBE197;
    --red: #DBB57D;
    --yellow: #529747;
	--yellowdk: #ffde00;
    --grey: #606056;
    --black: #2d2d2d;
    --white: #ffffff;
	--reddk: #CA3F2C;
}
body {
    font-family: 'Comic Neue', cursive;
    background: var(--green);
    margin: 0;
    padding: 20px;
    color: var(--black);
}
h1, h2, h3 {
    font-family: 'Bangers', cursive;
    text-align: center;
    letter-spacing: 2px;
}
h4{
	text-transform: uppercase;
    font-family: 'Bangers', 'Comic Sans MS', cursive; /* Bangers est une super font Google pour la BD */
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #f1c40f;
    border-bottom: 3px solid #000;
    display: inline-block;
    padding-bottom: 5px;
	text-align: center;
}
/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

nav a, .btn {
    background: var(--red);
    border: 3px solid var(--black);
    padding: 10px 15px;
    text-decoration: none;
    color: var(--white);
    box-shadow: 4px 4px 0px var(--black);
    font-weight: bold;
    transition: 0.2s;
}

nav a:hover, .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--black);
}

/* --- GRILLE ET CARTES --- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 COLONNES FIXES */
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}
.grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 COLONNES FIXES */
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}
.socialmedia{
	display: block;
    max-width: 1200px;
	max-height: 55px;
    margin: auto;
	margin-left:70%;
}

/* Conteneur pour positionner la bulle */
.socialmedia a {
    position: relative;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Effet de rebond sur l'icône au survol */
.socialmedia a:hover {
    transform: scale(1.2);
}

/* La bulle de texte (cachée par défaut) */
.socialmedia a::after {
    content: "Suis-nous !";
    position: absolute;
    bottom: 35px; /* Position au-dessus de l'icône */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border: 2px solid #000;
    border-radius: 10px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, bottom 0.3s;
    z-index: 100;
    box-shadow: 3px 3px 0px #f1c40f;
}

/* Le petit triangle de la bulle */
.socialmedia a::before {
    content: "";
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #000 transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 99;
}

/* Affichage au survol */
.socialmedia a:hover::after, 
.socialmedia a:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: 40px; /* Petit mouvement vers le haut */
}

/* Personnalisation du texte selon le réseau */
.insta-button:hover::after { content: "Instagram !"; }
.fb-badge:hover::after { content: "Facebook !"; }

/* --- ADAPTATION MOBILE (Écrans de moins de 768px) --- */
@media (max-width: 768px) {
    
    /* 1. On empile les éléments du menu */
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav a {
        width: 90%;
        text-align: center;
        padding: 12px;
        background: #fdfdfd;
        border: 2px solid #000;
        box-shadow: 4px 4px 0px #000;
        font-size: 1.1em;
    }

    /* 2. On gère les logos fixes pour qu'ils ne gênent pas */
    .logo-fixe {
        position: static; /* Ils ne flottent plus sur les côtés */
        display: inline-block;
        width: 45%;
        text-align: center;
        margin: 10px 0;
    }

    .logo-fixe img {
        max-width: 100px; /* On réduit leur taille sur mobile */
        height: auto;
    }

    /* 3. On ajuste les titres pour les petits écrans */
    header h1 {
        font-size: 1.8em;
        padding: 0 10px;
    }

    /* 4. Les grilles passent à 1 seule colonne */
    .grid {
        display: grid;
        grid-template-columns: 1fr !important; /* Force une seule colonne */
        gap: 20px;
        padding: 10px;
    }

    /* 5. La barre réseaux sociaux */
    .socialmedia {
        text-align: center !important;
        padding: 20px;
    }
}

@media (max-width: 992px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
    background: var(--white);
    /*border: 4px solid var(--black);*/
    padding: 15px;
    /*box-shadow: 10px 10px 0px var(--black);*/
    position: relative; /* INDISPENSABLE POUR LES RUBANS */
    overflow: hidden;   /* COUPE LES RUBANS QUI DÉPASSENT */
    display: flex;
    flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--black); /* Rappel du trait d'encrage */
    box-shadow: 5px 5px 0px var(--black); /* Ombre portée style "Comics" */
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Effet trait de plume */
}
.card:hover {
    transform: scale(1.02) rotate(-1deg); /* Léger basculement dynamique */
    box-shadow: 8px 8px 0px #f1c40f; /* L'ombre devient jaune au survol */
}
.card-main:hover {
    transform: scale(1.02) rotate(-1deg); /* Léger basculement dynamique */
    box-shadow: 8px 8px 0px #f1c40f; /* L'ombre devient jaune au survol */
}
.card-sec:hover {
    transform: scale(1.02) rotate(-1deg); /* Léger basculement dynamique */
    box-shadow: 8px 8px 0px #f1c40f; /* L'ombre devient jaune au survol */
}
.card-main {
    background: var(--white);
    padding: 15px;
    position: relative; /* INDISPENSABLE POUR LES RUBANS */
    overflow: hidden;   /* COUPE LES RUBANS QUI DÉPASSENT */
    display: flex;
    flex-direction: column;
	width: 775px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--black); /* Rappel du trait d'encrage */
    box-shadow: 5px 5px 0px var(--black); /* Ombre portée style "Comics" */
	border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Effet trait de plume */
}
.card-sec {
    background: var(--white);
    padding: 15px;
    position: relative; /* INDISPENSABLE POUR LES RUBANS */
    overflow: hidden;   /* COUPE LES RUBANS QUI DÉPASSENT */
    display: flex;
    flex-direction: column;
	width: 375px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--black); /* Rappel du trait d'encrage */
    box-shadow: 5px 5px 0px var(--black); /* Ombre portée style "Comics" */
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Effet trait de plume */
}
/* --- ÉLÉMENTS BD --- */
.artiste-header {
    background: var(--yellowdk);
    border: 2px solid var(--black);
    padding: 5px;
    margin-bottom: 10px;
    transform: rotate(-1deg);
}
.art-descr{
	font-size: 0.9em;
	line-height: 1.2;
	min-height: 60px;
	overflow: hidden;
}

.style-tag {
    display: inline-block;
    background: var(--red);
    border: 2px solid var(--black);
    padding: 2px 8px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
    align-self: flex-start;
}

.main-img {
	width: auto;
	height: auto;
    max-height: 250px;
	max-width: 100%;
    object-fit: cover;
    border: 3px solid var(--black);
    margin-bottom: 10px;
}

.oeuvres-container {
    display: flex;
    gap: 10px;
	max-height: 250px;
	max-width: 160px;
	height:auto;
	width: auto;
    margin-top: auto; /* Pousse les œuvres en bas de carte */
}

.oeuvre-vignette {
    flex: 1;
    border: 2px solid var(--black);
    max-height: 250px;
	max-width: 160px;
	height: auto;
	width: auto;
    object-fit: cover;
}

/* --- RUBANS (VEDETTE / FAVORIS) --- */
.ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    transform: rotate(45deg);
    width: 140px;
    text-align: center;
    font-family: 'Bangers';
    font-size: 0.9em;
    color: white;
    padding: 4px 0;
    border: 2px solid var(--black);
    z-index: 10;
    text-shadow: 1px 1px 0 #000;
	clip-path: polygon(100% 0, 95% 50%, 100% 100%, 0% 100%, 5% 50%, 0% 0%);
    font-weight: bold;
}

.ribbon-vedette { background: #e63946; }
.ribbon-favori { background: #ff00ff; }

/* --- SECTIONS ADMIN --- */
.section-admin {
    background: white;
    border: 3px solid var(--black);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 var(--black);
}

/* --- STYLE DES VIGNETTES DANS L'ADMIN --- */

/* On cible les images à l'intérieur des tableaux de la section-admin */
.section-admin table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #f9f9f9;
}

.section-admin th, .section-admin td {
    padding: 10px;
    border: 1px solid var(--black);
    vertical-align: middle;
}

/* La vignette (Thumbnail) */

/* Style pour les listes d'œuvres dans le tableau (si affichées) */
.admin-thumb-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid var(--black);
    margin-right: 5px;
}

/* Vignette principale (Artiste) */
.admin-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--black);
    box-shadow: 2px 2px 0px var(--black);
}

/* Vignettes secondaires (Oeuvres) */
.admin-thumb-oeuvre {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border: 1px solid var(--black);
    margin-right: 5px;
    opacity: 0.8;
    transition: 0.2s;
}

.admin-thumb-oeuvre:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Conteneur pour aligner les images */
.img-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-fixe {
    position: fixed;
    top: 20px; /* Distance du haut */
    z-index: 9999; /* Pour passer au-dessus de tout le reste */
    width: 150px;  /* Taille des logos */
    transition: transform 0.3s ease;
}

.logo-gauche {
    left: 20px;
}

.logo-droite {
    right: 20px;
}

.logo-fixe img {
    width: 100%;
    height: auto;
    /* Optionnel : ajout d'un style BD aux logos */
    border: 3px solid var(--black);
    background: white;
    padding: 5px;
    box-shadow: 5px 5px 0px var(--black);
}

/* Effet au survol */
.logo-fixe:hover {
    transform: scale(1.1) rotate(5deg);
}

/* --- ADAPTATION MOBILE --- */
/* Sur petit écran, les logos fixes peuvent masquer le contenu */
@media (max-width: 1300px) {
    .logo-fixe {
        position: absolute; /* Ils redeviennent scrollables si l'écran est trop petit */
        width: 60px;
    }
}

@media (max-width: 768px) {
    .logo-fixe {
        display: none; /* On les cache sur mobile pour libérer de l'espace */
    }
}

/* --- FORMULAIRE COMPACT --- */
.form-inline {
    display: flex;
    flex-wrap: nowrap; /* Force l'affichage sur une ligne */
    gap: 10px;
    align-items: flex-end; /* Aligne le bouton avec le bas des champs */
    background: #f9f9f9;
    padding: 15px;
    border: 2px solid var(--black);
    border-radius: 5px;
    overflow-x: auto; /* Permet de scroller horizontalement si l'écran est trop petit */
}

.form-group-inline {
    display: flex;
    flex-direction: column;
    flex: 1; /* Les champs s'étendent équitablement */
    min-width: 120px;
}

.form-group-inline label {
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #555;
}

.form-group-inline input, 
.form-group-inline select {
    margin: 0 !important; /* Annule les marges précédentes */
    padding: 8px !important;
}

/* Style spécial pour les inputs de type file pour les rendre plus discrets */
.form-group-inline input[type="file"] {
    font-size: 0.8em;
}

/* Import de la police style BD */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@700&display=swap');

.bd-container {
    font-family: 'Comic Neue', sans-serif;
    padding: 20px;
    background: #fdfdfd;
}

/* Le titre dans un rectangle jaune classique */
.bd-cartouche {
    background: var(--yellowdk);
    border: 4px solid #000;
    padding: 10px;
    transform: rotate(-2deg); /* Effet dynamique */
    box-shadow: 8px 8px 0px #000;
    margin-bottom: 30px;
}

.bd-titre {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    margin: 0;
    color: #000;
    text-transform: uppercase;
}

/* La bulle de dialogue */
.bd-bulle-date {
    position: relative;
    background: #fff;
    border: 3px solid #000;
    border-radius: 40px;
    padding: 20px;
    width: fit-content;
    margin-left: 50%;
    box-shadow: 5px 5px 0px #eee;
}

/* Petit triangle de la bulle */
.bd-bulle-date::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 30px;
    border-width: 0 15px 15px;
    border-style: solid;
    border-color: #000 transparent;
}
.bd-bulle-lieu {
    position: relative;
    background: var(--red);
    border: 3px solid #000;
    border-radius: 40px;
    padding: 20px;
    width: fit-content;
    margin-right: 50%;
    box-shadow: 5px 5px 0px #eee;
}

/* Petit triangle de la bulle */
.bd-bulle-lieu::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 30px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #000 transparent;
}
/* Le programme type "Narration" */
.bd-programme {
    margin-top: 40px;
    border-left: 10px solid #e63946;
    padding-left: 15px;
    font-style: italic;
    font-size: 1.2rem;
}

.bd-action {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 5px 15px;
    margin-top: 10px;
    font-weight: bold;
}
.fb-badge {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 10px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.fb-badge:hover {
    -moz-box-shadow: #000000;
    -webkit-box-shadow: #000000;
    box-shadow: #000000;
}

.fb-badge img {
    margin-right: 5px;
}
.insta-button {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 10px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.insta-button:hover {
    -moz-box-shadow: #000000;
    -webkit-box-shadow: #000000;
    box-shadow: #000000;
}

.insta-button img {
    margin-right: 5px;
}
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.9); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.fade-in {
    animation: bounceIn 0.5s ease-out;
}

.infos-pratiques {
    background: #fff;
    border: 3px solid #000;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 8px 8px 0px #e74c3c; /* Ombre rouge pour dynamiser */
}

.infos-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    border: 2px dashed #000; /* Style "découpe" */
    padding: 15px;
    background: #f9f9f9;
}

.info-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.info-item h3 {
    font-family: 'Bangers', cursive;
    color: #e67e22;
    margin-bottom: 5px;
}

.map-container {
    margin-top: 20px;
    filter: grayscale(0.2); /* Un peu plus sobre pour le style */
    transition: filter 0.3s;
}

.map-container:hover {
    filter: grayscale(0);
}

.btn-bd-mini {
    display: inline-block;
    padding: 5px 15px;
    background: #f1c40f;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Comic Neue', cursive;
    box-shadow: 2px 2px 0px #000;
}

.btn-bd-mini:hover {
    background: #e67e22;
    transform: scale(1.05);
}