:root {
  --primary: #0077B6;
  --secondary: #90E0EF;
  --dark: #1A1A1A;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --text: #333333;
  --gray: #6C757D;
  --radius: 12px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--dark);
}

h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Header & Nav Improvements */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Stylisé */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(0deg) scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  line-height: 1;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #005f92;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--dark) !important;
}

.btn-secondary:hover {
  background: #7acde0;
  box-shadow: 0 4px 12px rgba(144, 224, 239, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  height: 70vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.8);
}

/* Booking Bar (Moteur de recherche) */
.booking-bar-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.booking-bar {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(0,0,0,0.05);
}

.booking-bar h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--dark);
  text-align: left;
}

.booking-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

.booking-form .form-group {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-form input,
.booking-form select {
  padding: 0.875rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
  width: 100%;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.booking-form .btn-submit {
  padding: 0.875rem 2rem;
  height: 48px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .booking-bar-section {
    margin-top: -2rem;
  }
  .booking-form {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .booking-form .btn-submit {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Video Section */
.video-section {
  margin: 4rem 0;
  text-align: center;
}

.video-section h2 {
  margin-bottom: 1rem;
}

.video-section > p {
  color: var(--gray);
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

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

.video-info {
  padding: 1.5rem;
  text-align: left;
}

.video-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Tool Section: On fait quoi aujourd'hui ? */
.tool-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  margin-top: 4rem;
}

.tool-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tool-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.input-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background-color: #F9FAFB;
  transition: border-color 0.2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
}

.tool-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1.1rem;
}

.tool-result-container {
  background: var(--light);
  border-radius: 12px;
  padding: 2rem;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-result {
  width: 100%;
  transition: opacity 0.2s ease;
}

.tool-card-result {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
  transform: translateY(0);
}

.tool-card-result:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.tool-img-wrapper {
  position: relative;
  height: 200px;
}

.tool-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: var(--dark);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tool-card-content {
  padding: 1.5rem;
}

.tool-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.tool-link-text {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  color: var(--secondary);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #bbb;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: #888;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Affiliation Banner */
.affiliation-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3rem 2rem;
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  margin: 3rem 0;
}

.affiliation-banner h2 {
  color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tool-result-container {
    padding: 1rem;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
    gap: 1rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
  }
}