/* ============================================================
   Fichier : style.css
   Version : 2.3.3
   Version fichier 2.0
   Date    : 18/01/2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css?family=Advent+Pro|Dancing+Script&display=swap');

/* ===========================================================
   CLASSES COMMUNES — FACTORISATION STYLES
   =========================================================== */
:root {
    --jaune-popup: 		#f5f7d0;	/* rgb(245, 247, 208) 	*/
	--jaune-fond-page: 	#f5f7d0;
	--jaune-popup-rgb: 245, 247, 208;
	--jaune-menu: 		#F6F897;	/* rgb(246, 248, 151) 	*/
	--gris-titre: 		#7D7272;	/* rgb(125, 114, 114) 	*/
	--gris-texte-menu: 	#4E5247;	/* rgb(78, 82, 71) 		*/
	--link:				#785A00;	/* rgb(120, 90, 0)		*/
	--gris-hover:		#fffae1;
	--button-hover:		#f2f2f2;
	--link-visited:		#2A3087;	/* #7dc6ff		*/
	--link-hover:		#4da9f5;
	--link-active:		#4da9f5;
	--vote-like: 		#2ecc71;
	--vote-dislike:		#e74c3c;
	--input-texte:		#282846;	/* rgb(40, 40, 70);		*/
	--gris-2:			#222222;
	--gris-3:			#333333;
	--gris-4:			#444444;
	--gris-5:			#555555;
	--gris-6:			#666666;
	--gris-7:			#777777;
	--gris-8:			#888888;
	--gris-a:			#aaaaaa;
/*                         */
/*      les fontes         */
/*                         */
	--f-bullet:			0.8rem;
	--f-footer:			0.9rem;
	--f-html:			1.0rem;
	--f-h4:				1.0rem;
	--f-lo-text-list:	1.0rem;
	--f-coche-text:		1.0rem;
	--f-small-muted:	1.0rem;
	--f-input-field:	1.1rem;
	--f-textarea:		1.1rem;
	--f-desc-tabl:		1.1rem;
	--f-desc-tabl-p:	1.2rem;
	--f-vote:			1.2rem;
	--f-button:			1.3rem;
	--f-input-submit:	1.3rem;
	--f-apropos-p:		1.3rem;
	--f-lien-p:			1.3rem;
	--f-popup-text:		1.3rem;
	--f-h5:				1.4rem;
	--f-titre-popup:	1.5rem;
	--f-navtext:		1.5rem;
	--f-trash:			1.5rem;
	--f-rgpd:			1.5rem;
	--f-desc-tabl-tit:	1.6rem;
	--f-ss-titre:		1.6rem;
	--f-text-clic:		1.7rem;
	--f-gal-h4:			1.8rem;
	--f-h2:				2.0rem;
	--f-text-accueil:	2.2rem;
	--f-cpt:			2.0rem;
	--f-lo-title-list:	2.1rem;
	--f-X-close:		2.5rem;
	--f-h3:				3.0rem;
	--f-sspar:			2.0rem;
	--f-h1:				6.0rem;
}

/* ============================================================================
   RESET & GLOBAL
============================================================================ */

html, body {
	height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
	scroll-behavior: smooth;
    background-color: var(--jaune-fond-page); /* couleur de fond de toutes les pages sauf accueil */
}
html {
    background-image: url("divers/fond.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
	font-size: var(--f-html); 
}
body {
    background: transparent;
}

section {
    display: block;
    /* width: 100%;   */    /* garantit la pleine largeur */
    /* max-width: 100%; */  /* sécurité */
    margin: 0;         /* supprime le centrage forcé */
}

ul, ol {
    margin: 0;
    padding: 0;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: black;
}

h1, h2 {
    margin: .25em 0;
    color: black;
}

h2 {
    text-transform: uppercase;
    text-align: center;
    padding-top: 10px;
    font-size: var(--f-h2);
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 3px 4px rgb(102, 101, 101);
}
#s-hr {
	width:20%; 
	margin:auto;
}
#s-hr2 {
	width:80%; 
	margin:40px auto;
}
#h2-galerie {
	margin-top:80px; 
	text-align:center;
}
#divcaract {
    background-color: white;
}
#divcaract p {
    text-align: left;
}

/* Correction globale des ancres sous un menu fixe */
section[id],
div[id] {
    scroll-margin-top: 80px;   /* Ajuste selon la hauteur du menu */
}

h4 {
    margin: .25em 0;
    font-size: var(--f-h4);
    text-align: center;
    color: var(--gris-titre);
}

h5 {
    font-size: var(--f-h5);
    font-weight: bold;
    font-style: italic;
    margin-left: 20px;
    color: black;
}
.titre-protection {
    font-size: var(--f-h2);
}
#follow-email {
    width: 80%;        /* ou 350px */
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.expo-item {
    display: flex;
    align-items: flex-start;
    margin-left: 20px;
    line-height: 1.2;
}

.expo-item::before {
    content: "";
    width: 6px;        /* largeur du carré */
    height: 6px;       /* hauteur du carré */
    background-color: var(--gris-2); /* couleur du carré (modifiable) */
    margin-top: 6px;   /* alignement vertical : ajuste au besoin */
    margin-right: 8px; /* espace entre carré et texte */
}
.bullet {
    color: var(--gris-5);        /* couleur du bullet */
    margin-right: 6px;  /* espace entre bullet et lien */
    font-size: var(--f-bullet);   /* optionnel : petit carré */
}

/* ============================================================================
   NAVBAR 
============================================================================ */

.navbar {
    overflow: hidden;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--jaune-menu);
    font-family: 'Dancing Script', cursive;
    font-size: var(--f-navtext);
    z-index: 2500;
    opacity: 0.95;
    white-space: nowrap;     /* empêche tout passage à la ligne */

    /* FIX MENU PC */
    justify-content: flex-start;
    align-items: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.navbar a.active {
    font-weight: bold;
    color: var(--gris-2);
    border-bottom: 2px solid #222; /* exemple si un effet souligné te plaît */
}
/* STYLE MENU – Hover amélioré */
.navbar a:hover,
.navbar .menu-item:hover {
    color: var(--gris-3); /* gris foncé, lisible sur fond clair */
}

