/* ============================================================
   style.css — Interport Company Inc.
   Part 1: Variables, Reset, Typography, Nav, Hero, About
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* ── 60-30-10 COLOR RULE ──────────────────────────────────
     60% → Light background  (#FAFAFA, #F4F6F8)
     30% → Navy / Anthracite (#1A2B4A, #2C3E60)
     10% → Vert Principal    (#00B83D, #009A33)
  ──────────────────────────────────────────────────────── */

  /* 60% — Fond clair */
  --bg-main: #FAFAFA;
  --bg-alt: #F4F6F8;
  --bg-card: #FFFFFF;

  /* 30% — Bleu marine / gris anthracite */
  --navy-900: #1A2B4A;
  --navy-700: #2C3E60;
  --navy-500: #3D5278;
  --navy-200: #C8D4E8;

  /* 10% — Accentuation vert */
  --accent: #00B83D;
  --accent-hover: #009A33;
  --accent-light: rgba(0, 184, 61, .12);

  /* Compatibilité backward & Palette secondaire pour les cartes */
  --blue-900: #1A2B4A;
  --blue-800: #2C3E60;
  --blue-700: #3D5278;
  --blue-600: #3D5278;
  --blue-400: #4A6EA8;
  --blue-300: #6B8DB8;
  --orange-500: #E85C0D;
  --orange-400: #E85C0D;
  --orange-300: #FF7A30;
  --vivid-green: #28A745;
  --vivid-purple: #5A3E8B;
  --vivid-yellow: #FFC107;
  --vivid-red: #C0392B;
  --vivid-orange: #FF6600;
  --vivid-teal: #0066FF;
  --vivid-dark: #1A2B4A;
  --vivid-lime: #27AE60;
  --vivid-pink: #8E44AD;

  /* Neutres */
  --white: #ffffff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-700: #374151;
  --gray-800: #1E293B;

  --font-main: 'Inter', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .10);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .16);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--navy-900);
  background: var(--bg-main);
  /* 60% — fond très clair */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--orange-500);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 3px;
}

/* ---- Typography (30% — bleu marine pour tous les titres) ---- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-900);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---- Utility: Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* 10% — Boutons d'accentuation orange industriel */
.btn-primary,
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 184, 61, .40);
}

.btn-primary:hover,
.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(0, 184, 61, .55);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .14);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--gray-100);
  box-shadow: var(--shadow-lg);
}

.btn-full {
  width: 100%;
}

/* ---- Utility: Section layout ---- */
.section-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 80px 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--accent);
  /* 10% accent */
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

.section-title {
  color: var(--navy-900);
  /* 30% */
  margin-bottom: .75rem;
}

.section-subtitle {
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-body {
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-900);
  /* 30% — bleu marine */
  border-bottom: 2px solid rgba(255, 255, 255, .12);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Ajout important */
  gap: 2rem;
  padding: 0 1.5rem;
  height: var(--nav-h);
  position: relative;
  /* Utile si tu choisis le centrage absolu plus bas */
}

.nav-logo img {
  height: 6rem;
  width: auto;
  padding-top: 0.3rem;
  object-fit: contain;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: .25rem;
  align-items: center;
  margin: 0;
  /* Remplace margin-left: auto */
  padding: 0;
  /* Réinitialise le padding par défaut des <ul> */
  list-style: none;
  /* Sécurité pour enlever les puces */
}

.nav-link {
  color: rgba(255, 255, 255, .78);
  font-size: 1.2rem;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
}

.nav-link.active {
  color: var(--accent);
}

/* ---- Actions (Lang + CTA) ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Switcher Desktop */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  cursor: pointer;
  padding: .4rem .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--white);
}

.flag-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: .5rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: .5rem 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 1010;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.2rem;
  color: var(--navy-900);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.lang-option:hover {
  background: rgba(0, 183, 219, 0.1); /* light version of #00B7DB */
  color: #00B7DB;
}

.lang-option.active {
  font-weight: 700;
  background: rgba(0, 0, 0, 0.03);
}

.nav-cta {
  background: var(--accent);
  /* 10% accent */
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 184, 61, .45);
  font-weight: 700;
  font-size: 1.2rem;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 184, 61, .60);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

.hamburger-bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  display: block;
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1rem;
}

