/* ==========================================================================
🌍 RESET & BASE
========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background-color: #fffbea;
  color: #333;
  line-height: 1.6;
}

/* ==========================================================================
🧭 HEADER
========================================================================== */
header {
  background-color: #ffcc00;
  padding: 1.5rem;
  text-align: center;
}

header h1, h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #c40000;
  letter-spacing: 1px;
}

 /* ==========================================================================
🗺️ MAP SECTION
========================================================================== */
    .map-container {
      position: relative;
      width: 100%;
      height: 65vh;
      min-height: 300px;
      overflow: hidden;
    }

    .map-container iframe {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
    }

/* ==========================================================================
📖 ABOUT SECTION
========================================================================== */
.about-section {
  background-color: #f0f8ff;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
  color: #0077be;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-section p {
  margin-bottom: 1rem;
}

.about-section ul {
  list-style: none;
  padding-left: 0;
}

.about-section ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
}

.about-section ul li::before {
  content: "🌊";
  position: absolute;
  left: 0;
}

/* ==========================================================================
🖼️ SPOT GALLERY
========================================================================== */
.spot-gallery {
  display: block;
  padding: 20px;
  background: #fff;
}

#spotList {
  list-style: none;
  padding: 0;
}

.spot-gallery {
  background-color: #fff;
  padding: 2rem;
}

.spot-gallery ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  list-style: none;
}

.spot-gallery li a {
  display: flex; /* ou block si tu veux centrer verticalement */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 160px;         /* taille fixe */
  height: 230px;        /* hauteur fixe */
  padding: 1rem;        /* espace intérieur */
  text-align: center;
  overflow: hidden;     /* évite le débordement */
  background-color: #ffcc00;
  color: #c40000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.spot-gallery li a:hover {
  background-color: #ffe066;
}

/* ==========================================================================
📸 GALERIE PAGE
========================================================================== */
/*
.galerie-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 10%;
}

.galerie-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #c40000;
  text-align: center;
  margin: 3rem 0 2rem;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
}

.report-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.report-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.report-content {
  padding: 1rem;
  color: #d90000;
  font-weight: bold;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
}

.report-content strong {
  display: block;
  margin-bottom: 0.5em;
  font-size: clamp(1.6rem, 3vw, 1.8rem);
  color: #c40000;
}

.no-report {
  text-align: center;
  font-style: italic;
  color: #888;
  margin-top: 2rem;
  font-size: clamp(1.4rem, 2.5vw, 1.6rem);
}
*/
/* ==========================================================================
🎯 BOUTON
========================================================================== */
.btn {
  width: 80%;
  height: 15vh;
  margin: 3rem auto;
  background-color: #ffcc00;
  color: #d90000;
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ffe066;
}

/* ==========================================================================
📝 FORMULAIRE SURFCHECK
========================================================================== */
/*
.surfcheck-page h1 {
  color: #d90000;
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.container_formular {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 2rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #d90000;
  font-size: 1.1rem;
}

form input[type="file"],
form input[type="text"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ffe082;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  background-color: #fffef5;
  transition: border-color 0.3s ease;
}

form input:focus {
  outline: none;
  border-color: #ffcc00;
}

.surfcheck-page button {
  background-color: #ffcc00;
  color: #d90000;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  display: block;
  margin: 0 auto;
}

.surfcheck-page button:hover {
  background-color: #ffe066;
}
*/

/* ==========================================================================
📸 GALERIE PAGE
========================================================================== */
.galerie-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 10%;
}

.galerie-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #c40000;
  text-align: center;
  margin: 3rem 0 2rem;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
}

/* ==========================================================================
🗂️ REPORT CARD
========================================================================== */
.report-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.report-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.report-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid #ffcc00;
}

/* ==========================================================================
📝 REPORT CONTENT
========================================================================== */
.report-content {
  padding: 1rem;
  color: #333;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.5;
}

.report-content strong {
  display: block;
  margin-bottom: 0.5em;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #c40000;
}

.no-report {
  text-align: center;
  font-style: italic;
  color: #888;
  margin-top: 2rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* ==========================================================================
📝 FORMULAIRE SURFCHECK
========================================================================== */
.surfcheck-page {
  padding: 1.5rem;
}

.surfcheck-page h1 {
  color: #d90000;
  font-size: clamp(1.6rem, 4vw, 2rem);
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.container_formular {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #d90000;
  font-size: 1rem;
}

form input[type="file"],
form input[type="text"] {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ffe082;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 1rem;
  background-color: #fffef5;
  transition: border-color 0.3s ease;
}

form input:focus {
  outline: none;
  border-color: #ffcc00;
}

.surfcheck-page button {
  background-color: #ffcc00;
  color: #d90000;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  display: block;
  margin: 1rem auto 0;
}

.surfcheck-page button:hover {
  background-color: #ffe066;
}

/* ==========================================================================
📍 FOOTER
========================================================================== */
footer {
  margin-top: 3rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* ==========================================================================
📱 RESPONSIVE
==========================================================================*/
/*
@media (max-width: 768px) {
  header h1,
  .galerie-title,
  .surfcheck-page h1 {
    font-size: 1rem;
  }

  .spot-gallery ul {
    font-size: calc(1em + 1vw);
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }

.report-card img {
    width: 100%;
  }

  .btn {
    width: 90%;
    height: auto;
    padding: 1rem;
  }

  .container_formular {
    padding: 1rem;
  }
}
*/
@media (max-width: 768px) {
  /* Titres principaux */
  header h1, h2 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: #c40000;
  letter-spacing: 1px;
}
    /* Titres principaux
      header h1,
  .galerie-title, h1, h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    text-align: center;
  }
*/
  /* Galerie de spots */
  .spot-gallery ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* blocs minimum 100px */
    gap: 0.75rem;
    padding: 0;
    list-style: none;
    justify-content: center;
  }

  .spot-gallery li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #ffcc00;
    color: #c40000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    padding: 0.5rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  .spot-gallery li a img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    object-fit: cover;
  }

  .spot-gallery li a strong,
  .spot-gallery li a small {
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
  }

  /* Cartes de report */
  .report-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Bouton principal */
  .btn {
    width: 90%;
    height: auto;
    padding: 1rem;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    border-radius: 40px;
  }

  /* Formulaire Surfcheck
  .container_formular {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }*/
  /* ==========================================================================
📱 RESPONSIVE
========================================================================== */
@media (max-width: 768px) {
  /* Galerie */
  .galerie-grid {
    grid-template-columns: 1fr; /* une seule colonne sur mobile */
    gap: 1rem;
  }

  /* Report Card */
  .report-card {
    border-radius: 12px;
  }

  .report-content {
    font-size: 1rem;
    line-height: 1.4;
  }

  .report-content strong {
    font-size: 1.1rem;
  }

  /* Surfcheck */
  .surfcheck-page {
    padding: 1rem;
  }

  .surfcheck-page h1 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .container_formular {
    padding: 1rem;
    border-radius: 12px;
  }

  form input[type="file"],
  form input[type="text"] {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .surfcheck-page button {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
  }
}


