/* =========================================================
   RESET / BASE
   ========================================================= */
html { height: 100vh; 
  background-color: #fff !important;
  color-scheme: light; /* dit au navigateur de ne PAS assombrir automatiquement */
}

body {
  height: 100%;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0 auto;
  color: #001A45;
 background-color: #fff !important;
}

#fond-bleu {
  height: 100%;
  margin: 0 auto;
  background-image: url(../images/APRES-LAVERSE_SITE_FOND2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

header {
  display: flex;
  position: relative;
  z-index: 1000;
  padding-bottom: 50px;
}

header a { text-decoration: none; color: #000; }

footer { height: 100px; }

strong { color: #002d7a; }

#logo { width: 90px; margin: 20px 30px 0 0px; transform: translateX(40px); }
#titre_logo { font-size: 1.4em; margin-left: 20px; }

#menus {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#menu, #menu-contact {
  list-style: none;
  text-transform: lowercase;
  display: flex;

  margin-top : 27px;  
  margin-right : 40px;
  margin-bottom: 0;
  margin-left: 30px;

  padding: 0;
}

#menu li, #menu-contact li { margin: 7px; }

#menu li a, #menu-contact li a {
  text-decoration: none;
  padding-bottom: 5px;
  color: #002d7a;
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 3px solid rgba(0, 0, 0, 0);
  transition: border-bottom 0.5s;
}

#menu li a:hover, #menu-contact li a:hover { border-bottom: 3px solid #002d7a; }

/* Conteneur principal des pages */
article { width: 70%; margin: 0 auto; }

/* Animations d’apparition */
#nous, #creations-galerie, #ateliers, #creation, #contact {
  animation: apparition 0.6s ease-out forwards;
}



/* =========================================================
   ACCUEIL
   ========================================================= */
#image-accueil {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: none;
}

/* =========================================================
   NOUS
   ========================================================= */


.photo-nous {
  width: 70%;
  display: block;
  border-radius: 2px;
  margin: 0 auto;
}

/* =========================================================
   PAGE CREATION (détail)
   ========================================================= */
#lien-categorie-creation { color: #000; text-decoration: underline #000; }
#lien-categorie-creation:hover { color: #0B428C; text-decoration: underline #0B428C; }

.head-oeuvre {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
h1 { font-size: 1.5em; text-transform: uppercase; margin: 0; }
h2 { font-weight: bold; color: #383838; }
.credits-oeuvre { font-size: .9em; }

.oeuvre { display: flex; width: 100%; }
#creation .oeuvre {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.description-oeuvre {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.production-oeuvre {
  font-weight: bold;
  font-size: .9em;
}

.cadre-image-oeuvre {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin: 0 auto;
}

.image-oeuvre {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.galerie-oeuvre { width: 100%; }

.galerie-oeuvre-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.galerie-oeuvre-list li img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (max-width: 900px) {
  article { width: 90%; }
  .galerie-oeuvre-list li img { height: 240px; }
}

@media (max-width: 768px) {
  #creation .cadre-image-oeuvre { aspect-ratio: 3 / 4; }
}

/* =========================================================
   AUDIO — lecteur minimal
   ========================================================= */
.audios-oeuvre { margin-top: 20px; }
.audios-oeuvre ul { list-style: none; padding: 0; }
.audios-oeuvre ul li { margin: 10px 0; }

audio { max-width: 440px; border-radius: 3px; color-scheme: light; }

.mini-audio {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  font: 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ma-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #000;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.ma-btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.ma-track {
  position: relative;
  width: 250px;
  max-width: 60vw;
  height: 1px;
  background: #000;
  cursor: pointer;
  flex: 0 0 auto;
}

.ma-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #000;
  transform-origin: left center;
  opacity: .35;
  pointer-events: none;
}

.ma-thumb {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #000;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.ma-time { min-width: 88px; text-align: right; }
.mini-audio audio { display: none; }

.ma-btn[data-state="play"]::before {
  content: "▶";
  font-size: 18px;
  line-height: 1;
}

.ma-btn[data-state="pause"]::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background: linear-gradient(to right, #000 0 38%, transparent 38% 62%, #000 62% 100%);
}


/* =========================================================
   LIENS
   ========================================================= */
.liens-oeuvre { margin-top: 20px; }
.liens-oeuvre ul { list-style: none; padding: 0; }
.liens-oeuvre ul li a {
  color: #000;
  font-size: 1.1em;
}
.liens-oeuvre ul li a:hover { color: #0B428C; }


/* =========================================================
   NAVIGATION ENTRE ŒUVRES — chevrons ouverts en CSS
   ========================================================= */
.navigation-oeuvres-outer {
  position: relative;
  width: 100%;
}

/* Lien de navigation */
.prev-link-outer,
.next-link-outer {
  position: absolute;
  top: 200px;
  width: 40px;
  height: 40px;
  text-decoration: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease;
}

/* Crée les deux segments des chevrons */
.prev-link-outer::before,
.prev-link-outer::after,
.next-link-outer::before,
.next-link-outer::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 18px;
  background-color: #002d7a;
  border-radius: 1px;
  transition: transform .25s ease;
}

/* --- Chevron gauche "<" --- */
.prev-link-outer::before {
  transform: rotate(45deg);
  top: 5px;
  ;
}

.prev-link-outer:hover,
.next-link-outer:hover
 {
  opacity: 0.5;
  ;
}
.prev-link-outer::after {
  transform: rotate(-45deg);
  bottom: 6px;
  ;
}

/* --- Chevron droit ">" --- */
.next-link-outer::before {
  transform: rotate(-45deg);
  top: 5px;
  ;
}
.next-link-outer::after {
  transform: rotate(45deg);
  bottom: 6px;
  
}

/* Position horizontale */
.prev-link-outer { left: 30px; }
.next-link-outer { right: 30px; }

/* Version mobile */
@media screen and (max-width: 768px) {
  .navigation-oeuvres-outer {
    display: flex;
    justify-content: space-between;
    position: static;
    padding: 0 20px;
  }

  .prev-link-outer,
  .next-link-outer {
    position: static;
    width: 28px;
    height: 28px;
  }

  .prev-link-outer::before,
  .prev-link-outer::after,
  .next-link-outer::before,
  .next-link-outer::after {
    height: 14px;
    width: 2px;
  }
}


/* =========================================================
   CONTACT
   ========================================================= */
#contact {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}


#espacement-contact{

}

/* =========================================================
   ADMIN (inchangé)
   ========================================================= */
#form-connexion-admin {
  width: 400px;
  height: 220px;
  border: 2px solid #000;
  margin: 100px auto;
  text-align: center;
  border-radius: 5px;
}

