/* GLOBAL */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  color: #222;

  background: url('../images/Background.jpg') center/cover no-repeat fixed;
}

/* NAV */
nav {
  background: #1f2937;
  padding: 15px;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}




/* CONTAINER */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* TUILES */
.tile {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.tile h2 {
  margin-top: 0;
}

/* LISTE */
ul {
  padding-left: 20px;
}

/* HERO AVEC IMAGE */
.hero {
  height: 300px;
  position: relative;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero-overlay {
  background: rgba(0,0,0,0.5);
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* IMAGES DANS LES TUILES */
.tile-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* CONTENEUR MINIATURES */
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* MINIATURES */
.thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s;
}

.thumb:hover {
  transform: scale(1.05);
}

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
  touch-action: pan-y;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.2s;
}

/* GRILLE ADMIN */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

/* ITEM IMAGE */
.admin-item {
  position: relative;
}

/* MINIATURE */
.admin-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-thumb:hover {
  transform: scale(1.05);
  transition: 0.2s;
}

/* BOUTON SUPPRESSION */
.delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255,0,0,0.8);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
}

/* Fond spécifique admin */
body.admin\.php {
  background: #f4f4f4;
}

/* Supprimer effet transparent */
body.admin\.php .tile {
  background: grey;
  backdrop-filter: none;
}

/* NAV TABS */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-form {
  max-width: 500px;
}

.tab-btn {
  padding: 10px 15px;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 6px;
}

.tab-btn.active {
  background: #1f2937;
  color: white;
}

/* CONTENU */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* FORM ADMIN */
input, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
}

/* TEXTAREA spécifique */
textarea {
  min-height: 120px;
  resize: vertical;
}


/* GRID */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* TUILE */
.program-tile {
  height: 300px; /* 🔥 avant ~150px → x2 */
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}

/* OVERLAY */
.program-tile .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
}

/* MODAL */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;

  max-width: 600px;
  width: 90%;

  max-height: 80vh;   /* 🔥 limite hauteur */
  overflow-y: auto;   /* 🔥 scroll vertical */
}

.modal-content p {
  line-height: 1.6;
}

.program-tile:hover {
  transform: scale(1.05);
  transition: 0.2s;
}
.info-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* CARD PRINCIPALE */
.main-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

/* LIGNE 2 */
.info-row {
    display: flex;
    gap: 30px;
}

/* 2 colonnes */
.info-row .info-card {
    flex: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
    }
}

/* STYLE GENERAL */
.info-card {
    background: rgba(255,255,255,0.9);
    padding: 25px;
    border-radius: 10px;
}

.contact-container {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.contact-card {
    max-width: 800px;
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.contact-card h2 {
    margin-bottom: 20px;
}


.footer-text {
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
	text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* compteur */
.footer-text span {
    font-weight: bold;
    font-size: 22px;
}