/*
Theme Name: Artois S'Amuse
Theme URI:  https://example.com/artois-samuse
Author:      Generated by ChatGPT
Author URI:  https://openai.com
Description: Thème WordPress ludique et familial inspiré des affiches (montgolfière, couleurs vives).
Version:     1.1
License:     GNU General Public License v2 or later
Text Domain: artois-samuse
Tags: festival, family, games, colorful, responsive
*/

/* ===================== VARIABLES GLOBALES ===================== */

:root {
  --bg-top: #4bc2f6;
  --bg-bottom: #38b27c;
  --accent-yellow: #ffcc00;
  --accent-pink: #e84e6a;
  --accent-orange: #f68b1f;
  --accent-purple: #b23fc3;
  --accent-blue: #1c4ea0;
  --white: #ffffff;
  --card-radius: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}

html, body {
  min-height: 100%;
  margin: 0;
  /*font-family: 'Arial', sans-serif;*/
  background-color: #36AF7A;
  background: linear-gradient(180deg,rgba(0, 132, 199, 1) 0%, rgba(54, 175, 122, 1) 100%) no-repeat;
  color: #fff;
}
* {
  font-family: 'Negrita Pro';
  font-weight: normal;
  font-style: normal;
}

main {
  padding: 2px 200px;
}

p {
  text-align: left;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

@font-face {
  font-family: 'Negrita Pro';
  src: url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaPro.eot');
  src: local('Negrita Pro'), local('NegritaPro'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaPro.eot?#iefix') format('embedded-opentype'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaPro.woff2') format('woff2'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaPro.woff') format('woff'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaPro.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Negrita Pro Dingbat';
  src: url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProDingbat.eot');
  src: local('Negrita Pro Dingbat'), local('NegritaProDingbat'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProDingbat.eot?#iefix') format('embedded-opentype'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProDingbat.woff2') format('woff2'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProDingbat.woff') format('woff'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProDingbat.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Negrita Pro Oblique';
  src: url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProOblique.eot');
  src: local('Negrita Pro Oblique'), local('NegritaProOblique'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProOblique.eot?#iefix') format('embedded-opentype'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProOblique.woff2') format('woff2'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProOblique.woff') format('woff'),
      url('https://festival.anzinsamuse.fr/wp-content/themes/artois-samuse-theme/fonts/NegritaProOblique.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===================== HEADER & MENU ===================== */
.custom-logo {
  height: 50px;
  width: 40px;

}

.site-header {
  position: relative;        /* conserve le header dans le flux */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  background: rgba(255,255,255,0.06);
  border-radius: 36px;
  margin: 18px;
  backdrop-filter: blur(6px);
  z-index: 1100;             /* au-dessus de l'image floutée */
}


.site-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

/* === MENU DESKTOP === */
.nav-menu ul.menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu ul.menu > li {
  position: relative;
}

.nav-menu ul.menu > li > a {
  display: block;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: rgba(255,255,255,0.95);
  font-size: x-large;
  font-weight: lighter;
}

.nav-menu ul.menu > li > a:hover {
  background: rgba(255,255,255,0.06);
}

/* Sous-menu */
.nav-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0,0,0,0.85);
  border-radius: 16px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 1000;
  list-style: none;
}

.nav-menu ul.sub-menu li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: x-large;
}

.nav-menu ul.menu li:hover > ul.sub-menu {
  display: block;
}

/* Sous-sous-menu */
.nav-menu ul.sub-menu li {
  position: relative;
}

.nav-menu ul.sub-menu ul.sub-menu {
  top: 0;
  left: 100%;
}

/* === BURGER MENU === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === MENU MOBILE === */
@media (max-width: 900px) {
  main {
    padding: 0px 0px;
  }
  .burger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(0,0,0,0.95); /* légèrement plus foncé pour lisibilité */
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    transition: right 0.35s ease-in-out; /* un peu plus doux */
    box-shadow: var(--shadow);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(5px); /* bonus esthétique */
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu ul.menu {
    flex-direction: column;
    gap: 12px;
  }

  .nav-menu ul.sub-menu {
    position: static;
    display: none;
    margin-left: 12px;
    background: transparent;
    box-shadow: none;
  }

  .nav-menu ul.menu li:hover > ul.sub-menu {
    display: block;
  }
}


/* ===================== PAGE ACCUEIL ===================== */
#accueil, #default {
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 20px;
  overflow: visible;
  z-index: 1; /* texte par-dessus */
}
.hero-bg {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  filter: blur(8px) brightness(0.6);
}

.hero h1, .hero h2 {
  display: block;              /* <-- Évite inline-block pour bien empiler */
  text-align: center;          /* <-- Optionnel pour centrer le texte */
  margin: 10px 0;              /* <-- Laisse un peu d'espace entre eux */
}

.hero h1 {
  font-size: clamp(32px, 5vw, 70px);
  font-weight:900;
  color: #FEBF04;
  transform: rotate(-5deg);
  z-index: 1; /* texte par-dessus */
}
.hero h2 {
  font-size: clamp(20px, 5vw, 32px);
  font-weight:900;
  color: #FEBF04;
  transform: rotate(-5deg);
  z-index: 1; /* texte par-dessus */
}
.hero .dates {
  font-size: clamp(20px, 5vw, 36px);
  margin: 10px 10px;
  background: var(--accent-blue);
  display: inline-block;
  padding: 8px 16x;
  border-radius: 12px;
  transform: rotate(15deg);
  z-index: 1; /* texte par-dessus */
}

.hero #flasa-hero {
  display: flex;
  flex-direction: column;      /* <-- AJOUTÉ pour empiler h1 et h2 */
  align-items: center;
  justify-content: center;
  width: 50%;
  z-index: 1;
}

.hero #flasa-hero-default {
  width: 67%;
  text-align: center;
  border-left: #000;
  vertical-align: middle;
  z-index: 1; /* texte par-dessus */
}

