/* ============================================================
   Servirun – main.css
   Variables → Reset → Layout → Header/Nav → Hero → Sections → Footer → Pages → Responsive
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --dark:    #272B36;
  --red:     #FF4255;
  --text:    #7A7A7A;
  --white:   #FFFFFF;
  --border:  #E6E6E6;
  --shadow:  rgba(0,0,0,.1);
  --max-w:   1140px;
  --gap:     24px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--dark); }
ul { list-style: none; }

/* ─── Utility ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 80px 0; }
.text-center { text-align: center; }

.label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--red);
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.2;
}
h1 { font-size: 58px; font-weight: 700; }
h2 { font-size: 38px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.3px; color: var(--red); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  padding: 18px 32px;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
  text-decoration: none;
}
.btn:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--red);
  padding: 0;
  font-size: 12px;
}
.btn-outline:hover { background: transparent; color: var(--dark); transform: none; }
.btn-white {
  background: var(--white);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-white:hover { background: var(--dark); color: var(--white); }

/* ─── Header / Nav ───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(39, 43, 54, 0.88);
  backdrop-filter: blur(3px);
  border-bottom: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 94px;
  gap: 0;
}
.nav-logo { flex: 0 0 auto; padding: 0 10px; }
.nav-logo img { height: 60px; width: auto; }

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0;
}
.nav-menu a {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--white);
  padding: 0 24px;
  height: 94px;
  line-height: 94px;
  transition: color .2s;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--red); }

.nav-cta { flex: 0 0 auto; padding: 0 5px; }
.nav-cta .btn { padding: 18px 32px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 20px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 25px; height: 3px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 350px; height: 100vh;
  background: var(--white);
  z-index: 200;
  padding: 30px 20px;
  flex-direction: column;
  gap: 0;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.mobile-menu-header img { height: 50px; width: auto; }
.mobile-close {
  background: var(--red);
  color: var(--white);
  border: none;
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu nav a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--dark);
  padding: 12px 25px;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu nav a:hover { color: var(--red); }
.mobile-menu .btn { margin: 20px 25px; display: inline-block; }
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.mobile-overlay.open { display: block; }
body.menu-open { overflow: hidden; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: -94px; /* overlap header */
  padding: 285px 0 240px;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.hero-text h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-text p {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 30px;
  text-align: justify;
}
.hero-img { text-align: center; }
.hero-img img { margin: 0 auto; }

/* ─── Breadcrumb Hero ────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: 240px 0 90px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  color: var(--white);
  margin-top: -94px;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-hero-content h2 { color: var(--white); margin-bottom: 12px; }
.breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 8px; }

/* ─── Cards (info boxes) ─────────────────────────────────── */
.cards-section {
  margin-top: -75px;
  position: relative;
  z-index: 10;
  padding-bottom: 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  padding: 33px 30px;
  box-shadow: 0 5px 15px var(--shadow);
  display: flex;
  flex-direction: column;
  transition: background .3s, color .3s;
}
.card:hover { background: var(--red); }
.card-icon {
  font-size: 48px;
  color: var(--red);
  margin-bottom: 20px;
  line-height: 1;
  transition: color .3s;
}
.card:hover .card-icon { color: var(--white); }
.card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #3F3F3F;
  transition: color .3s;
}
.card:hover h3 { color: var(--white); }
.card p {
  transition: color .3s;
}
.card:hover p { color: var(--white); }
/* Red CTA card (3rd) */
.card-cta {
  background: var(--red);
  padding: 30px;
}
.card-cta h3 { color: var(--white); }
.card-cta p  { color: var(--white); }
.card-cta .btn-white { margin-top: 15px; }

/* ─── About ──────────────────────────────────────────────── */
.about-section {
  padding: 80px 0 50px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.about-img img { width: 99%; }
.about-text .label { display: block; margin-bottom: 8px; }
.about-text p {
  margin-bottom: 16px;
  text-align: justify;
}
.quote-block {
  border-left: 4px solid var(--red);
  padding-left: 30px;
  margin: 16px 0;
}
.quote-block p {
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
}
.about-list {
  margin-top: 20px;
}
.about-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  color: var(--text);
}
.about-list li svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  fill: var(--red);
}