.nav-list-l,
.nav-list-r {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list-l li,
.nav-list-r li {
    white-space: nowrap;     /* empêche les items de retourner à la ligne */
}

/* Groupe de droite → aligné à droite */
.nav-list-r {
    margin-left: auto;
}

.nav-list-l li a,
.nav-list-r li a {
    color: var(--gris-texte-menu);
    padding: 5px;
    display: block;
}

.nav-list-l li a:hover,
.nav-list-r li a:hover {
    color: black;
    background-color: var(--gris-hover);
}
/* ============================================================================
   ACCUEIL
============================================================================ */

#Accueil {
    padding-top: 60px;
    padding-bottom: 60px;     /* laisse de la place au-dessus du footer */
    min-height: 100vh;
    position: relative;
    /* plus de background ici : il vient de fond.php */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
/* ===== TITRES ===== */
#Accueil h1 {
    text-align: center;
    font-size: var(--f-h1);
    margin-top: 30px;
    text-shadow: 2px 3px 4px rgb(199, 194, 194);
    color: antiquewhite;
}

#Accueil h3 {
    text-align: center;
    font-size: var(--f-h3);
    color: antiquewhite;
    text-shadow: 2px 3px 4px rgb(199, 194, 194);
}
#Accueil .sous-titre-parrainage {
    text-align: center;
    font-size: var(--f-sspar);
    color: antiquewhite;
    text-shadow: 2px 3px 4px rgb(199, 194, 194);
    margin-top: 0.5rem;
}
#blocktextAccueil {
    display: block;
    width: calc(100% - 24px);   /* logique stable */
    max-width: 900px;           /* confort desktop */
    margin: 20px auto;
    padding: 20px 24px;
    font-size: var(--f-text-accueil);
    font-family: 'Dancing Script', cursive;
    position: relative;
    text-align: center;
    color: antiquewhite;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    z-index: 2200;
    margin-top: 80px;
    box-sizing: border-box;
}

#blocktextAccueil::before {
    content: "";
    position: absolute;
    inset: 0;               /* plus propre que top/left */	 
    background: rgba(0,0,0,0.1);     /* voile sombre discret */
    border-radius: 12px;
    backdrop-filter: blur(5px);      /* flou — effet verre */
    -webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255,255,255,0.4);
    z-index: -1;      /* derrière le texte, devant le fond */
}

#blocktextAccueil p {
    margin: 0;   /* ← supprimé margin-top et bottom */
    padding: 0;
}

#compteur {
    width: 250px;
    margin: 150px auto 0 auto;
    text-align: center;
    position: relative;
    z-index: 2600;        /* passe devant le fond */
}

#compteur p {
    color: antiquewhite;
    font-size: var(--f-cpt);
}
/* ==== Traits horizontaux avant les titres de section ==== */
.section-title-container {
    width: 100%;
    text-align: center;
    margin-top: 120px;  /* sous le menu fixe + espacement cohérent */
    margin-bottom: 20px;
}
.section-title-trait {
    height: 12px;
    width: min(40vw, 600px);
    margin: 0 auto 0px auto;
    background-image: linear-gradient(
        to right,
    rgba(50,50,50,0) 0%,
    rgba(50,50,50,0.55) 20%,
    rgba(50,50,50,0.85) 50%,
    rgba(50,50,50,0.55) 80%,
    rgba(50,50,50,0) 100%
    );
    filter: blur(2px);
    opacity: 0.9;
    border-radius: 20px;
}

/* Conteneur du formulaire */
#formContact {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
/* Formulaire */
#formContact form {
    text-align: center;
}
/* Champs */
#formContact textarea {
    width: 90%;
    box-sizing: border-box;
    padding: 12px;
    font-size: var(--f-textarea);
	resize: vertical;
}
#formContact input
{
	box-sizing: border-box;
    padding: 12px;
    font-size: var(--f-input_field);
    width: 60%;
}
/* Bouton */
#formContact input[type="submit"] {
    width: auto;
    margin: 20px auto 0;
    display: block;
	font-size: var(--f-button);
}
/* ============================================================================
   GALERIES (liste artistes)
============================================================================ */
#galeries {
    display: grid;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 30px 10%;
    text-align: center;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}
.galerie-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.galerie-item h4 {
    font-size: var(--f-gal-h4);
    font-weight: 300;
    margin: 15px 0;
    margin-bottom: 15px;

    height: 50px;          /* même hauteur pour tous */
    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;
    white-space: normal;   /* autorise le retour à la ligne */
    text-align: center;
    line-height: 1.15;
}.galerie-item img {
    height: 100px;
	width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.galerie-item img:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.6s ease-in-out;
}
.bloc-intro-artiste {
	display:flex; 
	width:90%; 
	margin:40px auto; 
	margin-bottom: 10px;
	gap:40px;
}
#ph-art {
	display: flex;
	flex-direction: column;
	width:30%; 
	text-align:center;
	align-items: center;
}

#img-art {
	max-width:100%; 
	border-radius:10px; 
	box-shadow:0 0 10px #666;
}
#bio-art {
	width:70%; 
	font-size:var(--f-apropos-p); 
	line-height:1.5;
}
#s-text-clic {
	text-align:center; 
	font-weight:bold; 
	font-size:var(--f-text-clic); 
	margin:15px 0;
}
.s-icone {
    border: solid 2px black;
}

/* Groupe de boutons */
.artist-actions {
  margin-top: 0.8rem;        /* rapproche les boutons de la photo */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;               /* espace entre les boutons */
  width: 100%;
  max-width: 260px;          /* cohérent avec la photo */
}
.titre-galerie{
    text-align:center;
}

.titre-galerie-inner{
    display:inline-block;
}

#h2-galerie{
    margin:0;
}

.compteur-visites{
	display:block;
    margin-top:4px;
    font-size:20px;
    color:#777;
    font-weight:normal;
    line-height:1;
}
/* Boutons */
.artist-actions button {
  width: 100%;
  text-align: center;
}
#btn-gal1 {
	margin-top: 70px;
}
#btn-gal2 {
	margin-top: 30px;
}
/* ============================================================================
   SECTION A PROPOS
============================================================================ */
#divAproposdusite p {
    margin-left: 0;
    margin-right: 0;
    font-size: var(--f-apropos-p);
    line-height: 1.4em;
}

