﻿.carte {
  border: 2px solid #c08a1b;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  appearance: none;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.4);
width: 100%;
  max-width: 600px;

}

#map {
  width: 100%;
  height: 50vh;
  margin: 0 auto;
  border: 2px solid #c08a1b;
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.4);
max-width: 600px;


}





.image-sous-trad {
  margin: 10px auto;
  width: 100%;
max-width: 200px;
  height: auto;
}





/* 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
=========================== */


    



    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:justify;
    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 {
  font-family: Arial,sans-serif;
  margin: 20px;
  background-image: url(https://5fr.fr/images/body.jpg);
  background-repeat: repeat;
  background-position: center;
  width: 100%;
  color: #fff;
  padding: 15px 0;
  background: url(https://5fr.fr/images/body.jpg) repeat center;
}

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

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

/* ===========================
   HEADER
=========================== */
header {
  background-image: url(https://5fr.fr/images/footer.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  color: #fff;
  padding: 5px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo trad nav" "title title title" "timeline-nav timeline-nav timeline-nav";
  background: url(https://5fr.fr/images/footer.jpg) no-repeat center/cover;
margin-top: 0;

}

.logo {
  grid-area: logo;
}

.gtranslate_wrapper {
  grid-area: trad;
  text-align: center;
  justify-self: center;
}

nav {
  grid-area: nav;
  justify-self: start;
  margin: 20px;
}

h1 {
  grid-area: title;
  text-align: center;
  font-size: clamp(1.2rem,3vw,1.9rem);
  margin: 10px 0;
  word-wrap: break-word;
  padding: 0 10px;
}

nav.timeline-nav {
  grid-area: timeline-nav;
  justify-self: center;
  text-align: center;
  padding: 0 10px;
  margin: 10px 0;
  width: 100%;
}

.timeline-nav h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.timeline-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background .3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-nav ul li a:hover {
  background: #444;
  color: #fdd496;
}

.vertical-centre {
  display: flex;
  justify-content: center;
  align-items: center;
}

header .logo img {
  height: 200px;
}

.menu-toggle {
  padding: 10px;
  background: 0 0;
  border: none;
  font-size: 26px;
  color: #fdd496;
  cursor: pointer;
  z-index: 1003;
}

header nav:not(.timeline-nav) ul {
  list-style: none;
  margin: 10px;
  padding: 20px;
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 300px;
  border: 2px solid #f3b700;
  border-radius: 10px;
  background: #333 url(https://5fr.fr/images/body.jpg) center/cover repeat;
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  flex-direction: column;
  gap: 15px;
  transform: scale(.95);
  opacity: 0;
  transition: right .4s ease,transform .4s ease,opacity .4s ease;
  z-index: 1001;
}

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

header nav:not(.timeline-nav) ul li a:hover {
  background: #444;
  color: #fdd496;
}

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

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

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

.image-bas-header {
  grid-column: 1/-1;
  justify-self: center;
  margin-top: 10px;
}

.image-bas-header img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background-image: url(https://5fr.fr/images/footer.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  color: #fff;
  padding: 15px 0;
  text-align: center;
  font-size: 1rem;
  background: url(https://5fr.fr/images/footer.jpg) no-repeat center/cover;
}

.image-haut-footer {
  justify-self: center;
  margin-bottom: 10px;
}

.image-haut-footer img {
  max-width: 100%;
  height: auto;
  display: block;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin: 0 auto 10px;
}

footer .footer-links a {
  color: #fdd496;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 4px 2px;
  transition: all .35s ease;
}

footer .footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #fdd496;
  transition: width .35s ease;
}

footer .footer-links a:hover {
  color: #fff;
  text-shadow: 0 0 8px #fdd496;
}

footer .footer-links a:hover::after {
  width: 100%;
}

footer .footer-bottom {
  margin-top: 12px;
  opacity: .8;
  font-size: .85rem;
}


/* ===========================
   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
=========================== */

:root {
  --gold: #d4af37;        /* doré principal */
  --gold-hover: #ffd700;  /* doré vif au survol */
  --gray-dark: #222;      /* fond sombre des slides */
  --gray-text: #ccc;      /* texte gris clair */
}

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

/* Container principal */
.swiper {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 0;
  border-radius: 10px;
  color: var(--gray-text);
}

/* Slide */
.swiper-slide {
  background: var(--gray-dark);
  border: 2px solid var(--gold);
  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;
}

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

/* Titres */
.swiper-slide h5 {
  margin: 10px;
  font-size: 0.95rem;
  color: var(--gold);
}

/* Titres avec liens */
.swiper-slide h5 a {
  color: var(--gold) !important;
  text-decoration: none !important;
}
.swiper-slide h5 a:hover {
  color: var(--gold-hover) !important;
}

/* Texte */
.swiper-slide p {
  margin: 0 10px 10px;
  font-size: 0.85rem;
  color: var(--gray-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* limite à 3 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Liens dans le texte */
.swiper-slide p a {
  color: var(--gray-text) !important;
  text-decoration: none;
}
.swiper-slide p a:hover {
  color: var(--gold-hover) !important;
}

/* ===========================
   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
=========================== */
#scrollTopBtn {
  cursor: pointer;
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 1000;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #fdd496;
  opacity: 0;
  transition: opacity .4s ease;
  box-shadow: rgba(128,128,128,.8) 5px 5px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollTopBtn img {
  width: 64px;
  height: 64px;
}

#scrollTopBtn.show {
  opacity: .8;
}

#scrollTopBtn:hover {
  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; }
}





@media (max-width:600px) {
  header {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "trad" "nav" "title" "subtitle";
  }
  
  nav {
    justify-self: center;
    margin-left: 0;

  }
  
  header h1 {
    font-size: 1.5rem;
    padding: 0 10px;
  }
  
  header p.visiteurs {
    font-size: 1rem;
    padding: 0 10px;
  }
}

@media (max-width:600px) {
  header {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "trad" "nav" "title" "subtitle" "timeline-nav";
  }
  
  nav {
    justify-self: center;
    margin-left: 0;
  }
  
  header h1 {
    font-size: 1.5rem;
    padding: 0 10px;
  }
  
  header p.visiteurs {
    font-size: 1rem;
    padding: 0 10px;
  }
}

@media (max-width:900px) {
  .grid-3 {
    grid-template-columns: repeat(2,1fr);
  }
  
  header h2 {
    font-size: 2rem;
  }
}

@media (max-width:640px) {
  .grid-2,.grid-3 {
    grid-template-columns: 1fr;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: .95rem;
  }
}

@media (max-width:900px) {
  .grid-3 {
    grid-template-columns: repeat(2,1fr);
  }
  
  header h2 {
    font-size: 2rem;
  }
}

@media (max-width:640px) {
  .grid-2,.grid-3 {
    grid-template-columns: 1fr;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: .95rem;
  }
}

@media (max-width:600px) {
  header {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "trad" "nav" "title" "subtitle" "timeline-nav";
  }
  
  nav {
    justify-self: center;
    margin-left: 0;
  }
  
  header h1 {
    font-size: 1.5rem;
    padding: 0 10px;
  }
  
  header p.visiteurs {
    font-size: 1rem;
    padding: 0 10px;
  }
}

@media (min-width: 481px) {
  .timeline-nav ul {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .timeline-nav ul {
    flex-direction: column;
    width: 90%;
  }
  
  .link-btn {
    justify-content: center;
  }
}
