/* =============================================
   GOSTAF DIGITAL – style.css
   Palette: Deep Navy #0A1A3D | Blue #1B4FD8 | Orange #F97316
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0A1A3D;
  --navy-light: #132252;
  --blue: #1B4FD8;
  --blue-light: #3D6EF0;
  --orange: #F97316;
  --orange-dark: #D9600E;
  --white: #FFFFFF;
  --off-white: #F8FAFF;
  --gray-100: #F1F5F9;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(10,26,61,0.10);
  --shadow-lg: 0 16px 48px rgba(10,26,61,0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }

/* ---- UTILITY ---- */
.text-orange { color: var(--orange); }
.hidden { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-tag {
  display: inline-block;
  background: rgba(249,115,22,0.12);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-tag-dark {
  background: rgba(27,79,216,0.10);
  color: var(--blue);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

.dark-sub { color: var(--gray-700); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header-light {
  text-align: center;
  margin-bottom: 56px;
}

.section-header-light .section-title {
  color: var(--navy);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 30px rgba(10,26,61,0.4);
  padding: 12px 0;
}

.navbar-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: var(--transition);
}
.logo-img:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 24px;
}
.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 50vh;
  background: linear-gradient(135deg, rgba(10,26,61,0.85) 0%, rgba(27,79,216,0.8) 100%), url('../assets/Image de fond.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 6% 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(249,115,22,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(27,79,216,0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  animation: fadeInUp 0.8s ease both;
}

.hero-pre {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.brand-highlight {
  background: linear-gradient(135deg, var(--white), rgba(249,115,22,0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 0;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.stat:first-child { padding-left: 0; }

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* Hero visual */
.hero-visual {
  flex: 1;
  max-width: 560px;
  z-index: 2;
  animation: fadeInRight 0.8s 0.2s ease both;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 24px;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
}

.floating {
  animation: float 5s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-text {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-arrow {
  animation: bounce 2s ease infinite;
}
.scroll-arrow img {
  width: 24px;
  filter: brightness(0) invert(1) opacity(0.5);
  transform: rotate(90deg);
}

/* ============================================================
   PILL TITLE (Section titles - PDF style)
   ============================================================ */
.pill-title {
  display: inline-flex;
  background: var(--orange);
  border-radius: 50px;
  padding: 10px 36px;
  margin-bottom: 48px;
}
.pill-title span {
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pill-title-blue {
  background: var(--navy);
}

/* ============================================================
   EXPERTISES / SERVICES – alternating rows
   ============================================================ */
.expertises {
  padding: 80px 6%;
  background: var(--off-white);
}

/* ---- Alternating expertise rows ---- */
.expertise-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.expertise-row:hover {
  box-shadow: var(--shadow-lg);
}

.expertise-row-reverse {
  direction: rtl;
}
.expertise-row-reverse > * {
  direction: ltr;
}

.expertise-text-box {
  background: #DDE8FF;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.expertise-text-featured {
  background: #C5D9FF;
}

.exp-num {
  display: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
}

.expertise-text-box h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.expertise-text-box p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0 8px;
}
.exp-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  padding-left: 22px;
  position: relative;
}
.exp-list li::before {
  content: '✓';
  color: var(--orange);
  position: absolute;
  left: 0;
  font-weight: 900;
}

.expertise-img-box {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; /* Reduced padding to give more space to image */
  min-height: 320px;
  overflow: hidden; /* Prevent scaled image from overflowing */
}
.expertise-img-box img {
  max-height: 280px; /* Reverted to original */
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35));
  transform: scale(1.3); /* Visually larger */
  transition: transform 0.5s ease;
}
.expertise-row:hover .expertise-img-box img {
  transform: scale(1.35) translateY(-4px);
}

/* ============================================================
   POURQUOI NOUS
   ============================================================ */
.why {
  padding: 100px 6%;
  background: var(--white);
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 32px;
  font-weight: 500;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.why-point:hover {
  background: var(--off-white);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}

.why-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(249,115,22,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.why-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.why-point h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.why-point p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Why image */
.why-image { position: relative; }

.why-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.why-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(249,115,22,0.4);
}
.badge-num {
  font-size: 1.8rem;
  font-weight: 900;
  display: block;
}
.badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

/* ============================================================
   FORMATIONS
   ============================================================ */
.formations {
  padding: 100px 6%;
  background: var(--navy);
}

.formations .section-title {
  color: var(--white);
}
.formations .section-tag-dark {
  background: rgba(249,115,22,0.15);
  color: var(--orange);
}
.formations .section-subtitle {
  color: rgba(255,255,255,0.65);
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.formation-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.formation-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 20px 40px rgba(249,115,22,0.2);
  background: rgba(255,255,255,0.09);
}

.formation-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  padding: 20px;
  overflow: hidden;
}
.formation-img img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.formation-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formation-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
}

.formation-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.formation-info p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.formation-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.formation-meta span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ============================================================
   RÉALISATIONS
   ============================================================ */
.realisations {
  padding: 100px 6%;
  background: var(--off-white);
}

.realisations-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.realisation-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
  min-height: 220px;
}

.realisation-item.large {
  grid-row: span 2;
  min-height: 460px;
}

.realisation-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.realisation-item:hover img {
  transform: scale(1.08);
}

.realisation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,26,61,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

.realisation-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.realisation-overlay h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.realisation-overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   À PROPOS
   ============================================================ */
.apropos {
  padding: 100px 6%;
  background: var(--white);
}

.apropos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.apropos-img-stack {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.apropos-main-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.apropos-card-float {
  position: absolute;
  bottom: 24px;
  right: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--orange);
}
.apropos-card-float img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.apropos-card-float p {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.apropos-lead {
  font-size: 1.05rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 16px;
  font-style: italic;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

.apropos-body {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

.vision-block {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.vision-block h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.vision-block p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}

.team-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.team-member:hover {
  border-color: var(--orange);
  background: rgba(249,115,22,0.04);
  transform: translateX(6px);
}

.team-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.team-member strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 700;
}
.team-member span {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 600;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 100px 6%;
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.featured-testimonial {
  background: linear-gradient(145deg, var(--navy), var(--blue));
  border-color: var(--blue);
}
.featured-testimonial .testimonial-text {
  color: rgba(255,255,255,0.88) !important;
}
.featured-testimonial .testimonial-author strong {
  color: var(--white) !important;
}
.featured-testimonial .testimonial-author span {
  color: var(--orange) !important;
}
.featured-testimonial .author-avatar {
  background: rgba(255,255,255,0.2) !important;
}

.testimonial-stars {
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* Partners */
.partners-strip {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--gray-300);
}
.partners-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 24px;
}
.partners-logos {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.partner-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: var(--transition);
}
.partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 100px 6%;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(27,79,216,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 70%, rgba(249,115,22,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.white-title { color: var(--white) !important; }

.contact-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
  align-items: center;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-detail p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  overflow: hidden;
}
.social-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249,115,22,0.4);
}

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,79,216,0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #15803d;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #06102A;
  color: rgba(255,255,255,0.75);
  padding-top: 70px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6% 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  overflow: hidden;
}
.footer-socials a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.footer-socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.footer-links h5,
.footer-services h5,
.footer-contact h5 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-links h5::after,
.footer-services h5::after,
.footer-contact h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--orange);
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-services a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-links a:hover,
.footer-services a:hover {
  color: var(--orange);
  padding-left: 6px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.footer-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(300%) hue-rotate(350deg);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(249,115,22,0.45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE – TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .formations-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Expertise rows stack at tablet */
  .expertise-row {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .expertise-row-reverse {
    direction: ltr;
  }
  .expertise-img-box {
    min-height: 240px;
    order: -1; /* always image on top */
  }

  .why-inner,
  .apropos-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 6% 60px;
  }

  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }

  .realisations-grid {
    grid-template-columns: 1fr 1fr;
  }
  .realisation-item.large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .apropos-card-float {
    right: 0;
  }
}

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .navbar-container { padding: 0 20px; }
  .logo-img { height: 38px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav-links.open { right: 0; }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem;
  }
  .nav-cta {
    margin: 16px;
    width: calc(100% - 32px);
    border-radius: 50px;
    justify-content: center;
    display: flex;
  }

  .hamburger { display: flex; z-index: 1000; }

  .hero { padding: 60px 5% 60px; gap: 40px; }
  .hero-visual { max-width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }

  .cards-grid,
  .formations-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .realisations-grid {
    grid-template-columns: 1fr;
  }
  .realisation-item.large {
    grid-column: span 1;
    min-height: 260px;
  }

  .why-inner,
  .apropos-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-img-frame img { height: 300px; }
  .apropos-main-img { height: 320px; }
  .apropos-card-float { position: static; margin-top: -40px; margin-right: 16px; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { 
    grid-template-columns: 1fr; 
    gap: 32px; 
    text-align: center; 
  }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-links h5::after, .footer-services h5::after, .footer-contact h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-contact p { justify-content: center; }

  section { padding-left: 5%; padding-right: 5%; }

  .expertises,
  .why,
  .formations,
  .realisations,
  .apropos,
  .testimonials,
  .contact { padding-top: 70px; padding-bottom: 70px; }
}

/* Responsive Formation Header */
.formation-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 900px) {
    .formation-header-grid {
        grid-template-columns: 1fr;
    }
    .formation-header-grid > div {
        order: 0 !important;
    }
}





/* Article Images Uniformity */
.article-img, .blog-card img, .card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
