/* ================================================
   RABAISLOCAL - TUNNEL DE VENTE - STYLES GLOBAUX
   Version: 2.0
   Branding: #3E53A5 (Bleu RabaisLocal)
   Font: Poppins
   ================================================ */

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F5F8FF;
  color: #1B2240;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== BANDEAU TOP INFO ==================== */
.top-info {
  background-color: #3E53A5;
  color: white;
  text-align: center;
  padding: 12px 15px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ==================== HEADER ==================== */
header {
  text-align: center;
  padding: 30px 15px 15px;
  background-color: #F5F8FF;
}

header img.logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.slogan {
  font-size: 1.35rem;
  color: #3E53A5;
  margin-top: 15px;
  margin-bottom: 8px;
  font-weight: 400;
  line-height: 1.5;
}

.tagline {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1B2240;
  margin-bottom: 20px;
}

/* ==================== SECTION VIDÉO ==================== */
.video-section {
  text-align: center;
  padding: 50px 20px 30px;
  background: #ffffff;
}

.video-section h2 {
  color: #3E53A5;
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 12px;
  font-weight: 700;
}

.video-section p {
  color: #333;
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.video-frame {
  max-width: 740px;
  margin: 0 auto 40px;
}

.video-frame iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ==================== SECTION CHOIX DE PARCOURS ==================== */
.choice-section {
  background-color: #F5F8FF;
  text-align: center;
  padding: 60px 20px;
}

.choice-title {
  font-size: 2rem;
  color: #3E53A5;
  font-weight: 700;
  margin-bottom: 45px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.choice-item {
  flex: 1 1 280px;
  max-width: 300px;
}

.choice-label {
  font-size: 1rem;
  font-weight: 600;
  color: #3E53A5;
  margin-bottom: 8px;
}

.arrow-emoji {
  font-size: 1.4rem;
  display: inline-block;
  margin-left: 4px;
}

/* ==================== SECTION CARTES DE RÔLES ==================== */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 35px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 20px 60px;
  background-color: #F5F8FF;
}

.role-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 480px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.role-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(62, 83, 165, 0.18);
}

.role-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.role-box h2 {
  color: #3E53A5;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 18px 0 10px;
}

.role-box a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.role-box a:hover {
  color: #2d4189;
}

.role-body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.role-body p {
  font-size: 0.98rem;
  margin: 0 0 12px;
  line-height: 1.6;
  color: #1B2240;
}

.testimonial {
  font-style: italic;
  color: #666;
  margin-top: auto;
  padding-top: 15px;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ==================== SECTION MISSION ==================== */
.mission {
  background: #F5F8FF;
  padding: 70px 20px 60px;
  text-align: center;
}

.mission-box {
  background: #ffffff;
  border: 2px solid #3E53A5;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(62, 83, 165, 0.1);
}

.mission h2 {
  color: #3E53A5;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.mission p {
  font-size: 1.05rem;
  margin: 8px 0;
  line-height: 1.7;
  color: #1B2240;
}

.mission p strong {
  color: #3E53A5;
  font-weight: 600;
}

/* ==================== SECTION CTA FINAL ==================== */
.cta {
  background: linear-gradient(180deg, #ffffff 0%, #F0F3FF 100%);
  text-align: center;
  padding: 70px 20px;
}

.cta h3 {
  color: #3E53A5;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.cta p {
  font-size: 1.1rem;
  color: #1B2240;
  margin-bottom: 15px;
  line-height: 1.6;
}

.highlight-red {
  color: #E53935;
  font-weight: 700;
}

.cta-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.cta-buttons a {
  background-color: #3E53A5;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(62, 83, 165, 0.25);
  display: inline-block;
}

.cta-buttons a:hover {
  background-color: #2d4189;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(62, 83, 165, 0.35);
}

/* ==================== FOOTER ==================== */
footer {
  background-color: #3E53A5;
  color: white;
  text-align: center;
  padding: 20px 15px;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

footer p {
  margin: 0;
}

footer strong {
  font-weight: 600;
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
  /* Header */
  header img.logo {
    max-width: 260px;
  }

  .slogan {
    font-size: 1.15rem;
  }

  .tagline {
    font-size: 1rem;
  }

  /* Vidéo */
  .video-section {
    padding: 35px 15px 25px;
  }

  .video-section h2 {
    font-size: 1.3rem;
  }

  .video-section p {
    font-size: 0.95rem;
  }

  .video-frame iframe {
    height: 220px;
  }

  /* Choix de parcours */
  .choice-section {
    padding: 45px 15px;
  }

  .choice-title {
    font-size: 1.6rem;
    margin-bottom: 35px;
  }

  /* Cartes de rôles */
  .roles {
    padding: 35px 15px 45px;
    gap: 25px;
  }

  .role-box {
    min-height: 440px;
  }

  .role-box img {
    height: 190px;
  }

  .role-box h2 {
    font-size: 1.25rem;
  }

  /* Mission */
  .mission {
    padding: 50px 15px 45px;
  }

  .mission-box {
    padding: 30px 20px;
  }

  .mission h2 {
    font-size: 1.45rem;
  }

  .mission p {
    font-size: 0.98rem;
  }

  /* CTA */
  .cta {
    padding: 50px 15px;
  }

  .cta h3 {
    font-size: 1.35rem;
  }

  .cta p {
    font-size: 1rem;
  }

  .cta-buttons a {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  /* Très petits écrans */
  .top-info {
    font-size: 0.88rem;
    padding: 10px 12px;
  }

  .slogan {
    font-size: 1.05rem;
  }

  .choice-title {
    font-size: 1.4rem;
  }

  .video-frame iframe {
    height: 200px;
  }

  .role-box {
    min-height: 400px;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-section,
.choice-section,
.roles,
.mission,
.cta {
  animation: fadeIn 0.6s ease-out;
}

/* ==================== ACCESSIBILITÉ ==================== */
a:focus,
button:focus {
  outline: 2px solid #3E53A5;
  outline-offset: 3px;
}

/* Amélioration du contraste pour les lecteurs d'écran */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
