/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;

  /* Fond + images latérales (sans pseudo-elements) */
  background-color: #f5f7fa;
  background-image: url("../images/side-left.png"), url("../images/side-right.png");
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-position: left top, right top;
  background-size: 320px 100vh, 320px 100vh;
}

/* On masque les côtés sur mobile */
@media (max-width: 1100px){
  body{ background-image: none; }
}

/* =====================================================
   HEADER
===================================================== */
header{
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92)),
    url("../images/hero-banner.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;

  color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

header h1{ margin: 0; font-size: 2.4rem; }
header p{ margin-top: 0.6rem; font-size: 1.1rem; opacity: 0.9; }

.site-header {
  padding: 30px 60px;
  background: linear-gradient(
    to right,
    rgba(5, 15, 35, 0.95),
    rgba(10, 30, 70, 0.95)
  );
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 64px;   /* 🔥 clé */
  width: auto;
}

.brand-text h1 {
  margin: 0;
  font-size: 2rem;
  color: #ffffff;
  letter-spacing: 1px;
}

.brand-text span {
  font-size: 0.9rem;
  color: #9fb3d9;
}

.hero-header {
  padding-top: 50px;   /* ⬇️ moins d’espace en haut */
  padding-bottom: 20px;
  text-align: center;
}

.hero-logo {
  height: 280px;        /* 🔥 augmentation nette */
  width: auto;
  margin-top: -80px;    /* remonte légèrement */
  margin-bottom: 1px;   /* texte très proche */
  filter: drop-shadow(0 0 28px rgba(0, 150, 255, 0.45));
}


.hero-title {
  font-size: 3rem;
  margin-top: 0;
  margin-bottom: 4px;
  line-height: 1.1;     /* 🔑 rapproche visuellement */
}

.hero-subtitle {
  font-size: 1.4rem;   /* 🔼 avant ~1.15rem */
  line-height: 1.4;
  color: #b3c7e6;
}


.hero-header h1,
.hero-header p {
  margin-block-start: 0;
  margin-block-end: 0;
}



/* =====================================================
  Responsive
===================================================== */
@media (max-width: 768px) {
  .hero-logo {
    height: 160px;
    margin-top: -40px;
  }
}



/* =====================================================
   MAIN LAYOUT
===================================================== */
main{
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.2rem;
}

section{
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

section h2{
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: #0f172a;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

/* =====================================================
   TECHNOLOGIES – BANNIÈRE (TABS + MARQUEE)
===================================================== */
.tech-section{
  background: #020617;
  color: #e5e7eb;
  padding: 3rem 1rem 2rem; /* un peu moins en bas pour coller la bannière suivante */
}

.tech-section h2{
  text-align: center;
  color: #e5e7eb;
  border: none;
  margin-bottom: 1.5rem;
}

/* Tabs */
.tech-tabs{
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.tech-tabs button{
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e5e7eb;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.tech-tabs button.active,
.tech-tabs button:hover{
  background: rgba(56, 189, 248, 0.2);
}

/* Hero DevOps (uniquement quand DevOps est actif) */
.tech-hero {
  display: none;
  width: min(1200px, 100%);
  height: 390px;
  margin: 0.6rem auto 0;
  padding: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  object-fit: cover;
  object-position: center 50%; /* 🔥 rogne FORTEMENT le haut */
}



.tech-section[data-active="devops"] .tech-hero--devops{
  display: block;
}

@media (max-width: 768px) {
  .tech-hero {
    height: 260px;
    width: 100%;
    margin-top: 0.4rem;
  }
}


/* Marquee centré */
.tech-marquee{
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

/* Track (une seule piste visible via .active) */
.tech-track{
  display: none; /* caché par défaut */
  gap: 1.2rem;
  width: max-content;
  will-change: transform;
  animation: tech-scroll 22s linear infinite;
}

.tech-track.active{ display: flex; }

/* Items */
.tech-item{
  padding: 0.9rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  white-space: nowrap;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes tech-scroll{
  from { transform: translateX(50%); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   BANNIÈRE "ÉQUIPE" (collée à la tech-section)
===================================================== */
.between-banner{
  background: #020617;
  margin: 0;
  padding: 0;
  line-height: 0;   /* supprime les espaces “blancs” liés aux images inline */
}

.between-banner img{
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

/* =====================================================
   FEATURES / EXPERTISES (GRID + ALIGN)
===================================================== */
.features{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

@media (max-width: 900px){
  .features{ grid-template-columns: 1fr; }
}

.features .feature{
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  background: #ffffff;
  overflow: hidden;
}

.features .feature img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  display: block;
}

.features .feature h3{ margin: 0.4rem 0 0.2rem; color: #0f172a; }
.features .feature p{ margin: 0; flex: 1; }

/* =====================================================
   BADGES
===================================================== */
.badges{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.badge{
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.2rem;
}

.badge h3{ margin-top: 0; color: #0f172a; }

/* =====================================================
   STEPS
===================================================== */
.steps{ display: grid; gap: 1rem; }

.step{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.2rem;
}

.step-n{
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: bold;
}

/* =====================================================
   SERVICES
===================================================== */
.services{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.service{
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* =====================================================
   OFFRES DEVOPS – CARTES PRO (HORIZONTAL)
===================================================== */
.offers.offers-selectable{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

@media (max-width: 900px){
  .offers.offers-selectable{ grid-template-columns: 1fr; }
}

/* Radios invisibles hors flux */
.offer-radio{
  position: absolute;
  left: -9999px;
}

.offer{
  border: 2px solid #e5e7eb;   /* ← 2px partout */
  border-radius: 14px;
  padding: 1.6rem;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offer:hover{
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.offer-radio:checked + .offer{
  border-color: #2563eb;   /* ← couleur seulement */
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
}

.offer-top h3{
  margin: 0;
  font-size: 1.3rem;
  color: #0f172a;
}

.offer-sub{
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.offer ul,
.offer-notes ul,
.faq ul{
  margin-top: 1.2rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.offer li{ margin-bottom: 0.4rem; }

.offer-out{
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.95rem;
  color: #374151;
}

.offer-radio:focus-visible + .offer{
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.offer-notes{
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  background: #f8fafc;
}

.offer-notes h3{ margin: 0 0 0.6rem 0; color: #0f172a; }
.faq h3{ margin: 1rem 0 0.35rem 0; color: #0f172a; }

/* =====================================================
   CTA / BUTTONS
===================================================== */
.cta{
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn{
  background: #2563eb;
  color: #ffffff;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.btn:hover{ text-decoration: none; filter: brightness(0.95); }

.btn-ghost{
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}


/* =====================================================
   FOOTER
===================================================== */
footer{
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}