#password {
  padding: 7px;
  background: #fff;
  border: 2px solid #000;
  color: #016e10;
}

#password:focus { background: #f8ffee; outline: none; }

#bouton_connexion_admin {
  padding: 7px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 3px 1px 1px #999;
  cursor: pointer;
}

#bouton_connexion_admin:hover { box-shadow: none; translate: 1px 1px; }

#lien_retour_connexion {
  color: #000;
  text-decoration: underline dotted 1px;
}
#lien_retour_connexion:hover {
  color: #000;
  text-decoration: underline solid 1px;
}

#titre-admin { text-align: center; }

#menu-admin {
  list-style: none;
  display: flex;
  justify-content: center;
}
#menu-admin li {
  height: 40px;
  text-align: center;
  margin: 20px;
  border-radius: 3px;
  display: flex;
}
#menu-admin li img {
  width: 30px;
  height: 30px;
  margin-top: 5px;
  transform: translateX(10px);
}
#menu-admin li.bleu { border: 2px solid #1b6fda; width: 180px; }
#menu-admin li.bleu:hover { background: #1b6fda; }
#menu-admin li.vert { border: 2px solid #4d8bf8; width: 180px; }
#menu-admin li.vert:hover { background: #4d8bf8; }
#menu-admin li.rouge { border: 2px solid #ee553d; width: 120px; }
#menu-admin li.rouge:hover { background: #ee553d; }
#menu-admin li a {
  display: block;
  width: 100%;
  text-decoration: none;
  padding-top: 10px;
}
#menu-admin li.bleu a { color: #1b6fda; font-weight: bold; }
#menu-admin li.rouge a { color: #ee553d; }
#menu-admin li.vert a { color: #4d8bf8; }
#menu-admin li:hover a { color: #fff; }


/* =========================================================
   /creations (galerie) — version scoppée & label au hover
   ========================================================= */
#creations-galerie{
  width: 90%;
}

/* Grille sans espace, 3 colonnes desktop */
#creations-galerie .grid-creations{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0;
}

/* 2 colonnes tablette, 1 colonne mobile */
@media (max-width:1024px){
  #creations-galerie .grid-creations{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:600px){
  #creations-galerie .grid-creations{ grid-template-columns:1fr; }
}

/* Lien item */
#creations-galerie .grid-item{
  display:block;
  text-decoration:none;
  color:inherit;
  margin:3px;
  padding:0;
  line-height:0; /* supprime l'interligne autour des <img> inline */
}

/* Figure carré + reset de marge uniquement ici */
#creations-galerie figure,
#creations-galerie .grid-figure{
  margin:0;
}
#creations-galerie .grid-figure{
  position:relative;
  overflow:hidden;
  aspect-ratio:1/1;    /* carré */
  background:#e8eef7;
}

/* Image plein cadre */
#creations-galerie .grid-figure img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .25s ease;
}
#creations-galerie .grid-item:hover .grid-figure img{
  transform:scale(1.02);
}

/* Label centré — CACHÉ par défaut, visible au hover/focus */
#creations-galerie .grid-label{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  text-align:center;
  pointer-events:none;        /* clic passe à travers */
  opacity:0;                  /* caché par défaut */
  transform:translateY(4px);  /* petite translation pour l'effet */
  transition:opacity .2s ease, transform .2s ease, background .2s ease;
  background:transparent;     /* pas de voile par défaut */
}

