@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600&display=swap');

:root {
  --teal-dark: #3B6261;
  --teal: #587D78;
  --teal-light: #ACBBB9;
  --green: #2D5A3D;
  --gray-light: #E9E9E9;
  --white: #FFFFFF;
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: #333; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p { line-height: 1.75; font-size: 0.95rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--teal-dark); color: var(--white); }
.btn-primary:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,98,97,0.3); }
.btn-outline { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal-dark); }
.btn-outline:hover { background: var(--teal-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--teal-dark); }
.btn-white:hover { background: var(--gray-light); transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #234832; transform: translateY(-2px); }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(172,187,185,0.3);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-logo img { height: 48px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links span {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover, .nav-links span:hover { color: var(--teal-dark); background: rgba(59,98,97,0.06); }
.nav-links .active > a, .nav-links .active > span { color: var(--teal-dark); font-weight: 600; }

.nav-dropdown-arrow { font-size: 0.65rem; transition: transform var(--transition); }
.nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }
/* Allow <a> inside dropdown trigger span to not double-pad */
.nav-dropdown > span > a { padding: 0; background: none !important; font-size: inherit; font-weight: inherit; color: inherit; }

/* Dropdown menu */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  border: 1px solid rgba(172,187,185,0.25);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: #444;
  border-radius: 8px;
  background: none;
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown-menu a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-dark);
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-dropdown-menu a:hover { color: var(--teal-dark); background: rgba(59,98,97,0.07); }
.nav-dropdown-menu a:hover::before { opacity: 1; }
.btn-connect {
  background: var(--teal-dark);
  color: white !important;
  padding: 0.55rem 1.4rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.83rem;
  cursor: pointer;
  font-family: var(--font-title);
}
.btn-connect:hover { background: var(--green) !important; box-shadow: 0 4px 16px rgba(59,98,97,0.3); }

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}
.hero-video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(43,90,61,0.65) 0%, rgba(59,98,97,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 800px;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 4rem); text-shadow: 0 2px 20px rgba(0,0,0,0.3); margin-bottom: 1.2rem; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.25rem); opacity: 0.92; margin-bottom: 2rem; font-weight: 300; letter-spacing: 0.02em; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  opacity: 0.7;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === STATS === */
.stats-section {
  background: var(--teal-dark);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-line {
  width: 40px;
  height: 2px;
  background: var(--teal-light);
  margin: 0.6rem auto;
}
.stat-label { font-size: 0.85rem; opacity: 0.85; letter-spacing: 0.05em; text-transform: uppercase; }

/* === SECTION LABELS === */
.section-label {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(59,98,97,0.1);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* === VISION SECTION === */
.vision-section { background: var(--gray-light); }
.vision-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.vision-text .section-label { margin-bottom: 0.8rem; }
.vision-text h2 { color: var(--teal-dark); margin-bottom: 0.5rem; }
.vision-subtitle { font-size: 1.15rem; font-weight: 600; color: var(--green); margin-bottom: 1.2rem; font-family: var(--font-title); }
.vision-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vision-img img { width: 100%; height: 420px; object-fit: cover; }

/* === SERVICES SECTION === */
.services-header { text-align: center; margin-bottom: 3rem; }
.services-header h2 { color: var(--teal-dark); margin-bottom: 1rem; }
.services-header p { max-width: 650px; margin: 0 auto; color: #666; }
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem;
}
.services-row2 {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.services-row2 .service-card {
  flex: 0 0 calc(33.333% - 1.35rem);
  max-width: calc(33.333% - 1.35rem);
}
.service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.service-card-img { height: 200px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { color: var(--teal-dark); margin-bottom: 0.75rem; font-size: 1rem; }
.service-card-body p { color: #666; font-size: 0.85rem; margin-bottom: 1.2rem; line-height: 1.6; flex: 1; }
.service-card-body .btn { font-size: 0.8rem; padding: 0.55rem 1.2rem; margin-top: auto; }
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--teal-dark);
  background: white;
  color: var(--teal-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: var(--teal-dark); color: white; }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active { background: var(--teal-dark); transform: scale(1.3); }

/* === CTA SECTION === */
.cta-section {
  background: var(--gray-light);
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: var(--teal-dark); margin-bottom: 1rem; }
.cta-section p { color: #666; max-width: 600px; margin: 0 auto 2rem; }

/* === SOLUTION SECTION === */
.solution-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.solution-video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solution-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}
.solution-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  color: white;
  padding: 2rem 0;
}
.solution-content .section-label { background: rgba(255,255,255,0.15); color: white; }
.solution-content h2 { margin-bottom: 0.75rem; color: white; }
.solution-subtitle { font-size: 1.1rem; font-weight: 500; color: var(--teal-light); margin-bottom: 1.5rem; }
.solution-content p { opacity: 0.85; margin-bottom: 2rem; }

/* === EQUIPE SECTION === */
.equipe-section { background: var(--white); text-align: center; }
.equipe-section h2 { color: var(--teal-dark); margin-bottom: 0.25rem; }
.equipe-section p { max-width: 700px; margin: 0 auto; color: #666; }
.equipe-divider { width: 4px; height: 60px; background: var(--teal-dark); margin: 0.5rem 0; border-radius: 2px; }

/* === CAREERS === */
.careers-section { background: var(--teal-dark); padding: 5rem 0; }
.careers-inner { display: grid; grid-template-columns: 1fr 1.8fr; gap: 4rem; align-items: start; }
.careers-text h2 { color: white; margin-bottom: 1rem; }
.careers-text p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.careers-slider-wrapper { position: relative; overflow: hidden; }
.careers-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.career-card {
  flex: 0 0 100%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem;
  color: white;
}
.career-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.8rem;
}
.career-card h3 { color: white; font-size: 1.3rem; margin-bottom: 0.75rem; }
.career-card p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-bottom: 1.5rem; }
.career-card .btn { background: white; color: var(--teal-dark); font-size: 0.82rem; padding: 0.55rem 1.3rem; }
.career-card .btn:hover { background: var(--gray-light); }
.careers-dots { display: flex; gap: 0.5rem; margin-top: 1.5rem; justify-content: flex-start; }
.careers-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--transition);
}
.careers-dot.active { background: white; }