#LienCt { 
text-align: center; 
}
/* Popup "Caractéristiques techniques" : contenu scrollable */
#tech-content {
    max-height: 80vh;        /* limite la hauteur du texte */
    overflow-y: auto;        /* scrollbar interne */
    padding-right: 10px;     /* confort scrollbar */
    box-sizing: border-box;
}
/* Boîte de la popup technique */
.popup-box {
    width: 100%;
    max-width: 620px;
    padding: 1.2rem 1rem;
    border-radius: 10px;
}

#tech-popup .popup-box {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Zone scrollable */
#tech-content {
    flex: 1;                     /* prend l’espace disponible */
    overflow-y: auto;
    padding-right: 10px;
}
#titre-techpopup {
	font-size: var(--f-gal-h4);
}				
/* Bouton OK toujours visible */
#popup-ok {
    margin-top: 15px;
    align-self: center;
}
/* ============================================================================
   SECTION LIENS UTILES (corrigée)
============================================================================ */
#listLiens {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    padding-bottom: 0px;
}
#listLiens p {
    font-size: var(--f-lien-p);
    line-height: 1.4em;
	margin: 6px 0;   /* réduit l’espace vertical */
}
#listLiens a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}
#listLiens a:hover {
    color: var(--link);
}
/* Style des liens dans la page Liens utiles */
#liens a:link,
#liens a:visited {
    color: var(--link-visited);       /* bleu clair dédié */
    text-decoration: underline;
}
#liens a:hover {
    color: var(--link-hover);       /* bleu un peu plus foncé au survol */
    font-weight: bold;    /* optionnel, pour un effet sympa */
}
#liens a:active {
    color: var(--link-active);
}

/* ============================================================================
   PAGE CONTACT
============================================================================ */
#contact {
    /* min-height: 100vh; */
    /* width: 100%; */
    padding-bottom: 80px;
}
form input,
form textarea,
form input[type="submit"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
form {
    margin: 0 auto;
    max-width: 900px;
}
input, textarea {
    border: none;
    padding: 15px 10px;
    margin: 10px 0;
    font-size: var(--f-input-field);
    font-family: 'Advent Pro', sans-serif;
    border-radius: 8px;
}
input {
    width: 300px;
}
textarea {
    width: 600px;
    height: 120px;
}
input[type="submit"] {
    cursor: pointer;
    background-color: var(--jaune-popup);
    font-family: 'Dancing Script', cursive;
    font-size: var(--f-input-submit);
}
/* ============================================================================
   POPUPS : Caractéristiques techniques & Contact
============================================================================ */
/* --- ZONES POPUP (conteneur) --- */
.popup-panel {
    padding: 25px 30px;
    border-radius: 18px;
    background-color: var(--jaune-popup);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    max-width: 560px;
    width: 90%;
    margin: 0 auto;
	max-width: 420px;
    width: 100%;
}

/* --- TITRE DE POPUP --- */
.popup-title {
    margin-bottom: 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--f-titre-popup);
    font-weight: bold;
}
/* --- CHAMPS --- */
.input-field {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #b8b8b8;
    padding: 10px;
    margin-bottom: 15px;
    font-size: var(--f-input-field);
    background-color: white;
    font-family: 'Montserrat', sans-serif;
}

.input-field::placeholder {
    color: var(--gris-7);
    opacity: 0.9;
    font-style: italic;
}
.popup-overlay,
.send-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.popup-overlay.open,
.send-popup-overlay.open {
    display: flex;
}
.popup-box,
.send-popup-box {
    background-color: var(--jaune-popup);
    padding: 20px 25px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,.4);
}
.popup-overlay {
  padding: 3px; /* espace entre popup et bords écran */
  box-sizing: border-box;
}
.popup-box {
  width: 100%;
  max-width: 620px;   /* au lieu de 320 / 360 */
}
.popup-box {
  padding-inline: 1rem;
  padding-block: 1.2rem;
}

/* ============================================================================
   FOOTER (VERSION STABLE & UNIFIÉE)
============================================================================ */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    color: antiquewhite;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    z-index: 3000;      /* ←  corrigé : passe devant tout */
    flex-wrap: wrap;
    white-space: nowrap;
}
.footer-links a{
    color: antiquewhite;
}
.footer-right {
    flex: 1;                  /* occupe exactement la moitié droite */
    text-align: right;
    font-size: var(--f-footer);
    overflow: hidden;         /* empêche le débordement */
    text-overflow: ellipsis;  /* ajoute ... si trop long */
    white-space: nowrap;      /* empêche les retours à la ligne */
	padding-right: 20px;   /* ← Solution : espace stable pour le texte */
    box-sizing: border-box;
}
.footer-left {
    flex: 1;
    font-weight: bold;
}
.footer-rgpd-short,
.footer-version-short {
    display: none;
}
#p-rgpd {
	margin-top:20px; 
	font-size:0.9em; 
	opacity:0.7;
}
#div-footer {
	max-width:900px;
}
/* Titres RGPD dans la popup confidentialité */
.popup-scroll-content h4 {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: var(--f-rgpd);
    color: var(--gris-3);
}
/* Listes dans la popup Politique de confidentialité */

/* Forcer les puces uniquement dans la popup Politique de confidentialité */
.popup-scroll-content ul {
    list-style-position: outside;
    padding-left: 24px;
    margin: 10px 0;
}
.popup-scroll-content ul li {
    list-style-type: disc;   /* ← RESTAURE LES BULLETS */
    margin: 6px 0;
}
/* ===== Sous-titre ===== */
.sous-titre-container {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    position: relative;
}
.sous-titre {
    display: inline-block;
    color: antiquewhite;
    padding: 15px 50px;
    position: relative;
    z-index: 2;
	margin-bottom: 0;
}

/* Pour éviter le conflit avec le menu fixe */
.page-title {
    margin-top: 40px;   /* ajustable : 100–150px selon ton menu */
    text-align: center;
    color: black;        /* ou ta couleur thème */
}
/* === Style des boutons principaux === */
.btn {
    padding: 10px 25px;
    font-size: var(--f-button);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.3);
	background-color: var(--jaune-popup); 
    cursor: pointer;
    transition: background-color 0.25s, transform 0.2s;
    color: black;
    font-family: inherit; /* garde la police générale */
    display: inline-block;
}
/* Hover */
.btn:hover {
    font-weight: bold;
    transform: translateY(-2px);
	background-color: var(--button-hover);   /* un gris légèrement plus foncé */
}


