/* ===========================
   IMPORTS & GLOBAL SETTINGS
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lora:wght@400&display=swap');

/* Global layout and base styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: #333;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    background-image: url("/static/images/parapluies_fleurs.jpeg");
}

/* Overlay semi-transparent pour adoucir l'image de fond */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1; /* placé derrière tous les éléments */
}

/*
   Une fois la page d'intro disparue (classe ajoutée via JS), on autorise le scroll
   et on cache complètement la div #intro
*/
body.intro-hidden {
    overflow-y: auto;
    scroll-behavior: smooth;
}

body.intro-hidden #intro {
    display: none;
    height: 0;
    overflow: hidden;
}

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#wrapper > footer {
    margin-top: auto; /* pousse le footer tout en bas */
}

/* ===========================
   TYPOGRAPHY & HEADINGS
   =========================== */

/* Bandeau du haut */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin: 0;
    color: #4f5948;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #4f5948;
}

p {
    margin: 10px 0;
    font-size: 1.2em;
}

ul {
    padding-left: 20px;
    font-size: 1.1em;
    color: #555;
}

label {
    font-weight: bold;
    color: #4f5948;
    font-size: 1em;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

/* Header styles */
header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

nav a {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: normal;
    color: #4f5948;
    font-size: 1em;
    letter-spacing: 1px;
    transition: color 0.3s, font-size 0.3s;
}

nav a:hover {
    color: #2f342c;
    font-size: 1.15em;
}

nav a.active {
    font-weight: bold;
    font-size: 1.15em;
}

/* Responsive nav bar */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===========================
   INTRO PAGE STYLES
   =========================== */

body.skip-intro #intro {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.skip-intro #main-site {
    margin-top: 0 !important;
}

/*
   Intro en pleine page, au-dessus du site principal.
   Reste visible jusqu'à scroll manuel ou auto.
*/

#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    background-image: url('/static/images/galerie/edgar_julie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: introFadeIn 3s ease forwards;
    z-index: 9999;
    pointer-events: auto;
    transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out;
}

/*
   Animation de fondu blanc vers photo visible
*/
@keyframes introFadeIn {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

/*
   Contenu textuel sur l'intro : titre et date
*/
.intro-content h1 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    text-align: right;     /* texte aligné à droite */
    transform: translateY(-80px); /* facultatif : remonter le bloc */
    padding-right: 40px;
}

.intro-content p {
    color: #fff;
    font-size: 1.5em;
    margin: 10px 0 20px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 2;
    text-align: right;     /* texte aligné à droite */
    transform: translateY(-80px); /* facultatif : remonter le bloc */
    padding-right: 40px;
}

@media screen and (max-width: 768px) {
  /* Prépare l'intro au positionnement absolu */
  #intro {
    position: absolute;  /* nécessaire pour que .intro-content soit absolu par rapport à #intro */
  }

  /* Colle ton bloc texte en haut à droite */
  #intro .intro-content {
    position: absolute;
    top: 150px;     /* distance depuis le haut, ajuste à ta convenance */
    right: 20px;   /* distance depuis le bord droit */
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  /* Titre mobile */
  #intro .intro-content h1 {
    font-size: 2em;
    line-height: 1.2;
    background: rgba(0,0,0,0.3);
    display: inline-block;
    border-radius: 6px;
    padding: 5px 10px;
    margin: 0 0 5px 0;
  }

  /* Date mobile, juste sous le titre */
  #intro .intro-content p {
    font-size: 1em;
    background: rgba(0,0,0,0.3);
    display: inline-block;
    border-radius: 6px;
    padding: 3px 8px;
    margin: 0;
  }
}



#intro.clickable {
    cursor: pointer;
    pointer-events: auto; /* autorise les clics sur toute la surface */
}

body.scrolled #intro {
  transform: translateY(-100vh);
  opacity: 0;
}