/* Pastille du label */
#creations-galerie .grid-label span {
  display: flex;                   /* active le flexbox */
  align-items: center;             /* centre verticalement */
  justify-content: center;         /* centre horizontalement */
  background: rgba(0,0,0,.6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: white;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px;
  line-height: 1.2;
  box-sizing: border-box;          /* pour que le padding ne déborde pas */
}

/* Montre le label au survol clavier / souris */
#creations-galerie .grid-item:hover  .grid-label,
#creations-galerie .grid-item:focus-visible .grid-label{
  opacity:1;
  transform:none;
  background:rgba(0,0,0,.08); /* voile très léger derrière le texte (optionnel) */
}

/* Accessibilité : contour au focus clavier uniquement */
#creations-galerie .grid-item:focus-visible .grid-label span{
  outline:2px solid #002d7a;
  outline-offset:2px;
}

#boutons-gestion-projet img{
  width: 50px;
}

#boutons-gestion-projet ul{
  list-style-type: none;
  display: flex;
}


/* ======= Menu burger (responsive) — minimal & sans impact desktop ======= */

/* Bouton burger caché sur desktop */
.burger{
  display: none;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 1001; /* au-dessus du panneau */
}

/* 3 barres */
.burger span{
  position: absolute;
  left: 8px;
  right: 8px;
  height: 4px;
  background: #002d7a;
  border-radius: 1px;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger span:nth-child(1){ top: 12px; }
.burger span:nth-child(2){ top: 19px; }
.burger span:nth-child(3){ top: 26px; }

/* état ouvert = croix */
.burger.is-open span:nth-child(1){
  top: 19px;
  transform: rotate(45deg);
}
.burger.is-open span:nth-child(2){
  opacity: 0;
}
.burger.is-open span:nth-child(3){
  top: 19px;
  transform: rotate(-45deg);
}

/* Panneau mobile (<= 820px) */
@media (max-width: 820px){
  /* Affiche le burger */
  .burger{ display: inline-block; }

  /* Le conteneur des menus devient un panneau plein écran, caché par défaut */
  #menus{
    position: fixed;
    inset: 0;
    background: #fff;
    padding: 96px 24px 24px;     /* espace pour laisser le header/burger respirer */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* enlève le space-between */
    align-items: stretch;
    gap: 0;                      /* pas d’espace vertical ajouté */
    transform: translateY(-100%);
    transition: transform .25s ease;
    z-index: 999;                /* sous le header (qui a 1000) */
  }
  /* Ouvert */
  #menus.is-open{ transform: translateY(0); }

  /* Listes verticales en mobile */
  #menu, #menu-contact{
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  #menu li, #menu-contact li{
    margin: 0 0 12px 0;
  }

  /* Pas de soulignement animé en mobile pour éviter les “sauts” */
  #menu li a, #menu-contact li a{
    border-bottom-width: 0 !important;
    font-size: 1.3em;
    padding: 6px 0;
  }
}

/* Desktop (>= 821px) : aucun changement visuel, on garde ton layout existant */
@media (min-width: 821px){
  /* rien à ajouter */
}


/* ========= Afficher toute l'image de fond sur petite résolution ========= */
@media (max-width: 600px){
  #fond-bleu{
    background-size: contain;      /* montre l’image entière */
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 100vh;             /* pour conserver un vrai panneau plein écran */
  }
}

/* Masquer l'image de fond dédiée au mobile sur desktop */
#fond-bleu-img { 
  display: none; 
}

/* En mobile, on cache le background CSS et on montre l'image */
@media (max-width: 600px){
  #fond-bleu { 
    background-image: none;      /* évite le doublon */
    position: relative; 
    min-height: 100vh;
  }
  #fond-bleu-img {
    display: block;
    position: absolute;          /* l'image remplit le conteneur */
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;         /* affichée entière */
    pointer-events: none;        /* clics passent à travers */
    z-index: 0;
  }
  header { position: relative; z-index: 1; } /* header au-dessus de l'image */

  #image-accueil {

  display: block;
}

.photo-nous, .photo-ateliers {
  width: 100%;
}

#creations-galerie .grid-label{

  opacity:1;                  
}

}

#container-ateliers{
    text-align: center;

}

#liste-ateliers{
  list-style-type: none;
  text-align: center;
    display: inline-block;
}

#liste-ateliers li{
  border: 1px solid grey;
  margin: 3px;
  border-radius: 3px;
  width: 200px;
  background-color: white;
  color: #3377C4;;
  text-align: center;
}

#liste-ateliers li:hover{
    background-color: #3377C4;
    color: white;
}

#liste-ateliers a{
    padding: 5px ;

  color: #3377C4;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

#liste-ateliers a:hover{
  color: white;
}

.photo-ateliers {
  width: 70%;
  display: block;
  border-radius: 2px;
  margin: 10px auto;
}

#galerie-ateliers{
  display: flex;
  justify-content: center;
}

#galerie-ateliers img{
  width: 300px;
  margin: 5px;
  border-radius : 3px;

}