﻿/* Style du bouton */
/* ===========================
   Style du bouton vers haut
=========================== */



  #scrollTopBtn {
    cursor: pointer;
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 1000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgb(253, 212, 150);
    opacity: 0;
    transition: opacity 0.4s ease; /* animation fade */
    box-shadow: rgba(128, 128, 128, 0.4) 5px 5px 20px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #scrollTopBtn img {
    width: 48px;
    height: 48px;
  }
  /* Visible */
  #scrollTopBtn.show {
    opacity: 0.8;
  }
  #scrollTopBtn:hover {
    opacity: 1;
  }

/* ===========================
   Feedattrac
=========================== */


    body { font-family: Arial, sans-serif;
    margin:20px;
    background:#f9f9f9;
    }
    form { max-width:600px;
    margin:auto;
    padding:20px;
    background:#fff;
    border:1px solid #ccc;
    border-radius:8px;
    background: rgba(255,255,255,0.05);

    }
    label { display:block;
    margin-top:10px;
    font-weight:bold;
    }
input, select, textarea {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  border: 1px solid #ccc;
  transition: all 0.4s ease;
}
    button { margin-top:15px;
    padding:10px 15px;
    border:none;
    border-radius:5px;
    cursor:pointer;
    }
    button[type="submit"] { background:#28a745;
    color:#fff;
    }
    button[type="button"] { background:#007bff;
    color:#fff;
    margin-right:10px;
    }
    p { text-align:center;
    font-weight:bold; }

    /* Coloration visuelle */
    .valid { border-color: green; background:#e6ffe6; box-shadow:0 0 8px rgba(0,128,0,0.6); }
    .invalid { border-color: red; background:#ffe6e6; box-shadow:0 0 8px rgba(255,0,0,0.6); }
    .error-message, .success-message { font-size:0.85em; margin-top:2px; display:none; }
    .error-message { color:red; }
    .success-message { color:green; }
 

/* ===========================
   Feedeven
   =========================== */


/* États visuels avec glow */
input.valid, select.valid, textarea.valid {
  border-color: green;
  background-color: #e6ffe6;
  box-shadow: 0 0 8px rgba(0, 128, 0, 0.6);
  animation: pulseValid 1.5s infinite;
}

input.invalid, select.invalid, textarea.invalid {
  border-color: red;
  background-color: #ffe6e6;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
  animation: pulseInvalid 1.5s infinite, shake 0.4s;
}

/* Animation pulsante */
@keyframes pulseValid {
  0%   { box-shadow: 0 0 5px rgba(0, 128, 0, 0.6); }
  50%  { box-shadow: 0 0 15px rgba(0, 128, 0, 0.9); }
  100% { box-shadow: 0 0 5px rgba(0, 128, 0, 0.6); }
}
@keyframes pulseInvalid {
  0%   { box-shadow: 0 0 5px rgba(255, 0, 0, 0.6); }
  50%  { box-shadow: 0 0 15px rgba(255, 0, 0, 0.9); }
  100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.6); }
}

/* Shake animation pour erreurs */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* Messages avec fade */
.error-message, .success-message {
  font-size: 0.85em;
  margin-top: -8px;
  margin-bottom: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}
.error-message.show, .success-message.show {
  opacity: 1;
  max-height: 50px;
}
.error-message { color: red; }
.success-message { color: green; }













h1{
  text-align: center;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.5em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fdd496;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin: 20px 0;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
}

 h2 {
  text-align: center;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fdd496;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin: 20px 0;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
}












/* ===========================
   ICON CARTE
=========================== */