/* === VIDEO PUB === */
.video-pub-section { padding: 5rem 0; background: white; }
.video-pub-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.video-pub-player {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: #000;
}
.video-pub-player video {
  width: 100%;
  display: block;
  max-height: 320px;
  object-fit: cover;
}
.video-pub-text .section-label { background: rgba(59,98,97,0.1); }
.video-pub-text h2 { color: var(--teal-dark); margin-bottom: 1rem; }
.video-pub-text p { color: #666; font-size: 0.9rem; }

/* === PARTNERS === */
.partners-section { background: white; padding: 4rem 0; }
.partners-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.partners-text h2 { color: var(--teal-dark); margin-bottom: 0.75rem; }
.partners-text p { color: #666; font-size: 0.9rem; }
.partners-img { display: flex; justify-content: center; }
.partners-img img { width: 100%; max-width: 600px; height: auto; object-fit: contain; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.12); background: white; padding: 1.5rem; }

/* === FOOTER === */
footer {
  background: #1a2e2a;
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 2.5rem; }
.footer-contact h3, .footer-subscribe h3 {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
}
.footer-contact-row { display: flex; gap: 1.5rem; margin-bottom: 0.8rem; font-size: 0.85rem; }
.footer-contact-label { color: rgba(255,255,255,0.45); min-width: 70px; }
.footer-contact-val { color: rgba(255,255,255,0.85); }
.footer-contact-val a:hover { color: white; text-decoration: underline; }
.subscribe-form { display: flex; gap: 0; margin-top: 1rem; }
.subscribe-input {
  flex: 1;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 30px 0 0 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.12);
  color: white;
  outline: none;
}
.subscribe-input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-input:focus { background: rgba(255,255,255,0.18); }
.subscribe-btn {
  padding: 0.7rem 1.4rem;
  background: var(--teal-dark);
  color: white;
  border: none;
  border-radius: 0 30px 30px 0;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.subscribe-btn:hover { background: var(--green); }
.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}
.social-link:hover { background: var(--teal-dark); }
.social-link svg, .modal-social svg { display: block; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-legal-links { display: flex; gap: 0.75rem; align-items: center; }
.footer-legal-links a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--teal-light); }
.footer-legal-links span { opacity: 0.3; }