.mobile-link {
  display: block;
  color: rgba(255, 255, 255, .8);
  font-size: 1rem;
  font-weight: 500;
  padding: .65rem .9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

/* Mobile Language Switcher */
.mobile-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-btn {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--transition);
}

.mobile-lang-btn.active,
.mobile-lang-btn:hover {
  color: var(--white);
}

.mobile-lang-divider {
  color: rgba(255, 255, 255, 0.2);
}

.mobile-cta {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: .75rem;
  border-radius: 50px;
  transition: background var(--transition);
}

.mobile-cta:hover {
  background: var(--accent-hover);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(26, 43, 74, 0.72) 0%, rgba(26, 43, 74, 0.90) 100%),
    url('../img/acc/bckimage1.jpg') center/cover no-repeat;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Animated background pulse */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(230, 84, 0, .12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(154, 0, 125, .12) 0%, transparent 50%);
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  from {
    opacity: .6;
  }

  to {
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .30) 0%, transparent 50%, rgba(0, 0, 0, .35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
}

/* Logo in hero */
.hero-logo-wrap {
  animation: fadeDown .9s ease both;
}

.hero-logo {
  width: clamp(280px, 40vw, 480px);
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, .5)) brightness(1.08);
  transition: transform var(--transition);
}

.hero-logo:hover {
  transform: scale(1.03);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Primary headline */
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .4);
  animation: fadeUp .9s .15s ease both;
}

/* Secondary headline */
.hero-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  color: rgba(255, 255, 255, .88);
  font-weight: 400;
  letter-spacing: .01em;
  animation: fadeUp .9s .25s ease both;
}

.hero-subheadline strong {
  color: var(--accent);
  font-weight: 700;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .9s .35s ease both;
}

/* Scroll indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  animation: fadeUp 1s .6s ease both;
}

.scroll-dot {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: .4;
  }
}

.scroll-text {
  color: rgba(255, 255, 255, .5);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 1.5rem 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .75rem 2.5rem;
  gap: .2rem;
}

.stat-number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--accent);
  /* 10% accent */
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, .15);
}

/* ============================================================
   ABOUT SECTION — 60-30-10
   60% : fond #FAFAFA / 30% : textes navy / 10% : btn orange
   ============================================================ */
.about-section {
  background: var(--bg-main);
  /* 60% */
  padding: 0;
  border-top: 4px solid var(--navy-200);
}

.about-section .section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 80px 1.5rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}

.about-text .section-title {
  color: var(--navy-900);
  /* 30% */
}

.about-text .section-body {
  color: var(--gray-600);
  text-align: left;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ── 3-image grid (right column) ── */
.about-images-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-img-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--navy-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-img-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-img-card--main .about-img {
  height: 240px;
}

.about-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img-row .about-img {
  height: 160px;
}

.about-img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.about-img-card:hover .about-img {
  transform: scale(1.04);
}

.about-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 43, 74, .80));
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1rem;
  text-align: center;
}

/* ============================================================
   style.css — Interport Company Inc.
   Part 2: Services, Why Choose Us, CTA Banner, Footer
   ============================================================ */

/* ---- Services Section (Homepage Grid) ---- */
.services-section {
  background: var(--bg-alt);
  /* 60% — fond légèrement différencié */
  border-top: 4px solid var(--navy-200);
  /* 30% */
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0;
  /* padding géré par les enfants */
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* clip le header au border-radius */
  text-decoration: none;
}

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

/* ---- Bandeau image en haut de chaque carte ---- */
.service-card-header {
  width: 100%;
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  /* fallback si pas d'image */
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.service-card:hover .service-card-header-img {
  transform: scale(1.07);
}

/* Fallback emoji (si pas d'image dans le JSON) */
.service-card-emoji {
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .12));
  transition: transform var(--transition);
}

.service-card:hover .service-card-emoji {
  transform: scale(1.18) translateY(-4px);
}

/* ---- Corps coloré de la carte ---- */
.service-card-body {
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  flex-grow: 1;
  /* couleur individuelle appliquée via nth-child ci-dessous */
}

/* Couleur du corps par carte */
.service-card:nth-child(1) .service-card-body {
  background: #E6F9EC; /* Ocean Freight: Green */
  border-top: 3px solid #27AE60;
  border-bottom: 4px solid transparent;
  transition: border-bottom-color var(--transition);
}