.map-legend {
  background: rgba(255,255,255,0.9);
  border: 2px solid #a06406;
  border-radius: 6px;
  padding: 10px;
  margin: 10px auto;
  max-width: 600px;
  font-size: 14px;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend-item i {
  font-size: 18px;
}









/* ===========================
   STRUCTURE GÉNÉRALE
=========================== */
body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: #222;
  color: #f0f0f0;            /* texte clair */
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

h2 {
  margin-bottom: 1rem;
  color: #FDD496; /* doré pour les titres */
}

/* ===========================
   HEADER
=========================== */
header {
  background: #222;
  color: #fff;
  padding: 15px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | trad | menu */
  align-items: center;
  position: relative;
  z-index: 1002;
}

header .logo img {
  height: 50px;
}

.gtranslate_wrapper {
  text-align: center;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 36px;
  color: #FDD496;
  cursor: pointer;
  z-index: 1003;
}

/* Menu off-canvas */
header nav ul {
  list-style: none;
  margin: 0;
  padding: 20px;
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #333;
  flex-direction: column;
  gap: 15px;
  transform: scale(0.95);
  opacity: 0;
  transition: right 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
  z-index: 1001;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px;
  display: block;
}

header nav ul li a:hover {
  background: #444;
  color: #FDD496;
}

header nav.open ul {
  right: 0;
  transform: scale(1);
  opacity: 1;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

header nav.open ~ .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================
   FOOTER
=========================== */
footer {
 background: #222;  color: #ddd;
  text-align: center;
  padding: 20px;
  margin-top: 10px;
  font-size: 0.9rem;
  
    width: 100%;
  height: 150;

  
  
}

footer a {
  color: #FDD496;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* ===========================
   GRILLE & CARTES
=========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: rgba(226,226,226,0.1);
  border: 2px solid #a06406;
  margin: 20px;
  border-radius: 10px;
  padding: 15px;
  box-shadow: rgba(0,0,0,0.5) 0px 10px 20px;
  text-align: justify;
}

.card p { margin: 0.5rem 0; color: #f0f0f0; }
.card i { margin-right: 0.5rem; color: #FDD496; }

@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
}

/* ===========================
   ATTRACTIONS
=========================== */
.section-attractions {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
}

.attractions-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes fixes */
}

@media (max-width: 768px) {
  .attractions-grid {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
  }
}

.attraction-card {
  background: rgba(226,226,226,0.1);
  border: 2px solid #a06406;
  margin: 20px;
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s ease;
}

.attraction-card:hover { transform: translateY(-3px); }
.attraction-card h3 { color:#FDD496; }
.attraction-card .category { font-weight:600; color:#f9b345; }
.attraction-card .desc { color:#f0f0f0; }

/* ===========================
   MASONRY
=========================== */
.masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;              /* espace entre les cartes */
  margin-top: 40px;
}

.masonry .card {
  flex: 1 1 calc(50% - 30px); /* deux colonnes avec espace */
  box-sizing: border-box;
}

@media (max-width: 1000px) {
  .masonry .card {
    flex: 1 1 100%;       /* une seule colonne sur mobile */
  }
}

/* ===========================
   TABLES
=========================== */
table.events, table.cityinfo, table.transport, table.climat {
 width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
    border: 1px solid #ccc;
  text-align: center;/* centre horizontalement */
}
table.events th, table.cityinfo th, table.transport th, table.climat th {
background-color: #543504;
  font-weight: bold;

}
table.events td, table.cityinfo td, table.transport td, table.climat td {
   padding: 8px;
  border: 1px solid #ccc;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 14px;


}


/* ===========================
   CAROUSEL
=========================== */

/* Titres RSS dans le carousel */
.swiper-slide h5 a {
  color: #FDD496 !important;   /* brun doré */
  text-decoration: none !important;
}

.swiper-slide h5 a:hover {
  color: #FFD700 !important;   /* doré au survol */
}



.swiper {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 0;
  border-radius: 10px;
}

.swiper-slide {
  background: #222;
  border: 2px solid #a06406;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.5) 0px 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

/* Forcer la couleur des titres du carousel */
.swiper .swiper-slide h5 {
  color: #FDD496 !important; /* brun doré */
  margin: 10px;
  font-size: 0.95rem;
}
.swiper-slide p {
  margin: 0 10px 10px;
  font-size: 0.85rem;
  color: #ccc;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   GALERIE PHOTOS
=========================== */
   /* Debut pour Photos */



.gallery {
  column-count: 4;
  column-gap: 20px;
}
@media (max-width: 1200px) { .gallery { column-count: 3; } }
@media (max-width: 800px) { .gallery { column-count: 2; } }
@media (max-width: 500px) { .gallery { column-count: 1; } }

.rss-box {
  break-inside: avoid;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 3px ridge #0077cc;
  border-radius: 10px;
  padding: 10px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -20px,
              rgba(0, 0, 0, 0.3) 0px 18px 36px -18px,
              rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
}
.rss-box:hover { transform: scale(1.03); }
.rss-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
  display: block;
}

#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#lightbox .rss-box {
  background: white;
  padding: 10px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  position: relative;
}
#lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
}
#close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
}
    
    
        /* Fin pour Photos */
        

/* ===========================
   BOUTON RETOUR EN HAUT
=========================== */
#btnTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fdd496;
  color: black;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  display: none; /* caché au départ */
  transition: opacity 0.3s ease;
  
}

#btnTop:hover {
  background-color: #990000;
  opacity: 1;
}