#diaporama-overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none;
    background:black;
    z-index:6000;
    justify-content:center;
    align-items:center;
    cursor:pointer;
	-webkit-touch-callout: none;
    user-select: none;
}
#diaporama-image {
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    pointer-events: none;
	-webkit-touch-callout: none;
    user-select: none;
}
#diaporama-close {
    position:absolute;
    top:20px;
    right:30px;
    color:white;
    font-size:var(--f-X-close);		/*   X  de fermeture */
    cursor:pointer;
    z-index:7001;
}
.bloc-diaporama {
    text-align: center;
    margin: 2rem 0;
}
/* Conteneur du texte tronqué */
.text-limite {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
}
/* Contenu limité sur mobile */
.text-limite .texte-contenu {
    max-height: 250px; /* hauteur visible initiale */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}
/* Fade-out */
.text-limite .texte-contenu::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245,247,208,0), rgba(245,247,208,1));
    pointer-events: none;
}
/* Bouton Suite mobile */
.btn-suite {
    display: none;                 /* caché par défaut */
    padding: 7px 16px;
    font-size: var(--f-button);
    border-radius: 16px;
    border: 1px solid #aaa;
    cursor: pointer;
    background-color: var(--jaune-popup);
    width: fit-content;
    margin: 15px auto 0;
}

/* Zone description / image — version plus adaptive */
.bloc-oeuvre {
    width: 90%;
    margin: 20px auto;   /* réduit l’espace vertical */
    padding: 20px;
    border-radius: 12px;
}
.bloc-oeuvre-inner {
    display: flex;
    gap: 10px;           /* espace horizontal */
    align-items: flex-start;
}
/* Bloc texte — un peu plus large pour réduire la hauteur globale */
.bloc-oeuvre-desc {
    flex: 0 0 30%;       /* au lieu de 25% */
    max-width: 30%;
    font-family: 'Advent Pro', sans-serif;
    font-size: var(--f-desc-tabl);
    color: var(--gris-3);
}
/* Titres */
.bloc-oeuvre-desc h3 {
    font-size: var(--f-desc-tabl-tit);
    margin-bottom: 10px;
}
/* Texte description */
.bloc-oeuvre-desc p {
    font-size: var(--f-desc-tabl-p);
    line-height: 1.4;
}
/* ----- Démarche artistique ----- */
.bloc-oeuvre-regard {
    margin: 25px auto 10px auto;
    padding-top: 15px;
    border-top: 1px solid #d6d6d6;
    max-width: 900px;
}
.bloc-oeuvre-regard h4 {
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
}
.bloc-oeuvre-regard p {
    line-height: 1.6;
    text-align: justify;
}

/* Bloc image — réduit de 75% à 70% */
.bloc-oeuvre-img {
    flex: 0 0 70%;       /* au lieu de width:75% */
    max-width: 70%;     
    text-align: center;
    background-color: inherit;
}
/* Image */
.bloc-oeuvre-img img {
    width: 100%;         /* très important pour que ça s’adapte */
    height: auto;
	max-height: 600px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
	border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ============================================================
   SUBNAV – Menu secondaire pour la page galerie
   ============================================================ */
.subnav {
    width: 100%;
    background: rgba(246, 248, 151, 0.95);
    position: fixed;
    top: 0;                 /* menu collé au haut de l'écran */
    left: 0;
    z-index: 3000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    padding: 8px 0;
}
.subnav-list {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Accueil toujours à gauche */
.subnav-list li:first-child {
    margin-right: auto;
}
/* Les autres items restent centrés */
.subnav-list li:not(:first-child) {
    margin-left: 20px;
    margin-right: 20px;
}
.subnav-list li a {
    font-family: 'Dancing Script', cursive;
    font-size: var(--f-navtext);
    color: var(--gris-texte-menu);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 8px;
    transition: 0.2s ease;
}
.subnav-list li a:hover {
    background: rgba(255,255,255,0.5);
    color: black;
}
/* === New Agenda Styles (clean) === */
.header-artiste {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    position: sticky;
    top: 0;
    z-index: 3000;
    padding: 10px 0;
    backdrop-filter: blur(3px);
    margin-bottom: 20px;
}
.subnav-artiste ul {
    list-style: none;
    display: flex;
    gap: 22px;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.subnav-artiste a {
    text-decoration: none;
    color: var(--gris-3);
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.subnav-artiste a:hover { background: rgba(0, 0, 0, 0.15); }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

#evt_desc {
    min-height: 100px;
}

/* ======================================================
   POPUP MOT DE PASSE — version propre & opaque
   ====================================================== */
#pwdModal {
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 4000;
}
#pwdModal .modal-content {
    background: white;
    padding: 20px;
    width: 280px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}
.modal-content input,
.popup-panel input {
    width: 50%;
}
.modal-content textarea,
.popup-panel textarea {
    width: 100%;
}
.modal-content input,
.popup-panel input,
.modal-content textarea,
.popup-panel textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* =============== POPUP / MODAL =============== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55); /* Fond semi-transparent */
	backdrop-filter: blur(4px);
    display: none;                /* Caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 5000;
}
/* Contenu popup */
.modal-content {
	background-color: var(--jaune-popup);
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    animation: modalPop 0.15s ease-out;
}
.modal-content.popup-panel p{
	font-size:	var(--f-popup-text);
}
.modal-content.popup-panel p.small-muted {
	font-size:	var(--f-small-muted);
}

/* Petite animation d'apparition */
@keyframes pop-in {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Animation d’apparition */
@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.votes {
    margin-top: 18px;
    font-size: var(--f-vote);
    display: flex;
    gap: 35px;
    align-items: center;
}
.votes span {
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, color 0.2s ease;
    display: inline-block;  /* ← INDISPENSABLE pour que scale fonctionne */
}
.vote-like:hover {
    color: var(--vote-like);
    transform: scale(1.3);
}
.vote-dislike:hover {
    color: var(--vote-dislike);
    transform: scale(1.3);
}

/* Animation de rebond façon Instagram */
@keyframes pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.6); }
    80%  { transform: scale(0.85); }
    100% { transform: scale(1); }
}
/* Quand on clique, on ajoute la classe .pop */
.votes span.pop {
    animation: pop 0.25s ease-out;
}


