/* ══════════════════════════════════════════════════
   RESET & VARIABLES
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #040470;
  --dark-navy:  #06065A;
  --blue:       #0A53FD;
  --yellow:     #FFC800;
  --white:      #ffffff;
  --card-light: #E7EEFE;
  --gray-text:  #45474F;
  --gray-sub:   #545569;
  --border:     #C2CDE7;
  --bg-light:   #F3F5F9;

  /* Padding horizontal par breakpoint */
  --px: 250px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--white); color: var(--primary); overflow-x: hidden; }

/* ══════════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Cards vision — apparition avec rotation finale */
@keyframes cardReveal1 {
  from { opacity: 0; transform: rotate(0deg) translateY(48px); }
  to   { opacity: 1; transform: rotate(-2.78deg) translateY(0); }
}
@keyframes cardReveal2 {
  from { opacity: 0; transform: rotate(0deg) translateY(48px); }
  to   { opacity: 1; transform: rotate(2.78deg) translateY(0); }
}
@keyframes cardReveal3 {
  from { opacity: 0; transform: rotate(0deg) translateY(48px); }
  to   { opacity: 1; transform: rotate(-2.78deg) translateY(0); }
}

/* ══════════════════════════════════════════════════
   SYSTÈME DE REVEAL AU SCROLL
══════════════════════════════════════════════════ */
.reveal       { opacity: 0; }
.reveal-left  { opacity: 0; }
.reveal-right { opacity: 0; }

.reveal.visible       { animation: fadeUp    0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-left.visible  { animation: slideLeft 0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal-right.visible { animation: slideRight 0.75s cubic-bezier(0.22,1,0.36,1) forwards; }

/* Délais cascade */
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.60s; }

/* Cards vision — état initial invisible */
.vision-card.card-anim { opacity: 0; transform: translateY(48px); }

/* Apparition successive au scroll — déclenchée par JS via .card-visible */
.vision-card.card-anim.card-visible:nth-child(1) {
  animation: cardReveal1 0.8s cubic-bezier(0.22,1,0.36,1) 0s forwards;
}
.vision-card.card-anim.card-visible:nth-child(2) {
  animation: cardReveal2 0.8s cubic-bezier(0.22,1,0.36,1) 0.18s forwards;
}
.vision-card.card-anim.card-visible:nth-child(3) {
  animation: cardReveal3 0.8s cubic-bezier(0.22,1,0.36,1) 0.36s forwards;
}

/* ══════════════════════════════════════════════════
   NAV — fixed
══════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.35s, backdrop-filter 0.35s;
}
nav.scrolled {
  background: rgba(4,4,112,0.92);
  backdrop-filter: blur(14px);
}
.nav-logo {
  display: flex; 
  padding: 16px 40px;
  justify-content: center; 
  align-items: center; 
  gap: 40px;
  background-color: #ffffff17;
  border-radius: 9999px;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-color: hsla(0, 0%, 100%, .6);
  text-decoration: none; 
  line-height: 0;
  transition: background 0.2s;
}
.nav-logo:hover { background: rgba(255,255,255,0.16); }

/* ══════════════════════════════════════════════════
   HERO — padding-top compensé nav fixed
══════════════════════════════════════════════════ */
#hero {
  background: var(--primary);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 48px; text-align: center;
  padding: 190px var(--px) 140px;
  position: relative; overflow: hidden;
}
#hero::after {
  content: ''; position: absolute; top: -5%; right: -15%;
  width: 70%; height: 110%;
  background: linear-gradient(160deg, rgba(29,96,249,0) 8%, rgba(10,83,253,0.8) 100%);
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}
.hero-content {
  display: flex; flex-direction: column; align-items: center;
  gap: 48px; position: relative; z-index: 1; width: 100%;
}
.hero-title {
  font-size: clamp(4rem, 9vw, 9.5rem); font-weight: 900;
  color: var(--white); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255,255,255,0.85);
  max-width: 800px; line-height: 1.5; font-weight: 200;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.25s both;
}
.btn-yellow {
  display: inline-block; 
  background: var(--yellow); 
  color: var(--primary);
  font-family: 'Outfit', 
  sans-serif; 
  font-weight: 600; 
  font-size: 1rem;
  padding: 0 40px; 
  height: 58px; line-height: 58px; border-radius: 0px;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,200,0,0.4); }