.hero #flasa-montgolfiere {
  width: 50%;
}

.hero #flasa-montgolfiere-default {
  width: 33%;
}

.hero #flasa-montgolfiere-default > img {
  object-fit: contain;
}
.hero .row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-buttons {
  position: relative;
  margin-top: 20px;
  z-index: 1; /* texte par-dessus */
}

.cta-buttons>.btn {
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-size: larger;
  z-index: 1; /* texte par-dessus */
}

.btn.yellow { background: var(--accent-yellow); color: #000; }
.btn.pink { background: var(--accent-pink); }
.btn.orange { background: var(--accent-orange); }
.btn.purple { background: var(--accent-purple); }
.btn.blue { background: var(--accent-blue); }

/* Intro */
.intro {
  position: relative;
  padding: 60px 20px;
  z-index: 1;
}

.intro h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

/* Activités */
.activites {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  z-index: 1;
}

.card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
}

.card .icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 20px;
}

.card p {
  text-align: left;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* PROGRAMME */
.event-buttons {
  position: relative;
  margin-top: 20px;
  z-index: 1; /* texte par-dessus */
}

.event-buttons>.btn {
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-size: larger;
  z-index: 1; /* texte par-dessus */
}

.filter-btn.active {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.programme-day {
  margin-bottom: 60px;
}

.day-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 20px;
}

.programme-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.programme-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.no-thumb {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  font-size: 3rem;
}

.programme-content {
  padding: 20px;
}

.programme-content h3 {
  margin-top: 0;
  color: #1c4ea0;
}

.programme-content a {
  margin-top: 0;
  color: #1c4ea0;
}

.programme-content div {
  margin: 8px 0;
  color: #333;
  text-align: left;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.programme-content p {
  margin: 8px 0;
  color: #333;
}


/* Section partenaires */
.partenaires {
  position: relative;
  padding: 50px 20px;
  z-index: 1;
}

.partenaires>h2 {
  font-size: clamp(20px, 5vw, 32px);
  font-weight:900;
  color: #FEBF04;
  transform: rotate(-5deg);
  display: inline-block;
  margin: 20px 0;
  padding: 50px 20px;
}

.partenaires .logos {
  display: flex;
  flex-wrap: wrap;             /* Retour à la ligne si trop de logos */
  justify-content: center;     /* Centre horizontalement */
  gap: 30px;                   /* Espacement entre logos */
  align-items: center;         /* Centre verticalement les logos */
}

.partenaires .logos img {
  max-width: 200px;            /* Largeur max */
  max-height: 200px;           /* Hauteur max */
  width: auto;                 /* Préserve le ratio */
  height: auto;                /* Préserve le ratio */
  object-fit: contain;         /* Ajuste si image non proportionnée */
  flex: 0 1 auto;              /* Ne force pas l'étirement */
  border-radius: 50%;
}

/* ===================== FOOTER ===================== */
/* === Footer responsive uniquement sur mobile === */
@media (max-width: 900px) {
  /* On réorganise le footer */
  .site-footer .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* L'image prend toute la largeur */
  #artois img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  /* Masquer le copyright si tu veux uniquement l'image */
  #copy {
    display: none;
  }

  /* Supprimer les floats hérités */
  .column {
    float: none;
    width: 100%;
  }

  /* Supprime la hauteur forcée si elle gêne */
  #artois {
    height: auto;
    display: block;
  }
}

/* === FIN Footer responsive uniquement sur mobile === */


.site-footer {
  position: relative;
  margin-top: 300px;
  text-align: center;
  color: rgba(255,255,255,0.9);
  background-color: #7EBC1D;
  z-index: 1;
}

.column {
  float: left;
}

#artois {
	width: 25%;
  display: flex;
  align-items: flex-end;
  height: 105px;
}

#copy {
	width: 75%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

.filter-btn {
  margin: 10px;
  padding: 12px 20px;
  border-radius: 25px;
  color: #fff;
  font-size: larger;
  border-width: 0;
}