/* ============================================================
   LIVRE D'OR — STRUCTURE
=============================================================== */
#livre-or {
    max-width: 800px;
    margin: 0px auto 0 auto;
    padding: 20px;
    box-sizing: border-box;
	padding-bottom: 0px;
}
.page-overlay.page-livre-or {
    padding-bottom: 0;
}
#livre-or .page-title {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    margin-bottom: 20px;
    position: relative;
    color: var(--gris-3);
}

#livre-or .page-title::after {
    content: "";
    display: block;
    width: 130px;
    height: 3px;
    background: linear-gradient(to right, #999, #ccc, #999);
    margin: 10px auto 0 auto;
    border-radius: 3px;
}

/* ============================================================
   LISTE DES MESSAGES
=============================================================== */
.livre-or-list > h3 {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: var(--f-lo-title-list);
    margin-bottom: 20px;
    position: relative;
    color: var(--gris-3);
}
.livre-or-list > h3::after {
    content: "";
    display: block;
    width: 130px;
    height: 3px;
    background: linear-gradient(to right, #777, #ccc, #777);
    margin: 10px auto 0 auto;
    border-radius: 3px;
}
.livre-or-list {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}
/* Carte message */
.livre-or-item {
    background: rgba(255,255,255,0.92);
    padding: 18px 22px;
    border-radius: 12px;
    margin: 22px auto;
    width: 100%;
    box-sizing: border-box;
    border-left: 6px solid #c0c0c0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

/* Infos message */
.livre-or-meta {
    font-weight: bold;
    font-size: var(--f-lo-text-list);
    margin-bottom: 6px;
    word-wrap: break-word;
    color: var(--gris-3)
}
.livre-or-text {
    font-size: var(--f-lo-text-list);
    line-height: 1.45;
    color: var(--gris-2);
}
.livre-or-tableau {
    font-style: italic;
    color: var(--gris-5);
}

/* Emplacement exact de la palette */
.palette-loc {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-image: url('palette.ico');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 10px;
}
/* ======================================================
   === Champs de saisie uniformisés ===
   ====================================================== */
.form-standard input[type="text"],
.form-standard input[type="email"],
.form-standard input[type="password"],
.form-standard textarea {
    width: 100%;
    border: 1px solid #888;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 16px;
    font-size: var(--f-input-field);
    background-color: white;
    font-family: 'Montserrat', sans-serif;
}
.form-standard input[type="text"] {
	width: 90%;
}

.form-standard textarea {
    min-height: 90px;
}
/* Placeholder gris doux */
.form-standard input::placeholder,
.form-standard textarea::placeholder {
    color: var(--gris-6);
    opacity: 0.8;
}

/* =====================================================
   Universalisation "Contacter artiste"
   ===================================================== */

/* Uniformisation totale des boutons */
.btn-primary,
.btn-secondary,
.btn-ajout,
.btn-standard,
.comment-btn,
.popup-ok,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 10px 22px;
    font-family: inherit;
    background-color: var(--jaune-popup);
    color: var(--input-texte);
    border: 1px solid rgba(100,100,200,0.55);
    border-radius: 28px;
    cursor: pointer;
    box-shadow: 2px 3px 6px rgba(0,0,0,0.18);
    transition: all 0.18s ease-in-out;
	font-size: var(--f-button);
}

.comment-btn {
    margin-top: 15px;
}
/* Effet hover uniforme */
.btn-primary:hover,
.btn-secondary:hover,
.btn-ajout:hover,
.btn-standard:hover,
.comment-btn:hover,
.popup-ok:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--button-hover);
    font-weight: bold;
    transform: translateY(-2px);
}
/* Centrage des boutons dans les popups */
.popup-panel form {
    text-align: center;
}
/* Les boutons doivent garder leur écart */
.popup-panel form button {
    margin: 8px 10px;
}
.popup-panel form {
    /* display: flex; */
    justify-content: center;
    align-items: center; 
}
/* Centrage des boutons uniquement sur la popup Ajouter un événement */
#addEventModal .popup-panel {
    text-align: center;
}
#addEventModal .btn-primary,
#addEventModal .btn-secondary {
    display: inline-block;
    margin-top: 8px;
    margin-left: 12px;
    margin-right: 12px;
}
.showPastLabel {
    display: inline-flex;
    align-items: center;
    gap: 6px;  /* réduit l’espace entre coche & texte */
    cursor: pointer;
    font-size: var(--f-coche-text);
}
.showPastLabel input {
    margin: 0;
    width: 18px;
    height: 18px;
}

.block-button {
    text-align: center;
    margin: 25px 0;   /* Ajuste ici pour la hauteur voulue */
}

/* Poubelle */
.btn-delete-event {
    font-size: var(--f-trash);
    text-decoration: none;
    cursor: pointer;
}
.btn-delete-event:hover {
    opacity: 0.8;
}

/* ======================================================
   AGENDA — VERSION STABLE ET FONCTIONNELLE
   ====================================================== */
/* Le conteneur principal */
.table-container {
    width: 95%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.25);
    box-sizing: border-box;
}
/* =====================================================
   Correction Popup Mot de Passe
   ===================================================== */
#pwdModal .modal-content {
    width: 320px ;     /* largeur fixe propre */
    max-width: 90%;
    padding: 20px;
    box-sizing: border-box;
}
/* Champ de saisie correct */
#pwdModal .modal-content input.input-field {
    width: 100%;      /* 100% de la popup */
    max-width: 100%;
    margin: 15px 0;
    box-sizing: border-box;
}
/* Centrage parfait des boutons */
#pwdModal .modal-content button {
    display: inline-block;
    margin: 10px 8px;
}
#pwdModal .modal-content {
    text-align: center;  /* centre les boutons */
}
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
	align-items: center;
}

.popup-scroll-content {
	background-color: white;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    text-align: left;
}

#sstitre-galerie-lo,
#sstitre-galerie {
	margin-top:60px; 
	text-align:center;
	font-size: var(--f-ss-titre);
}
#sstitre-galerie-lo {
	font-family:'Dancing Script', cursive;
}
/* =======================================================
   FOND GLOBAL (hors accueil)
   ======================================================= */

#tableaux,
#apropos,
#liens,
#aproposdusite,
#contact {
	background-color: transparent;
}
#tableaux,
#apropos,
#liens,
#aproposdusite,
#contact,
#agenda-artiste,
livre-or {
    /* width: 100%; */
	padding: 80px 10px;
    margin: 0;
	padding-top: 30px; /* au lieu de 80px */
	padding-bottom: 20px; /* au lieu de 80px */
	scroll-margin-top: 0;
}