/* ===========================
   BOUTON général 
=========================== */




.btn-photo {
     background-color: #565355;   /* couleur de fond */
      color: #f5f5f5;              /* texte lisible */
      border: 2px solid #a06406;   /* bordure */
      padding: 6px 14px;           /* bouton plus petit */
      font-size: 14px;             /* texte plus petit */
      font-family: Arial, sans-serif;
      cursor: pointer;
      border-radius: 6px;
      transition: all 0.3s ease;   /* animation fluide */
      margin: 10px;                /* espace de 10px entre les boutons */
    }

    .btn-photo:hover {
      background-color: #6d6b69;   /* couleur plus discrète au survol */
      color: #FDD496;
      transform: scale(1.05);      /* léger zoom */
      box-shadow: 0 0 6px #a06406; /* ombre plus douce */
    }



/* ===========================
   Pour Liste
=========================== */
 .list {
      display: flex;
      justify-content: center;   /* centrer horizontalement */
      align-items: center;       /* centrer verticalement */
    }

.styled-select {
      background-color: #565355;   /* fond */
      color: #f5f5f5;              /* texte lisible */
      border: 2px solid #a06406;   /* bordure dorée */
      padding: 8px 16px;
      font-size: 15px;
      font-family: Arial, sans-serif;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.3s ease;
      margin: 10px;
      appearance: none;            /* supprime le style natif */
      text-align: center;          /* centre le texte */
      width: 250px;                /* largeur fixe identique */
    }

    .styled-select:hover {
      background-color: #6d6b69;   /* survol discret */
      box-shadow: 0 0 6px #a06406;
    }


/* ===========================
   Pour GROUPE BOUTONS LISTE
=========================== */


.group-list {
       display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column; /* empile les éléments */
    
    }

    .styled-element {
      background-color: #565355;   /* fond */
      color: #f5f5f5;              /* texte lisible */
      border: 2px solid #a06406;   /* bordure dorée */
      padding: 8px 16px;
      font-size: 15px;
      font-family: Arial, sans-serif;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.3s ease;
      margin: 10px;
      text-decoration: none;       /* pas de soulignement */
      display: inline-block;       /* comportement comme un bouton */
    }

    .styled-element:hover {
      background-color: #6d6b69;   /* survol discret */
      box-shadow: 0 0 6px #a06406;
    }

    .list-container {
      text-align: center;
    }


/* ===========================
   Pour POPUP
=========================== */

form {
  max-width: 600px;
  margin: auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  
  display: grid;                /* active la grille */
  grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
  gap: 15px;                    /* espace entre les cases */
}