.service-card:nth-child(2) .service-card-body {
  background: #E2E8F0; /* Air Freight: Grey */
  border-top: 3px solid #718096;
  border-bottom: 4px solid transparent;
  transition: border-bottom-color var(--transition);
}

.service-card:nth-child(3) .service-card-body {
  background: #D4EBF8; /* Ground Transportation: Light Blue */
  border-top: 3px solid #3498DB;
  border-bottom: 4px solid transparent;
  transition: border-bottom-color var(--transition);
}

.service-card:nth-child(4) .service-card-body {
  background: #EAE0F5; /* Warehousing: Purple */
  border-top: 3px solid #8E44AD;
  border-bottom: 4px solid transparent;
  transition: border-bottom-color var(--transition);
}

.service-card:nth-child(5) .service-card-body {
  background: #FCE8E8; /* Customs Brokerage: Red */
  border-top: 3px solid #E74C3C;
  border-bottom: 4px solid transparent;
  transition: border-bottom-color var(--transition);
}

.service-card:nth-child(6) .service-card-body {
  background: #FFF2B2; /* Cargo Insurance: Yellow */
  border-top: 3px solid #D4AF37;
  border-bottom: 4px solid transparent;
  transition: border-bottom-color var(--transition);
}

/* Hover shadow et border bottom par carte */
.service-card:nth-child(1):hover {
  box-shadow: 0 8px 30px rgba(39, 174, 96, 0.20);
}
.service-card:nth-child(1):hover .service-card-body {
  border-bottom-color: #27AE60;
}

.service-card:nth-child(2):hover {
  box-shadow: 0 8px 30px rgba(113, 128, 150, 0.20);
}
.service-card:nth-child(2):hover .service-card-body {
  border-bottom-color: #718096;
}

.service-card:nth-child(3):hover {
  box-shadow: 0 8px 30px rgba(52, 152, 219, 0.20);
}
.service-card:nth-child(3):hover .service-card-body {
  border-bottom-color: #3498DB;
}

.service-card:nth-child(4):hover {
  box-shadow: 0 8px 30px rgba(142, 68, 173, 0.18);
}
.service-card:nth-child(4):hover .service-card-body {
  border-bottom-color: #8E44AD;
}

.service-card:nth-child(5):hover {
  box-shadow: 0 8px 30px rgba(231, 76, 60, 0.18);
}
.service-card:nth-child(5):hover .service-card-body {
  border-bottom-color: #E74C3C;
}

.service-card:nth-child(6):hover {
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.18);
}
.service-card:nth-child(6):hover .service-card-body {
  border-bottom-color: #D4AF37;
}

/* ---- Image dans les cartes homepage (remplace l'emoji) ---- */
.service-card-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: .25rem;
  flex-shrink: 0;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.service-card:hover .service-card-img {
  transform: scale(1.06);
}

.service-card-link {
  font-weight: 700;
  font-size: .95rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--transition);
  align-self: flex-start;
}

.service-card-link:hover {
  color: var(--accent-hover);
}

.services-cta-wrap {
  text-align: center;
  margin-top: 3.5rem;
}

.services-loading,
.services-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 1.1rem;
}

.services-error {
  background: rgba(239, 68, 68, 0.05);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: var(--gray-800);
}

.error-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

/* ---- Services Detail Page (`services.php`) ---- */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(0, 0, 0, .70), rgba(0, 0, 0, .70)),
    url('../img/acc/mapimage.jpg') center/cover no-repeat;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
  color: var(--white);
  text-align: center;
}

.page-hero--small {
  min-height: 35vh;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.page-hero-title {
  color: var(--white);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.page-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, .9);
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  margin-top: .5rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .8);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: .5rem;
  color: rgba(255, 255, 255, .3);
}

.breadcrumb li[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.services-detail-section {
  background: var(--bg-alt);
}

.services-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  /* le padding est géré par les enfants */
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  border-left: 6px solid var(--accent);
  display: flex;
  gap: 0;
  overflow: hidden;
  /* pour clipper l'image au radius */
  transition: border-bottom-color var(--transition), box-shadow var(--transition), transform var(--transition);
  scroll-margin-top: calc(var(--nav-h) + 2rem);
  border-bottom: 4px solid transparent;
}