#tableaux > *,
#apropos > *,
#liens > *,
#aproposdusite > *,
#contact > *,
#agenda-artiste > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
	padding-top: 20;
}
#agenda-artiste .row1.evt-past {
    opacity: 0.35;
}

/* ===== ============ ===== */
/* Fond par défaut (pages “courtes”) */

#global-content {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(var(--jaune-popup-rgb), 0.85);

    min-height: 100vh; 
    padding: 0;
}
/* Pages galerie / longues */
.page-galerie #global-content {
    background-repeat: repeat-y;
    background-size: auto;
    background-position: top center;
	background-attachment: scroll;
}
.page-overlay {
    padding: 20px;
}
.section-title-container {
    margin-top: 60px;
    padding-top: 0;
}
.popup-history li {
    text-align: left;
}

.popup-history {
    margin: 0;
    padding-left: 1.2em;
    line-height: 1.5;
    text-align: left;
}
.popup-history li {
    margin-bottom: 6px;
    text-align: left;
}
/* === LIVRE D’OR : ESPACE EN BAS === */
#livreor-messages {
    padding-bottom: 60px;
}

/* =======================================
   Séparation entre deux œuvres
   ======================================= */
.separation-galerie {
    margin: 5px 0;
    text-align: center;
}

.separation-galerie::before {
    content: "";
    display: block;
    border-top: 3px solid rgba(140,140,140,.70);
    margin-bottom: 10px;
}

.separation-galerie span {
    display: inline-block;
    color: #888;
    font-size: 14px;
    letter-spacing: 10px;
}

.separation-galerie::after {
    content: "";
    display: block;
    border-top: 3px solid rgba(140,140,140,.70);
    margin-top: 10px;
}

/* === CENTRAGE RÉEL DES TITRES DE POPUP === */
.modal-content.popup-panel .popup-title {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/* === CENTRAGE DES TITRES DE TOUTES LES POPUPS === */
.popup-panel .popup-title {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/* ===============================
   AGENDA – LIGNES (DESKTOP)
   =============================== */
   
#agenda-artiste .row1,
#agenda-artiste .header {
    display: grid;
    grid-template-columns:
        18ch    /* Date(s) */
        20ch    /* Titre (FIXE) */
        1fr     /* Description (reste de la place) */
        auto;   /* Actions */
    gap: 1rem;
    align-items: center;
	width: 100%;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}
#agenda-artiste .col-title {
    overflow-wrap: break-word;
    word-break: break-word;
}

#agenda-artiste .row1:last-child {
    border-bottom: none;
}

#agenda-artiste .row1 > div,
#agenda-artiste .header > div {
    padding: 4px 6px;
}

#agenda-artiste .col-date {
    white-space: nowrap;
}
#agenda-artiste .col-date,
#agenda-artiste .col-title {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

#agenda-artiste .row1:not(.header):nth-child(even) {
    background-color: rgba(0, 0, 0, 0.04);
}

#agenda-artiste .col-desc {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Popup ajout événement */
.date-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.date-row input[type="date"] {
    width: 140px;
    min-width: 140px;
}
#agenda-artiste.no-auth .col-actions {
    display: none;
}
.col-actions {
	text-align:center;
}
#agenda-artiste.no-auth .row1,
#agenda-artiste.no-auth .header {
    grid-template-columns:
        19ch
        20ch
        1fr;
}
#agenda-artiste.no-auth .row1 > div:not(:last-child),
#agenda-artiste.no-auth .header > div:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Optionnel : explicite quand authentifié */
#agenda-artiste.auth-ok  {
    display: block;
}

.error-box {
    background: white;
    border: 1px solid #ffecb5;
    color: black;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 10px auto;
    max-width: 600px;
}
#agenda-artiste .col-title {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

#div-img-coo {
	width:25%; 
	text-align:center;
}
#img-coo {
	max-width:100%;
	border-radius:10px; 
	box-shadow:0 0 10px #666;
}
#div2-img-coo {
	width:75%;
	font-size:var(--f-apropos-p); 
	line-height:1.5;
}

#coordonnees .coordonnees-flex {
	display:flex; 
	width:90%; 
	margin:40px auto; 
	gap:40px; 
	align-items:center;
}

/* evolutions après 2.3.2 */
.votes.voted span {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}
#zoom-box {
    position: relative;   /* 🔴 INDISPENSABLE */
	max-width:900px;
}
#zoom-img {
	max-width:100%;
}
.zoom-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: var(--f-X-close);
    font-weight: bold;
    color: black;
    cursor: pointer;
    z-index: 50;          /* 🔴 AU-DESSUS de l’image */
    text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

.zoom-close:hover {
    opacity: 0.7;
}

.cache-indicator.no-cache {
    position: fixed;
    bottom: 8px;
    right: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #c00;
    background: rgba(255, 220, 220, 0.9);
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 9999;
    animation: blink 1.5s infinite;
}
.protection-indicator {
    margin-left: 15px;
    font-weight: bold;
    color: #d00000;
    animation: protection-clignote 1s infinite;
}

/* =========================================================
   ÉTAT DE PROTECTION DES ŒUVRES
   ========================================================= */

/* Bouclier et sablier */
.protection-ok,
.protection-attente {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.85em;
    vertical-align: middle;
}

/* Bouclier : indique qu'il est cliquable */
.protection-ok {
    cursor: pointer;
}

/* Sablier : clignote tant que l'ancrage Bitcoin est en attente */
.protection-attente {
    animation: protection-clignote 1.2s infinite;
}

@keyframes protection-clignote {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.20;
    }
}rames blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75%      { opacity: 0.3; }
}
/* administration du suivi */
/* ======= Tableau followers ======= */

.followers-box{
    max-height:260px;
    overflow-y:auto;
    border:1px solid #ccc;
    padding:10px;
    width:100%;
    max-width:500px;
}

#followers-table {
    width: 100%;
    border-collapse: collapse;
}

#followers-table th,
#followers-table td {
    padding: 6px;
    border-bottom: 1px solid #ddd;
}

.admin-actions {
    width: 100%;
    max-width: 1100px;
    margin: 25px auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}


/* ===== Groupes administration ===== */

.admin-group {
    width: 100%;
    text-align: center;
}

.admin-group-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--gris-3);
}


/* ===== État du site ===== */

