/* Styles océaniques pour l'association Tour de Groix */

/* Variables CSS pour les couleurs océaniques */
:root {
  --ocean-blue-dark: #003366;
  --ocean-blue-medium: #0066cc;
  --ocean-blue-light: #1E90FF;
  --ocean-blue-sky: #87CEEB;
  --ocean-blue-pale: #B0E0E6;
  --ocean-white: #F0F8FF;
  --sand-color: #F5DEB3;
  --wave-color: rgba(255, 255, 255, 0.1);
}

/* Réinitialisation et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, var(--ocean-blue-light), var(--ocean-blue-sky));
  background-attachment: fixed;
  min-height: 100vh;
}

/* En-tête avec effet océan */
.ocean-header {
  background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 102, 204, 0.7)), 
              url('https://images.unsplash.com/photo-1505228395891-9a51e7e86bf6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 3rem 10rem;
  position: relative;
  border-bottom: 3px solid var(--ocean-blue-sky);

  display: flex;
  flex-direction: row;
  align-items: center;
}

.header-content h1 {
  padding: 0 3rem;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.header-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Sections avec effet océan */
.ocean-section {
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.ocean-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, var(--wave-color) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, var(--wave-color) 0%, transparent 20%);
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.ocean-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

.ocean-section h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: var(--ocean-blue-sky);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* Style du contenu contextuel */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.text-content {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.text-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: justify;
}

.image-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.ocean-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.ocean-image:hover {
  transform: scale(1.05);
}

/* Section des sponsors */
.sponsors-section {
  background: linear-gradient(rgba(0, 102, 204, 0.8), rgba(0, 51, 102, 0.9)), 
              url('https://images.unsplash.com/photo-1643760021315-8576b5d476ee?q=80&w=3268&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.sponsor-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  backdrop-filter: blur(5px);
}

.sponsor-card:hover {
  transform: translateY(-10px);
}

.sponsor-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Section médias */
.media-section {
  background: linear-gradient(rgba(30, 144, 255, 0.8), rgba(0, 102, 204, 0.9)), 
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.media-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.video-container {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-bottom: 35%;
  /* padding-bottom: 56.25%; Ratio 16:9 */
  height: 0;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.gallery {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.media-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.media-image:hover {
  transform: scale(1.05);
}

/* Pied de page */
.ocean-footer {
  background: var(--ocean-blue-dark);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 3px solid var(--ocean-blue-sky);
}

/* Animations */
@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100px); }
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" fill="%23ffffff"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" class="shape-fill"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.73-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V40.61c0-23.19-12.07-44.23-26.23-53.79Z" opacity=".5" class="shape-fill"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,170.47-47.81,243.53-82.76 0,0,0,0,0,0V0Z" class="shape-fill"/></svg>');
  background-size: cover;
  animation: wave 15s linear infinite;
  animation-duration: 15s;
}

/* Responsive design */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .media-content {
    flex-direction: column;
  }
  
  .header-content h1 {
    font-size: 2rem;
  }
  
  .ocean-section h2 {
    font-size: 2rem;
  }
  
  .text-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .ocean-section {
    padding: 2rem 1rem;
  }
}