.hero-meta {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
  animation: fadeIn 1s ease 0.6s both;
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 0.92rem; }

/* ══════════════════════════════════════════════════
   VISION
══════════════════════════════════════════════════ */
#vision {
  background: var(--white);
  display: flex; flex-direction: column;
  align-items: center;
  padding: 120px var(--px);
  gap: 80px;
  /* Overflow visible pour que les cards inclinées débordent sans coupure */
  overflow: visible;
}

.vision-header { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }

.vision-title {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 900;
  text-transform: uppercase; line-height: 1.05; letter-spacing: -0.02em; color: var(--primary);
}
/* Les deux spans — même couleur bleue */
.vision-title .blue,
.vision-title .yellow { color: var(--blue); }

.vision-desc {
  font-size: 1.1rem; color: var(--gray-sub);
  line-height: 1.8; max-width: 900px;
}

.vision-cards {
  display: flex; flex-direction: column;
  gap: 48px; width: 100%; align-items: center;
  /* Padding pour que les rotations ne soient pas coupées */
  padding: 24px 0 40px;
}

/* Dimensions plus grandes des cards */
.vision-card {
  width: min(1480px, 80%);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  /* Rotation statique — écrasée par l'animation au premier rendu */
  transform: rotate(0deg);
}

/* Rotations finales après animation */
.vision-card:nth-child(1) { transform: rotate(-2.78deg); }
.vision-card:nth-child(2) { transform: rotate(2.78deg); }
.vision-card:nth-child(3) { transform: rotate(-2.78deg); }

/* Textes plus grands dans les cards */
.vision-card-label {
  padding: 74px 60px;
  display: flex; align-items: center;
  font-weight: 700; font-size: 1.2rem; line-height: 1.45;
}
.vision-card-body {
  padding: 70px 64px;
  font-size: 1.7rem; line-height: 1.4;
  display: flex; align-items: center;
  font-weight: lighter;
  
}

.card-light .vision-card-label { background: var(--card-light); color: var(--primary); }
.card-light .vision-card-body  { background: var(--card-light); color: var(--gray-text); }
.card-blue  .vision-card-label { background: var(--blue); color: var(--white); }
.card-blue  .vision-card-body  { background: var(--blue); color: var(--white); }
.card-yellow .vision-card-label { background: var(--yellow); color: var(--primary); }
.card-yellow .vision-card-body  { background: var(--yellow); color: var(--primary); }

/* ══════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════ */
#about {
  background: var(--white);
  padding: 120px var(--px);
  display: flex; flex-direction: column; gap: 48px;
}
.about-header { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.about-title  { font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.about-tagline { font-size: 1rem; color: var(--blue); font-style: italic; }
.about-body p  { font-size: 1.05rem; color: var(--gray-text); line-height: 1.9; margin-bottom: 20px; }
.about-principles h3 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.about-principles ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about-principles li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--gray-text); line-height: 1.6; }
.about-principles li::before { content: '▶'; color: var(--primary); font-size: 0.6rem; margin-top: 5px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   TESTIMONIAL
══════════════════════════════════════════════════ */
#testimonial {
  background: var(--dark-navy);
  padding: 120px var(--px);
  display: flex; flex-direction: column; gap: 40px;
}
.testimonial-quote { font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 600; color: var(--white); line-height: 1.65; max-width: 1100px; }
.testimonial-name  { font-weight: 700; font-size: 1.05rem; color: var(--white); display: block; }
.testimonial-role  { font-size: 0.9rem; color: rgba(255,255,255,0.5); display: block; margin-top: 4px; }

/* ══════════════════════════════════════════════════
   CONTACT — 2 colonnes alignées horizontalement
   Col 1 : 2/5 (infos) | Col 2 : 3/5 (formulaire)
   Passe en 1 colonne à partir du tablet (≤1511px)
══════════════════════════════════════════════════ */
#contact {
  background: var(--white);
  padding: 120px var(--px);
  display: flex; flex-direction: column; align-items: center; gap: 64px;
}
.contact-header { text-align: center; display: flex; flex-direction: column; gap: 16px; }
.contact-title  { font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.contact-sub    { font-size: 1rem; color: var(--gray-sub); max-width: 540px; margin: 0 auto; line-height: 1.7; }

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 3fr; /* 40% | 60% */
  gap: 80px;
  width: 100%;
  align-items: start; /* alignement haut — même ligne horizontale */
}

