/* 
Theme Name: Astra Child - KiteSurf Spots
Template: astra
Version: 2.0
Description: Design moderne et épuré pour les spots de kitesurf - VERSION FORCÉE
*/

/* Reset Astra styles and force our styles */
.ast-container, .site-content, .site-main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ========= Variables & Reset ========= */
:root {
  --color-teal: #4ABDAC;
  --color-teal-dark: #3a9b8c;
  --color-yellow: #FFD369;
  --color-yellow-hover: #E6B94F;
  --color-blue-dark: #1A2E3B;
  --bg-light: #FAFCFC;
  --bg-white: #ffffff;
  --shadow-color: rgba(255, 211, 105, 0.25);
  --shadow-sm: 0 2px 4px var(--shadow-color);
  --shadow-md: 0 4px 12px var(--shadow-color);
  --shadow-lg: 0 8px 32px var(--shadow-color);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition: all 0.3s ease;
  --font-title: 'Raleway', sans-serif;
  --font-body: 'Inter', serif;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #121212;
    --bg-white: #1e1e1e;
    --color-blue-dark: #e0e0e0;
    --shadow-color: rgba(255, 211, 105, 0.1);
  }
}

/* ========= Base Styles ========= */
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--color-blue-dark);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--color-teal);
}

/* ========= Titre principal ========= */
.spot-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  text-align: center;
  background: #1A2E3B;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 32px;
  position: relative;
  line-height: 1.2;
}

.spot-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-yellow);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ========= Tableau Infos Techniques ========= */
.infos-techniques-wrapper {
  flex: 1 1 400px;
  min-width: 0;
}

.infos-techniques {
  width: 100%;
  border-collapse: collapse;
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  table-layout: auto;
}

.infos-techniques th {
  background: var(--color-teal);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 14px 18px;
  width: 200px;
}

.infos-techniques td {
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--color-blue-dark);
  background: var(--bg-white);
  white-space: nowrap;
}

.infos-techniques tr:hover td {
  background: #fef9ef;
  transition: var(--transition);
}

/* ========= Photo du spot ========= */
.photo-spot-wrapper {
  flex: 1 1 350px;
  max-width: 500px;
  min-width: 280px;
  position: relative;
}

.photo-spot {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  transition: var(--transition);
}

.photo-spot:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ========= Infos + Photo Wrapper ========= */
.infos-photo-wrapper {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* ========= Sections ========= */
.spot-page section {
  background: var(--bg-white);
  border-left: 4px solid var(--color-yellow);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.spot-page section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.spot-page section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-teal);
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.spot-page section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 60px;
  background: var(--color-yellow);
  border-radius: 2px;
}

/* ========= Paragraphes ========= */
.spot-page section p {
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--color-blue-dark);
  margin-bottom: 16px;
}

/* ========= Liens utiles ========= */
.liens-utiles ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.liens-utiles li {
  background: var(--color-teal);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.liens-utiles li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.liens-utiles a {
  display: block;
  padding: 16px 20px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

.liens-utiles a:hover {
  background: var(--color-yellow-hover);
  color: #000;
}

.rating {
  color: #ccc; /* couleur des étoiles vides */
  font-size: 1.3rem;
  margin-right: 2px;
}

.rating.filled {
  color: #FFD369; /* couleur jaune pour les étoiles pleines */
}

/* ========= Retour ========= */
.back-to-map a {
  font-weight: bold;
  color: #4ABDAC;
  display: block;
  padding: 10px 15px;}



.back-to-map a:hover {
  color: #1A2E3B;
}


/* ========= Responsive ========= */
@media (max-width: 768px) {
    
  .back-to-map a {
    font-size: 17px;
    padding: 12px 18px;
  }

  .back-to-map a::before {
    left: 8px;
    font-size: 18px;
  }
  .infos-photo-wrapper {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .spot-page section {
    padding: 24px;
  }

  .spot-title {
    font-size: 2.2rem;
    margin-bottom: 32px;
  }

  .infos-techniques th,
  .infos-techniques td {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

h1 {
  color: #1A2E3B !important;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 4rem);
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  line-height: 1.2;
  transition: all 0.3s ease-in-out;
}

h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #FFD369;
  margin: 16px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

h1:hover::after {
  width: 100px;
}

.rating {
  color: #ccc; /* couleur des étoiles vides */
  font-size: 1.3rem;
  margin-right: 2px;
}

.rating.filled {
  color: #FFD369; /* jaune pour les étoiles pleines */
}



@media (max-width: 480px) {
    
  .back-to-map a {
    font-size: 16px;
    padding: 12px 16px;
  }

  .back-to-map a::before {
    left: 6px;
    font-size: 16px;
  }
  .spot-page {
    padding: 0 16px;
  }

  .photo-spot-wrapper {
    max-width: none;
    width: 100%;
  }

  .spot-page section h2 {
    font-size: 1.5rem;
  }

  .liens-utiles ul {
    grid-template-columns: 1fr;
  }
}
