/* Site de François Gaimard — page d'accueil */
:root {
  --encre: #2b2140;
  --doux: #6a6178;
  --framboise: #c81e5f;
  --orange: #f07814;
  --violet: #783cbe;
  --turquoise: #14969f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 18px/1.6 "Nunito", system-ui, sans-serif;
  color: var(--encre);
  background: #fffaf3;
}

/* ---------- Bandeau ---------- */
.bandeau {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 24px;
  padding: 40px max(24px, calc((100% - 1200px) / 2)) 48px;
  /* fond lumineux avec de grandes taches de couleur douces */
  background:
    radial-gradient(circle at 8% 15%, rgba(240, 120, 20, .22), transparent 38%),
    radial-gradient(circle at 92% 10%, rgba(20, 150, 159, .20), transparent 40%),
    radial-gradient(circle at 60% 110%, rgba(200, 30, 95, .18), transparent 45%),
    linear-gradient(135deg, #fff4e3 0%, #ffffff 55%, #f2ecff 100%);
  border-bottom: 6px solid transparent;
  border-image: linear-gradient(90deg, var(--framboise), var(--orange), var(--violet), var(--turquoise)) 1;
}

.bonjour {
  margin: 0;
  font-weight: 600;
  color: var(--doux);
  letter-spacing: .04em;
}
.bandeau h1 {
  margin: 4px 0 18px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: 1;
  letter-spacing: -.01em;
}
.bandeau h1 span {
  display: block;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, var(--framboise), var(--orange) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.themes span {
  padding: 5px 14px;
  border-radius: 99px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.t-voyages { background: var(--turquoise); }
.t-cinema  { background: var(--framboise); }
.t-musique { background: var(--violet); }
.t-dessin  { background: var(--orange); }

.bandeau-image {
  width: 100%;
  height: auto;
  animation: flotte 6s ease-in-out infinite;
}
@keyframes flotte {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(-1deg); }
}

/* ---------- Contenu (provisoire) ---------- */
.contenu { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.bientot { font-size: 20px; color: var(--doux); text-align: center; }
.pied { text-align: center; padding: 24px; color: var(--doux); font-size: 14px; }

/* ---------- Téléphone / tablette ---------- */
@media (max-width: 760px) {
  .bandeau { grid-template-columns: 1fr; padding: 28px 18px 32px; text-align: center; }
  .themes { justify-content: center; }
  .bandeau-image { max-width: 520px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bandeau-image { animation: none; }
}

/* étiquettes de l'accueil devenues liens */
.themes a { padding: 5px 14px; border-radius: 99px; color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .15s; }
.themes a:hover { transform: translateY(-2px); }

/* =================== Page Voyages =================== */
.fil { max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.fil a { color: var(--doux); font-weight: 800; text-decoration: none; }
.fil a:hover { color: var(--turquoise); }

.panorama { position: relative; }
.panorama img { display: block; width: 100%; height: clamp(220px, 34vw, 440px); object-fit: cover; object-position: 35% 50%; }
.panorama::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--framboise), var(--orange), var(--violet), var(--turquoise));
}
.panorama-titre {
  position: absolute; left: max(24px, calc((100% - 1200px) / 2)); top: clamp(16px, 3vw, 36px);
  color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.etiquette { display: inline-block; padding: 4px 14px; border-radius: 99px; color: #fff; font-weight: 800; font-size: 15px; text-shadow: none; }
.panorama h1 {
  margin: 6px 0 0; font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(38px, 6vw, 76px); line-height: 1;
}
.panorama h1 span { font-style: italic; font-weight: 400; }

.intro { font-size: 20px; color: var(--doux); max-width: 46ch; margin: 0 0 32px; }

.carte-lien {
  display: flex; align-items: center; gap: 22px; max-width: 720px;
  padding: 22px 26px; border-radius: 20px; text-decoration: none; color: var(--encre);
  background: #fff; border-left: 8px solid var(--turquoise);
  box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 30px rgba(20, 150, 159, .18);
  transition: transform .15s, box-shadow .15s;
}
.carte-lien:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(20, 150, 159, .28); }
.carte-icone {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-size: 32px; background: linear-gradient(135deg, #d6f3f2, #fff1de);
}
.carte-texte { flex: 1; }
.carte-texte strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 600; line-height: 1.2; }
.carte-texte span { color: var(--doux); font-size: 17px; }
.carte-fleche { flex: none; font-size: 30px; font-weight: 800; color: var(--turquoise); transition: transform .15s; }
.carte-lien:hover .carte-fleche { transform: translateX(5px); }

@media (max-width: 760px) {
  .fil { padding: 12px 18px; }
  .panorama-titre { left: 18px; top: 14px; }
  .contenu { padding: 36px 18px; }
  .carte-lien { gap: 14px; padding: 18px; }
  .carte-icone { width: 48px; height: 48px; font-size: 24px; }
  .carte-texte strong { font-size: 22px; }
}

/* =================== Deuxième bouton de la page Voyages =================== */
.carte-lien + .carte-lien { margin-top: 18px; }
.carte-diaporamas { border-left-color: var(--framboise); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 30px rgba(200, 30, 95, .16); }
.carte-diaporamas:hover { box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(200, 30, 95, .26); }
.carte-diaporamas .carte-icone { background: linear-gradient(135deg, #ffe0ea, #fff1de); }
.carte-diaporamas .carte-fleche { color: var(--framboise); }

/* =================== Page Diaporamas =================== */
.entete-page {
  padding: 36px max(24px, calc((100% - 1200px) / 2)) 40px;
  background:
    radial-gradient(circle at 10% 20%, rgba(20, 150, 159, .20), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(200, 30, 95, .16), transparent 42%),
    linear-gradient(135deg, #eaf8f7, #ffffff 55%, #fff1e6);
  border-bottom: 6px solid transparent;
  border-image: linear-gradient(90deg, var(--framboise), var(--orange), var(--violet), var(--turquoise)) 1;
}
.entete-page h1 { margin: 8px 0 6px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(36px, 5.5vw, 66px); line-height: 1.05; }
.entete-page h1 span { font-style: italic; font-weight: 400; color: var(--turquoise); }
.entete-page p { margin: 0; color: var(--doux); font-size: 19px; }

.mur-diapos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.carte-diapo { display: block; text-decoration: none; color: var(--encre); }
.couverture {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px;
  background: linear-gradient(135deg, var(--turquoise), var(--violet));
  box-shadow: 0 10px 26px rgba(43, 33, 64, .18);
}
.couverture img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carte-diapo:hover .couverture img { transform: scale(1.05); }
.nb-photos { position: absolute; left: 12px; bottom: 12px; padding: 3px 12px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; font-weight: 800; }
.lire {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 5px; font-size: 26px; color: #fff;
  background: var(--framboise); opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s;
}
.carte-diapo:hover .lire { opacity: 1; transform: none; }
.carte-diapo strong { display: block; margin-top: 12px; font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.25; }
.carte-diapo .desc { display: block; color: var(--doux); font-size: 16px; }
.discret { color: var(--doux); }

/* =================== Lecteur de diaporama =================== */
.page-diapo { background: #17131d; color: #f3eef8; }
.diapo { max-width: 1400px; margin: 0 auto; padding: 12px 20px 16px; background: #17131d; }
.diapo-tete { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding: 4px 0 12px; }
.diapo-tete .retour { color: #c9bfd6; font-weight: 800; text-decoration: none; }
.diapo-tete .retour:hover { color: #fff; }
.diapo-tete h1 { margin: 0; flex: 1; font-family: "Fraunces", Georgia, serif; font-weight: 400; font-style: italic; font-size: clamp(22px, 3vw, 34px); }
.compteur { color: #c9bfd6; font-weight: 800; }

.scene { position: relative; display: flex; align-items: center; justify-content: center; height: min(72vh, 820px); background: #0e0b12; border-radius: 12px; overflow: hidden; touch-action: pan-y; }
.scene .couche {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.scene .couche.visible { opacity: 1; }
.scene .couche.dessus { z-index: 1; }
/* léger zoom lent pendant la lecture automatique */
.scene.lecture .couche.zoom { animation: zoom-doux 7.5s ease-out forwards; }
@keyframes zoom-doux { from { transform: scale(1); } to { transform: scale(1.05); } }
.nav, .avance { z-index: 2; }
.nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; transition: background .15s;
}
.nav:hover { background: var(--framboise); }
.prec { left: 14px; }
.suiv { right: 14px; }
.avance { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.avance div { height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--framboise)); }

.sous-scene { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 12px 0; }
.legende { margin: 0; flex: 1; min-height: 1.6em; font-size: 18px; }
.commandes { display: flex; gap: 8px; }
.cmd { border: 2px solid rgba(255,255,255,.25); background: none; color: #fff; padding: 7px 16px; border-radius: 99px; font: 800 15px "Nunito", sans-serif; cursor: pointer; }
.cmd:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.vignettes { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.vignettes button { flex: none; width: 96px; height: 64px; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; background: #2a2433; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.vignettes button:hover { opacity: .9; }
.vignettes button.actif { opacity: 1; border-color: var(--orange); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.diapo-desc { max-width: 1400px; margin: 0 auto; padding: 8px 20px 40px; color: #c9bfd6; font-size: 17px; }
.page-diapo .bientot { color: #c9bfd6; padding: 60px 0; }

/* plein écran : la photo prend toute la place */
.diapo:fullscreen { max-width: none; width: 100%; height: 100%; display: flex; flex-direction: column; padding: 10px 16px; }
.diapo:fullscreen .scene { flex: 1; height: auto; border-radius: 0; }
.diapo:fullscreen .vignettes { display: none; }
.diapo:-webkit-full-screen { max-width: none; width: 100%; height: 100%; display: flex; flex-direction: column; }
.diapo:-webkit-full-screen .scene { flex: 1; height: auto; }

@media (max-width: 760px) {
  .diapo { padding: 8px 10px 12px; }
  .scene { height: 58vh; border-radius: 8px; }
  .nav { width: 42px; height: 42px; font-size: 26px; }
  .prec { left: 6px; } .suiv { right: 6px; }
  .vignettes button { width: 72px; height: 50px; }
  .entete-page { padding: 24px 18px 28px; }
}

/* =================== Espace admin =================== */
.barre-admin { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 8px 18px; background: var(--encre); color: #fff; font-size: 15px; }
.barre-admin nav { display: flex; gap: 6px; flex-wrap: wrap; }
.barre-admin a { color: #fff; text-decoration: none; font-weight: 800; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.12); }
.barre-admin a:hover { background: rgba(255,255,255,.25); }

.page-admin { background: #f7f3fb; }
.porte { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.carte-porte { width: 100%; max-width: 400px; background: #fff; padding: 36px 28px; border-radius: 22px; box-shadow: 0 12px 34px rgba(43,33,64,.12); text-align: center; border-top: 8px solid var(--turquoise); }
.carte-porte h1 { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 32px; }
.carte-porte form { display: grid; gap: 14px; margin: 20px 0; text-align: left; }
.carte-porte .bouton { justify-self: center; }

.page-admin label { display: grid; gap: 4px; font-weight: 800; font-size: 14px; color: var(--doux); }
.page-admin input, .page-admin textarea { font: 16px "Nunito", sans-serif; color: var(--encre); padding: 9px 12px; border: 2px solid #e2dbea; border-radius: 10px; background: #fff; width: 100%; }
.page-admin input:focus, .page-admin textarea:focus { outline: none; border-color: var(--turquoise); }
.erreur { color: #c0392b; font-weight: 800; margin: 0; }

.bouton { display: inline-block; border: 0; cursor: pointer; background: var(--turquoise); color: #fff; font: 800 16px "Nunito", sans-serif; text-decoration: none; padding: 11px 24px; border-radius: 99px; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.bouton:hover { filter: brightness(1.08); }
.bouton.petit { font-size: 15px; padding: 8px 18px; }
.bouton.clair { background: var(--framboise); }

.contenu-admin { max-width: 1000px; margin: 0 auto; padding: 20px 16px 60px; }
.contenu-admin > p a { color: var(--violet); font-weight: 800; }
.titre-admin { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 34px; margin: 6px 0 18px; }
.message { background: #e3f6f4; border-left: 6px solid var(--turquoise); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.aide { color: var(--doux); }
.panneau { display: grid; gap: 14px; background: #fff; padding: 22px; border-radius: 18px; box-shadow: 0 6px 20px rgba(43,33,64,.08); margin-bottom: 22px; }
.panneau h2 { margin: 0; font-size: 20px; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.creer { border-top: 6px solid var(--orange); }

.liste-admin { display: grid; gap: 12px; margin-bottom: 20px; }
.ligne-diapo { display: flex; align-items: center; gap: 16px; padding: 12px; background: #fff; border-radius: 14px; text-decoration: none; color: var(--encre); box-shadow: 0 4px 14px rgba(43,33,64,.07); }
.ligne-diapo:hover { box-shadow: 0 6px 20px rgba(43,33,64,.14); }
.ligne-diapo img, .sans-photo { flex: none; width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.sans-photo { display: grid; place-items: center; background: #efe9f5; font-size: 28px; }
.ligne-diapo > span:nth-child(2) { flex: 1; }
.ligne-diapo small { color: var(--doux); }
.ligne-diapo .fleche { font-weight: 800; color: var(--turquoise); }

.depot { margin-bottom: 22px; }
.zone { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 30px 16px; cursor: pointer; border: 3px dashed var(--orange); border-radius: 20px; background: #fff; color: var(--doux) !important; font-weight: 400 !important; font-size: 16px !important; }
.zone:hover, .zone.survol { background: #fff5ea; border-color: var(--framboise); }
.zone strong { font-size: 22px; color: var(--encre); font-family: "Fraunces", Georgia, serif; }
.plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 34px; line-height: 1; margin-bottom: 4px; }
#progression { margin-top: 12px; }
.jauge { height: 12px; background: #e9e2f0; border-radius: 99px; overflow: hidden; }
#jauge { height: 100%; width: 0; background: linear-gradient(90deg, var(--framboise), var(--orange), var(--turquoise)); transition: width .3s; }
#etat { font-weight: 800; margin: 8px 0 0; }

.grille-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.case-photo { position: relative; display: grid; gap: 6px; background: #f7f3fb; padding: 8px; border-radius: 12px; scroll-margin-top: 70px; }
.case-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.case-photo .num { position: absolute; top: 14px; left: 14px; min-width: 26px; padding: 1px 7px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; font-weight: 800; text-align: center; }
.case-photo input { font-size: 14px !important; padding: 6px 8px !important; }
.outils { display: flex; gap: 4px; }
.outils button { flex: 1; border: 2px solid #e2dbea; background: #fff; border-radius: 8px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.outils button:hover:not(:disabled) { border-color: var(--turquoise); }
.outils button:disabled { opacity: .3; cursor: default; }
.outils .rouge:hover { border-color: #c0392b; }
.supprimer-diapo { text-align: right; }
.lien-rouge { border: 0; background: none; color: #c0392b; font: 800 15px "Nunito", sans-serif; cursor: pointer; text-decoration: underline; }

/* Accès admin bien visible */
.fil { display: flex; justify-content: space-between; align-items: center; }
.fil .lien-admin { padding: 4px 14px; border: 2px solid #ddd3e6; border-radius: 99px; font-size: 15px; }
.fil .lien-admin:hover { border-color: var(--turquoise); }
.bouton-nouveau { display: inline-block; margin-top: 18px; padding: 10px 22px; border-radius: 99px; background: var(--orange); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.bouton-nouveau:hover { filter: brightness(1.08); }
.gerer { display: inline-block; margin-top: 8px; padding: 4px 12px; border: 2px solid #ddd3e6; border-radius: 99px; color: var(--encre); font-weight: 800; font-size: 14px; text-decoration: none; }
.gerer:hover { border-color: var(--turquoise); color: var(--turquoise); }

/* Bouton « Accueil » toujours présent à côté du lien de retour */
.fil-gauche { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
p.fil-gauche { display: flex; margin: 0 0 14px; }
.fil-gauche a { padding: 4px 14px; border: 2px solid #ddd3e6; border-radius: 99px; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--doux); background: #fff; }
.fil-gauche a:hover { border-color: var(--turquoise); color: var(--turquoise); }
.fil-gauche a.btn-accueil { background: var(--turquoise); border-color: var(--turquoise); color: #fff; }
.fil-gauche a.btn-accueil:hover { filter: brightness(1.1); color: #fff; }
/* version sombre dans le lecteur */
.diapo-tete { align-items: center; }
.diapo-tete .fil-gauche a.btn-retour { background: none; border-color: rgba(255,255,255,.25); color: #c9bfd6; }
.diapo-tete .fil-gauche a.btn-retour:hover { border-color: #fff; color: #fff; }

/* =================== Petits films =================== */
.carte-films { border-left-color: var(--violet); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 30px rgba(120, 60, 190, .16); }
.carte-films:hover { box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(120, 60, 190, .26); }
.carte-films .carte-icone { background: linear-gradient(135deg, #ece2fb, #fff1de); }
.carte-films .carte-fleche { color: var(--violet); }

.entete-films {
  background:
    radial-gradient(circle at 10% 20%, rgba(120, 60, 190, .18), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(240, 120, 20, .18), transparent 42%),
    linear-gradient(135deg, #f3edff, #ffffff 55%, #fff1e6);
}
.entete-films h1 span { color: var(--violet); }

.mur-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.carte-film { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--encre); font: inherit; }
.ecran {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), var(--framboise) 60%, var(--orange));
  box-shadow: 0 10px 26px rgba(43, 33, 64, .2);
}
.ecran img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carte-film:hover .ecran img { transform: scale(1.05); }
.play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 6px; font-size: 26px; color: #fff;
  background: rgba(20, 14, 28, .55); border: 3px solid #fff; transition: background .2s, transform .2s;
}
.carte-film:hover .play { background: var(--violet); transform: scale(1.08); }
.carte-film strong { display: block; margin-top: 12px; font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.25; }
.carte-film .desc { display: block; color: var(--doux); font-size: 16px; }

.salle { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(14, 10, 20, .94); }
.salle[hidden] { display: none; }
.salle-boite { width: 100%; max-width: 1200px; color: #f3eef8; }
.salle-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.salle-tete h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(22px, 3vw, 32px); }
.salle-fermer { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.salle-fermer:hover { background: var(--violet); }
.salle-ecran { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 160px); margin: 0 auto; background: #000; border-radius: 10px; overflow: hidden; }
.salle-ecran video, .salle-ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.salle-desc { margin: 12px 0 0; color: #c9bfd6; font-size: 17px; }
.salle-desc:empty { display: none; }

/* admin des films */
.choix-source { display: flex; gap: 8px; flex-wrap: wrap; }
.onglet { border: 2px solid #e2dbea; background: #fff; border-radius: 99px; padding: 7px 16px; font: 800 15px "Nunito", sans-serif; color: var(--doux); cursor: pointer; }
.onglet.actif { background: var(--violet); border-color: var(--violet); color: #fff; }
.champs-film { display: grid; gap: 12px; }
.champs-film[hidden] { display: none; }
.champs-film .bouton { justify-self: start; }
.champs-film .bouton:disabled { opacity: .6; cursor: wait; }
.liste-films { display: grid; gap: 16px; }
.fiche-film { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; align-items: start; background: #fff; padding: 14px; border-radius: 16px; box-shadow: 0 6px 20px rgba(43,33,64,.08); scroll-margin-top: 70px; }
.vignette-film { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; font-size: 34px; background: linear-gradient(135deg, var(--violet), var(--orange)); }
.vignette-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.type-film, .envoi-incomplet { position: absolute; left: 8px; bottom: 8px; padding: 1px 9px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }
.envoi-incomplet { left: auto; right: 8px; background: #c0392b; }
.changer-affiche { display: inline-block !important; cursor: pointer; color: var(--violet) !important; text-decoration: underline; }
.outils-film { display: grid; gap: 6px; }
.outils-film form { margin: 0; }
.outils-film button { width: 42px; height: 34px; border: 2px solid #e2dbea; background: #fff; border-radius: 8px; cursor: pointer; }
.outils-film button:hover:not(:disabled) { border-color: var(--turquoise); }
.outils-film button:disabled { opacity: .3; cursor: default; }
.outils-film .rouge:hover { border-color: #c0392b; }
@media (max-width: 700px) {
  .fiche-film { grid-template-columns: 1fr; }
  .outils-film { grid-auto-flow: column; justify-content: start; }
}

/* =================== Rubriques en construction =================== */
.entete-t-cinema { background: radial-gradient(circle at 10% 20%, rgba(200, 30, 95, .18), transparent 40%), radial-gradient(circle at 90% 0%, rgba(240, 120, 20, .16), transparent 42%), linear-gradient(135deg, #fdebf1, #ffffff 55%, #fff1e6); }
.entete-t-cinema h1 span { color: var(--framboise); }
.entete-t-musique { background: radial-gradient(circle at 10% 20%, rgba(120, 60, 190, .18), transparent 40%), radial-gradient(circle at 90% 0%, rgba(20, 150, 159, .16), transparent 42%), linear-gradient(135deg, #f1ebfd, #ffffff 55%, #e8f7f6); }
.entete-t-musique h1 span { color: var(--violet); }
.entete-t-dessin { background: radial-gradient(circle at 10% 20%, rgba(240, 120, 20, .20), transparent 40%), radial-gradient(circle at 90% 0%, rgba(200, 30, 95, .14), transparent 42%), linear-gradient(135deg, #fff1e1, #ffffff 55%, #fdebf1); }
.entete-t-dessin h1 span { color: var(--orange); }

.chantier {
  max-width: 640px; margin: 10px auto 20px; padding: 36px 30px; text-align: center;
  background: #fff; border-radius: 22px; box-shadow: 0 10px 30px rgba(43, 33, 64, .10);
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg, var(--framboise), var(--orange), var(--violet), var(--turquoise)) 1;
}
.chantier-icone { display: block; font-size: 54px; line-height: 1; animation: balance 2.4s ease-in-out infinite; }
@keyframes balance { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.chantier h2 { margin: 14px 0 8px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 28px; }
.chantier p { color: var(--doux); font-size: 18px; margin: 0 0 8px; }
.chantier-liens { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px !important; }
.chantier-liens .bouton { color: #fff; }
@media (prefers-reduced-motion: reduce) { .chantier-icone { animation: none; } }

/* Bandeau image d'une rubrique (ex. Cinéma) : voile sombre à gauche pour bien lire le titre */
.panorama-rubrique img { object-position: 50% 50%; }
.panorama-rubrique::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 12, 24, .78) 0%, rgba(20, 12, 24, .45) 38%, transparent 65%);
}
.panorama-rubrique .panorama-titre { z-index: 1; top: 50%; transform: translateY(-50%); }
.panorama-accroche { margin: 10px 0 0; max-width: 34ch; font-size: clamp(16px, 1.6vw, 20px); color: #f5ecf8; }
@media (max-width: 760px) {
  .panorama-rubrique::before { background: rgba(20, 12, 24, .55); }
  .panorama-rubrique .panorama-titre { right: 18px; }
}

/* Carte « Drone et balades culturelles » (page Cinéma) */
.carte-drone { border-left-color: var(--framboise); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 30px rgba(200, 30, 95, .16); }
.carte-drone:hover { box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(200, 30, 95, .26); }
.carte-drone .carte-icone { background: linear-gradient(135deg, #ffe0ea, #fff1de); }
.carte-drone .carte-fleche { color: var(--framboise); }

/* Choix de la rubrique dans l'admin des vidéos */
.rubriques-films { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.rubriques-films a { padding: 7px 16px; border: 2px solid #e2dbea; border-radius: 99px; background: #fff; color: var(--doux); font-weight: 800; font-size: 15px; text-decoration: none; }
.rubriques-films a.actif { background: var(--encre); border-color: var(--encre); color: #fff; }

/* Balades en vélo et randos pédestres (page Cinéma) */
.carte-balades { border-left-color: var(--turquoise); }
.carte-balades .carte-icone { background: linear-gradient(135deg, #d6f3f2, #eaf7dd); }
.entete-balades { background: radial-gradient(circle at 10% 20%, rgba(20, 150, 159, .20), transparent 40%), radial-gradient(circle at 90% 0%, rgba(110, 170, 60, .18), transparent 42%), linear-gradient(135deg, #e6f6f4, #ffffff 55%, #eef8e4); }
.entete-balades h1 span { color: var(--turquoise); }

/* =================== Musique =================== */
.carte-synthes { border-left-color: var(--violet); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 30px rgba(120, 60, 190, .16); }
.carte-synthes:hover { box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(120, 60, 190, .26); }
.carte-synthes .carte-icone { background: linear-gradient(135deg, #ece2fb, #e2f4f3); }
.carte-synthes .carte-fleche { color: var(--violet); }
/* vignette d'un morceau sans pochette */
.note-audio { position: absolute; left: 18px; top: 10px; font-size: 44px; color: rgba(255,255,255,.75); }
/* lecteur d'un morceau : pochette + commandes audio */
.salle-ecran .pochette {
  position: absolute; inset: 0 0 54px; display: grid; place-items: center; font-size: 90px;
  background: linear-gradient(135deg, var(--violet), var(--framboise) 60%, var(--orange));
}
.salle-ecran .pochette img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.salle-ecran audio { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 54px; background: #f1f3f4; }

/* bouton d'ajout (admin) sous un bandeau photo */
.admin-ajout { max-width: 1200px; margin: 0 auto; padding: 18px 24px 0; }
.admin-ajout .bouton-nouveau { margin-top: 0; }

/* =================== Accueil : quatre vignettes décalées, une par rubrique =================== */
.accueil { padding-top: 48px; }
.titre-mosaique { margin: 0 0 30px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(30px, 4vw, 46px); }
.titre-mosaique span { font-style: italic; font-weight: 400; color: var(--framboise); }
.mosaique { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 10px 0 50px; }
.tuile {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px;
  background: #fff; border: 7px solid #fff; text-decoration: none; color: #fff;
  box-shadow: 0 2px 6px rgba(43,33,64,.10), 0 16px 34px rgba(43,33,64,.18);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform .25s ease, box-shadow .25s ease;
}
/* décalage « posé à la main » */
.tuile:nth-child(1) { --r: -2.5deg; --y: 0px; }
.tuile:nth-child(2) { --r: 2deg;    --y: 42px; }
.tuile:nth-child(3) { --r: -1.5deg; --y: 12px; }
.tuile:nth-child(4) { --r: 2.5deg;  --y: 54px; }
.tuile:hover { transform: rotate(0) translateY(-8px) scale(1.04); z-index: 2; box-shadow: 0 4px 10px rgba(43,33,64,.14), 0 24px 48px rgba(43,33,64,.28); }
.tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.tuile:hover img { transform: scale(1.07); }
.tuile-legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 16px 18px; background: linear-gradient(transparent, rgba(20, 12, 24, .82)); }
.tuile-legende strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.15; }
.tuile-legende em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; opacity: .9; }
.tuile-bord { position: absolute; left: 0; right: 0; top: 0; height: 7px; }
@media (max-width: 860px) {
  .mosaique { grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: 40px; }
  .tuile:nth-child(2) { --y: 26px; }
  .tuile:nth-child(4) { --y: 26px; }
  .tuile:nth-child(3) { --y: 0px; }
  .tuile-legende em { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .tuile { transform: none; } }