/* ---- Couleur individuelle de chaque carte (services.php) ---- */
.service-detail-card:nth-child(1) {
  background: #E6F9EC;
  border-left-color: #27AE60;
}
.service-detail-card:nth-child(1):hover {
  border-bottom-color: #27AE60;
  box-shadow: 0 12px 40px rgba(39, 174, 96, 0.15);
}

.service-detail-card:nth-child(2) {
  background: #E2E8F0;
  border-left-color: #718096;
}
.service-detail-card:nth-child(2):hover {
  border-bottom-color: #718096;
  box-shadow: 0 12px 40px rgba(113, 128, 150, 0.15);
}

.service-detail-card:nth-child(3) {
  background: #D4EBF8;
  border-left-color: #3498DB;
}
.service-detail-card:nth-child(3):hover {
  border-bottom-color: #3498DB;
  box-shadow: 0 12px 40px rgba(52, 152, 219, 0.15);
}

.service-detail-card:nth-child(4) {
  background: #EAE0F5;
  border-left-color: #8E44AD;
}
.service-detail-card:nth-child(4):hover {
  border-bottom-color: #8E44AD;
  box-shadow: 0 12px 40px rgba(142, 68, 173, 0.15);
}

.service-detail-card:nth-child(5) {
  background: #FCE8E8;
  border-left-color: #E74C3C;
}
.service-detail-card:nth-child(5):hover {
  border-bottom-color: #E74C3C;
  box-shadow: 0 12px 40px rgba(231, 76, 60, 0.15);
}

.service-detail-card:nth-child(6) {
  background: #FFF2B2;
  border-left-color: #D4AF37;
}
.service-detail-card:nth-child(6):hover {
  border-bottom-color: #D4AF37;
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

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

/* ---- Image panel gauche (services.php) ---- */
.service-detail-img-wrap {
  position: relative;
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
  overflow: hidden;
}

.service-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.service-detail-card:hover .service-detail-img {
  transform: scale(1.05);
}

.service-detail-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 43, 74, .85));
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .7rem 1rem;
  display: block;
}

/* En-tête dans le corps de la carte (titre + badge) */
.service-detail-body-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.service-detail-body {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.service-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--gray-200);
  padding: 3rem 2rem;
}

.service-detail-icon {
  font-size: 4.5rem;
  line-height: 1;
}

.service-detail-meta {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
}

.service-category-badge {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vivid-dark);
  background: rgba(255, 205, 0, .18);
  padding: .2rem .75rem;
  border-radius: 50px;
  letter-spacing: .05em;
  display: inline-block;
}

.service-detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-900);
}

.service-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.service-full-desc {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.service-features-wrap h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 1rem;
}

.service-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
}

.service-features-list li {
  font-size: .95rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.feature-check {
  color: var(--accent);
  font-weight: bold;
}

.service-footer-meta {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.service-transit {
  font-size: .95rem;
  color: var(--gray-600);
}

.service-transit strong {
  color: var(--blue-900);
}

.btn-sm {
  padding: .6rem 1.5rem;
  font-size: .88rem;
}

/* ---- Why Choose Us Section ---- */
.why-section {
  background: #fef9e6;
}

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

.why-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}

.why-card:nth-child(1) {
  border-top: 4px solid var(--vivid-green);
}

.why-card:nth-child(2) {
  border-top: 4px solid var(--vivid-orange);
}

.why-card:nth-child(3) {
  border-top: 4px solid var(--vivid-purple);
}

.why-card:nth-child(4) {
  border-top: 4px solid var(--vivid-teal);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--white);
  border-color: var(--gray-200);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: .75rem;
}

.why-card p {
  color: var(--gray-600);
  font-size: .92rem;
  line-height: 1.6;
}

/* ---- CTA Banner — 10% accent orange ---- */
.cta-banner {
  position: relative;
  background: var(--accent);
  /* 10% — orange industriel */
  padding: 90px 1.5rem;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 30%, rgba(255, 255, 255, .15) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(26, 43, 74, .20) 0%, transparent 50%);
  z-index: 0;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-banner h2 {
  color: var(--white);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .20);
}

.cta-banner p {
  color: rgba(255, 255, 255, .92);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: .75rem;
}

/* Btn dans banner : blanc avec texte orange */
.cta-banner .btn-accent {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .20);
}

