/* =============================================
   PRÉVENTIS-CONSEILS — Landing Temporaire
   100% HTML + CSS — Aucun JavaScript
   ============================================= */

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

:root {
  --blue: #2C76BE;
  --blue-hover: #235C96;
  --dark: #1C3557;
  --body: #333333;
  --muted: #6B7280;
  --white: #FFFFFF;
  --light-bg: #F7F9FC;
  --border: #E5E7EB;
  --radius: 6px;
}

html {
  scroll-behavior: smooth;
}

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

body.modal-open {
  overflow: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.btn-white:hover {
  background: #F0F5FB;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ---- SCREEN READER ONLY / HIDDEN CHECKBOXES ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   LANDING POPUP
   ============================================= */
.landing-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 53, 87, 0.22);
  backdrop-filter: blur(6px);
}

.landing-popup[hidden] {
  display: none;
}

.landing-popup__card {
  width: min(100%, 720px);
  padding: 56px 48px 60px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(18, 39, 66, 0.22);
  text-align: center;
}

.landing-popup__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 118, 190, 0.12);
  color: var(--blue);
}

.landing-popup__card h2 {
  max-width: 380px;
  margin: 0 auto 24px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--dark);
}

.landing-popup__card p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.9;
  color: #424a57;
}

.landing-popup__button {
  min-width: 296px;
  margin-top: 36px;
  padding: 18px 30px;
  font-size: 17px;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .landing-popup {
    padding: 16px;
  }

  .landing-popup__card {
    padding: 40px 24px 44px;
    border-radius: 20px;
  }

  .landing-popup__card h2 {
    max-width: 300px;
    font-size: 24px;
  }

  .landing-popup__card p {
    font-size: 17px;
    line-height: 1.75;
  }

  .landing-popup__button {
    min-width: 100%;
  }
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.nav-logo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.nav-logo-name {
  color: var(--dark);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.nav-logo-tagline {
  margin-top: 4px;
  color: var(--blue);
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .nav-logo {
    gap: 14px;
  }
  .nav-logo img { height: 50px; }
  .nav-logo-name { font-size: 24px; }
  .nav-logo-tagline {
    margin-top: 5px;
    font-size: 13px;
  }
}
@media (max-width: 420px) {
  .nav-logo {
    gap: 10px;
  }
  .nav-logo img { height: 38px; }
  .nav-logo-name { font-size: 17px; }
  .nav-logo-tagline {
    margin-top: 3px;
    font-size: 9px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}
.nav-links a.active {
  font-weight: 600;
}

.nav-cta {
  display: none;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}
.nav-cta:hover { background: var(--blue-hover); }

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--dark);
  cursor: pointer;
}
@media (min-width: 768px) {
  .nav-hamburger { display: none; }
}

.nav-hamburger .icon-close { display: none; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 8px 0;
}
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s ease;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--blue); }
.mobile-menu a.active {
  font-weight: 600;
}
.mobile-menu .mobile-cta {
  margin: 8px 24px;
  display: inline-flex;
}

/* Checkbox hack: show menu when checked */
#menu-toggle:checked ~ .navbar .mobile-menu {
  display: block;
  animation: fadeSlideDown 0.3s ease-out;
}
#menu-toggle:checked ~ .navbar .nav-hamburger .icon-menu { display: none; }
#menu-toggle:checked ~ .navbar .nav-hamburger .icon-close { display: block; }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 53, 87, 0.5);
  z-index: 1;
}

/* ---- Starfield (CSS only) ---- */
.starfield {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.starfield i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--s) * 2px);
  height: calc(var(--s) * 2px);
  background: var(--white);
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out var(--d);
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.7; transform: scale(1); }
}

/* ---- Hero Content ---- */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 96px 24px 48px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}
@media (min-width: 640px) {
  .hero-title { font-size: 48px; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 56px; }
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  max-width: 680px;
  margin: 24px auto 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1.1s forwards;
}
@media (min-width: 768px) {
  .hero-desc { font-size: 18px; }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 1.4s forwards;
}
@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--white);
  padding: 80px 0;
}
@media (max-width: 767px) {
  .services { padding: 48px 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .section-header h2 { font-size: 36px; }
}
.section-header > p:last-child {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s ease-out forwards;
}
.service-card:nth-child(1) { animation-delay: 1.8s; }
.service-card:nth-child(2) { animation-delay: 1.92s; }
.service-card:nth-child(3) { animation-delay: 2.04s; }
.service-card:nth-child(4) { animation-delay: 2.16s; }
.service-card:nth-child(5) { animation-delay: 2.28s; }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(44, 118, 190, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.service-card h3 {
  width: 100%;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark);
  margin-top: 20px;
  min-height: 2.7em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.service-card p {
  width: 100%;
  font-size: 14px;
  color: var(--body);
  margin-top: 16px;
  padding-top: 16px;
  line-height: 1.6;
  border-top: 2px solid rgba(44, 118, 190, 0.9);
}

@media (max-width: 479px) {
  .service-card h3 {
    min-height: auto;
  }
}

/* =============================================
   EXPERTISE
   ============================================= */
.expertise {
  background: var(--light-bg);
  padding: 80px 0;
}
@media (max-width: 767px) {
  .expertise { padding: 48px 0; }
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .expertise-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.expertise-text {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.6s ease-out 2.4s forwards;
}
.expertise-image {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.6s ease-out 2.55s forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 767px) {
  .expertise-grid { display: flex; flex-direction: column; }
  .expertise-image { order: -1; }
  .expertise-text {
    transform: translateY(30px);
    animation-name: fadeInUp;
  }
  .expertise-image {
    transform: translateY(30px);
    animation-name: fadeInUp;
    animation-delay: 2.4s;
  }
}

.expertise-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .expertise-text h2 { font-size: 36px; }
}

.expertise-text > p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.expertise-list {
  list-style: none;
  margin-bottom: 24px;
}
.expertise-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
  margin-bottom: 14px;
  line-height: 1.5;
}
.expertise-list svg {
  color: var(--blue);
  margin-top: 2px;
  flex-shrink: 0;
}

.expertise-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* =============================================
   CONTACT CTA — Diagonal Wipe (CSS only)
   ============================================= */
.contact-cta {
  position: relative;
  width: 100%;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
@media (max-width: 767px) {
  .contact-cta { padding: 56px 0; }
}

.contact-base {
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: 0;
}

.contact-layer {
  position: absolute;
  inset: 0;
  background: var(--blue);
  z-index: 1;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  animation: diagonalWipe 3.4s ease-in-out 3s forwards;
}

@keyframes diagonalWipe {
  0% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
  100% { clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 50% 100%); }
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 6.8s forwards;
}

.contact-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.contact-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .contact-content h2 { font-size: 36px; }
}

.contact-content > p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  padding-top: 64px;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 7s forwards;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-spacer {
  display: none;
}
@media (min-width: 768px) {
  .footer-spacer {
    display: block;
  }
}

.footer-logo {
  margin-bottom: 16px;
}
.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-brand > p:last-child {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 320px;
}

.footer-contact {
  text-align: left;
  justify-self: start;
}

.footer-contact h4,
.footer-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-contact p,
.footer-contact a,
.footer-info a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-contact a:hover,
.footer-info a:hover {
  color: var(--white);
}

.footer-zone {
  color: rgba(255,255,255,0.6) !important;
  margin-top: 12px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