input, select, textarea {
  width: 100%;                  /* occupe toute la cellule */
  padding: 8px;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;        /* inclut padding/border dans la largeur */
}

textarea {
  height: 90px;
  resize: vertical;
}

.msg {
  font-weight: bold;
  margin: 10px 0;
  text-align: center;
  grid-column: 1 / -1;           /* occupe toute la largeur */
}

/* Styles de base */
form {
  max-width: 600px;
  margin: auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

input, select, textarea {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  border: 1px solid #ccc;
  transition: all 0.4s ease;
}

/* États visuels avec glow */
input.valid, select.valid, textarea.valid {
  border-color: green;
  background-color: #e6ffe6;
  box-shadow: 0 0 8px rgba(0, 128, 0, 0.6);
  animation: pulseValid 1.5s infinite;
}

input.invalid, select.invalid, textarea.invalid {
  border-color: red;
  background-color: #ffe6e6;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
  animation: pulseInvalid 1.5s infinite;
}

/* Animation pulsante */
@keyframes pulseValid {
  0%   { box-shadow: 0 0 5px rgba(0, 128, 0, 0.6); }
  50%  { box-shadow: 0 0 15px rgba(0, 128, 0, 0.9); }
  100% { box-shadow: 0 0 5px rgba(0, 128, 0, 0.6); }
}
@keyframes pulseInvalid {
  0%   { box-shadow: 0 0 5px rgba(255, 0, 0, 0.6); }
  50%  { box-shadow: 0 0 15px rgba(255, 0, 0, 0.9); }
  100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.6); }
}

/* Shake animation pour erreurs */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
input.invalid, select.invalid, textarea.invalid {
  animation: pulseInvalid 1.5s infinite, shake 0.4s;
}

/* Messages avec fade */
.error-message, .success-message {
  font-size: 0.85em;
  margin-top: -8px;
  margin-bottom: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}
.error-message.show, .success-message.show {
  opacity: 1;
  max-height: 50px;
}
.error-message { color: red; }
.success-message { color: green; }





/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  form {
    max-width: 90%;
    padding: 15px;
    grid-template-columns: 1fr;  /* une seule colonne sur tablette */
  }
  input, select, textarea {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  form {
    max-width: 100%;
    padding: 10px;
    border-radius: 0;
    grid-template-columns: 1fr;  /* une seule colonne sur mobile */
  }
  input, select, textarea {
    font-size: 0.9em;
    padding: 6px;
  }
  textarea {
    height: 70px;
  }
}/* ===========================
   Responsive titres
=========================== */
@media (max-width: 600px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.2em; }
}

/* ===========================
   Responsive grilles
=========================== */
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .attractions-grid { grid-template-columns: 1fr; }
  .masonry .card { flex: 1 1 100%; }
}

/* ===========================
   Responsive tables
=========================== */


/* ===========================
   Responsive tables
=========================== */
@media (max-width: 768px) {
  table.events, table.cityinfo, table.transport, table.climat {
    border: 0;
  }

  /* Chaque ligne devient un bloc */
  table.events tr, table.cityinfo tr, table.transport tr, table.climat tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
  }

  /* Masquer les en-têtes */
  table.events th, table.cityinfo th, table.transport th, table.climat th {
    display: none;
  }

  /* Les cellules deviennent des lignes */
  table.events td, table.cityinfo td, table.transport td, table.climat td {
    display: block;
    text-align: left;
    border: none;
    padding: 6px 0;
    font-size: 0.95em;
  }

  /* Optionnel : ajouter un label avant chaque cellule avec attr(data-label) */
  table.events td::before,
  table.cityinfo td::before,
  table.transport td::before,
  table.climat td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #fdd496;
    display: block;
    margin-bottom: 2px;
  }
}












/* ===========================
   Responsive formulaires
=========================== */
@media (max-width: 600px) {
  form { padding: 15px; }
  input, select, textarea, button { font-size: 0.9em; }
}
