/* FM Créations — style.css?v=1 */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #070f1d;
  color: #c8d8e8;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #06b6d4; text-decoration: none; transition: color .25s; }
a:hover { color: #22d3ee; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #f0f8ff;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section { padding: 90px 0; }
.section--alt { background: #0d1f38; }
.section--dark { background: #050d1a; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.text-center { text-align: center; }
.text-cyan { color: #06b6d4; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #06b6d4;
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.3);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  color: #8ba8c4;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all .25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(6,182,212,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6,182,212,.5);
}

.btn-outline {
  background: transparent;
  color: #06b6d4;
  border: 2px solid #06b6d4;
}
.btn-outline:hover {
  background: rgba(6,182,212,.1);
  color: #22d3ee;
  border-color: #22d3ee;
}

.btn-ghost {
  background: rgba(255,255,255,.07);
  color: #f0f8ff;
  border: 1px solid rgba(255,255,255,.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,15,29,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6,182,212,.12);
  transition: background .3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f0f8ff;
}
.logo-link:hover { color: #06b6d4; }

.logo-img { height: 42px; width: auto; }

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.main-nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
  color: #8ba8c4;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all .2s;
}
.nav-link:hover,
.nav-link.active {
  color: #06b6d4;
  background: rgba(6,182,212,.08);
}

.nav-cta {
  margin-left: 12px;
  padding: 9px 22px;
  font-size: .88rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #06b6d4;
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   HERO — VIDEO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10,22,40,0.90) 0%,
    rgba(20,40,60,0.45) 50%,
    rgba(10,22,40,0.92) 100%);
  z-index: 1;
}

