/* ===========================
   🌈 BASE GÉNÉRALE
=========================== */
:root {
  --accent: #ff6600;
  --text: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.12);
  --background: radial-gradient(circle at 20% 20%, #0a0a0a, #000);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===========================
   🧭 HEADER FIXE
=========================== */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.08),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.glass-header.scrolled {
  background: rgba(0, 0, 0, 0.6);
}

/* ===========================
   🆕 LOGO IMAGE RESPONSIVE
=========================== */
.logo img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
}

/* ===========================
   🧭 NAVIGATION (Desktop)
=========================== */
nav {
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}
nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a:hover {
  color: var(--accent);
}

/* ===========================
   📱 MENU BURGER — bouton
=========================== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.08),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}
.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

/* ===========================
   🪶 HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(90px, 12vw, 120px) 5%;
}
.hero-content {
  max-width: 600px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #d1d1d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 40px;
}
img {
  max-width: 100%;
  height: auto;
}

/* ===========================
   ✨ BOUTONS LIQUID GLASS
=========================== */
.btn,
.cta {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.08),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}
.btn:hover,
.cta:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.07);
}

/* ===========================
   🧊 SECTIONS GÉNÉRALES
=========================== */
.section {
  padding: clamp(80px, 10vw, 140px) 5%;
  text-align: center;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 50px;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===========================
   💎 CARDS
=========================== */
.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.card {
  margin: 10px auto;
  padding: 35px 30px;
  width: 90%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.1),
    0 0 50px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}
.card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-10px);
  box-shadow: 0 0 50px rgba(255, 102, 0, 0.3);
}
.card h3,
.card h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.card ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}
.card li {
  font-size: 1.05rem;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

/* ===========================
   💬 CONTACT
=========================== */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===========================
   ✨ FADE-IN
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   🪩 FOOTER FIXE
=========================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 15px 20px;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.08),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  z-index: 9999;
}

/* ===========================
   📱 RESPONSIVE MOBILE
=========================== */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(250%) contrast(120%) brightness(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(250%) contrast(120%) brightness(1.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
      0 0 25px rgba(255, 255, 255, 0.15),
      inset 0 0 15px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px 25px;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }

  nav a {
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    color: #fff;
  }

  nav a:hover {
    color: var(--accent);
  }

  .menu-toggle {
    display: block;
  }

  .logo img {
    max-width: 100px;
  }

  .footer {
    position: relative;
  }
}

/* 🟡 Animation clignotement */
.blink {
  animation: blink 0.8s ease-in-out infinite alternate;
}
@keyframes blink {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0.5; }
}

/* ===== Consent Gate (glass + motion) ===== */
.consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  display: grid;
  place-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s cubic-bezier(.22,.61,.36,1);
}
.consent-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.consent-modal {
  width: min(560px, 92vw);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 10px 60px rgba(0,0,0,.6),
    inset 0 0 30px rgba(255,255,255,.08);
  transform: translateY(12px) scale(.96);
  opacity: 0;
  animation: pop-in .7s cubic-bezier(.2,.8,.2,1) .1s forwards;
}