/* ─── Services ───────────────────────────────────────────── */
.services-section { padding: 50px 0 80px; }
.services-header { text-align: center; margin-bottom: 40px; scroll-margin-top: 110px; }
.services-header h2 { margin-bottom: 12px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  box-shadow: 0 3px 15px var(--shadow);
  overflow: hidden;
}
.service-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.service-card-body {
  padding: 10px 30px 40px;
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--red);
  padding: 20px 30px;
  margin: -20px 0 0 0;
  position: relative;
  top: -20px;
}
.service-card-icon {
  color: var(--white);
  font-size: 40px;
  flex-shrink: 0;
}
.service-card-header h3 {
  color: var(--white);
  font-size: 20px;
  margin: 0;
}
.service-card-header p {
  color: var(--white);
  font-size: 14px;
  margin: 0;
}
.service-card-body > p {
  margin-top: 10px;
  text-align: justify;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 30px;
  padding-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--red);
}
.service-card-link:hover { color: var(--dark); }

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--dark);
  padding: 30px 40px;
  margin-top: 20px;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-banner p {
  font-size: 18px;
  color: var(--white);
  font-weight: 600;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ─── Partners / Carousel ────────────────────────────────── */
.partners-section { padding: 40px 0 80px; }
.partners-label { text-align: center; margin-bottom: 20px; }
.carousel-track-wrapper {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scroll-partners 20s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter .3s;
  flex-shrink: 0;
}
.carousel-track img:hover { filter: none; }
@keyframes scroll-partners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  background-image: url('/img/worldmap.png');
  background-position: center;
  background-size: cover;
  background-blend-mode: overlay;
  background-color: var(--dark);
  padding: 60px 0 20px;
  color: var(--white);
}
/* worldmap at 2% opacity via pseudo-element */
.site-footer { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.footer-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-list li {
  margin-bottom: 6px;
}
.footer-list a {
  color: var(--white);
  font-size: 16px;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  transition: color .2s;
}
.footer-list a:hover { color: var(--red); }
.footer-list a svg {
  fill: var(--red);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer-other a {
  color: var(--white);
  font-size: 16px;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color .2s;
}
.footer-other a:hover { color: var(--red); }
.footer-other a svg { fill: var(--red); width: 14px; height: 14px; flex-shrink: 0; }
.footer-social { display: flex; gap: 20px; margin-top: 8px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  transition: background .2s;
}
.footer-social a:hover { background: var(--white); }
.footer-social a:hover svg { fill: var(--red); }
.footer-social svg { fill: var(--white); width: 18px; height: 18px; transition: fill .2s; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(160,170,186,.17);
  margin: 0 0 20px 0;
}
.footer-bottom {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ─── Utility extras ─────────────────────────────────────── */
.section-pad { padding: 80px 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text); }

/* ─── Page-hero h1 override ──────────────────────────────── */
.page-hero-content h1 { color: var(--white); margin-bottom: 12px; font-size: 48px; }

/* ─── Page: Cybersécurité ────────────────────────────────── */
.cyber-services { padding: 60px 0; }
.cyber-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 17px;
}
.cyber-cards-grid,
.cyber-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.cyber-card {
  background: var(--white);
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: background .3s, color .3s;
}
.cyber-card:hover { background: var(--red); }
.cyber-card-icon {
  font-size: 40px;
  color: var(--red);
  margin-bottom: 16px;
  line-height: 1;
  transition: color .3s;
}
.cyber-card:hover .cyber-card-icon { color: var(--white); }
.cyber-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  transition: color .3s;
}
.cyber-card p { transition: color .3s; }
.cyber-card:hover h3 { color: var(--white); }
.cyber-card:hover p { color: var(--white); }
.cyber-card-cta { background: var(--dark); }
.cyber-card-cta h3 { color: var(--white); }
.cyber-card-cta p { color: rgba(255,255,255,.8); }
.cyber-card-cta:hover { background: var(--red); }

/* ─── Cyber info link (card 4 CTA) ─────────────────────── */
.cyber-info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--red);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  text-decoration: none;
}
.cyber-info-link:hover { color: var(--dark); }