/*
   Icône flèche animée incitant à scroller
*/
.scroll-down {
    position: fixed;          /* positionnement par rapport au conteneur #intro */
    bottom: 40px;                /* espace par rapport au bas */
    left: 50%;                   /* centrage horizontal */
    transform: translateX(-50%); /* ajustement pour un centrage parfait */
    font-size: 2em;
    color: white;
    animation: bounce 1.5s infinite;
    cursor: pointer;
    z-index: 3;
    display: block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(30px); }
}

/*
   Zone principale du site (apparaît une fois l'intro scrollée ou naturellement)
*/
#main-site {
  margin-top: 100vh; /* push the content below intro */
  transition: margin-top 0.8s ease;
}

body.scrolled #intro {
  transform: translateY(-100vh); /* dégage l’intro visuellement */
}


/* ===========================
   SECTION LAYOUT
   =========================== */

/* Section styles */
section {
    padding: 30px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.collapsible-content {
  overflow: hidden;
  max-height: none; /* pour le rendu initial, on gère via JS */
  transition: max-height 0.3s ease;
}

.collapsible-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 20px; /* espace pour la flèche */
}

/* Flèche à droite qui tourne */
.collapsible-header::after {
  content: "►"; /* flèche droite */
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

/* Quand déplié, la flèche tourne vers le bas */
.collapsible-header.expanded::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Layout container */
.main-container {
    flex: 1;
    display: flex;
    min-height: 0;
}
/* ===========================
   FORMS & INPUTS
   =========================== */

/* Formulaire global */
form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Chaque bloc de champ */
.form-group {
    padding: 12px;
    flex-direction: column;
}

/* Inputs de base */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 0 0 2px transparent; /* pré-alloue l’espace */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

input[type="search"] {
    font-size: 16px;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Pour la barre de recherche */
#app input {
  font-size: 16px;
  line-height: 1.4;
}

/* Focus harmonisé */
input:focus,
select:focus,
textarea:focus {
    border-color: #4f5948;
    box-shadow: 0 0 0 2px rgba(79, 89, 72, 0.3); /* même taille que ci-dessus */
    outline: none;
}

/* Dropdown stylée */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  box-sizing: border-box;

  padding: 12px;
  padding-right: 40px; /* espace suffisant pour la flèche */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background-color: white;
  color: #333;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='30,50 70,90 110,50' fill='none' stroke='%234f5948' stroke-width='15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center; /* ajuste si besoin */
  background-size: 16px 16px;

  transition: border-color 0.3s, box-shadow 0.3s;
}


/* Hover visuel */
select:hover {
    border-color: #80a16a;
    box-shadow: 0 0 5px rgba(128, 161, 106, 0.3);
}

.select-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}


/* ===========================
   BUTTONS
   =========================== */

/* Button styles */
button {
    flex: 1;
    max-width: 200px;
    padding: 12px 18px;
    background-color: #80a16a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
    align-self: center;
    margin-top: 20px;
}

button:hover {
    background-color: #5b7848;
}

.remove-button-top {
  position: absolute;
  top: 4px;
  right: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.remove-button-top:hover {
  color: red;
  transform: scale(1.2);
}

.remove-button-top {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2em;
  padding: 0;
  line-height: 1;
  z-index: 10;
  display: block;
}

.remove-button-top:focus {
  outline: 2px dashed #333;
  outline-offset: 2px;
}

.guest {
  position: relative;
}

/* ===========================
   SECTION CALL TO ACTION RSVP
   =========================== */

.cta-rsvp {
    background-color: #f5f5f0;
    border: 2px solid #80a16a;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin: 60px auto;
    max-width: 800px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.cta-rsvp h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #4f5948;
    margin-bottom: 20px;
}

.cta-rsvp p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #80a16a;
    color: white;
    font-weight: bold;
    font-size: 1em;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #5b7848;
    transform: scale(1.05);
}

/* ===========================
            GUEST: RSVP
   =========================== */

.guest {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
}

.guest h3 {
    margin-top: 0;
    color: #4f5948;
    font-family: 'Playfair Display', serif;
}