.consent-modal h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 10px;
  background: linear-gradient(90deg,#fff,#dcdcdc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.consent-modal p { opacity: .9; }

.consent-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-ghost {
  background: transparent;
  border: 1px dashed var(--glass-border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
}

.consent-footnote {
  margin-top: 10px;
  font-size: .9rem;
  opacity: .7;
}

/* Orb illumination (subtil, Apple-like) */
.consent-orb {
  position: absolute;
  inset: -20% auto auto -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, rgba(255,102,0,.35), transparent 70%);
  filter: blur(30px);
  animation: orb-float 8s ease-in-out infinite;
  pointer-events: none;
}

/* Site blocker après refus */
.site-blocker {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
}
.site-blocker[hidden] { display: none; }

.blocker-content {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px 28px;
  text-align: center;
  box-shadow: 0 10px 60px rgba(0,0,0,.6);
}

/* Body lock quand modal ouverte/refus */
.body-locked {
  overflow: hidden !important;
}
.body-disabled {
  pointer-events: none !important;
  user-select: none !important;
  filter: grayscale(.2) blur(.5px);
}

/* Keyframes */
@keyframes pop-in {
  0%   { opacity: 0; transform: translateY(16px) scale(.95); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes orb-float {
  0%,100% { transform: translate(0, 0); }
  50%     { transform: translate(12px, -10px); }
}

/* Respecte prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .consent-backdrop,
  .consent-modal,
  .consent-orb { animation: none !important; transition: none !important; }
}

/* ===== Layout helpers ===== */
.container { max-width: 1100px; margin-inline: auto; padding: 0 20px; }
.stack-md > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 18px; }
.stack-xl { padding: 40px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 800px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.site-header { position: sticky; top: 0; backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-list { display: flex; gap: 16px; }
.logo { font-weight: 700; }

/* ===== Cards ===== */
.card {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 40px rgba(0,0,0,.35); }

/* ===== Tabs ===== */
.tabs { margin-top: 20px; }
.tablist { display: flex; gap: 8px; flex-wrap: wrap; border: 1px solid var(--glass-border); border-radius: 14px; padding: 6px; background: rgba(255,255,255,.05); }
.tablist [role="tab"] {
  border: 1px solid transparent; border-radius: 10px; padding: 8px 14px; cursor: pointer;
  transition: background .25s, transform .25s;
}
.tablist [role="tab"][aria-selected="true"] {
  background: rgba(255,255,255,.12); border-color: var(--glass-border);
}
.tablist [role="tab"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tab-panel { display: none; padding: 16px 6px; }
.tab-panel.is-active { display: block; }

/* ===== Accordion ===== */
.accordion { border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.05); }
.acc-item {
  width: 100%; text-align: left; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--glass-border); cursor: pointer; background: transparent;
}
.acc-item[aria-expanded="true"] { background: rgba(255,255,255,.08); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; padding: 0 16px; }
.acc-item[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; padding-bottom: 12px; }
.acc-panel > * { overflow: hidden; }

/* ===== Form ===== */
.field span { display:block; margin-bottom:6px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.06); color: inherit;
}
.field .error { color: #ffb3b3; min-height: 18px; display:block; }
input:invalid, textarea:invalid { border-color: rgba(255,80,80,.7); }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(16px);
  background: rgba(0,0,0,.85); color: #fff; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--glass-border); box-shadow: 0 10px 40px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; z-index: 10050;
  transition: opacity .35s ease, transform .35s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Reveal on scroll ===== */
.reveal-up { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s ease, transform .6s ease; }
.reveal-up--visible { opacity: 1; transform: translateY(0) scale(1); }


/* ===== Layout helpers ===== */
.container { max-width: 1100px; margin-inline: auto; padding: 0 20px; }
.stack-md > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 18px; }
.stack-xl { padding: 40px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 800px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.site-header { position: sticky; top: 0; backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-list { display: flex; gap: 16px; }
.logo { font-weight: 700; }

/* ===== Cards ===== */
.card {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 40px rgba(0,0,0,.35); }

/* ===== Tabs ===== */
.tabs { margin-top: 20px; }
.tablist { display: flex; gap: 8px; flex-wrap: wrap; border: 1px solid var(--glass-border); border-radius: 14px; padding: 6px; background: rgba(255,255,255,.05); }
.tablist [role="tab"] {
  border: 1px solid transparent; border-radius: 10px; padding: 8px 14px; cursor: pointer;
  transition: background .25s, transform .25s;
}
.tablist [role="tab"][aria-selected="true"] {
  background: rgba(255,255,255,.12); border-color: var(--glass-border);
}
.tablist [role="tab"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tab-panel { display: none; padding: 16px 6px; }
.tab-panel.is-active { display: block; }

/* ===== Accordion ===== */
.accordion { border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.05); }
.acc-item {
  width: 100%; text-align: left; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--glass-border); cursor: pointer; background: transparent;
}
.acc-item[aria-expanded="true"] { background: rgba(255,255,255,.08); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; padding: 0 16px; }
.acc-item[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; padding-bottom: 12px; }
.acc-panel > * { overflow: hidden; }

/* ===== Form ===== */
.field span { display:block; margin-bottom:6px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.06); color: inherit;
}
.field .error { color: #ffb3b3; min-height: 18px; display:block; }
input:invalid, textarea:invalid { border-color: rgba(255,80,80,.7); }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(16px);
  background: rgba(0,0,0,.85); color: #fff; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--glass-border); box-shadow: 0 10px 40px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; z-index: 10050;
  transition: opacity .35s ease, transform .35s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Reveal on scroll ===== */
.reveal-up { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s ease, transform .6s ease; }
.reveal-up--visible { opacity: 1; transform: translateY(0) scale(1); }

/* ===== Helpers pour les nouveaux blocs ===== */
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
@media (max-width: 920px){ .grid-2 { grid-template-columns: 1fr; } }
.about-wrap { padding: 18px; }
.about-points { margin-top: 10px; display: grid; gap: 6px; opacity: .95; }

/* Skills bars (métriques IPTV) */
.about-skills { display: grid; gap: 10px; align-content: start; }
.skill { display: grid; gap: 6px; }
.skill-label { display: flex; justify-content: space-between; opacity: .9; }
.bar { height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden;
  border: 1px solid var(--glass-border, rgba(255,255,255,.18)); }
.bar > i { display:block; height:100%; width:0%;
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
  border-radius:999px; transition: width 1.2s cubic-bezier(.22,.61,.36,1); }

/* Logos / Compatibilité (marquee) */
.marquee-wrap { overflow: hidden; border-radius: 16px; }
.marquee {
  display: flex; gap: 18px; padding: 10px 12px; align-items: center; white-space: nowrap;
  animation: marquee 18s linear infinite;
}
.logo-chip {
  padding: 8px 12px; border: 1px solid var(--glass-border, rgba(255,255,255,.18));
  border-radius: 12px; background: rgba(255,255,255,.06);
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee { animation: none; } }

/* Témoignages (scroll-snap horizontal) */
.testimonials { scroll-snap-type: x mandatory; display: grid; grid-auto-flow: column;
  gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.testimonial { scroll-snap-align: start; min-width: min(86vw, 520px); padding: 16px; }
.t-author { display: flex; align-items: center; gap: 10px; margin-top: 10px; opacity: .9; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2);
  border: 1px solid var(--glass-border, rgba(255,255,255,.18)); }

/* Compteurs */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; text-align: center; }
@media (max-width: 880px){ .counters { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.counter { padding: 16px; }
.counter .num { font-size: clamp(1.8rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: .5px; }

/* (Optionnel) si pas déjà présent : la classe .glass utilisée sur tes cards */
.glass {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border, rgba(255,255,255,.18));
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