.admin-status-actions {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-status-actions form {
    margin: 0;
}

.admin-status-actions .admin-link {
    width: 260px;
    min-height: 48px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ===== Gestion ===== */

.admin-management-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.admin-management-actions .admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;
}
/* Conteneur centré vertical */

.admin-center{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    margin-top:30px;
    text-align:center;
}

/* Mode admin / restrictif */

#admin-mode{
    font-weight:bold;
    font-size:1.2em;
}

.mode-admin{
    color:green;
}

.mode-restrictif{
    color:red;
}
.page-admin #global-content {
    min-height: 100vh;
}

.page-admin .page-overlay {
    min-height: 100vh;
}

/* ---------------------------------------------- */
/*  après tentative popups génériques             */
/* ---------------------------------------------- */

#contact {
    min-height: 100vh;
}
/* Légère animation PC */
@media (hover: hover) {
    .livre-or-item:hover {
        transform: translateY(-3px);
    }
}
@media (max-width: 768px) {
	:root {
		--f-h1:				3.0rem;
		--f-h3:				2.0rem;
		--f-sspar:			1.5rem;
		--f-text-accueil:	1.5rem;
		--f-cpt:			1.0rem;
		--f-h2:				1.7rem;
		--f-navtext:		1.3rem;
		--f-apropos-p:		1.1rem;
		--f-X-close:		1.5rem;
		--f-popup-text:		1.1rem;
		--f-gal-h4:			1.6rem;			
		--f-text-clic:		1.3rem;		
	}
	html {
		font-size: 15px;
	}
	#Accueil h1 {
		margin-top: 0px ;
	}
	.sous-titre-container {
		margin-top: 0px;
	}
	.sous-titre-parrainage {
		margin-bottom: 20px;
	}
	/* Footer */
	.footer-rgpd-short,
	.footer-version-short {
		display: inline;
		font-size: 0.65em;
	}
	.footer-left {
		font-size: 0.65em;
	}
    .footer-rgpd-long,
    .footer-version-long {
        display: none;
    }
	#blocktextAccueil
	{
		margin-top: 0px;
		width: 93%;
		padding: 0 0;
		box-sizing: border-box;
	}
	#blocktextAccueil::before {
		border-radius: 10px;
	}
	#compteur {
		margin: 50px auto 0 auto;
	}
	
	.popup-box {
		max-width: 100%;
	}

	#h2-galerie {
		margin-top: 20px;
	}

    /* Galerie */
    .galerie-item {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    .galerie-item img {
        display: block;
        margin: auto;
    }
	.compteur-visites{
		font-size:13px;
	}
	/***********************************************/
    /* Menu principal */
    nav.navbar {
        display: none;
    }
    /* Sous-menu artiste */
    .subnav {
        overflow-x: auto;
        white-space: nowrap;
		-webkit-overflow-scrolling: touch;
        width: 100%;
        overflow-y: hidden;
    }
    .subnav-list {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: nowrap;
        width: max-content;
        padding: 0 6px;
        box-sizing: border-box;
    }
    .subnav-list li a {
        padding-left: 0;
        padding-right: 0;
    }
    .subnav-list li:not(:first-child) {
        margin-left: 0;
        margin-right: 0;
    }
    /* Supprime le flash de sélection mobile */
    .subnav-list a {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
		font-weight: 400;   /* poids fixe */
    }
    /* Neutralise les états hover / active / focus */
    .subnav-list a:hover,
    .subnav-list a:active,
    .subnav-list a:focus {
        font-weight: normal;
        background: none;
        color: inherit;
        outline: none;
    }

	/***********************************************/
    /* Pages artistes */
	.bloc-intro-artiste {
        flex-direction: column;
		gap:10px;
	}
	.bloc-intro-artiste img {
        max-width: 100%;
        height: auto;
    }
    /* 🔑 POINT CRUCIAL : neutralise les widths inline */
    .bloc-intro-artiste > div {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    /* Texte de la bio : justification lisible */
    .bloc-intro-artiste > div:last-child {
        text-align: justify;
    }

    /* Optionnel : améliore la césure sur mobile */
    .bloc-intro-artiste > div:last-child p {
        hyphens: auto;
        text-align-last: left;
    }

    .bloc-oeuvre-inner {
        flex-direction: column;
    }
    .bloc-oeuvre-desc,
    .bloc-oeuvre-img {
        width: 100%;
        max-width: 100%;
	}
	.bloc-oeuvre {
		margin: 10px auto;   /* réduit l’espace vertical */
		padding: 10px;
	}
	/* Image : pleine largeur réelle */
    .bloc-oeuvre-img img {
        width: 100%;
        height: auto;
        max-height: none;
    }
	    /* Texte : vraie largeur mobile */
    .bloc-oeuvre-desc {
        width: 100%;
        max-width: 100%;
        font-size: 1.15em;
    }

	/* Boutons : centrage garanti */
    .bloc-oeuvre-actions,
    .block-button {
        text-align: center;
    }

    .bloc-oeuvre-actions button,
    .bloc-oeuvre-actions .btn {
        display: inline-block;
        margin: 10px 8px;
    }
	body .bloc-oeuvre-img img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    body .bloc-oeuvre-desc {
        width: 100%;
        max-width: 100%;
    }

    body .bloc-oeuvre-actions {
        text-align: center;
    }
	.text-limite .texte-contenu::after {
        display: none;
    }
	#h3-oeuvre {
		margin-top: 0;
	}
	#ph-art {
		width:100%; 
	}
	#img-art {
		width:80%; 
	}
	#bio-art {
		width:100%; 
	}
	.subnav-artiste ul {
		padding-left: 3px;
		padding-right: 4px;
	}
	#btn-gal1 {
		margin-top:	10px;
		margin-bottom: 0px;
	}
	#btn-gal2 {
		margin-top:	10px;
	}
	/***********************************************/
    /* Agenda */
	.row1 .col-actions {
        display: none;
    }
    #agenda-artiste .header {
        display: none;
    }
    #agenda-artiste .row1 {
        grid-template-columns: 130px 1fr;
        grid-template-areas:
            "date title"
            "desc desc";
    }
	/* 1) On supprime l'en-tête */
	#agenda-artiste .row1.header {
		display: none;
	}
	/* Conteneur du tableau */
	#agenda-artiste .table-container {
		padding: 0.6rem;
		box-sizing: border-box;
	}

	/* 2) Chaque événement devient un bloc vertical */
	#agenda-artiste .table-container .row1:not(.header) {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.45rem;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 0 auto 0.6rem auto;
		border-radius: 0.5rem;
		padding: 0.7rem 0.9rem;
		border-bottom: 1px solid rgba(0,0,0,0.15);
		background: rgba(255,255,255,0.85); /* optionnel si tu veux “carte” */
		text-align: center;    /* centre le texte */
	}

	/* 3) On neutralise l'apparence tableau (lignes/colonnes) */
	#agenda-artiste .row1 .col-date,
	#agenda-artiste .row1 .col-title,
	#agenda-artiste .row1 .col-desc,
	#agenda-artiste .row1 .col-actions {
		width: 100% ;
		border: 0 ;
		border-left: 0 ;
		border-right: 0;
		padding: 0;
		margin: 0;
	}

	/* 4) Lignes : date / titre / description */
	#agenda-artiste .row1 .col-date {
		font-size: 0.9rem;
		font-weight: 700;
		opacity: 0.85;
		white-space: nowrap; /* garde les 2 dates sur une ligne */
	}

	#agenda-artiste .row1 .col-title {
		font-size: 1rem;
		font-weight: 700;
	}

	#agenda-artiste .row1 .col-desc {
		font-size: 0.95rem;
		line-height: 1.45;
	}

	/* 5) Actions en bas à droite */
	#agenda-artiste .row1 .col-actions {
		display: flex;
		justify-content: flex-end;
		margin-top: 0.2rem;
	}
	#agenda-artiste.no-auth .col-actions {
		display: none;
	}

	/* Bouton Suite / Replier : apparence strictement constante */
    .btn-suite,
    .btn-suite:hover,
    .btn-suite:active,
    .btn-suite:focus {
        background-color: var(--jaune-popup);
        color: black;
        font-weight: normal;
        outline: none;
        box-shadow: none;
    }

	.bloc-intro-artiste .btn-suite {
		min-width: 0;        /* annule le 70% */
		margin: 14px 0 0 0;  /* ou ce que tu veux */
		width: fit-content;   /* largeur = texte */
		display: block;       /* nécessaire pour margin auto */
		margin: 14px auto;    /* centrage horizontal */
	}
    /* Boutons d’action sous la bio artiste */
    .bloc-intro-artiste button,
    .bloc-intro-artiste .btn {
        display: block;          /* 🔑 empilement propre */
        margin: 14px auto;       /* 🔑 séparation + centrage */
        min-width: 70%;          /* centrage visuel */
        text-align: center;
    }

    /* Bloc coordonnées : empilement vertical */
    #coordonnees .coordonnees-flex {
        flex-direction: column;
        width: 90%;
        gap: 20px;              /* espace vertical plus adapté */
    }

    /* Neutralise les widths inline (25% / 75%) */
    #coordonnees .coordonnees-flex > div {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    /* Image coordonnées */
    #coordonnees img {
        max-width: 100%;
        height: auto;
    }

    /* Texte coordonnées : lisible sur mobile */
    #coordonnees .coordonnees-flex > div:last-child {
        text-align: left;       /* ou justify si tu préfères */
        font-size: 1.1em;
    }
	
    /* Formulaires */
    #formContact,
    #formContact form,
    #formContact textarea,
	#formContact input,
    #formContact p	{
        box-sizing: border-box;
	}
	
    #formContact,
	#formContact form {
        margin-left: 0;
        margin-right: 0;    
	}
    #formContact textarea {
        width: 90%;
    }
	#formContact input {
		width: 50%;
	}
    #formContact p {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    /* Réduction du padding de l’overlay UNIQUEMENT
       quand il contient l’agenda */
    .page-overlay > #agenda-artiste {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Et on neutralise le padding hérité du parent */
    .page-overlay {
        padding-left: 0px;
        padding-right: 0px;
    }
	    /* Le conteneur des dates */
    #addEventModal .modal-content > div[style*="display:flex"] {
        flex-direction: column;
        gap: 10px;
    }

    /* Champs dans la popup */
    #addEventModal .input-field {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
	.popup-box, .send-popup-box {
		padding: 5px 5px;
		width: 95%;
	}
	.separation-galerie::before {
		border-top: 1px solid rgba(140,140,140,.50);
		margin-bottom: 0px;
	}
	.separation-galerie::after {
		border-top: 1px solid rgba(140,140,140,.50);
		margin-top: 0px;
	}

}
@media (max-width: 600px) {

    /* Layout général */
    #tableaux,
    #apropos,
    #liens,
    #aproposdusite,
    #contact,
    #agenda-artiste,
    #livre-or {
        padding: 12px;
    }

    /* Empilements */
    .bloc-oeuvre-inner {
        flex-direction: column;
    }

    /* Popups */
    .popup-panel,
    .modal-content {
        width: 94%;
        padding: 15px;
    }
    /* Boutons */
    button,
    input[type="submit"],
    input[type="button"] {
        padding: 12px 20px;
    }

    /* Hauteur mobile */
    #global-content {
        min-height: auto;
    }
    .page-overlay {
        padding-bottom: 10px;
    }

    /* Texte tronqué */
    .text-limite .texte-contenu {
        max-height: 250px;
        overflow: hidden;
    }
	.btn-suite {
        display: block;
    }
	.popup-buttons {
		flex-direction: column;
		gap: 0.6rem;
	}
}
@media (max-width: 480px) {
    .modal-content,
    .popup-panel {
        width: 92%;
        padding: 3%;
    }
	#blocktextAccueil {
        width: calc(100% - 1.2rem);
        padding: 16px 18px;
        margin-top: 0;
    }
}
/* iphone SE */
@media (max-width: 320px) {
	/* rien*/
}

@media (min-width: 601px) {
    .text-limite .texte-contenu {
        max-height: none ;
        overflow: visible;
    }
	/* Désactive le fade quand le texte n'est plus limité */
    .text-limite .texte-contenu::after {
        display: none ;
        content: none;
    }
}

/* FIN DU CSS */

/* ================= TEST INTERCEPTION TOUCH (TEMPORAIRE) ================= */

.send-popup-overlay {
    pointer-events: auto !important;
}

.send-popup-overlay * {
    pointer-events: auto !important;
}

.send-popup-overlay::before,
.send-popup-overlay::after {
    pointer-events: none !important;
}