#guest-counter {
    font-weight: bold;
    margin-top: 10px;
}

/* ===========================
           INFO AGE
   =========================== */

.form-group.age-field {
  /* annule tout padding/margin vertical sur ce bloc */
  margin-top: -20px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* bouton ℹ️ neutre */
.age-field .info-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1em;
  position: relative;
  z-index: 2;
}

/* bulle cachée par défaut */
.age-field .info-box {
  display: none;
  position: absolute;
  top: 270px;        /* remplace votre margin-top */
  left: 12%;         /* place la bulle juste à droite de son conteneur */
  margin-left: 4px;   /* petit espacement entre le 'i' et la bulle */
  background: rgba(255,250,205,0.95);
  padding: 0px 8px;
  font-size: 0.75em;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  white-space: nowrap;
  z-index: 1;
}

/* croix en haut‑droite */
.age-field .info-box .close-info {
  position: absolute;
  top: 2px; right: 4px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}
.age-field .info-box .close-info:hover {
  color: red;
}

/* ===========================
   COMPTEURS AVANT DATES
   =========================== */
.countdowns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.countdown {
  flex: 1;
  max-width: 200px;
  padding: 16px 12px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

/* Titre */

/* Valeur jours/heures */
.countdown span {
  display: block;
  font-size: 1.6em;
  font-weight: bold;
  line-height: 1.2;
}

/* État normal (> 14j) : fond vert pâle */
.countdown.normal {
  background: #e8f5e9;
  border: 1px solid #4caf50;
}
.countdown.normal span {
  color: #2e7d32;
}

/* Alerte (< 14j) : fond rouge clair */
.countdown.warning {
  background: #ffecec;
  border: 1px solid #e53935;
}
.countdown.warning span {
  color: #c62828;
}

/* Terminé : fond gris clair */
.countdown.done {
  background: #f0f0f0;
  border: 1px solid #999;
}
.countdown.done span {
  color: #666;
}


/* ===========================
         HEBERGEMENT
   =========================== */

.hebergements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.hebergement-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
    text-decoration: none;
}

.hebergement-card:hover {
    transform: translateY(-5px);
}

.hebergement-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.hebergement-details {
    padding: 15px;
    font-size: 0.95em;
    color: #333;
}

.hebergement-details a {
    color: #4f5948;
    font-weight: bold;
    text-decoration: none;
}

.hebergement-details a:hover {
    text-decoration: underline;
}

/* ===========================
            GALERIE
   =========================== */
#gallery {
    padding: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 700px; /* hauteur fixe */
    overflow-y: auto; /* scroll vertical */
    padding: 10px;
}

.gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    background-color: #f0f0f0;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

.folders-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Conteneur dossier */
.folder {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  transition: flex-basis 0.3s ease, box-shadow 0.3s ease;
}

/* Zone fermée (titre) */
.folder-closed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f0f0f0;
  cursor: pointer;
  user-select: none;
}
.folder-closed:hover {
  background: #e0e0e0;
}

/* Icône */
.folder-icon {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

/* Contenu ouvert, caché par défaut */
.folder-open {
  max-height: 0;
  padding: 0 1rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
  overflow: hidden;
}

/* Bouton de fermeture à l’intérieur */
.close-folder {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  margin-top: 0.5rem;
}
.close-folder:hover {
  color: red;
}

/* État “ouvert” */
.folder.open {
  flex-basis: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.folder.open .folder-open {
  max-height: 2000px;   /* assez grand pour tout contenu */
  padding: 1rem;
}
.folder.open .folder-icon {
  transform: rotate(90deg);
}


/* ===========================
           CAROUSELS
   =========================== */

/* Gallery carousel */
.gallery-carousel {
    background: transparent;
    margin-top: 20px;
    padding-bottom: 10px; /* Ajout pour laisser respirer les dots */
}

.carousel-cell {
    width: 300px;
    height: auto; /* fixe la hauteur totale */
    margin-right: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.2); /* ombre douce vers le bas */
    background: white;
    border: 1px solid #eee;
}

.carousel-cell img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0 0 12px 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.carousel-cell img:hover {
    transform: scale(1.05);
}

.select-checkbox {
    height: 40px;
    width: 100%;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    color: #4f5948;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
}

.select-checkbox label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.select-checkbox input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 5px;
    cursor: pointer;
}