.contact-addresses h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }

/* Icône — contenu remplaçable manuellement */
.contact-icon {
  width: 40px; height: 40px; border-radius: 16px;
  background: rgba(10,83,253,0.06); border: 1px solid rgba(10,83,253,0.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-icon img { width: 18px; height: 18px; object-fit: contain; }

.contact-item-text small { display: block; font-size: 0.75rem; color: var(--gray-sub); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.contact-item-text span  { font-size: 0.95rem; color: var(--primary); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group   { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.form-group label .req { color: #e53e3e; }
.form-group input, .form-group textarea {
  background: rgba(194,205,231,0.2); border: 1px solid rgba(194,205,231,0.5);
  border-radius: 4px; padding: 0 16px; height: 64px;
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; color: var(--primary);
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group textarea { height: 195px; padding: 16px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(84,85,105,0.5); font-size: 0.88rem; }
.btn-submit {
  display: block; width: 100%; background: var(--yellow); color: var(--primary);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem;
  height: 75px; line-height: 75px; border-radius: 4px; border: none;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,200,0,0.35); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  background: var(--bg-light); height: 122px; padding: 0 250px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
footer p, footer a { font-size: 0.82rem; color: var(--gray-sub); text-decoration: none; }
footer a:hover { color: var(--primary); }

/* ══════════════════════════════════════════════════
   RESPONSIVE — Laptop ≤1979px  |  --px = 180px
══════════════════════════════════════════════════ */
@media (max-width: 1979px) {
  :root { --px: 180px; }
  #hero        { padding-top: 170px; padding-bottom: 140px; }
  .vision-card { grid-template-columns: 300px 1fr; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤1511px  |  --px = 80px
   Contact passe en 1 colonne ici
══════════════════════════════════════════════════ */
@media (max-width: 1511px) {
  :root { --px: 80px; }
  nav { height: 80px; }
  #hero { padding-top: 140px; padding-bottom: 120px; }

  .vision-card {
    border-radius: 20px;
    grid-template-columns: 240px 1fr;
  }
  .vision-card-label { padding: 40px 28px; font-size: 1.05rem; }
  .vision-card-body  { padding: 40px 36px; font-size: 1.5rem; }

  /* Contact — 1 colonne à partir du tablet */
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .form-row       { grid-template-columns: 1fr 1fr; } /* le form-row garde 2 cols */
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤799px  |  --px = 32px
══════════════════════════════════════════════════ */
@media (max-width: 799px) {
  :root { --px: 32px; }
  nav { height: 70px; }
  #hero { padding-top: 110px; padding-bottom: 100px; gap: 32px; }
  .hero-content { gap: 32px; }
  .hero-meta { flex-direction: column; gap: 12px; }

  #vision { gap: 40px; }
  .vision-card {
    width: 100%; border-radius: 18px;
    grid-template-columns: 1fr;
    /* Pas de rotation sur mobile */
  }
  .vision-card:nth-child(1),
  .vision-card:nth-child(2),
  .vision-card:nth-child(3) { transform: none; }

  /* Animation mobile sans rotation */
  .vision-card.card-anim.card-visible:nth-child(1),
  .vision-card.card-anim.card-visible:nth-child(2),
  .vision-card.card-anim.card-visible:nth-child(3) {
    animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) forwards;
  }
  .vision-card.card-anim.card-visible:nth-child(2) { animation-delay: 0.18s; }
  .vision-card.card-anim.card-visible:nth-child(3) { animation-delay: 0.36s; }

  .vision-card-label { padding: 28px 24px; font-size: 1rem; }
  .vision-card-body  { padding: 24px 24px; font-size: 1.3rem; }

  .form-row   { grid-template-columns: 1fr; }
  .btn-yellow, .btn-submit { height: 54px; line-height: 54px; font-size: 1rem; }

  footer { padding: 24px 32px; height: auto; flex-direction: column; text-align: center; }
}