/* === COOKIE BANNER === */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 3000;
  background: #0d2020;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
}
#cookie-banner.cookie-visible { transform: translateY(0); opacity: 1; }
#cookie-banner.cookie-hidden  { transform: translateY(100%); opacity: 0; }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem 1.5rem;
}
.cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.cookie-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.cookie-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
  padding: 0;
}
.cookie-close:hover { color: #fff; }
.cookie-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0 0 1rem;
}
.cookie-body { margin-bottom: 1.25rem; }
.cookie-body p { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin: 0 0 0.5rem; line-height: 1.5; }
.cookie-body p a { color: #fff; text-decoration: underline; }
.cookie-body p a:hover { opacity: 0.8; }
.cookie-prefs-toggle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: color 0.2s;
}
.cookie-prefs-toggle:hover { color: #fff; }
.cookie-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  padding: 0.55rem 1.5rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
@media (max-width: 600px) {
  .cookie-inner { padding: 1rem 1.25rem 1.25rem; }
  .cookie-actions { flex-direction: column; }
  .cookie-btn-outline { text-align: center; }
}

/* === LEGAL PAGE CONTENT === */
.legal-content { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.legal-content h2 { font-size: 1.15rem; color: var(--teal-dark); margin: 2rem 0 0.5rem; font-weight: 700; }
.legal-content p { font-size: 0.93rem; line-height: 1.75; color: #444; margin-bottom: 0.75rem; }
.legal-info-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-info-table td { padding: 0.5rem 0.75rem; font-size: 0.92rem; border-bottom: 1px solid #eee; vertical-align: top; }
.legal-info-table td:first-child { font-weight: 600; color: var(--teal-dark); width: 180px; }
.legal-updated { font-size: 0.8rem; color: #999; margin-top: 2rem; font-style: italic; }

/* === CONTACT MODAL === */
.modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--teal-dark);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  max-width: 860px;
  width: 100%;
  color: white;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: white; }
.modal-title { font-family: var(--font-title); font-size: 1.6rem; text-align: center; margin-bottom: 0.4rem; }
.modal-subtitle { text-align: center; opacity: 0.75; font-size: 0.85rem; margin-bottom: 0.9rem; }
.modal-socials { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.modal-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--transition);
  cursor: pointer;
  color: white;
}
.modal-social svg { display: block; }
.modal-social:hover { background: rgba(255,255,255,0.28); }

/* Two-column form layout */
.modal-form { display: flex; flex-direction: column; gap: 0; }
.modal-form-cols {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  align-items: stretch;
}
.modal-form-left { display: flex; flex-direction: column; gap: 1rem; }
.modal-form-right { display: flex; flex-direction: column; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group-message { flex: 1; display: flex; flex-direction: column; }
.form-group-message textarea { flex: 1; min-height: 168px; resize: none; }
.form-group label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; opacity: 0.75; font-family: var(--font-title); text-transform: uppercase; }
.form-group input, .form-group textarea {
  padding: 0.72rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.32); }
.form-group input:focus, .form-group textarea:focus { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.13); }
.modal-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.25rem;
}
.form-feedback {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  display: none;
}
.form-feedback.success { display: inline-block; background: rgba(76,175,80,0.25); color: #a5d6a7; }
.form-feedback.error   { display: inline-block; background: rgba(244,67,54,0.25);  color: #ef9a9a; }
.modal-submit .btn { background: rgba(255,255,255,0.92); color: var(--teal-dark); min-width: 140px; justify-content: center; }
.modal-submit .btn:hover { background: white; transform: translateY(-2px); }
.modal-submit .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* === PAGE HERO (non-video) === */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal-dark) 100%);
  padding: 9rem 0 5rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; position: relative; }
.page-hero p { max-width: 600px; margin: 0 auto; opacity: 0.85; position: relative; font-size: 1rem; }