.cta-banner .btn-accent:hover {
  background: var(--navy-900);
  color: var(--white);
}

/* ---- Site Footer ---- */
.site-footer {
  background: var(--blue-900);
  color: var(--white);
  padding: 80px 0 30px;
  border-top: 3px solid var(--blue-700);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
}

.footer-logo {
  height: 10rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .75rem;
}

.footer-about {
  font-size: .9rem;
  color: var(--white);
  line-height: 1.7;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(255, 255, 255, .15);
  display: inline-block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer-col ul a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact p {
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  line-height: 1.6;
  display: flex;
  gap: .5rem;
}

.footer-contact p span[aria-hidden="true"] {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, .82);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--vivid-lime);
}

.footer-hours {
  margin-top: .25rem;
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding-top: .75rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 5px auto 0;
  padding: 40px 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: .85rem;
  color: rgba(255, 255, 255, .60);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, .15);
  font-size: .85rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, .75);
  transition: color var(--transition);
}

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

/* ============================================================
   style.css — Interport Company Inc.
   Part 3: Contact Page, Legal Pages, Scroll/Nav Shrink, Media Queries
   ============================================================ */

/* ---- Contact Page (`contact.php`) ---- */
.contact-section {
  background: #f0f7ff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding-top: 60px;
  padding-bottom: 100px;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.contact-form-wrap .section-title {
  margin-bottom: .5rem;
  text-align: left;
}

.contact-form-wrap .section-body {
  margin-bottom: 2rem;
  text-align: left;
}

.form-alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.form-alert--success {
  background: #f0fdf4;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.form-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-900);
}

.form-label .required {
  color: var(--accent);
}

.form-label .optional {
  font-weight: 400;
  color: var(--gray-600);
  font-size: .8rem;
  margin-left: .25rem;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-main);
  font-size: .95rem;
  padding: .8rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--gray-800);
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--vivid-teal);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 163, 168, .20);
  outline: none;
}

.form-checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: .75rem;
  margin: .5rem 0;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: .15rem;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
}

.form-checkbox-label a:hover {
  color: var(--accent);
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.contact-info-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: .75rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}

.info-item strong {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-900);
  display: block;
  margin-bottom: .25rem;
}

.info-item div {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.info-item a {
  color: var(--blue-600);
  font-weight: 600;
  transition: color var(--transition);
}

.info-item a:hover {
  color: var(--accent);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  height: 250px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
}

/* ---- Legal Content Pages (Privacy / Terms) ---- */
.legal-section {
  background: var(--gray-50);
  padding-top: 60px;
  padding-bottom: 100px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-intro {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.legal-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-top: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: .5rem;
}

.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-top: .75rem;
}

.legal-body p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.legal-body ul li {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.legal-body a {
  color: var(--blue-600);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition);
}

.legal-body a:hover {
  color: var(--accent);
}

.legal-body address {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  margin: .5rem 0;
  font-style: normal;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.legal-body address strong {
  color: var(--blue-900);
  display: block;
  margin-bottom: .25rem;
}

/* ---- Nav Shrink Animation helper ---- */
.site-header {
  transition: background var(--transition), box-shadow var(--transition);
  padding: .5rem 0;
}

.site-header.scrolled {
  background: var(--navy-900);
  box-shadow: 0 4px 20px rgba(26, 43, 74, .45);
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .about-section .section-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-images-wrap {
    order: -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-detail-card {
    flex-direction: column;
    gap: 0;
  }

  /* Image panel prend toute la largeur en mobile */
  .service-detail-img-wrap {
    width: 100%;
    min-width: 100%;
    height: 220px;
  }

  .service-detail-body {
    padding: 2rem 1.5rem;
  }

  .service-detail-header {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 100px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-stats {
    padding: 1rem;
  }

  .stat-item {
    padding: .5rem 1rem;
    flex: 1 1 40%;
  }

  .stat-divider:nth-child(2n) {
    display: none;
  }

  .service-features-list {
    grid-template-columns: 1fr;
  }

  .service-footer-meta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-sm {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .contact-form-wrap {
    padding: 2rem 1.5rem;
  }

  .contact-info-card {
    padding: 2rem 1.5rem;
  }

  .legal-body {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stat-item {
    flex: 1 1 100%;
  }

  .stat-divider {
    display: none;
  }
}