#toggle-select.active {
    background-color: #4f5948;
    color: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.select-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
}

.select-controls button {
    background-color: #80a16a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    min-width: 150px;
    text-align: center;
}

.select-controls button:hover {
    background-color: #5b7848;
    transform: scale(1.05);
}

/* Espacement des points de navigation dans les carousels */
.flickity-page-dots {
    margin-top: 20px; /* ou plus si nécessaire */
    position: relative;
    z-index: 1;
}

/* Home carousel */
.home-carousel .carousel-cell {
    width: 300px;
    height: 140px; /* hauteur plus petite pour la page d'accueil */
    margin-right: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.home-carousel .carousel-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.home-carousel .invisible {
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

.home-carousel .visible {
  opacity: 1;
}

/* ===========================
      MODAL :  Zoom image
   =========================== */

/* Modal for full-size image */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    background: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.modal-prev, .modal-next {
  font-size: 3em;
  color: white;
  padding: 0 20px;
  cursor: pointer;
  pointer-events: all;
  user-select: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===========================
        INSTAGRAM FEED
   =========================== */

#instagram {
    text-align: center;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.instagram-preview img {
    width: 100%;
    max-width: 100px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.instagram-preview img:hover {
    transform: scale(1.03);
}

.instagram-preview a {
    text-decoration: none;
    color: #4f5948;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    font-size: 1.1em;
}

/* ===========================
       NOTRE HISTOIRE
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');

.histoire-page {
  position: relative;
  background-color: #fff;
  overflow: hidden;
}

.histoire-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='5000' viewBox='0 0 1000 5000'%3E%3Cpath d='M150 0 Q50 200, 350 400 T150 800 T350 1200 T150 1600 T350 2000 T150 2400 T350 2800 T150 3200 T350 3600 T150 4000 T350 4400' stroke='%23999' stroke-width='4' fill='none' stroke-dasharray='8,12'/%3E%3Ctext x='350' y='400' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='150' y='800' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='350' y='1200' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='150' y='1600' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='350' y='2000' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='150' y='2400' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='350' y='2800' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='150' y='3200' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='350' y='3600' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='150' y='4000' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3Ctext x='350' y='4400' font-size='24' text-anchor='middle' fill='%23FF5252'%3E📍%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.theme-bloc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 80px auto;
  max-width: 1000px;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.theme-bloc.gauche {
  flex-direction: row;
}

.theme-bloc.droite {
  flex-direction: row-reverse;
}

.theme-description {
  flex: 1;
  max-width: 100%;
  color: #333;
  padding: 25px;
  background: url('/static/images/papier-vintage.png') repeat;
  background-size: cover;
  background-blend-mode: lighten;
  opacity: 0.8;
  border: 2px dashed #bbb;
  border-radius: 0;
  font-family: 'Shadows Into Light', cursive;
  line-height: 1.7;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 4px 4px 8px rgba(0,0,0,0.1);
  clip-path: polygon(5% 0%, 95% 2%, 100% 10%, 98% 90%, 95% 98%, 5% 100%, 0% 90%, 2% 10%);
  background-color: rgba(255, 255, 255, 0.75);
}

.photos-stack {
  position: relative;
  width: 200px;
  height: 200px;
  cursor: pointer;
  flex-shrink: 0;
}

.photo-polaroid {
  position: absolute;
  width: 180px;
  height: 180px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid white;
  padding: 10px 10px 40px;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 3px;
  top: 0;
  left: 0;
}

.photo-polaroid:hover {
  transform: scale(1.05);
  z-index: 20;
}

.photo-back {
  z-index: 0;
  filter: brightness(0.95);
  pointer-events: none;
}

.photos-stack img:nth-child(1) { transform: rotate(-1deg); z-index: 10; }
.photos-stack img:nth-child(2) { transform: rotate(3deg) translate(5px, 5px); z-index: 9; }
.photos-stack img:nth-child(3) { transform: rotate(-2.5deg) translate(-7px, 10px); z-index: 8; }
.photos-stack img:nth-child(4) { transform: rotate(5deg) translate(3px, 15px); z-index: 7; }
.photos-stack img:nth-child(5) { transform: rotate(-4deg) translate(-4px, 7px); z-index: 6; }

.photos-stack img:nth-child(n+6) {
  transform: rotate(0deg) translate(0, 0);
  top: 0;
  left: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.photos-stack img:first-child:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 30;
}

@media screen and (max-width: 768px) {
  .theme-bloc {
    flex-direction: column !important;
    text-align: center;
  }

  .theme-description {
    max-width: 100%;
  }

  .photos-stack {
    margin-bottom: 20px;
  }
}

/* ===========================
            MUSIQUE
   =========================== */

.track-card {
      background: rgba(255,255,255,0.9);
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .track-info {
      display: flex;
      align-items: center;
      gap: 15px;
    }
    .track-info img {
      width: 60px;
      height: 60px;
      border-radius: 8px;
    }
    .vote-btn {
      position: relative;
      min-width: 40px;
      height: 36px;
      padding: 8px 14px;
      border: none;
      border-radius: 20px;
      background-color: #80a16a;
      color: white;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.2s, transform 0.2s;
    }

    .vote-btn:hover:not(.voted):not(:disabled) {
      background-color: #5b7848;
    }

    .vote-btn.voted:hover:not(:disabled) {
      background-color: #b05656;
    }

    .vote-btn.voted {
      background-color: #c9b1b1;
      font-weight: normal;
      color: #333;
    }

    .vote-btn:disabled {
      opacity: 0.6;
      cursor: wait;
    }

    .vote-btn.disabled:hover {
      background-color: #a19c9c;
      color: #777;
      cursor: wait;
    }

    .vote-container {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 10px;
    }

    .vote-count {
      font-weight: bold;
    }

    .scrollable-track-list {
        max-height: 400px;
        overflow-y: auto;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
      }


/* Loader centré dans le bouton */
.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #888;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.track-card {
  transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
  opacity: 1;
}

.track-card.enter-active {
  opacity: 0;
  transform: translateY(10px);
}


/* ===========================
               FAQ
   =========================== */

.faq-section {
  width: auto;
  margin: 0 auto;
  padding: 20px;
}
.faq-item {
  border-bottom: 1px solid #ccc;
  font-size: 1.1em;
  padding: 10px 0;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-answer {
  width: auto;
  margin-top: 10px;
  background-color: #ebe1e1;
  padding: 10px;
}
.faq-item.open .faq-answer {
  display: block;
}
.arrow {
  transition: transform 0.3s;
}
.faq-item.open .arrow {
  transform: rotate(90deg);
}

.search-bar {
  margin: 20px auto;
  text-align: center;
}
.search-bar input {
  padding: 10px;
  width: 80%;
  max-width: 500px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* ===========================
           FOOTER
   =========================== */

/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #666;
    margin-top: auto;
}

/* ===========================
           POP UP MESSAGE
   =========================== */

/* Flash message (popup) */
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4f5948;
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    font-size: 1.1em;
    opacity: 0.95;
    cursor: pointer;
    text-align: center;
    max-width: 90%;
}

/* Ajoute à ton CSS */
.custom-popup {
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Couleur popup */
.popup-success { background-color: #4f5948; }
.popup-error { background-color: #a94442; }
.popup-info { background-color: #31708f; }
.popup-warning { background-color: #e0a800; }


/* ===========================
           BOUTON FLOTTANT
   =========================== */
#openPostitModal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffde59;
    border: none;
    color: black;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease-in-out;
    z-index: 10100 !important;
}

#openPostitModal:hover {
    transform: scale(1.1);
}

@media (max-width: 400px) {
    #openPostitModal {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}

.close-modal {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10001;
}

.close-modal:hover {
    color: red;
    transform: scale(1.2);
}

/* ===========================
          POST ITS
   =========================== */

#postitsContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100wv;
    height: 100vh;
    pointer-events: none;
    z-index: 800;
    overflow: visible;
}

.postit {
    position: absolute;
    padding: 12px 16px;
    width: max-content;
    max-width: 200px;
    font-family: 'Patrick Hand', cursive;
    font-size: 16px;
    background-color: #FFEB3B;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
    animation: stickDrop 0.6s ease-out forwards;
    opacity: 0;
    pointer-events: auto;
    overflow: hidden;
    z-index: 100;
    transform-origin: top left;
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 95% 100%, 0% 100%, 0% 0%);
    background-image: linear-gradient(135deg, transparent 10px, rgba(0,0,0,0.1) 10px);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: right bottom;
}

.postit .author {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-style: italic;
    text-align: right;
}

.postit .close-postit {
    position: absolute;
    top: 4px;
    right: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.postit .close-postit:hover {
    color: red;
    transform: scale(1.2);
}

@keyframes stickDrop {
    0% {
        transform: scale(0.3) translateY(-200px) rotateX(90deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(var(--rotation));
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.postit.fade-out {
    animation: fadeOut 0.6s ease forwards;
}

.modal-postits {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-postits-content {
    position: relative;
    background-color: #fff8dc;
    margin: 10% auto;
    padding: 20px;
    border: 2px dashed #333;
    width: 300px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    animation: bounceIn 0.4s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-postits-content,
.modal-postits-content input,
.modal-postits-content textarea,
.modal-postits-content button {
    font-family: 'Patrick Hand', cursive;
}

/* ===========================
          MENU
   =========================== */


@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
#mobileMenu,
#hamburger {
  font-family: 'Montserrat', sans-serif;
}

#hamburger {
  position: fixed;
  top: 10px;
  left: 10px;

  /* Cercle blanc semi‑transparent */
  background: rgba(255,255,255,0.85);
  width: 42px;
  height: 42px;
  border-radius: 50%;

  /* Centre le contenu (le ☰) */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;           /* ← évite un line-height trop grand */

  /* Style du hamburger */
  font-size: 24px;
  color: #4f5948;
  border: none;
  cursor: pointer;
  z-index: 10001;

  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, transform 0.2s;
}

#hamburger:hover {
  background: rgba(255,255,255,1);
  transform: scale(1.05);
}

#mobileMenu {
  position: fixed;
  top: 60px; left: 40%;
  transform: translateX(-50%) scale(0.95);
  width: 90%; max-width: 280px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 4px 0;
  display: none;             /* géré par .show + JS */
  flex-direction: column;
  gap: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10000;
  opacity: 0;
}

/* 5) Style des liens */
#mobileMenu a {
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 12px 12px;
  color: #4f5948;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: background 0.25s, color 0.25s;
  border-radius: 8px;
  cursor: pointer;
}


/* 6) Hover & “lifting” léger */
#mobileMenu a:hover {
  background: rgba(128,161,106,0.15);
  color: #335533;
}

/* 7) Active : bandeau subtil + texte bold */
#mobileMenu a.active {
  background: rgba(128,161,106,0.3);
  color: #2f4f2f;
  font-weight: 600;
}

/* Survol uniquement en mobile, en gras (pas d’agrandissement) */
@media screen and (max-width: 768px) {
  #mobileMenu a:hover {
    font-weight: bold;

    /* pas de changement de taille ici */
  }

  body.skip-intro #hamburger {
    display: block !important;
  }

  nav.desktop-only {
    display: none;
  }

  #mobileMenu.show {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}