.hero-video {
  background-color: #0a1628;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #06b6d4;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: #06b6d4;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-title .accent { color: #06b6d4; }

.hero-desc {
  font-size: 1.1rem;
  color: #9ab5cc;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #4a7a9b;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #06b6d4, transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: #0d1f38;
  border-top: 1px solid rgba(6,182,212,.15);
  border-bottom: 1px solid rgba(6,182,212,.15);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { padding: 16px; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #06b6d4;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .82rem;
  color: #6a8fa8;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #0d1f38;
  border: 1px solid rgba(6,182,212,.12);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(6,182,212,.35);
  box-shadow: 0 12px 40px rgba(6,182,212,.12);
}

.card-img { width: 100%; height: 220px; object-fit: cover; }

.card-body { padding: 28px; }

.card-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #06b6d4;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.15rem;
  color: #f0f8ff;
  margin-bottom: 12px;
}

.card-excerpt { color: #7a9ab5; font-size: .9rem; line-height: 1.6; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .8rem;
  color: #4a7a9b;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: #06b6d4;
  margin-top: 16px;
}
.card-link::after { content: '→'; transition: transform .2s; }
.card-link:hover::after { transform: translateX(4px); }

/* Service cards */
.service-card {
  background: #0d1f38;
  border: 1px solid rgba(6,182,212,.12);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all .3s;
}
.service-card:hover {
  border-color: rgba(6,182,212,.4);
  background: #102540;
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(6,182,212,.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(6,182,212,.12);
  border: 1px solid rgba(6,182,212,.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
}

.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: #7a9ab5; font-size: .9rem; }

/* Process steps */
.process-step {
  position: relative;
  padding: 32px;
  background: #0d1f38;
  border: 1px solid rgba(6,182,212,.12);
  border-radius: 12px;
  transition: all .3s;
}
.process-step:hover {
  border-color: rgba(6,182,212,.35);
  box-shadow: 0 8px 32px rgba(6,182,212,.1);
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(6,182,212,.12);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Rajdhani', sans-serif;
}

/* ============================================================
   IMAGE SECTIONS
   ============================================================ */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.img-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(6,182,212,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(6,182,212,.15);
  pointer-events: none;
}

/* Banner with CSS bg */
.team-banner {
  position: relative;
  background-image: url('/images/equipe-creative.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  overflow: hidden;
}
.team-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10,22,40,.93) 0%,
    rgba(10,22,40,.65) 60%,
    rgba(10,22,40,.9) 100%);
}
.team-banner .container { position: relative; z-index: 1; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 50%, #0a1628 100%);
  border-top: 1px solid rgba(6,182,212,.15);
  border-bottom: 1px solid rgba(6,182,212,.15);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,.08) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(6,182,212,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.blog-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0;
}
.blog-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,15,29,.97) 0%, rgba(7,15,29,.4) 60%, transparent 100%);
  z-index: 1;
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  max-width: 760px;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 0 80px;
}
.article-content h2 { margin: 2em 0 .8em; }
.article-content h3 { margin: 1.5em 0 .6em; color: #06b6d4; }
.article-content p { color: #9ab5cc; margin-bottom: 1.4em; }
.article-content ul { margin: 1em 0 1.4em 1.5em; list-style: disc; }
.article-content ul li { color: #9ab5cc; margin-bottom: .5em; }

.article-mid-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin: 40px 0;
  border: 1px solid rgba(6,182,212,.15);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #8ba8c4;
  margin-bottom: 8px;
  letter-spacing: .05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: #0d1f38;
  border: 1px solid rgba(6,182,212,.2);
  border-radius: 8px;
  color: #f0f8ff;
  font-size: .95rem;
  padding: 14px 18px;
  transition: border-color .25s, box-shadow .25s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6,182,212,.12);
}

.form-textarea { min-height: 160px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050d1a;
  border-top: 1px solid rgba(6,182,212,.12);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: #4a7a9b;
  font-size: .9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #06b6d4;
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #4a7a9b;
  font-size: .88rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: #06b6d4; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  color: #2a4a6b;
  font-size: .8rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: #2a4a6b;
  font-size: .8rem;
}
.footer-legal a:hover { color: #06b6d4; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #070f1d 0%, #0d1f38 100%);
  border-bottom: 1px solid rgba(6,182,212,.15);
  padding: 140px 0 72px;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: .8rem;
  color: #4a7a9b;
  margin-bottom: 20px;
}
.breadcrumb a { color: #06b6d4; }
.breadcrumb span { opacity: .5; }

/* ============================================================
   RÉALISATIONS
   ============================================================ */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.realisation-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(6,182,212,.12);
  aspect-ratio: 16/9;
  cursor: pointer;
}
.realisation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.realisation-card:hover img { transform: scale(1.06); }

.realisation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,15,29,.95) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s;
}
.realisation-card:hover .realisation-overlay { opacity: 1; }

.realisation-overlay h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.realisation-overlay p { font-size: .8rem; color: #06b6d4; }

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(6,182,212,.25);
  background: transparent;
  color: #6a8fa8;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.filter-tab.active,
.filter-tab:hover {
  background: rgba(6,182,212,.12);
  border-color: #06b6d4;
  color: #06b6d4;
}

/* ============================================================
   404
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: rgba(6,182,212,.15);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Rajdhani', sans-serif;
}

/* ============================================================
   SITEMAP
   ============================================================ */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.sitemap-col h3 {
  color: #06b6d4;
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(6,182,212,.2);
}
.sitemap-col ul li { margin-bottom: 10px; }
.sitemap-col ul li a { color: #8ba8c4; font-size: .9rem; }
.sitemap-col ul li a:hover { color: #06b6d4; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .main-nav { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: rgba(7,15,29,.97); padding: 24px; border-bottom: 1px solid rgba(6,182,212,.15); gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .blog-grid, .realisations-grid, .cta-grid { grid-template-columns: 1fr; }
  .grid-3, .blog-grid { grid-template-columns: 1fr; }
  .realisations-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-content { max-width: 100%; }
  .hero-actions { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .sitemap-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-hero-content { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .realisations-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .error-code { font-size: 5rem; }
}