/** PROGRAMME **/
.programme-item {
  transition: all 0.3s ease;
  opacity: 1;
}
.programme-item.fade-in {
  opacity: 1;
}
.programme-item[style*="display: none"] {
  opacity: 0;
  transform: scale(0.98);
}
.programme-filters {
  text-align: center;
  margin-bottom: 2rem;
}
.filter-btn {
  background: #eee;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background: #ddd;
}
.filter-btn.active {
  background: #0073aa;
  color: #fff;
}

/* ===================== PAGE AUTEURS ===================== */
.page-template-page-authors .programme-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

/* === Card principale === */
.page-template-page-authors .programme-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 24px;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-template-page-authors .programme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* === En-tête du jeu : image + infos === */
.page-template-page-authors .programme-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

/* === Image === */
.page-template-page-authors .programme-thumb {
  flex: 0 0 33%;
  max-width: 33%;
}

.page-template-page-authors .programme-thumb img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  cursor: pointer; /* pour la modale */
}

/* === Partie texte à droite === */
.page-template-page-authors .programme-meta {
  flex: 1;
  min-width: 0;
}

.page-template-page-authors .programme-meta h2 {
  margin-top: 0;
  color: #1c4ea0;
  font-size: 1.4rem;
}

.page-template-page-authors .programme-meta p {
  color: #333;
  margin: 4px 0;
  line-height: 1.5;
}

/* === Infos du jeu (joueurs, durée, âge) === */
.page-template-page-authors .game-infos {
  font-family: 'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-template-page-authors .game-infos li {
  background: #eef2f9;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  color: #1c4ea0;
}

/* === Description sous l'en-tête === */
.page-template-page-authors .programme-description-full {
  font-family: 'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  margin-top: 16px;
  color: #333;
  line-height: 1.7;
  text-align: justify;
  font-size: 1rem;
}

.page-template-page-authors .programme-description-full p {
  margin-bottom: 1em;
}

.page-template-page-authors .programme-description-full h3,
.page-template-page-authors .programme-description-full h4 {
  color: #1c4ea0;
  margin-top: 1em;
  font-family: inherit;
}

/* === Responsive === */
@media (max-width: 768px) {
  .page-template-page-authors .programme-header {
    flex-direction: column;
  }

  .page-template-page-authors .programme-thumb {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-template-page-authors .programme-meta {
    width: 100%;
  }
}



/* ======= MODALE D'IMAGE ======= */
.image-modal {
  display: none; /* masquée par défaut */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(3px);
}

.image-modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.image-modal-close:hover {
  color: #ccc;
}

/* Animation légère d'apparition */
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.image-modal-content {
  animation: modalFadeIn 0.3s ease;
}
.image-modal-caption {
  margin: 15px auto;
  text-align: center;
  color: #000;
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 80%;
  line-height: 1.4;
  opacity: 0.9;
}

/* Style pour les éléments de menu non cliquables */
.menu-non-cliquable > a {
  pointer-events: none;       /* empêche le clic */
  cursor: default;            /* curseur standard */
}

/* Optionnel : effet visuel au survol */
.menu-non-cliquable:hover > a {
  color: #888 !important;
}

/* Optionnel : petit indicateur visuel (ex. flèche si sous-menus) */
.menu-non-cliquable > a::after {
  content: " ▼";
  font-size: 0.7em;
  opacity: 0.6;
}

/* ===================== PAGE ÉDITEURS ===================== */
.page-template-page-editors .programme-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

/* === Chaque éditeur === */
.page-template-page-editors .programme-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 24px;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  flex-direction: row;
}

.page-template-page-editors .programme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* === Colonne gauche : carrousel Swiper === */
.page-template-page-editors .programme-thumb {
  flex: 0 0 40%;
  max-width: 40%;
  order: 1;
}

.page-template-page-editors .swiper {
  width: 100%;
  height: auto;
  margin: 0;
}

.page-template-page-editors .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-template-page-editors .swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.page-template-page-editors .swiper-slide img:hover {
  transform: scale(1.02);
}

/* Pagination & boutons */
.page-template-page-editors .swiper-button-prev,
.page-template-page-editors .swiper-button-next {
  color: #1c4ea0;
}

.page-template-page-editors .swiper-pagination-bullet {
  background: #1c4ea0;
}

/* === Colonne droite : description === */
.page-template-page-editors .editor-content {
  flex: 1;
  min-width: 0;
  order: 2;
}

.page-template-page-editors .editor-content h2 {
  color: #1c4ea0;
  font-size: 1.4rem;
  margin-top: 0;
}

.page-template-page-editors .editor-description {
  font-family: 'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  margin-top: 16px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .page-template-page-editors .programme-card {
    flex-direction: column;
  }

  .page-template-page-editors .programme-thumb,
  .page-template-page-editors .editor-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* On force l’ordre logique : images d’abord, texte ensuite */
  .page-template-page-editors .programme-thumb {
    order: 1;
  }
  .page-template-page-editors .editor-content {
    order: 2;
  }
}