/* === A PROPOS PAGE === */
.histoire-section { background: var(--gray-light); text-align: center; padding: 5rem 0; }
.histoire-section h2 { color: var(--teal-dark); margin-bottom: 1.5rem; }
.histoire-section p { max-width: 700px; margin: 0 auto; color: #666; font-size: 1rem; }

.mission-section { padding: 5rem 0; }
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.mission-img { border-radius: var(--radius); overflow: hidden; }
.mission-img img { width: 100%; height: 450px; object-fit: contain; object-position: center; }
.mission-text .section-label { margin-bottom: 0.8rem; }
.mission-text h2 { color: var(--teal-dark); margin-bottom: 0.5rem; }
.mission-subtitle { font-size: 1.1rem; font-weight: 600; color: var(--green); margin-bottom: 1.2rem; font-family: var(--font-title); }

/* === TIMELINE === */
.timeline-section { background: var(--gray-light); padding: 5rem 0; overflow: hidden; }
.timeline-section h2 { text-align: center; color: var(--teal-dark); margin-bottom: 3rem; }
.timeline-slider-wrapper { position: relative; }
.timeline-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.timeline-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0 1rem;
}
.timeline-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal-dark);
  transition: transform var(--transition);
}
.timeline-card:hover { transform: translateY(-4px); }
.timeline-year { font-family: var(--font-title); font-size: 2rem; font-weight: 800; color: var(--teal-dark); margin-bottom: 0.5rem; }
.timeline-event { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.timeline-card p { font-size: 0.88rem; color: #666; line-height: 1.65; }
.timeline-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* === SERVICE PAGE === */
.service-detail-section { padding: 5rem 0; }
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }
.service-detail-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service-detail-img img { width: 100%; height: 380px; object-fit: cover; }
.service-detail-text .section-label { margin-bottom: 0.8rem; }
.service-detail-text h2 { color: var(--teal-dark); margin-bottom: 0.5rem; }
.service-detail-subtitle { font-size: 1rem; font-weight: 600; color: var(--green); margin-bottom: 1.2rem; font-family: var(--font-title); }
.service-detail-text p { color: #555; margin-bottom: 1.5rem; }
.formats-title { font-family: var(--font-title); font-weight: 700; font-size: 1rem; color: var(--teal-dark); margin-bottom: 1rem; }
.formats-list { display: flex; flex-direction: column; gap: 0.6rem; }
.format-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--gray-light); border-radius: 8px; font-size: 0.88rem; }
.format-icon { font-size: 1.2rem; }
.work-medicine-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.work-medicine-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-icon { color: var(--green); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.work-medicine-item strong { font-size: 0.85rem; display: block; color: #333; }

/* === SPORT LIFE+ PAGE === */
.sport-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #3B6261;
}
.sport-hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.sport-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding-top: 5rem;
}
.sport-hero-content h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.sport-hero-content p { max-width: 700px; margin: 0 auto 2rem; font-size: 0.95rem; opacity: 0.85; line-height: 1.7; }
.sport-hero-content .altea-link { color: var(--teal-light); text-decoration: underline; }
.sport-quote-section {
  background: #3B6261;
  padding: 4rem 0;
  text-align: center;
  color: white;
}
.sport-quote-section p { font-size: 0.95rem; opacity: 0.75; margin-bottom: 0.5rem; }
.sport-quote-section h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }

.sport-services-section { padding: 5rem 0; background: white; }
.sport-services-section h2 { text-align: center; color: var(--teal-dark); margin-bottom: 0.75rem; }
.sport-services-section > .container > p { text-align: center; max-width: 650px; margin: 0 auto 3rem; color: #666; }
.sport-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.sport-service-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  padding: 0 0 1.5rem;
}
.sport-service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.sport-card-img { height: 160px; overflow: hidden; position: relative; }
.sport-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sport-card-body { padding: 1.5rem 1.5rem 0; }
.sport-card-body h3 { color: var(--teal-dark); margin-bottom: 0.75rem; font-size: 0.95rem; }
.sport-card-body ul { list-style: disc; padding-left: 1.2rem; }
.sport-card-body li { font-size: 0.82rem; color: #666; line-height: 1.7; }

/* === TECHNOLOGIE PAGE === */
.tech-hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.tech-hero-video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tech-hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}
.tech-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 650px;
  padding-top: 4rem;
}
.tech-hero-content .section-label { background: rgba(255,255,255,0.15); color: white; }
.tech-hero-content h1 { color: white; margin-bottom: 0.75rem; }
.tech-hero-subtitle { font-size: 1.1rem; color: var(--teal-light); font-weight: 600; margin-bottom: 1.2rem; font-family: var(--font-title); }
.tech-hero-content p { opacity: 0.8; }

