/* ========================================
   RGPD & MENTIONS LÉGALES - RESPONSIVE CSS
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: linear-gradient(65deg, #051a30 50%, #02070c);
  color: #333;
  line-height: 1.6;
  font-size: clamp(14px, 1.2vw, 16px);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   2. NAVBAR
   ======================================== */

/* ============================================================
   2. NAVBAR
   ============================================================ */

.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.3s ease;
  animation: slideDown 0.6s ease-out;
}

/* ── 2a. Animations navbar ── */

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1);   }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0);    }
}

.nav-container.scrolled {
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 20px rgba(0, 114, 188, 0.3);
  backdrop-filter: blur(5px);
}

/* ── 2b. Logo ── */

.logo img {
  width: clamp(200px, 17vw, 400px);
  height: auto;
  transition: width 0.3s ease;
  animation: fadeInScale 0.8s ease-out 0.2s both;
}

/* ── 2c. Liens de navigation ── */

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(15px, 2vw, 35px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li { animation: fadeInUp 0.6s ease-out both; }
.nav-links li:nth-child(1) { animation-delay: 0.3s; }
.nav-links li:nth-child(2) { animation-delay: 0.4s; }
.nav-links li:nth-child(3) { animation-delay: 0.5s; }
.nav-links li:nth-child(4) { animation-delay: 0.6s; }
.nav-links li:nth-child(5) { animation-delay: 0.7s; }
.nav-links li:nth-child(6) { animation-delay: 0.8s; }

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: clamp(13px, 1.1vw, 17px);
  padding-bottom: 5px;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover { color: #0072BC; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background-color: #0072BC;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* ── 2d. Boutons CTA ── */

.nav-actions {
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  align-items: center;
  animation: fadeInRight 0.8s ease-out 0.7s both;
}

.phone-button,
.eligibilite-button {
  background: #0099ff;
  color: white;
  border: none;
  padding: clamp(10px, 1.2vw, 14px) clamp(18px, 2.5vw, 28px);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 114, 188, 0.3);
}

.phone-button:hover,
.eligibilite-button:hover {
  background: #0072BC;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #0072BC;
}

/* ── 2e. Menu hamburger ── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-container.open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-container.open .hamburger span:nth-child(2) { opacity: 0; }
.nav-container.open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }


/* ========================================
   LEGAL CONTENT
   ======================================== */

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(100px, 15vw, 140px) 5% clamp(60px, 8vw, 80px);
  color: white;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: lightskyblue;
  margin-bottom: clamp(30px, 5vw, 50px);
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: lightskyblue;
  margin: clamp(40px, 6vw, 60px) 0 clamp(20px, 3vw, 30px);
  border-bottom: 2px solid rgba(0, 114, 188, 0.3);
  padding-bottom: 10px;
  transition: all 0.3s ease;
}

.legal-content h2:hover {
  border-bottom-color: rgba(0, 114, 188, 0.6);
}

.legal-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #00D0FF;
  margin: clamp(25px, 4vw, 35px) 0 clamp(12px, 2vw, 18px);
  font-weight: 600;
}

.legal-content p {
  line-height: 1.8;
  margin-bottom: clamp(15px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  text-align: justify;
}

.legal-content ul {
  margin-left: clamp(20px, 3vw, 30px);
  margin-bottom: clamp(15px, 2vw, 20px);
}

.legal-content li {
  line-height: 1.8;
  margin-bottom: clamp(8px, 1.5vw, 12px);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.legal-content a {
  color: #0072BC;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #00D0FF;
}

.legal-content strong {
  color: white;
  font-weight: 600;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(0, 114, 188, 0.15) 0%, rgba(13, 59, 102, 0.15) 100%);
  border-left: 4px solid #0072BC;
  padding: clamp(20px, 3vw, 30px);
  margin: clamp(30px, 4vw, 40px) 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 114, 188, 0.2);
  animation: slideInLeft 0.6s ease-out 0.3s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.info-box p {
  margin: 0;
}

/* Last Update */
.last-update {
  text-align: center;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-top: clamp(50px, 8vw, 80px);
  padding-top: clamp(30px, 5vw, 50px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: #1e293b;
  color: white;
  padding: clamp(40px, 6vw, 60px) 5%;
  margin-top: clamp(60px, 10vw, 100px);
}

footer h3 {
  color: lightskyblue;
  margin-bottom: clamp(15px, 2vw, 20px);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: clamp(8px, 1.5vw, 12px);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #0072BC;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  margin-bottom: clamp(8px, 1.5vw, 12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(25px, 4vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #334155;
  margin-top: clamp(30px, 5vw, 50px);
  padding-top: clamp(20px, 3vw, 30px);
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  opacity: 0.8;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.pt-8 {
  padding-top: 2rem;
}

.gap-8 {
  gap: 2rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.font-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.border-t {
  border-top-width: 1px;
}

.border-slate-200 {
  border-color: #334155;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile Portrait: jusqu'à 480px */
@media (max-width: 480px) {
  .nav-container {
    padding: 10px 3%;
  }

  .logo img {
    width: 150px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: linear-gradient(to bottom, #030712 0%, #0d3b66 100%);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
  }

  .nav-container.open .nav-links {
    display: flex;
  }

  .nav-actions {
    gap: 8px;
  }

  .phone-button {
    font-size: 10px;
    padding: 8px 12px;
  }

  .legal-content {
    padding: 100px 4% 50px;
  }

  .legal-content p,
  .legal-content li {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile Landscape: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background: linear-gradient(to bottom, #030712 0%, #0d3b66 100%);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
  }

  .nav-container.open .nav-links {
    display: flex;
  }

  .nav-actions {
    gap: 10px;
  }

  .phone-button {
    font-size: 11px;
    padding: 9px 14px;
  }

  .legal-content {
    padding: 110px 5% 60px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet: 769px - 1023px */
@media (min-width: 769px) and (max-width: 1023px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(to bottom, #030712 0%, #0d3b66 100%);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 25px;
  }

  .nav-container.open .nav-links {
    display: flex;
  }

  .legal-content {
    padding: 120px 5% 70px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: à partir de 1024px */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .legal-content {
    padding: 140px 5% 80px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop Large: 1440px et plus */
@media (min-width: 1440px) {
  .legal-content {
    max-width: 1200px;
  }

  footer {
    padding: 60px 8%;
  }
}

/* ========================================
   ANIMATIONS SUPPLÉMENTAIRES
   ======================================== */

/* Smooth scroll reveal pour les sections */
.legal-content h2 {
  opacity: 0;
  transform: translateY(20px);
  animation: revealSection 0.6s ease-out forwards;
}

@keyframes revealSection {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Délais progressifs pour les h2 */
.legal-content h2:nth-of-type(1) { animation-delay: 0.1s; }
.legal-content h2:nth-of-type(2) { animation-delay: 0.15s; }
.legal-content h2:nth-of-type(3) { animation-delay: 0.2s; }
.legal-content h2:nth-of-type(4) { animation-delay: 0.25s; }
.legal-content h2:nth-of-type(5) { animation-delay: 0.3s; }

/* Effet de focus sur les liens */
.legal-content a:focus {
  outline: 3px solid #0072BC;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Print styles */
@media print {
  .nav-container,
  footer {
    display: none;
  }

  body {
    background: white;
  }

  .legal-content {
    color: black;
    padding: 20px;
  }

  .legal-content h1,
  .legal-content h2,
  .legal-content h3 {
    color: black;
  }

  .legal-content p,
  .legal-content li {
    color: black;
  }

  .info-box {
    border: 1px solid #ccc;
    background: #f5f5f5;
  }
}