/* Certs */
.certifications,
.cyber-certs { padding: 60px 0; background: #f8f8f8; }
.cert-blocks { display: flex; flex-direction: column; gap: 30px; }
.cert-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  background: var(--white);
  padding: 40px;
  box-shadow: 0 3px 15px var(--shadow);
}
.cert-block img { width: 150px; height: auto; }
.cert-text h3 { margin-bottom: 12px; }
.cert-text p { margin-bottom: 12px; text-align: justify; }
.cert-text a { color: var(--red); }
.cert-block h5 { margin-bottom: 12px; font-size: 14px; letter-spacing: .5px; }
.cert-block p { margin-bottom: 12px; text-align: justify; }
.cert-block a { color: var(--red); }

/* Institutional */
.institutional,
.cyber-institutions { padding: 60px 0; }
.institutional h2, .cyber-institutions h2 { margin-bottom: 12px; }
.inst-logos,
.institutions-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}
.inst-logos img,
.institutions-grid img { height: 130px; width: auto; object-fit: contain; filter: grayscale(20%); transition: filter .2s; }
.inst-logos img:hover,
.institutions-grid img:hover { filter: none; }

/* ─── Page: Support ──────────────────────────────────────── */
.support-section { padding: 60px 0; }
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.support-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; background: var(--white); padding: 40px 30px; box-shadow: 0 3px 20px rgba(0,0,0,.08); }
.support-block-img img { width: 240px; }
.support-block-text h2 { margin-bottom: 16px; }
.support-block-text p { margin-bottom: 10px; }
.support-block h5 { margin-bottom: 20px; }
.support-block img { margin-bottom: 20px; }
.support-block p { margin-bottom: 10px; }
.anydesk-link img { transition: opacity .2s; }
.anydesk-link:hover img { opacity: .85; }
.server-status-list { margin-top: 10px; }
.server-status-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 16px;
}
.server-status-list li img { flex-shrink: 0; }
.status-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 16px;
}
.status-ok img { width: 25px; height: 25px; }

/* ─── Page: Références ───────────────────────────────────── */
.references-section { padding: 60px 0; }
.refs-clients { padding: 60px 0; background: #f8f8f8; }
.refs-clients-inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.refs-clients-inner img { margin: 0 auto 20px; }
.refs-clients-inner p { margin-bottom: 12px; }
.refs-clients-inner .btn { margin-top: 16px; }
.refs-clients .container { text-align: center; }
.refs-clients img { width: 50px; height: 50px; margin: 0 auto 20px; }
.refs-clients p { margin-bottom: 12px; }

/* ─── Page: Mentions Légales ─────────────────────────────── */
.legal-section { padding: 60px 0; }
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--dark);
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
}
.legal-content h4 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--dark);
}
.legal-content p { margin-bottom: 12px; text-align: justify; }
.legal-content ul { margin-bottom: 16px; padding-left: 20px; list-style: disc; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content a { color: var(--red); }
.legal-updated {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  font-size: 14px;
}

/* ─── Scroll Reveal Animations ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .hero { padding: 280px 10px 200px; }
  .services-grid { grid-template-columns: 1fr; }
  .cert-block { grid-template-columns: 1fr; }
  .cert-block img { width: 120px; }
  .about-section, .services-section { padding: 50px 0; }
}

@media (max-width: 767px) {
  h1 { font-size: 38px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  body { font-size: 14px; }

  .nav-menu, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { height: 70px; }
  .nav-logo img { height: 45px; }
  .mobile-menu { display: flex; }

  .hero { padding: 200px 10px 140px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-img { display: none; }

  .page-hero { padding: 200px 0 60px; }

  .cards-section { margin-top: -40px; }
  .cards-grid { grid-template-columns: 1fr; }
  .card { margin-bottom: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .cyber-cards, .cyber-cards-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-banner .container { flex-direction: column; text-align: center; }

  .partners-section { padding: 30px 0 60px; }
  .section { padding: 50px 0; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid .card:last-child { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:last-child { grid-column: span 2; }
  .cyber-cards, .cyber-cards-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .cyber-cards, .cyber-cards-grid { grid-template-columns: 1fr; }
}