.tech-stats-section { background: var(--gray-light); padding: 4rem 0; }
.tech-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.tech-stat-item { }
.tech-stat-number { font-family: var(--font-title); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--teal-dark); display: block; }
.tech-stat-label { font-size: 0.85rem; color: #666; margin-top: 0.5rem; }

.tech-strengths-section { padding: 5rem 0; }
.tech-strengths-section h2 { text-align: center; color: var(--teal-dark); margin-bottom: 3rem; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.tech-card {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.tech-card-icon { font-size: 2rem; margin-bottom: 1.2rem; }
.tech-card h3 { color: var(--teal-dark); margin-bottom: 0.75rem; }
.tech-card p { color: #666; font-size: 0.88rem; }
.tech-card ul { margin-top: 0.75rem; padding-left: 0; }
.tech-card li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.83rem; color: #555; padding: 0.3rem 0; }
.tech-card li::before { content: '•'; color: var(--teal-dark); font-weight: bold; }

/* kept for class reuse on other pages */
.tech-video-section {
  background: var(--green);
  padding: 5rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.tech-video-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.tech-video-inner h2 { color: white; margin-bottom: 1rem; }
.tech-video-inner p { opacity: 0.8; margin-bottom: 2rem; }

/* === TECH REEL (dual-row image marquee) === */
.tech-reel-section {
  background: var(--green);
  padding: 5rem 0 4rem;
  color: white;
  overflow: hidden;
}

.tech-reel-track-wrap {
  overflow: hidden;
  /* edge fade */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tech-reel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

/* Row 1 — scroll left */
@keyframes reelLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.reel-left {
  animation: reelLeft 32s linear infinite;
}
.reel-left:hover { animation-play-state: paused; }

/* Row 2 — scroll right */
@keyframes reelRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.reel-right {
  animation: reelRight 28s linear infinite;
}
.reel-right:hover { animation-play-state: paused; }

.tech-reel-frame {
  flex: 0 0 auto;
  width: 340px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tech-reel-frame:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.tech-reel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.tech-reel-frame:hover img { transform: scale(1.06); }

/* === TECH PROOF VIDEO SECTION === */
.tech-proof-section {
  background: #080f0b;
  padding: 5rem 0 4.5rem;
  color: white;
}
.tech-proof-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.tech-proof-header .section-label {
  background: rgba(172,187,185,0.15);
  color: var(--teal-light);
  display: inline-block;
  margin-bottom: 1rem;
}
.tech-proof-header h2 {
  color: white;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.tech-proof-header p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
}
.tech-proof-player {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.tech-proof-video {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
}
.proof-sound-btn {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.proof-sound-btn:hover {
  background: rgba(59,98,97,0.8);
  transform: scale(1.1);
}

/* === PRIVACY PAGE === */
.privacy-hero-section {
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
  background: var(--teal-dark);
}
.privacy-hero-imgs {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.privacy-hero-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.privacy-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}
.privacy-hero-content h1 { margin-bottom: 0.75rem; }
.privacy-hero-content p { opacity: 0.8; max-width: 600px; margin: 0 auto; }

.privacy-commitments { padding: 5rem 0; background: white; overflow: hidden; }
.privacy-commitments h2 { text-align: center; color: var(--teal-dark); margin-bottom: 3rem; }
.marquee-wrapper { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: running; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.commitment-card {
  flex-shrink: 0;
  width: 280px;
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  box-sizing: border-box;
}
.commitment-icon { font-size: 2rem; margin-bottom: 1rem; }
.commitment-card h3 { color: var(--teal-dark); font-size: 0.95rem; margin-bottom: 0.75rem; }
.commitment-card p { font-size: 0.82rem; color: #666; line-height: 1.65; }
.commitments-static { display: none; }

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* === LANGUAGE SWITCHER DROPDOWN === */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-right: 0.25rem;
}
.lang-selected {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1.5px solid rgba(59,98,97,0.25);
  border-radius: 20px;
  padding: 0.28rem 0.75rem 0.28rem 0.55rem;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
  user-select: none;
}
.lang-selected:hover { border-color: var(--teal-dark); background: rgba(59,98,97,0.06); }
.lang-selected .lang-flag { font-size: 1rem; line-height: 1; }
.lang-selected .lang-arrow {
  font-size: 0.55rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
  color: var(--teal);
}
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(59,98,97,0.15);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  overflow: hidden;
  min-width: 130px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.lang-option .lang-flag { font-size: 1.1rem; }
.lang-option:hover { background: rgba(59,98,97,0.07); color: var(--teal-dark); }
.lang-option.active { color: var(--teal-dark); font-weight: 700; background: rgba(59,98,97,0.05); }
.lang-option + .lang-option { border-top: 1px solid rgba(59,98,97,0.08); }

/* === MOBILE HAMBURGER === */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--teal-dark); transition: all 0.3s ease; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === RESPONSIVE — TABLET (≤ 1024px) === */
@media (max-width: 1024px) {
  .careers-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .video-pub-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .partners-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .vision-inner { gap: 2.5rem; }
  .mission-inner { gap: 2.5rem; }
  .service-detail-inner { gap: 2.5rem; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .sport-services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .services-row2 { gap: 2rem; }
  .services-row2 .service-card { flex: 0 0 calc(50% - 1rem); max-width: calc(50% - 1rem); }
  .timeline-slide { grid-template-columns: 1fr; }
  .footer-grid { gap: 2.5rem; }
}

/* === RESPONSIVE — MOBILE (≤ 768px) === */
@media (max-width: 768px) {
  /* --- Navbar --- */
  .hamburger { display: flex; }
  .nav-inner { padding: 0.75rem 1.25rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 1.5rem 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    gap: 0.25rem;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
    background: rgba(59,98,97,0.04);
    border-radius: 8px;
    margin-top: 0.25rem;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-logo img { height: 38px; }

  /* --- General spacing --- */
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }

  /* --- Hero --- */
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-content { padding: 1.25rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-content p { font-size: clamp(0.9rem, 3.5vw, 1.1rem); }

  /* --- Stats --- */
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* --- Vision --- */
  .vision-inner { grid-template-columns: 1fr; direction: ltr; }
  .vision-img img { height: 260px; }

  /* --- Services --- */
  .services-grid { grid-template-columns: 1fr !important; }
  .services-row2 { flex-direction: column; }
  /* flex-basis: 100% means card height = row height in column mode,
     which created huge empty space below "Scopri di più" on DataLife / SportLife.
     Use auto so cards size to their content. */
  .services-row2 .service-card { flex: 0 0 auto; max-width: 100%; }
  .service-card-placeholder { display: none; }
  .service-card-body { padding: 1rem 1.25rem 1.25rem; }
  .service-card-body p { flex: none; margin-bottom: 0.75rem; }
  .service-card-body .btn { margin-top: 0; }

  /* --- Solution video section --- */
  .solution-section { min-height: auto; padding: 4rem 0; }
  .solution-content { max-width: 100%; padding: 1.25rem; }
  .solution-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.65) 100%); }

  /* --- Careers --- */
  .careers-inner { grid-template-columns: 1fr; gap: 2rem; }

  /* --- Video pub --- */
  .video-pub-inner { grid-template-columns: 1fr; gap: 2rem; }

  /* --- Partners --- */
  .partners-inner { grid-template-columns: 1fr; gap: 2rem; }
  .partners-img img { padding: 1rem; }

  /* --- Footer --- */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .subscribe-form { flex-direction: column; gap: 0.75rem; }
  .subscribe-input { border-radius: 30px; }
  .subscribe-btn { border-radius: 30px; padding: 0.7rem 1.4rem; }

  /* --- Modal --- */
  .modal-overlay { padding: 1rem; align-items: flex-end; }
  .modal { padding: 1.5rem 1.25rem; border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; }
  .modal-form-cols { grid-template-columns: 1fr; gap: 0; }
  .form-group-message textarea { min-height: 110px; }
  .modal-submit { flex-direction: column; align-items: stretch; }
  .modal-submit .btn { width: 100%; justify-content: center; }

  /* --- Page hero --- */
  .page-hero { padding: 7rem 0 4rem; }

  /* --- Mission / A-propos --- */
  .mission-inner { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .mission-img img { height: 280px; }
  .service-detail-inner, .service-detail-inner.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .service-detail-inner.reverse > * { direction: ltr; }
  .service-detail-img img { height: 260px; }
  .work-medicine-list { grid-template-columns: 1fr; }

  /* --- Timeline --- */
  .timeline-slide { grid-template-columns: 1fr; }

  /* --- Sport Life+ --- */
  .sport-hero { min-height: 60vh; }
  .sport-hero-content { padding: 5rem 1.25rem 2rem; }
  .sport-hero-content h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .sport-services-grid { grid-template-columns: 1fr; }
  .sport-service-card { width: 100%; }

  /* --- Technology --- */
  .tech-hero-content { max-width: 100%; padding: 4rem 0 2rem; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tech-reel-frame { width: 240px; height: 160px; }

  /* --- Privacy --- */
  .privacy-hero-section { padding: 7rem 0 4rem; }
  .privacy-hero-imgs { grid-template-columns: 1fr; }

  /* --- Commitment cards (marquee → static grid on mobile) --- */
  .privacy-commitments { padding: 3rem 0; }
  .privacy-commitments h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    padding: 0 1rem;
  }
  .marquee-wrapper { display: none !important; }
  .commitments-static {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1.25rem 0;
    width: 100%;
    box-sizing: border-box;
  }
  .commitments-static .commitment-card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }
  .commitments-static .commitment-card h3 { font-size: 1rem; }
  .commitments-static .commitment-card p { font-size: 0.88rem; line-height: 1.55; }
  .commitments-static .commitment-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
}

/* === RESPONSIVE — SMALL PHONES (≤ 480px) === */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }

  h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  h3 { font-size: clamp(1rem, 4vw, 1.2rem); }

  .nav-inner { padding: 0.65rem 1rem; }
  .nav-logo img { height: 32px; }
  .btn { padding: 0.65rem 1.4rem; font-size: 0.84rem; }

  .hero-content h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .stat-number { font-size: clamp(2rem, 10vw, 3rem); }

  .page-hero { padding: 6rem 0 3rem; }
  .careers-section { padding: 3rem 0; }
  .career-card { padding: 1.5rem; }

  .sport-hero-content h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .tech-reel-frame { width: 180px; height: 120px; }

  .modal { padding: 1.25rem 1rem; }
  .modal-title { font-size: 1.3rem; }

  .footer-contact-row { flex-direction: column; gap: 0.2rem; }
  .footer-contact-label { min-width: unset; }

  /* --- Privacy commitments tighter on small phones --- */
  .privacy-commitments { padding: 2.5rem 0; }
  .privacy-commitments h2 { margin-bottom: 1rem; padding: 0 0.75rem; }
  .commitments-static { padding: 1rem 1rem 0; gap: 0.85rem; }
  .commitments-static .commitment-card { padding: 1.25rem 1rem; border-radius: 14px; }
  .commitments-static .commitment-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
  .commitments-static .commitment-card p { font-size: 0.85rem; }
  .commitments-static .commitment-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
}

/* === RESPONSIVE FIXES (overflow + tech commitments + careers grid) === */
html { overflow-x: hidden; }

/* Prevent grid/flex children from inflating tracks beyond container width
   (fixes home page horizontal overflow caused by careers carousel cards) */
.careers-inner > *,
.careers-slider-wrapper,
.careers-track,
.career-card,
.vision-inner > *,
.mission-inner > *,
.video-pub-inner > *,
.partners-inner > *,
.service-detail-inner > *,
.careers-text { min-width: 0; }

.careers-slider-wrapper { width: 100%; max-width: 100%; }

/* Technologie commitments — replace inline grid styles with responsive classes */
.tech-commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.tech-commitments-row2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: calc(66.666% + 1rem);
  margin: 0 auto;
}
.tech-commitments-grid > .tech-card,
.tech-commitments-row2 > .tech-card { min-width: 0; }

@media (max-width: 900px) {
  .tech-commitments-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-commitments-row2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}
@media (max-width: 640px) {
  .tech-commitments-grid,
  .tech-commitments-row2 { grid-template-columns: 1fr; gap: 1rem; max-width: 100%; }
}
