/* Variables CSS pour la palette de couleurs */
:root {
  --ice-white: #EAF6FB;
  --ocean-light: #A9D6E5;
  --blue-deep: #468FAF;
  --blue-marine: #01497C;
  --yellow-warm: #FFD60A;
  --blue-antarctic: #277DA1;
  --red-coral: #F94144;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--ice-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CACHER TOUS LES PLACEHOLDERS */
.placeholder-text {
  display: none !important;
}

/* Header */
.header {
  background-color: var(--ice-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 70px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--blue-deep);
  color: var(--ice-white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--blue-deep);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(1, 73, 124, 0.7) 0%, rgba(1, 73, 124, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--ice-white);
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.95;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  font-weight: 300;
}

/* Buttons */
.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--yellow-warm);
  color: var(--text-dark);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--blue-deep);
  border: 2px solid var(--blue-deep);
}

.btn-outline:hover {
  background-color: var(--blue-deep);
  color: var(--ice-white);
}

.btn.large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--blue-marine);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.section-intro {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Section Qui sont les manchots */
.who-are-penguins {
  padding: 100px 0;
  background-color: var(--ice-white);
}

/* Grille des espèces */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.species-card {
  background-color: white;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

/* Images des espèces - BACKGROUND METHOD AVEC POSITIONNEMENT HAUT */
.species-image {
  width: 100%;
  height: 250px;
  background-color: var(--ocean-light);
  border-radius: 25px 25px 0 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.species-img {
  display: none;
}

.species-info {
  padding: 2rem;
  flex: 1;
}

.species-info h3 {
  font-size: 1.8rem;
  color: var(--blue-marine);
  margin-bottom: 1rem;
  font-weight: 700;
}

.species-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.species-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--ocean-light);
  color: var(--blue-marine);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Section Habitat */
.habitat-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  margin-top: 3rem;
}

.habitat-card {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-antarctic) 100%);
  color: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.habitat-card h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.habitat-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.habitat-features {
  display: grid;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255,255,255,0.15);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.feature i {
  color: var(--yellow-warm);
  font-size: 1.3rem;
}

/* Image habitat - BACKGROUND METHOD */
.habitat-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 25px;
  background-color: var(--ocean-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.habitat-img {
  display: none;
}

/* Section Dangers */
.dangers {
  padding: 100px 0;
  background-color: var(--ocean-light);
}

.dangers-grid {
  display: grid;
  gap: 4rem;
}

.danger-card {
  background-color: white;
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.danger-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 25px 25px 0 0;
}

.danger-card.climate::before {
  background: linear-gradient(90deg, var(--red-coral), #ff6b6b);
}

.danger-card.pollution::before {
  background: linear-gradient(90deg, var(--text-dark), #495057);
}

.danger-card.overfishing::before {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-antarctic));
}

.danger-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: white;
}

.climate .danger-icon {
  background: var(--red-coral);
}

.pollution .danger-icon {
  background: var(--text-dark);
}

.overfishing .danger-icon {
  background: var(--blue-deep);
}

.danger-card h3 {
  font-size: 2.2rem;
  color: var(--blue-marine);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.danger-description {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.danger-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--ice-white);
  border-radius: 15px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-marine);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Images des dangers - BACKGROUND METHOD */
.danger-image {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  margin-top: 2rem;
  background-color: var(--ocean-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.danger-img {
  display: none;
}

/* Section Protection */
.why-protect {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-marine) 0%, var(--blue-deep) 100%);
  color: white;
}

.protect-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 4rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  /* Forcer la visibilité */
  opacity: 1 !important;
  transform: none !important;
}

.protect-card h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  color: white !important;
}

.protect-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.protect-text {
  /* Conteneur pour le texte */
}

.protect-section {
  margin-bottom: 2.5rem;
}

.protect-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white !important;
}

.protect-section h3 i {
  color: var(--yellow-warm);
  font-size: 1.5rem;
}

.protect-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
  color: white !important;
}

/* Image protection - BACKGROUND METHOD */
.protect-image {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 25px;
  background-color: var(--ocean-light);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.protect-img {
  display: none;
}

/* Call to Action Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--yellow-warm) 0%, #ffed4e 100%);
  color: var(--text-dark);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  line-height: 1.8;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.cta .btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--yellow-warm);
}

/* Footer */
.footer {
  background-color: var(--blue-marine);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--yellow-warm);
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  color: var(--yellow-warm);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--yellow-warm);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--blue-deep);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--yellow-warm);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .section-intro {
    font-size: 1.1rem;
  }
  
  .species-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .habitat-section,
  .protect-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .danger-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .protect-card {
    padding: 2.5rem 2rem;
  }
  
  .habitat-card {
    padding: 2rem;
  }
  
  .danger-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .species-info {
    padding: 1.5rem;
  }
  
  .species-stats {
    justify-content: center;
  }
  
  .protect-card h2,
  .cta-content h2 {
    font-size: 2.2rem;
  }
  
  .habitat-card,
  .protect-card,
  .danger-card {
    padding: 1.5rem;
  }
}