/* =============================
   RESET + VARIABLES GLOBALES
============================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
  padding: 0;
}

:root {
  --bg-page: radial-gradient(circle at 20% 20%, #2f1a1a 0%, #000 60%);
  --bg-card: rgba(30, 15, 15, 0.65);
  --bg-card-solid: #1e0f0f;
  --bg-card-hover: rgba(45, 25, 25, 0.9);

  --border-color: rgba(246, 92, 92, 0.25);
  --border-color-soft: rgba(246, 92, 92, 0.15);
  --border-light: rgba(255, 255, 255, 0.05);

  --accent-primary: #de3a3a;      
  --accent-secondary: rgb(241, 99, 99);      /* indigo */
  --accent-blue: rgb(235 37 37);           
  --accent-pink: rgb(236, 72, 153);

  --accent-glow: rgba(246, 92, 92, 0.4);
  --accent-linear: linear-gradient(135deg, rgb(222, 58, 58), rgb(217, 40, 196));

  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.75);
  --text-dim: rgba(255,255,255,0.55);

  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 999px;

  --container-max: 1280px;
  --container-padding: clamp(1rem, 2vw, 2rem);
  --section-gap: clamp(3rem, 5vw, 5rem);
  --section-gap-lg: clamp(4rem, 6vw, 6rem);

  --header-height: 4rem;

  --ring-glow: 0 20px 60px rgba(246, 92, 92, 0.4),
               0 0 120px rgba(241, 99, 169, 0.5);

  --transition-fast: .15s ease;
  --transition-mid: .25s ease;

  --font-title: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: #000;
  background-image: var(--bg-page);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
}

ul {
  list-style: none;
}

/* canvas background particles */
.particle-canvas {
  position: fixed !important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* helper class from your markup */
.gradient-text,
.matrix-side span,
.price-value,
.stat-number,
.plan-price .price-amount {
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= TOPBAR ================= */
.topbar {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  border-bottom: 1px solid rgba(246, 92, 92, 0.25);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 50;
}

.topbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===========================
   🔥 STYLE TOPBAR M-SITEWEB
=========================== */

.topbar-msw {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 600;
  font-size: 1.3em;
}

/* Glow texte */
.msw-part1 {
  color: #fff;
  margin-right: -4px;
  filter: drop-shadow(0 0 6px rgba(137, 58, 222, 0.6));
}

.msw-part2 {
  color: #8B5CF6;
  filter: drop-shadow(0 0 6px rgba(137, 58, 222, 0.6));
}

/* Logo */
.topbar-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(137, 58, 222, 0.6));
  transition: transform 0.3s ease;
}

.topbar-msw:hover .topbar-logo {
  transform: scale(1.05);
}

/* Mobile */
@media (max-width: 768px) {
  .topbar-msw {
    gap: 6px;
    font-size: 1.05em;
  }

  .topbar-logo {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .topbar-msw {
    gap: 5px;
    font-size: 0.95em;
  }

  .topbar-logo {
    height: 28px;
  }
}


/* ================= AUTH BUTTONS ================= */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  font-size: 14px;
  text-decoration: none;
}

/* Variante ghost */
.auth-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: var(--border-color-soft);
}

.auth-btn-ghost:hover {
  background: rgba(246, 92, 92, 0.1);
  box-shadow: 0 0 20px rgba(246, 92, 92, 0.3);
  border-color: rgba(246, 92, 92, 0.4);
  transform: translateY(-1px);
}

/* Variante primaire */
.auth-btn-primary {
  background: var(--accent-linear);
  color: #fff;
  box-shadow: 0 4px 20px rgba(246, 92, 92, 0.25);
  border: none;
}

.auth-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(246, 92, 92, 0.4);
  transform: translateY(-1px);
}

/* Message de bienvenue */
.welcome-text {
  font-size: 15px;
  color: var(--text-secondary);
  font-family: 'Share Tech Mono', monospace;
  margin-right: 8px;
}

.welcome-text strong {
  color: var(--accent-primary);
  text-shadow: 0 0 8px rgba(246, 92, 92, 0.4);
}

/* ===== Bouton Tableau de bord ===== */
.auth-btn-dashboard {
  background: var(--accent-linear);
  color: #fff;
  box-shadow: 0 4px 20px rgba(246, 92, 92, 0.25);
  border: none;
}

.auth-btn-dashboard:hover {
  box-shadow: 0 8px 30px rgba(246, 92, 92, 0.4);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-text {
    margin-right: 0;
    text-align: center;
  }
}


/* Responsive */
@media (max-width: 1300px) {
  .topbar-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .topbar-left {
    gap: 5px;
  }
  .topbar-right {
    flex-direction: column;
    gap: 6px;
  }
}


/* =============================
   LAYOUT WRAPPERS
============================= */

.App,
.homepage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

.homepage.loaded {
  opacity: 1;
  transition: opacity .4s ease;
}

/* =============================
   HEADER / NAV
============================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border-color-soft);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  height: var(--header-height);
  display: flex;
  align-items: center;
  height: 150px;
}

.header-container {
  max-width: var(--container-max);
  width: 100%;
  padding: 0 var(--container-padding);
  margin: 0 auto;

  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring {
  background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: var(--radius-full);
  padding: .5rem;
  border: 1px solid var(--border-color-soft);
  box-shadow: 0 10px 30px rgba(246, 92, 92, 0.4),
              0 0 40px rgba(241, 99, 127, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  display: flex;
  font-weight: bold;
  font-size: clamp(34px, 3vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: 'Share Tech Mono', monospace;
}


@media (max-width: 480px) {
  .logo-text {
    font-size: clamp(18px, 7vw, 26px);
  }
}


.logo-text .m-part {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(222, 58, 58, 0.5);
}

.logo-text .web-part {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(222, 58, 58, 0.5);
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(222, 58, 58, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Version mobile */
@media (max-width: 480px) {
  .logo-img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 280px) {
  .logo-img {
    width: 50px;
    height: 50px;
  }
}


.logo-ring:hover .logo-img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(222, 58, 58, 0.9));
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.desktop-nav li {
  position: relative;
}

.desktop-nav button {
  position: relative; /* nécessaire pour le ::before */
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-secondary);
  background: transparent;
  padding: .5rem .25rem;
  border: none;
  border-radius: .4rem;
  cursor: pointer;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  overflow: hidden; /* pour que la ligne ne déborde pas */
}

/* Effet soulignement animé */
.desktop-nav button::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #de3A3A; /* couleur du soulignement */
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* Hover : étend la ligne + change la couleur du texte */
.desktop-nav button:hover {
  color: #de3A3A;
  text-shadow: 0 0 20px rgba(246, 92, 92, 0.6);
}

.desktop-nav button:hover::before {
  width: 100%;
}

.services-menu {
  position: relative;
}

.submenu-indicator {
  font-size: .7rem;
  margin-left: .4rem;
  color: var(--accent-primary);
}

/* dropdown submenu */
.services-menu .submenu {
  position: absolute;
  top: 2.2rem;
  left: 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  background: rgba(15,15,30,0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: .5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9),
              0 0 60px rgba(246, 92, 92, 0.4);
  z-index: 1001;
}

.services-menu:hover .submenu {
  display: flex;
}

.services-menu .submenu li button {
  width: 100%;
  text-align: left;
  font-size: .85rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.services-menu .submenu li button:hover {
  background: rgba(246, 92, 92, 0.12);
  color: var(--text-primary);
}

/* mobile toggle button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(30, 15, 15, 0.6);
  color: var(--text-primary);
  box-shadow: 0 20px 40px rgba(0,0,0,.8);
}

/* desktop breakpoint */
@media (min-width: 1300px) {
  .desktop-nav { display: block; }
  .mobile-menu-btn { display: none; }
}

/* =============================
   HERO SECTION
============================= */

.hero {
  min-height: 80vh;
  padding: calc(var(--header-height) + 2rem) var(--container-padding) var(--section-gap);
  padding-top: var(--header-height);
  position: relative;
  display: flex;
  align-items: stretch;
  text-align: left;
  z-index: 1;
  flex-direction: column;  
}

.hero-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: center;
  }
}

/* left side */
.hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(235, 37, 37, 0.08);
  border: 1px solid rgba(235, 37, 37, 0.4);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .5rem .75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(235, 37, 37, 0.4);
  margin-bottom: 3rem;
  justify-content: center;
}

.hero-badge .star-icon {
  color: rgb(235, 37, 37);
}

.hero-title {
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-bottom: 5rem;
}

@media (min-width: 480px) {
  .hero-services {
    grid-template-columns: 1fr 1fr;
  }
}

.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 60px rgba(241, 99, 99, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  position: relative;
}

.service-item .service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}

.service-item .check-icon {
  flex-shrink: 0;
  color: var(--accent-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.2;
  font-weight: 600;
  font-size: .95rem;
  padding: .9rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cta-button.primary {
  background: var(--accent-linear);
  color: #fff;
  box-shadow: var(--ring-glow);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 100px rgba(0,0,0,.9), var(--ring-glow);
}

.cta-button.secondary {
  background: rgba(246, 92, 92, 0.12);
  border-color: rgba(246, 92, 92, 0.4);
  color: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(246, 92, 92, 0.4);
}

.cta-button.secondary:hover {
  background: rgba(246, 92, 92, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 30px 100px rgba(0,0,0,.9),
              0 0 80px rgba(246, 92, 92, 0.6);
}

/* right side hero visuals */
.hero-visual {
  position: relative;
  z-index: 1;
}

@media (max-width: 1023px) {
  .hero-visual {
    order: -1;
  }
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-mockup {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  max-width: 380px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-mockup {
    margin-top: 0;
    max-width: 420px;
  }
}

.mockup-browser {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(0,0,0,.9),
              0 0 120px rgba(241, 99, 99, 0.4);
  overflow: hidden;
  position: relative;
}

.browser-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border-color-soft);
  padding: .75rem 1rem;
  font-size: .75rem;
  color: var(--text-secondary);
}

.browser-dots {
  display: flex;
  gap: .4rem;
}
.browser-dots span {
  width: .6rem;
  height: .6rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, #fff 0%, #f00 40%, #700 80%);
}
.browser-dots span:nth-child(2) {
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ff0 40%, #770 80%);
}
.browser-dots span:nth-child(3) {
  background: radial-gradient(circle at 30% 30%, #fff 0%, #0f0 40%, #073 80%);
}

.browser-url {
  color: var(--text-secondary);
  font-size: .7rem;
  line-height: 1.2;
  padding: .35rem .5rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

.browser-content {
  padding: 1.5rem 1rem 2rem;
}
.content-bars {
  display: grid;
  gap: .6rem;
}
.content-bars .bar {
  height: .6rem;
  border-radius: .4rem;
  background: linear-gradient(
    90deg,
    rgba(246, 92, 92, 0.5) 0%,
    rgba(241, 99, 99, 0.15) 100%
  );
}
.content-bars .bar.short {
  width: 60%;
}

/* Scroll indicator (sous le hero, responsive friendly) */
.scroll-indicator {
  margin-top: 3rem; /* espace entre le hero et l’indicateur */
  color: var(--text-dim);
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

/* flèche animée */
.scroll-arrow {
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  transform: rotate(-45deg);
}

/* légère animation de rebond */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* Optionnel : meilleure adaptation mobile */
@media (max-width: 768px) {
  .scroll-indicator {
    margin-top: 2rem;
    font-size: 0.75rem;
  }
}


/* =============================
   STATS SECTION
============================= */

.stats-section {
  width: 100%;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
}

.stats-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.3);
  transition: all var(--transition-mid);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(246, 92, 92, 0.4);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
  transform: translateY(-5px);
}

.stat-icon-wrapper {
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}

.stat-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .4rem;
  letter-spacing: -.03em;
}

.stat-label {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
}









/* =============================
   NEWS SECTION (slider) 
============================= */

.news-section {
  width: 100%;
  padding: var(--section-gap, 48px) var(--container-padding, 20px);
  position: relative;
  overflow: visible;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(246,92,92,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Header */
.news-real-title {
  max-width: var(--container-max, 1100px);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-primary, #222);
  position: relative;
}

.news-title-icon {
  color: var(--accent-primary, #f65c5c);
  filter: drop-shadow(0 10px 30px rgba(246,92,92,0.35));
  flex-shrink: 0;
  animation: pulse-icon 3s ease-in-out infinite;
}
@keyframes pulse-icon { 0%,100%{transform:scale(1)}50%{transform:scale(1.05)} }

/* Intro */
.news-intro {
  max-width: var(--container-max, 1100px);
  margin: 0 auto 2rem;
  color: var(--text-secondary, #666);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Viewer */
.news-viewer {
  max-width: var(--container-max, 1100px);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  outline: none;
  margin: 0 auto 2.5rem;
}

/* nav buttons */
.nav-btn {
  border: 2px solid rgba(0,0,0,0.06);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md,12px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--text-primary, #222);
  background: var(--bg-surface, transparent);
  flex-shrink: 0;
  z-index: 25;
}
.nav-btn:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.28); border-color: rgba(246,92,92,0.25); }
.nav-btn svg{ display:block; }

/* Track & slides - desktop: absolute slides for overlap/animation; mobile: static stacking */
.news-track {
  display: block;
  width: 100%;
  overflow: visible;
  flex: 1;
  min-height: 70vh; /* desktop default */
  position: relative;
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  border: 2px solid rgba(246,92,92,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 60px rgba(241,99,99,0.18);
  background: var(--bg-card, rgba(0,0,0,0.04));
  transition: all .24s ease;
  margin-top:50px;
}

/* slide - desktop: positioned absolutely inside track for animation */
.news-slide {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  gap: 2.5rem;
  opacity: 0;
  transform: translateX(5%);
  transition: opacity 0.6s cubic-bezier(.34,1.56,.64,1), transform 0.6s cubic-bezier(.34,1.56,.64,1);
  box-sizing: border-box;
  pointer-events: none;
  background: transparent;
  align-items: center;
}

.news-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

/* content columns */
.slide-body, .slide-media {
  flex: 1;
  height: 100%;
  box-sizing: border-box;
}

.slide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4rem;
}

.slide-category {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary, #f65c5c);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: inline-block;
  padding: .35rem .85rem;
  background: rgba(246,92,92,0.06);
  border-radius: 6px;
  width: fit-content;
}

.slide-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary, #111);
  line-height: 1.12;
}

.slide-excerpt {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-secondary, #666);
  line-height: 1.6;
}

/* CTA button (one per slide) */
.slide-cta {

    min-width: 0;
    text-align: center;
    white-space: nowrap;
    background: var(--accent-linear);
    border: 1px solid rgba(246, 92, 92, 0.5);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    padding: .75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--ring-glow), 0 20px 60px rgba(0, 0, 0, .8);
    transition: all var(--transition-fast);
}
.slide-cta:hover { 
  transform: translateY(-2px);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .9), 0 0 100px rgba(246, 92, 92, 0.6);
}

/* Media column */
.slide-media {
  border-radius: var(--radius-md,12px);
  overflow: hidden;
  position: relative;
  background: var(--bg-light, #111011);
  border: 1px solid rgba(246,92,92,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1);
  filter: brightness(.98) contrast(1.02);
}
.news-slide.is-active .slide-media img { transform: scale(1.06); }

/* dots */
.news-controls { max-width: var(--container-max,1100px); display:flex; align-items:center; gap:1.25rem; justify-content:center; margin:0 auto; padding-top:.5rem; }
.news-dots { display:flex; gap:.6rem; align-items:center; padding:.5rem; }
.news-dots button {
  width:12px; height:12px; border-radius:50%; background: rgba(160,40,40,0.5); border:none; cursor:pointer; padding:0; transition:transform .15s, background .15s;
}
.news-dots button[aria-current="true"] {
  background: var(--accent-primary,#f65c5c); width:28px; height:12px; border-radius:6px; box-shadow:0 6px 18px rgba(246,92,92,0.25);
}

/* focus */
.nav-btn:focus-visible, .news-dots button:focus-visible, .slide-cta:focus-visible { outline: 3px solid rgba(246,92,92,0.25); outline-offset: 3px; }

/* ====================
   RESPONSIVE: <= 600px (stack column, image above text)
   We switch slides to static flow so nothing is clipped on small screens
   ==================== */
@media (max-width: 600px) {
  .news-viewer { flex-direction: column; gap: 1rem; }
  .nav-btn { display: none; } /* hide arrows on small screens - dots remain */
  .news-track {
    min-height: auto;
    padding: 1.25rem;
    border-radius: 12px;
  }
  .news-slide {
    position: static;    /* stack naturally */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;          /* slides are visible stacked, but we'll only add is-active semantics */
    transform: none;
    pointer-events: auto;
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
  }
  /* hide all non-active slides visually but keep them in flow to preserve layout
     we keep is-active controlling the animated entrance but ensure minimal hidden state */
  .news-slide:not(.is-active) {
    display: none;
  }

  .slide-media { height: 220px; order: 0; }
  .slide-body { order: 1; padding-right: 0; }
  .slide-title { font-size: 1.25rem; }
  .slide-excerpt { font-size: 1rem; }
  .news-controls { justify-content: center; gap: .5rem; padding-top: .75rem; }
}

/* medium screens adjustments */
@media (max-width: 900px) {
  .slide-title { font-size: 1.6rem; }
  .news-track { min-height: 360px; padding: 1.5rem; }
}





/* =============================
   PORTFOLIO SECTION (slider)
============================= */

.portfolio-section {
  width: 100%;
  padding: var(--section-gap) var(--container-padding);
}

.portfolio-real-title {
  max-width: var(--container-max);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-primary);
}

.portfolio-title-icon {
  color: var(--accent-primary);
  filter: drop-shadow(0 10px 30px rgba(246, 92, 92, 0.6));
  flex-shrink: 0;
  animation: pulse-icon 3s ease-in-out infinite;
}

.portfolio-real-text {
  max-width: var(--container-max);
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* =============================
   RÉALISATIONS SECTION WRAPPER
============================= */

#realisations-section {
  background: transparent;
  text-align: center;
  padding-bottom: 60px;
  overflow: visible;
  position: relative;
}

/* =============================
   SEARCH / FILTER BAR
============================= */

.portfolio-search-controls {
  max-width: var(--container-max);
  margin: 3rem auto 0;
  padding: 0 var(--container-padding);
}

.portfolio-search-bar-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
}

@media (min-width: 768px) {
  .portfolio-search-bar-container {
    flex-direction: row;
    align-items: center;
  }
}

.portfolio-search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

@media (min-width: 768px) {
  .portfolio-search-input-wrapper {
    max-width: none;
  }
}

.portfolio-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: .75rem 1rem .75rem 2.5rem;
  color: var(--text-primary);
  font-size: .9rem;
  line-height: 1.2;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast);
}

.portfolio-search-input::placeholder {
  color: var(--text-dim);
}

.portfolio-search-input:focus {
  outline: none;
  border-color: rgba(246, 92, 92, 0.5);
  background: var(--bg-card-hover);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
}

.portfolio-search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--accent-primary);
  opacity: .8;
}

.portfolio-tech-filter {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: .75rem 1rem;
  color: var(--text-primary);
  font-size: .9rem;
  line-height: 1.2;
  min-width: 200px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
  transition: border-color var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast);
}

.portfolio-tech-filter:focus {
  outline: none;
  border-color: rgba(246, 92, 92, 0.5);
  background: var(--bg-card-hover);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
}

.portfolio-clear-filters-btn {
  background: var(--accent-linear);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .75rem 1rem;
  min-width: 110px;
  cursor: pointer;
  box-shadow: var(--ring-glow),
              0 20px 60px rgba(0,0,0,.8);
  transition: all var(--transition-fast);
}

.portfolio-clear-filters-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 100px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.6);
}

/* =============================
   LOADING SPINNER
============================= */

.portfolio-loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 0;
}

.portfolio-loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(246, 92, 92, 0.25);
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: portfolioSpin 1s linear infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.4);
}

@keyframes portfolioSpin {
  0%   { transform: rotate(0deg);   }
  100% { transform: rotate(360deg); }
}

/* =============================
   STATS (optionnel / au-dessus ou en-dessous du slider)
============================= */

.portfolio-stats-section {
  padding: 5rem 1rem;
}

.portfolio-stats-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.portfolio-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .portfolio-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portfolio-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-mid);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
  backdrop-filter: blur(10px);
}

.portfolio-stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(246, 92, 92, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
}

.portfolio-stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
}

.portfolio-stat-label {
  color: var(--text-secondary);
  margin-top: .5rem;
  font-size: .9rem;
  font-weight: 500;
}

/* =============================
   SLIDER WRAPPER
============================= */

.portfolio-realisations-section {
  background: transparent;
  text-align: center;
  padding-bottom: 60px;
  overflow: visible;
  position: relative;
}

.portfolio-slider-container {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 100px;
}

/* compteur x / y */
.portfolio-slide-counter {
  position: absolute;
  top: 20px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: .5rem .75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .8rem;
  line-height: 1.2;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.4);
  backdrop-filter: blur(10px);
  min-width: 3.5rem;
  text-align: center;
}

/* viewport du slider */
.portfolio-slider-viewport {
  position: relative;
  overflow: hidden;
  padding: 30px 80px 60px;
  margin: 0 20px;
  border-radius: var(--radius-xl);
  background: rgba(0,0,0,0); /* transparent pour voir le bg global */
}

/* track qui bouge */
.portfolio-slider-track {
  display: flex;
  gap: 20px;
  align-items: stretch;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* =============================
   CARD PROJET
============================= */

.portfolio-realisation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);

  color: var(--text-primary);
  text-align: left;

  flex: 0 0 auto;
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-mid);
}

@media (max-width:768px){
  .portfolio-realisation-card {
    box-shadow:none;
  }
}

.portfolio-realisation-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(246, 92, 92, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
}

.portfolio-real-img-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(246, 92, 92, 0.15) 0%, rgba(0,0,0,0) 60%);
}

@media (max-width:768px){
  .portfolio-real-img-container {
    height: 200px;
  }
}

.portfolio-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.8) contrast(1.1);
  transition: transform var(--transition-mid), filter var(--transition-mid);
}

.portfolio-realisation-card:hover .portfolio-real-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.2);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-mid);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.portfolio-realisation-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.portfolio-tech {
  background: var(--bg-card);
  color: var(--accent-primary);
  border: 1px solid rgba(246, 92, 92, 0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(246, 92, 92, 0.4);
  padding: .35rem .5rem;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 500;
  line-height: 1.2;
}

.portfolio-real-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -.03em;
  margin: 1rem 1rem .5rem;
}

.portfolio-real-card-text {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.5;
  margin: 0 1rem 1rem;
  min-height: 3.5rem; /* aide à lisser les hauteurs entre cartes */
  overflow: hidden;
}

.portfolio-card-stats {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 1rem;
  margin: 0 1rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.portfolio-stat {
  text-align: center;
  line-height: 1.2;
}

.portfolio-stat-number {
  font-size: .9rem;
  font-weight: 600;
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
}

.portfolio-stat-label {
  color: var(--text-dim);
  font-size: .7rem;
  margin-top: .25rem;
}

/* === BOUTONS EN BAS DE LA CARTE === */
.portfolio-card-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  padding: 1rem;
  margin-top: auto; /* colle les boutons au bas de la carte */
}

.portfolio-real-card-btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;

  background: var(--accent-linear);
  border: 1px solid rgba(246, 92, 92, 0.5);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .75rem 1rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
  cursor: pointer;

  box-shadow: var(--ring-glow),
              0 20px 60px rgba(0,0,0,.8);
  transition: all var(--transition-fast);
}

.portfolio-real-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 100px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.6);
}

/* =============================
   SLIDER NAV BUTTONS
============================= */

.portfolio-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
  transition: all var(--transition-mid);
}

.portfolio-slider-btn.prev {
  left: .5rem;
}

.portfolio-slider-btn.next {
  right: .5rem;
}

.portfolio-slider-btn:hover:not(.disabled) {
  background: var(--bg-card-hover);
  border-color: rgba(246, 92, 92, 0.4);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
  transform: translateY(-50%) translateY(-2px);
}

.portfolio-slider-btn.disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: translateY(-50%);
}

@media (max-width:768px){
  .portfolio-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .portfolio-slider-btn.prev { left: .25rem; }
  .portfolio-slider-btn.next { right: .25rem; }
}

/* =============================
   DOTS / INDICATEURS
============================= */

.portfolio-slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: .75rem;
}

.portfolio-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(246, 92, 92, 0.2);
  border: 1px solid rgba(246, 92, 92, 0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(246, 92, 92, 0.4);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-mid);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.portfolio-dot.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.7);
  transform: scale(1.15);
}

.portfolio-dot:hover {
  background: rgba(246, 92, 92, 0.3);
  transform: scale(1.2);
}

/* =============================
   PROGRESS BAR
============================= */

.portfolio-progress-bar {
  width: 80%;
  height: 4px;
  background: rgba(246, 92, 92, 0.15);
  border-radius: 2px;
  margin: 30px auto 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
}

.portfolio-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--accent-linear);
  box-shadow: 0 0 20px rgba(246, 92, 92, 0.6);
  transition: width .3s ease;
}

/* =============================
   CONTROLS / AUTOPLAY
============================= */

.portfolio-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 30px;
}

.portfolio-control-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  font-size: .9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
  transition: all var(--transition-mid);
}

.portfolio-control-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(246, 92, 92, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
}

.portfolio-control-label {
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.2;
}

/* =============================
   MODALE PROJET
============================= */

.portfolio-project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: portfolioFadeIn .3s ease-out;
}

@keyframes portfolioFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.portfolio-project-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
  max-width: 1000px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  animation: portfolioSlideIn .3s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-card);
  z-index: 2000;
}

@keyframes portfolioSlideIn {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.portfolio-project-modal::-webkit-scrollbar {
  width: 8px;
}
.portfolio-project-modal::-webkit-scrollbar-track {
  background: var(--bg-card);
}
.portfolio-project-modal::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}
.portfolio-project-modal::-webkit-scrollbar-thumb:hover {
  background: rgb(241, 99, 99);
}

/* header modale */
.portfolio-modal-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-modal-title-section {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.portfolio-modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -.03em;
  margin: 0;
}

.portfolio-status-badge {
  padding: .4rem .6rem;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  background: rgba(0,0,0,.3);
  color: var(--text-secondary);
}

.portfolio-status-badge.completed {
  background: rgba(34,197,94,.1);
  border-color: rgba(34,197,94,.4);
  color: rgb(34,197,94);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 40px rgba(34,197,94,.4);
}

.portfolio-modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.modal-btn {
  background: var(--accent-linear);
  border: 1px solid rgba(246, 92, 92, 0.5);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .6rem .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--ring-glow),
              0 20px 60px rgba(0,0,0,.8);
  transition: all var(--transition-fast);
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 100px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.6);
}

.portfolio-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .6rem .75rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
  transition: all var(--transition-fast);
}

.portfolio-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(246, 92, 92, 0.4);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
}

.portfolio-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast),
              text-shadow var(--transition-fast);
}

.portfolio-close-btn:hover {
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(246, 92, 92, 0.6);
}

.portfolio-heart-icon.liked {
  color: rgb(236,72,153);
  text-shadow: 0 0 20px rgba(236,72,153,.6);
}

.portfolio-like-count {
  font-weight: 600;
  color: var(--text-primary);
}

/* =============================
   CAROUSEL IMAGE DANS LA MODAL
============================= */

.portfolio-modal-image-section {
  position: relative;
}

.portfolio-image-carousel {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(246, 92, 92, 0.15) 0%, rgba(0,0,0,0) 60%);
}

.portfolio-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
  transition: all var(--transition-mid);
  z-index: 10;
}

.portfolio-carousel-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(246, 92, 92, 0.4);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
  transform: translateY(-50%) translateY(-2px);
}

.portfolio-carousel-btn.prev {
  left: 1rem;
}

.portfolio-carousel-btn.next {
  right: 1rem;
}

.portfolio-carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.8);
  transition: all var(--transition-fast);
}

.indicator.active {
  background: var(--accent-primary);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.7);
  transform: scale(1.15);
}

/* =============================
   CONTENU MODALE
============================= */

.portfolio-modal-content {
  padding: 30px;
}

.portfolio-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.portfolio-description-section h3,
.portfolio-info-section h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.portfolio-description-section h3 {
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-description-section p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: .95rem;
  margin-bottom: 1rem;
}

.portfolio-features-section h4,
.portfolio-info-group h4 {
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 1rem 0 .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.portfolio-features-section h4 {
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portfolio-features-list li {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.4;
  padding: .5rem 0 .5rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.portfolio-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: .55rem;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1;
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* colonne droite */
.portfolio-info-group {
  margin-bottom: 1.25rem;
}

.portfolio-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tech-tag,
.portfolio-tech-tag {
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(246, 92, 92, 0.4);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .4rem .6rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(246, 92, 92, 0.4);
}

.portfolio-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(90px,1fr));
  gap: .75rem;
}

.stat-item,
.portfolio-stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  padding: .75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
}

.stat-value,
.portfolio-stat-value {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
  display: block;
}

.stat-label,
.portfolio-stat-label {
  font-size: .7rem;
  color: var(--text-dim);
  margin-top: .25rem;
  line-height: 1.2;
}

.portfolio-detail-items,
.detail-items {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.detail-item,
.portfolio-detail-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding: .5rem 0;
  font-size: .8rem;
  line-height: 1.4;
}

.detail-label,
.portfolio-detail-label {
  color: var(--text-dim);
  font-weight: 500;
}

.detail-value,
.portfolio-detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.portfolio-metrics,
.metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.portfolio-metric,
.metric {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  padding: .75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
}

.portfolio-metric-icon,
.metric-icon {
  font-size: 1rem;
  color: var(--accent-primary);
  margin-bottom: .5rem;
  text-shadow: 0 0 20px rgba(246, 92, 92, 0.6);
}

.portfolio-metric-value,
.metric-value {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
}

.portfolio-metric-label,
.metric-label {
  color: var(--text-dim);
  font-size: .7rem;
  margin-top: .25rem;
  line-height: 1.2;
}

/* =============================
   MODAL FOOTER + CONTACT
============================= */

.portfolio-modal-footer,
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.portfolio-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .75rem 1rem;

  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio-cta-btn.primary,
.cta-btn.primary {
  background: var(--accent-linear);
  color: #fff;
  border-color: rgba(246, 92, 92, 0.5);
  box-shadow: var(--ring-glow),
              0 20px 60px rgba(0,0,0,.8);
}

.portfolio-cta-btn.primary:hover,
.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 100px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.6);
}

.portfolio-cta-btn.secondary {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
}

.portfolio-cta-btn.secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(246, 92, 92, 0.4);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
}

.portfolio-cta-btn.tertiary,
.cta-btn.tertiary {
  background: rgba(246, 92, 92, 0.12);
  border-color: rgba(246, 92, 92, 0.4);
  color: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(246, 92, 92, 0.3);
}

.portfolio-cta-btn.tertiary:hover,
.cta-btn.tertiary:hover {
  background: rgba(246, 92, 92, 0.18);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
}

.portfolio-contact-form-section,
.contact-form-section {
  margin-top: 30px;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.4);
}

.portfolio-contact-form-header,
.contact-form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 25px;
}

.portfolio-contact-form-header h3,
.contact-form-header h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  letter-spacing: -.02em;
}

.portfolio-close-form-btn,
.close-form-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast),
              text-shadow var(--transition-fast);
}

.portfolio-close-form-btn:hover,
.close-form-btn:hover {
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(246, 92, 92, 0.6);
}

.portfolio-contact-options,
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: .75rem;
}

.portfolio-contact-option,
.contact-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-mid);
  box-shadow: 0 20px 60px rgba(0,0,0,.8),
              0 0 60px rgba(241, 99, 99, 0.25);
}

.portfolio-contact-option:hover,
.contact-option:hover {
  border-color: rgba(246, 92, 92, 0.4);
  box-shadow: 0 30px 120px rgba(0,0,0,.9),
              0 0 100px rgba(246, 92, 92, 0.5);
  transform: translateY(-2px);
}

.portfolio-contact-icon,
.contact-icon {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent-primary);
  min-width: 2rem;
  text-shadow: 0 0 20px rgba(246, 92, 92, 0.6);
  animation: pulse-icon 3s ease-in-out infinite;
}

.portfolio-contact-text h4,
.contact-text h4 {
  color: var(--text-primary);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .25rem;
}

.portfolio-contact-text p,
.contact-text p {
  color: var(--text-secondary);
  font-size: .8rem;
  line-height: 1.4;
  margin: 0;
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 1024px) {
  .portfolio-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .portfolio-slide-counter {
    top: 10px;
    right: 15px;
    font-size: .7rem;
    padding: .5rem .6rem;
  }

  .portfolio-slider-viewport {
    padding: 0 60px 40px;
  }

  .portfolio-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .portfolio-project-modal {
    margin: 10px;
    max-height: 95vh;
  }

  .portfolio-modal-header {
    padding: 20px;
  }

  .portfolio-modal-content {
    padding: 20px;
  }

  .portfolio-image-carousel {
    height: 250px;
  }

  .portfolio-modal-footer {
    flex-direction: column;
  }

  .portfolio-cta-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .portfolio-contact-options {
    grid-template-columns: 1fr;
  }

  .portfolio-card-stats {
    flex-direction: column;
    text-align: center;
  }

  .portfolio-metrics {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .portfolio-slider-viewport {
    padding: 0 20px 40px;
  }

  .portfolio-slider-btn.prev { left: .25rem; }
  .portfolio-slider-btn.next { right: .25rem; }

  .portfolio-real-card-text {
    min-height: auto;
  }

  .portfolio-metric,
  .metric {
    min-width: auto;
  }

  .portfolio-realisation-card:hover {
    transform: none;
    box-shadow: 0 30px 120px rgba(0,0,0,.9),
                0 0 100px rgba(246, 92, 92, 0.5);
  }

  .portfolio-realisation-card:hover .portfolio-real-img {
    transform: none;
  }
}


/* =============================
   TARIFS / PRICING
============================= */

.tarifs-section {
  width: 100%;
  padding: var(--section-gap) var(--container-padding);
}

.tarifs-title {
  max-width: var(--container-max);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-primary);
}

.tarif-icon {
  color: var(--accent-primary);
  filter: drop-shadow(0 20px 60px rgba(246, 92, 92, 0.5));
  animation: pulse-icon 3s ease-in-out infinite;
}

.matrix-side {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text-primary);
}
.matrix-side span:first-child {
  font-size: 2rem;
  line-height: 1.2;
  background: var(--accent-linear);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tarifs-text {
  max-width: var(--container-max);
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Navigation par onglets */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 60px 0 40px;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: rgba(20, 20, 30, 0.8);
  border: 2px solid rgba(246, 92, 92, 0.35); /* violet clair */
  border-radius: 50px;
  color: #dcd3ff; /* texte lavande */
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(10px);
}

.tab-btn:hover {
  background: rgba(246, 92, 92, 0.08);
  border-color: #de3A3A;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(149, 29, 29, 0.5); /* glow violet profond */
}

.tab-btn.active {
  background: var(--accent-linear);
  border-color: #de3A3A;
  color: #fff;
  box-shadow: 0 10px 30px rgba(246, 92, 92, 0.6);
}

.tab-btn i {
  transition: transform 0.3s ease;
  color: #de3A3A;
}

.tab-btn:hover i,
.tab-btn.active i {
  transform: scale(1.2);
  color: #fff;
}

/* Container principal */
.pricing-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
}

.pricing-category {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pricing-category[data-category].show {
  opacity: 1;
  transform: translateY(0);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.pricing-grid.single {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cartes de tarifs */
.pricing-card {
  background: radial-gradient(circle at 20% 20%, rgba(246, 92, 92, 0.07) 0%, rgba(10,10,16,1) 60%);
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(246, 92, 92, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(246, 92, 92, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(149, 29, 29, 0.6);
  border-color: #de3A3A;
}

.pricing-card > * {
  position: relative;
  z-index: 2;
}

/* Badge populaire */
.popular-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: linear-gradient(45deg, #de3A3A, #d928c4);
  color: white;
  padding: 8px 40px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(45deg);
  z-index: 3;
  box-shadow: 0 4px 15px rgba(246, 92, 92, 0.5);
}

.pricing-card.popular {
  border-color: #de3A3A;
  transform: scale(1.05);
  box-shadow: 0 25px 60px rgba(246, 92, 92, 0.5);
}

.pricing-card.popular .card-header {
  background: linear-gradient(135deg, rgba(246, 92, 92, 0.18), rgba(24, 16, 48, 0.6));
  box-shadow: 0 20px 50px rgba(246, 92, 92, 0.4);
}

.pricing-card.large {
  grid-column: 1 / -1;
}

/* Header des cartes */
.card-header {
  background: radial-gradient(circle at 50% 0%, rgba(246, 92, 92, 0.18) 0%, rgba(15, 12, 24, 0.6) 60%);
  padding: 40px 30px;
  text-align: center;
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid rgba(246, 92, 92, 0.25);
}

.plan-icon {
  color: #de3A3A;
  font-size: 48px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(246, 92, 92, 0.6));
}

.pricing-card:hover .plan-icon {
  color: #ffffff;
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(246, 92, 92, 0.9));
}

.plan-name {
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  margin: 15px 0 25px;
  letter-spacing: -0.03em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.price-amount {
  font-size: 48px;
  font-weight: bold;
  color: #de3A3A;
  text-shadow: 0 0 15px rgba(246, 92, 92, 0.6);
}

.price-period {
  font-size: 18px;
  color: #c79c9c;
}

/* Features des cartes */
.card-features {
  padding: 30px;
}

.feature,
.service-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  transition: all 0.3s ease;
}

.feature:last-child {
  border-bottom: none;
}

.feature:hover,
.service-item:hover {
  background: rgba(246, 92, 92, 0.06);
  padding-left: 10px;
  box-shadow: 0 20px 40px rgba(149, 29, 29, 0.4);
}

.feature.included svg {
  color: #4ade80; /* vert validation reste vert */
}

.feature.excluded svg {
  color: #ff4444;
}

.service-item i {
  color: #de3A3A;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(246, 92, 92, 0.5));
}

.service-item:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px rgba(246, 92, 92, 0.8));
}

.feature span,
.service-item span {
  color: #ffd3d3;
  flex: 1;
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
}

/* Notes explicatives */
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 30px;
  padding: 15px;
  background: rgba(246, 92, 92, 0.08);
  border: 1px solid rgba(246, 92, 92, 0.3);
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(149, 29, 29, 0.4);
}

.pricing-note i {
  color: #de3A3A;
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-note p {
  color: #ffc3c3;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* Boutons */
.choose-plan-btn {
  width: calc(100% - 60px);
  margin: 0 30px 30px;
  padding: 18px;
  background: var(--accent-linear);
  border: 0;
  border-radius: 50px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(149, 29, 29, 0.6);
}

.choose-plan-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.8s ease;
}

.choose-plan-btn:hover::before {
  left: 100%;
}

.choose-plan-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 60px rgba(246, 92, 92, 0.6);
}

/* Section infos */
.pricing-info {
  margin-top: 80px;
  padding: 60px 20px;
  background: rgba(24, 12, 12, 0.8);
  border-radius: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(246, 92, 92, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.info-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(246, 92, 92, 0.25);
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  display: flex;
  flex-direction: column;
  align-items: center; 
}

.info-card:hover {
  border-color: #de3A3A;
  background: rgba(246, 92, 92, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(149, 29, 29, 0.5);
}

.info-card svg {
  color: #de3A3A;
  font-size: 32px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(246, 92, 92, 0.7));
}

.info-card:hover svg {
  color: #ffffff;
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px rgba(246, 92, 92, 1));
}

.info-card h4 {
  color: #ffffff;
  font-size: 18px;
  margin: 15px 0 10px;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.info-card p {
  color: #c79c9c;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pricing-tabs {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .tab-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .tarifs-title {
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 20px 10px;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card:hover {
    transform: translateY(-5px);
  }

  .price-amount {
    font-size: 36px;
  }

  .plan-name {
    font-size: 24px;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .tarifs-title {
    padding: 0px;
  }

  .pricing-container {
    padding: 0 10px;
  }

  .card-header {
    padding: 30px 20px;
  }

  .card-features {
    padding: 20px;
  }

  .pricing-info {
    padding: 40px 15px;
  }
}











/* Badge "Nouveau" sur l'onglet Pack Web */
.pricing-tabs .tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.pill-new {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: var(--accent-linear);          /* rouge M-Informatique */
  color: #fff;
  box-shadow: 0 0 0 2px rgba(222,58,58,.12), 0 4px 12px rgba(222,58,58,.35);
  transform: translateY(-1px);
}

/* Optionnel : petit effet pulse subtil */
@keyframes newPulse {
  0%   { box-shadow: 0 0 0 0 rgba(222, 58, 58, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(222, 58, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(222, 58, 58, 0); }
}
.pill-new {
  animation: newPulse 2.5s ease-out infinite;
}

/* Si tu as un état .active sur le bouton, on garde la lisibilité */
.pricing-tabs .tab-btn.active .pill-new {
  background: #fff;
  color: #de3A3A;
  box-shadow: 0 0 0 2px rgba(222,58,58,.2), 0 4px 12px rgba(0,0,0,.2);
}



/* =============================
   ABOUT / À PROPOS
============================= */

.about-section {
  width: 100%;
  padding: var(--section-gap) var(--container-padding);
}

.about-icon {
  color: var(--accent-primary);
  filter: drop-shadow(0 20px 60px rgba(246, 92, 92, 0.5));
  animation: pulse-icon 3s ease-in-out infinite;
}

.about-title {
  max-width: var(--container-max);
  margin: 0 auto 1.5rem;
}

.about-text-title {
  max-width: var(--container-max);
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* =============================
   À PROPOS 
============================= */

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Section profil */
.profile-section {
  margin-bottom: 80px;
  margin-top: 80px;
}

.profile-card {
  background: var(--bg-card);
  border-radius: 30px;
  padding: 50px;
  margin: 0 auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(246, 92, 92, 0.3);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(246, 92, 92, 0.07), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(246, 92, 92, 0.25);
  border-color: #de3A3A;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

/* Avatar */
.profile-avatar {
  position: relative;
  margin-bottom: 30px;
}

.avatar-ring {
  width: 120px;
  height: 120px;
  border: 3px solid #de3A3A;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #302121, #1f1a1a);
  position: relative;
  overflow: hidden;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, #de3A3A, transparent);
  animation: rotate-border 4s linear infinite;
  z-index: -1;
}

@keyframes rotate-border {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-icon {
  color: #de3A3A;
  transition: all 0.4s ease;
}

.profile-card:hover .avatar-icon {
  color: #fff;
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px #de3A3A);
}

/* Status */
.status-text {
  color: #22d3ee;
  font-size: 14px;
  font-weight: 600;
}

/* Nom & sous-titre */
.profile-name {
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  margin: 20px 0 10px;
  background: linear-gradient(45deg, #fff, #de3A3A);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.profile-subtitle {
  color: #d0b8b8;
  font-size: 18px;
  margin-bottom: 40px;
  text-align: center;
}

/* Statistiques */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: rgba(246, 92, 92, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(246, 92, 92, 0.3);
  transition: all 0.4s ease;
}

.stat:hover {
  background: rgba(246, 92, 92, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(246, 92, 92, 0.3);
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: bold;
  color: #de3A3A;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(246, 92, 92, 0.5);
}

.stat-label {
  color: #dcdcdc;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline */
.story-section {
  margin-bottom: 80px;
}

.story-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #de3A3A, #d928c4);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  opacity: 0.6;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.active,
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
  padding-right: 40px;
  padding-left: 40px;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #de3A3A, #d928c4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 30px;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.timeline-icon svg {
  color: white;
}

.timeline-content {
  flex: 1;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid rgba(246, 92, 92, 0.2);
  text-align: left;
  transition: all 0.4s ease;
}

.timeline-content:hover {
  border-color: #de3A3A;
  box-shadow: 0 10px 30px rgba(246, 92, 92, 0.25);
}

.timeline-content h4 {
  color: #de3A3A;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.timeline-content p {
  color: #dcdcdc;
  line-height: 1.6;
  margin: 0;
}

/* Compétences */
.skills-section {
  margin-bottom: 80px;
}

.section-title {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title svg {
  color: #de3A3A;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid rgba(246, 92, 92, 0.2);
  transition: all 0.4s ease;
}

.skill-category:hover {
  border-color: #de3A3A;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(246, 92, 92, 0.3);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  color: #de3A3A;
  font-size: 20px;
  font-weight: bold;
}

.skill-item {
  margin-bottom: 20px;
  transform: translateY(20px);
  opacity: 1;
  transition: all 0.6s ease;
}

.skill-name {
  color: #dcdcdc;
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--accent-linear);
  border-radius: 4px;
  width: 0%;
  transition: width 2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: skill-shine 2s infinite;
}

@keyframes skill-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}



/* CTA */
.about-cta {
  background: var(--bg-card);
  border-radius: 30px;
  padding: 50px;
  border: 2px solid rgba(246, 92, 92, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  justify-self: center;
  margin: 0 auto;
}

.about-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(246, 92, 92, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-cta:hover::before {
  opacity: 1;
}

.about-cta:hover {
  border-color: #de3A3A;
  box-shadow: 0 20px 50px rgba(246, 92, 92, 0.3);
}

.cta-content h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 15px;
}

.cta-content p {
  color: #c79c9c;
  font-size: 18px;
  margin-bottom: 30px;
}

.cta2-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  align-items: center;
  padding: 18px 30px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  justify-content: center; /* centre le contenu interne */
  margin: 0 1vw;          /* centre le bouton lui-même */
  background: var(--accent-linear);
  color: #fff;
  box-shadow: var(--ring-glow);
  font-size: .9rem;
  line-height: 1.2;
  display: inline-flex;
  gap: .5rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cta-btn.primary {
  background: var(--accent-linear);

}

.cta-btn.secondary {
  background: transparent;
  color: #de3A3A;
  border: 2px solid #de3A3A;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  left: -100%;
  transition: left 0.6s ease;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(246, 92, 92, 0.5);
}

.cta-btn.secondary:hover {
  background: #de3A3A;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(246, 92, 92, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
  }

  .timeline-item:nth-child(even) {
    flex-direction: column;
  }

  .profile-card {
    padding: 30px 20px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cta2-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}


/* =============================
   CONTACT SECTION
============================= */

.contact-section {
  width: 100%;
  padding: var(--section-gap) var(--container-padding);
}

.contact-title {
  max-width: var(--container-max);
  margin: 0 auto 1rem;
}

.contact-text-title {
  max-width: var(--container-max);
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* =======================
   CONTACT 
   ======================= */

/* Container principal */
.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Section formulaire */
.form-section {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  height:100%;
}
.form-section.visible { opacity: 1; transform: translateX(0); }

.form-card {
  background: var(--bg-card);
  border-radius: 25px;
  padding: 40px;
  border: 2px solid rgba(246, 92, 92, 0.30); /* #de3A3A */
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  height:100%;
  box-shadow: 0 30px 120px rgba(0,0,0,.9), 0 0 120px rgba(246, 92, 92, 0.35);
}
.form-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent, rgba(246, 92, 92, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.form-card:hover::before { opacity: 1; }
.form-card:hover {
  border-color: #de3A3A;
  box-shadow: 0 20px 60px rgba(246, 92, 92, 0.35), 0 0 140px rgba(241, 99, 99, 0.35);
}
.form-card > * { position: relative; z-index: 1; }

.form-header { text-align: center; margin-bottom: 40px; }
.form-icon {
  color: #de3A3A;
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 14px rgba(246, 92, 92, 0.7));
}
@keyframes pulse-violet {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(246, 92, 92, 0.5)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(246, 92, 92, 0.9)); }
}
.form-header h3 { color: #ffffff; font-size: 28px; font-weight: 700; margin: 15px 0 10px; }
.form-header p  { color: #c7b8b8; font-size: 16px; margin: 0; }

/* Formulaire moderne */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.input-wrapper, .textarea-wrapper, .select-wrapper {
  position: relative; display: flex; align-items: center;
}

.input-icon {
  position: absolute; left: 15px; z-index: 3;
  color: #de3A3A;
  transition: all 0.3s ease;
  font-size: 18px;
  filter: drop-shadow(0 0 10px rgba(246, 92, 92, 0.6));
}

.input-wrapper input,
.textarea-wrapper textarea,
.select-wrapper select {
  width: 100%;
  padding: 18px 20px 18px 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
  z-index: 2; position: relative;
}
.input-wrapper input:focus,
.textarea-wrapper textarea:focus,
.select-wrapper select:focus {
  outline: none;
  border-color: #de3A3A;
  background: rgba(246, 92, 92, 0.12);
  box-shadow: 0 0 25px rgba(246, 92, 92, 0.35);
  transform: translateY(-2px);
}
.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
  transform: translateY(-50px) translateX(-15px) scale(0.85);
  color: #de3a3a; font-weight: 600;
}
/* Correction spécifique pour textarea */
.textarea-wrapper textarea:focus + label,
.textarea-wrapper textarea:not(:placeholder-shown) + label {
  transform: translateY(-90px) translateX(-15px) scale(0.85);
  color: #de3a3a; font-weight: 600;
}

.input-wrapper label,
.textarea-wrapper label {
  position: absolute; left: 50px; top: 50%; transform: translateY(-50%);
  color: #bba7a7; font-size: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  padding: 0 10px; z-index: 3;
}

.input-border, .select-border {
  position: absolute; bottom: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, #de3A3A, #d928c4);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 0 0 15px 15px;
}
.input-wrapper input:focus ~ .input-border,
.textarea-wrapper textarea:focus ~ .input-border,
.select-wrapper select:focus ~ .select-border { width: 100%; }

.char-counter {
  position: absolute; bottom: 10px; right: 15px;
  font-size: 12px; color: #a68f8f; z-index: 4;
}

/* Select */
.select-wrapper select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238B5CF6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 15px center; background-repeat: no-repeat; background-size: 20px;
  padding-right: 45px;
}
.select-wrapper select option {
  background: #121216; color: #ffffff; padding: 10px;
}

/* Messages d'erreur */
.error-message {
  color: #ff6b6b; font-size: 14px; margin-top: 8px;
  opacity: 0; transform: translateY(-10px);
  transition: all 0.3s ease; display: block; min-height: 20px;
}
.error-message.show { opacity: 1; transform: translateY(0); }

/* Bouton d'envoi */
.form-actions { text-align: center; margin-top: 40px; }
.submit-btn {
  align-items: center;
  padding: 18px 30px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  justify-content: center; /* centre le contenu interne */
  margin: 0 1vw;          /* centre le bouton lui-même */
  background: var(--accent-linear);
  color: #fff;
  box-shadow: var(--ring-glow);
  font-size: .9rem;
  line-height: 1.2;
  display: inline-flex;
  gap: .5rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.btn-content { display: flex; align-items: center; justify-content: center; gap: 10px; transition: opacity 0.3s ease; }
.btn-loader  { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.3s ease; }
.submit-btn.loading .btn-content { opacity: 0; }
.submit-btn.loading .btn-loader  { opacity: 1; }
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white; border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  left: -100%;
  transition: left 0.6s ease;
}
.submit-btn:hover::before { left: 100%; }
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(246, 92, 92, 0.5);
}

/* Section infos */
.info-section {
  opacity: 0; transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.info-section.visible { opacity: 1; transform: translateX(0); }

/* Carte de visite */
.business-card {
  background: var(--bg-card);
  border-radius: 25px;
  padding: 40px;
  border: 2px solid rgba(246, 92, 92, 0.30);
  margin-bottom: 30px;
  position: relative; overflow: hidden; transition: all 0.4s ease;
  box-shadow: 0 30px 120px rgba(0,0,0,.9), 0 0 120px rgba(246, 92, 92, 0.35);
}
.business-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent, rgba(246, 92, 92, 0.08), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.business-card:hover::before { opacity: 1; }
.business-card:hover {
  border-color: #de3A3A;
  box-shadow: 0 20px 60px rgba(246, 92, 92, 0.35), 0 0 140px rgba(241, 99, 99, 0.35);
}
.business-card > * { position: relative; z-index: 1; }

.card-header { display: flex; align-items: center; margin-bottom: 30px; text-align: left; flex-direction: column; }
.avatar-section { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.avatar-ring {
  width: 80px; height: 80px; border: 3px solid #de3A3A; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #221b1b, #161212);
  position: relative; overflow: hidden;
}
.avatar-ring::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, #de3A3A, transparent);
  animation: rotate-border 3s linear infinite; z-index: -1;
}
@keyframes rotate-border { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.avatar-icon { color: #de3a3a; font-size: 32px; }

/* Badge statut */
.status-badge {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 6px; line-height: 1; color: inherit;
}
.status-dot { display: block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: currentColor; animation: none; }
.status-open { color: #00ff41; }       /* vert crédible */
.status-closed { color: #de3a3a; align-items: center !important;}
.status-open .status-dot { animation: pulse-green 2s infinite; }
.status-closed .status-dot { animation: pulse-red 2s infinite; }
@keyframes pulse-green { 0%,100%{ box-shadow:0 0 0 0 #00ff41;} 50%{ box-shadow:0 0 0 8px rgba(16,185,129,0);} }
@keyframes pulse-red   { 0%,100%{ box-shadow:0 0 0 0 #de3a3a;} 50%{ box-shadow:0 0 0 8px rgba(239,68,68,0);} }

.label { color: #a68f8f; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; text-align: left; }
.value { color: #ffffff; font-size: 14px; line-height: 1.4; text-align: left; }

/* Info générales */
.card-info h3 { color: #ffffff; font-size: 22px; margin: 0 0 5px 0; font-weight: 800; letter-spacing: -.02em; }
.card-info p  { color: #c7b8b8; margin: 0; font-size: 14px; }

/* Contact global */
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.email-link, .phone-link { cursor: pointer; transition: color 0.3s ease; color: #ffcfcf; }
.email-link:hover, .phone-link:hover { color: #de3a3a; }

/* Réseaux sociaux */
.social-section {
  background: var(--bg-card); 
  border-radius: 25px; 
  padding: 40px;
  border: 2px solid rgba(246, 92, 92, 0.30);
  transition: all 0.4s ease;
  box-shadow: 0 30px 120px rgba(0,0,0,.9), 0 0 120px rgba(246, 92, 92, 0.35);
}
.social-section:hover {
  border-color: #de3A3A;
  box-shadow: 0 20px 60px rgba(246, 92, 92, 0.35), 0 0 140px rgba(241, 99, 99, 0.35);
}
.social-section h4 {
  color: #ffffff; font-size: 20px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.social-section h4 i { color: #de3A3A; filter: drop-shadow(0 0 10px rgba(246, 92, 92, 0.6)); }

.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.social-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05); border-radius: 12px;
  text-decoration: none; color: #ffffff;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
}
.social-icon {
  width: 35px; height: 35px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(246, 92, 92, 0.25);
  transition: all 0.4s ease;
}
.social-link:hover {
  background: rgba(246, 92, 92, 0.12);
  border-color: #de3A3A;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(246, 92, 92, 0.30);
}
.social-link:hover .social-icon {
  background: #de3A3A; transform: scale(1.1);
}
.social-link span { font-size: 14px; font-weight: 600; }

/* Carte */
.map-section {
  background: var(--bg-card); 
  border-radius: 25px; 
  padding: 30px;
  border: 2px solid rgba(246, 92, 92, 0.30);
  transition: all 0.4s ease; 
  margin-left: 20%; 
  margin-right: 20%;
  box-shadow: 0 30px 120px rgba(0,0,0,.9), 0 0 120px rgba(246, 92, 92, 0.35);
}
.map-section:hover {
  border-color: #de3A3A;
  box-shadow: 0 20px 60px rgba(246, 92, 92, 0.35), 0 0 140px rgba(241, 99, 99, 0.35);
}
.map-section h4 {
  color: #ffffff; font-size: 20px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.map-section h4 i { color: #de3a3a; }
.map-container { position: relative; border-radius: 15px; overflow: hidden; }
.map-element {
  width: 100%; height: 250px; border-radius: 15px;
  filter: grayscale(100%) contrast(120%) brightness(0.85);
  transition: filter 0.4s ease;
}
.map-element:hover { filter: grayscale(50%) contrast(105%) brightness(1); }
.map-overlay { position: absolute; top: 10px; right: 10px; }
.map-fullscreen {
  background: rgba(246, 92, 92, 0.9);
  border: none; width: 40px; height: 40px;
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(246, 92, 92, 0.35);
}
.map-fullscreen:hover {
  background: #de3A3A; transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(246, 92, 92, 0.45);
}

#map {
  overflow: hidden !important;   /* pas de scroll interne */
}

/* Effet map uniquement en sombre */
:root[data-theme="dark"] .map-element {
  filter: grayscale(100%) contrast(120%) brightness(0.85);
}
:root[data-theme="dark"] .map-element:hover {
  filter: grayscale(50%) contrast(105%) brightness(1);
}

/* En clair : map nette, sans filtre */
:root[data-theme="light"] .map-element {
  filter: none;
}

:root[data-theme="light"] .svc-card {
  background: rgba(255, 240, 240, 0.9);
}

:root[data-theme="light"] .svc-card:hover {
  background: #fff;
}


/* FAQ Section */
.faq-section {
  margin-top: 60px; padding: 50px; background: var(--bg-card);
  border-radius: 25px; border: 2px solid rgba(246, 92, 92, 0.30);
  position: relative; z-index: 2;
  box-shadow: 0 30px 120px rgba(0,0,0,.9), 0 0 120px rgba(246, 92, 92, 0.35);
}
.faq-section h3 {
  color: #ffffff; font-size: 28px; margin-bottom: 40px; text-align: center;
}
.faq-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.faq-item {
      text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(246, 92, 92, 0.25);
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-item:hover {
  border-color: #de3A3A;
  background: rgba(246, 92, 92, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(149, 29, 29, 0.5);
}

.faq-item svg {
  color: #de3A3A;
  font-size: 32px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(246, 92, 92, 0.7));
}

.faq-item:hover svg {
  color: #ffffff;
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px rgba(246, 92, 92, 1));
}




.faq-icon { color: #de3a3a; font-size: 32px; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(246, 92, 92, 0.6)); }
.faq-content h4 { color: #ffffff; font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.faq-content p  { color: #c7b8b8; line-height: 1.6; margin: 0; }

/* Notifications */
#notification-container {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  display: flex; flex-direction: column; gap: 10px;
}
.notification {
  background: #de3A3A; color: white; padding: 15px 20px; border-radius: 15px;
  display: flex; align-items: center; gap: 10px; max-width: 400px;
  opacity: 0; transform: translateX(100px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 25px rgba(246, 92, 92, 0.35);
  backdrop-filter: blur(10px);
}
.notification.success { background: #10b981; color: #00150e; }
.notification.show { opacity: 1; transform: translateX(0); }

/* Responsive */
@media (max-width: 1024px) {
  .contact-container { grid-template-columns: 1fr; gap: 40px; }
  .map-section { margin: 0; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 768px) {
  .contact-title { flex-direction: row; gap: 10px; flex-wrap: nowrap; padding: 20px 10px; }
  .contact-text-title { font-size: 24px; padding: 30px 0; gap: 15px; }
  .form-card, .business-card, .social-section, .map-section { padding: 25px 20px; }
  .map-section { margin: 0; }
  .card-header { flex-direction: column; text-align: center; gap: 15px; }
  .social-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-section { padding: 30px 20px; }
}
@media (max-width: 480px) {
  .contact-title { padding: 0; height:150px; }
  .contact-container { padding: 0 10px; }
  .map-section { margin: 0; }
  .form-card { padding: 20px 15px; }
  .input-wrapper input, .textarea-wrapper textarea, .select-wrapper select {
    padding: 15px 15px 15px 45px; font-size: 14px;
  }
  .input-wrapper label, .textarea-wrapper label { left: 45px; font-size: 14px; }
  .input-icon { left: 12px; font-size: 16px; }
  #notification-container { left: 10px; right: 10px; top: 10px; }
  .notification { max-width: none; width: 100%; }
}


/* =============================
   FOOTER
============================= */

/* Footer */

#footer {
  background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 2px solid #de3A3A;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #de3A3A, transparent);
  animation: pulse-line 3s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Contenu principal */
.footer-main {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

/* Section marque */
.footer-brand {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out 0.2s forwards;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.logo-ring {
  width: 80px;
  height: 80px;
  border: 3px solid #de3A3A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #221b1b, #161212);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(246, 92, 92,.35);
}

.logo-ring::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, #de3A3A, transparent);
  animation: rotate-border 4s linear infinite;
  z-index: -1;
}

@keyframes rotate-border {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-icon {
  color: #de3a3a;
  font-size: 32px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(139,92,246,.6));
}

.logo-ring:hover .logo-icon {
  color: #ffffff;
  transform: scale(1.2);
  filter: drop-shadow(0 0 18px #de3A3A);
}

.brand-text h3 {
  font-size: 32px;
  margin: 0 0 5px 0;
  font-weight: bold;
  font-family: 'Share Tech Mono', monospace;
}

.m-part { color: #ffffff; }
.info-part {
  color: #de3A3A;
  text-shadow: 0 0 10px rgba(246, 92, 92, 0.5);
}

.brand-tagline {
  font-size: 14px;
  color: #c79c9c;
  margin: 0;
  font-style: italic;
  letter-spacing: 1px;
}

.brand-description {
  color: #b8b8c7;
  line-height: 1.6;
  margin: 20px 0 30px;
  font-size: 16px;
}

.footer-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(246, 92, 92, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(246, 92, 92, 0.3);
  flex: 1;
  transition: all 0.4s ease;
}

.stat-item:hover {
  background: rgba(246, 92, 92, 0.18);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(246, 92, 92, 0.35);
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #de3a3a;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(246, 92, 92, 0.5);
}

.stat-label {
  font-size: 12px;
  color: #c79c9c;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navigation */
.footer-nav {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out 0.4s forwards;
}

.nav-section h4 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #de3A3A;
}

.nav-section h4 i { color: #de3A3A; }

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li { display: flex; gap: 10px; color:rgb(184, 184, 199); margin-top: 10px; padding: 10px; transition: all 0.3s ease; border-radius: 10px; border-color: #de3A3A;}

.nav-list li:hover {    
  color: #de3A3A;
  transform: translateY(-5px) scale(1.1);
  box-shadow: rgba(246, 92, 92, 0.35) 0px 12px 30px;
  background: rgba(246, 92, 92, 0.12);
  border-color: rgba(246, 92, 92, 0.4);
  border: 1px solid #de3A3A;
  margin-top: 10px;
  padding: 10px;
} 

.nav-list a {
  color: #b8b8c7;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.nav-list a i {
  font-size: 16px;
  width: 20px;
  color: #de3a3a;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(139,92,246,.6));
}

.nav-list a:hover {
  color: #ffffff;
  padding-left: 15px;
  background: rgba(246, 92, 92, 0.1);
}

.nav-list a:hover i {
  color: #ffffff;
  transform: scale(1.2);
}

/* Contact */
.footer-contact {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out 0.6s forwards;
}

.footer-contact h4 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #de3A3A;
}

.footer-contact h4 i { color: #de3A3A; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-color: #de3A3A;
}

.contact-item:hover {
  background: rgba(246, 92, 92, 0.12);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 30px rgba(246, 92, 92,.35);
  border: 1px solid #de3A3A;
}

.contact-item i {
  color: #de3a3a;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(246, 92, 92,.6));
}

.contact-item div { display: flex; flex-direction: column; align-items: flex-start; }

.contact-item2 {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-color: #de3A3A;
}

.contact-item2:hover {
  background: rgba(246, 92, 92, 0.12);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 30px rgba(246, 92, 92,.35);
  border: 1px solid #de3A3A;
}

.contact-item2 i {
  color: #de3a3a;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(246, 92, 92,.6));
}

.contact-item2 div { display: flex; flex-direction: column; align-items: flex-start; }

.contact-label {
  font-size: 12px;
  color: #de3A3A;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.contact-value {
  color: rgb(184, 184, 199);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value:hover { color: #de3A3A; }

/* Social et newsletter */
.footer-social {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out 0.8s forwards;
}

.footer-social h4 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #de3A3A;
}

.footer-social h4 i { color: #de3A3A; }

.newsletter-section { margin-bottom: 30px; }

.newsletter-section p {
  color: #b8b8c7;
  margin-bottom: 15px;
  font-size: 14px;
}

.newsletter-form .input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #de3A3A;
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.newsletter-form .input-group:focus-within {
  border-color: #fff;
  box-shadow: 0 0 20px rgba(246, 92, 92, 0.35);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
}

.newsletter-form input::placeholder { color: #c79c9c; }
.newsletter-form input:focus { outline: none; }

.newsletter-form button {
  border: none;
  padding: 12px 15px;
  color: #de3A3A;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  transform: scale(1.08);
  background: linear-gradient(45deg, #de3A3A, #6D28D9);
  color: white;
}

/* Réseaux */
.social-networks {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid #de3A3A;
  background: rgba(255, 255, 255, 0.05);
  color: #de3A3A;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.social-btn:hover::before { opacity: 1; }

.social-btn:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: #de3A3A;
  box-shadow: 0 15px 35px rgba(246, 92, 92, 0.45);
  color:#fff;
  background: #de3A3A;
}

.social-btn i {
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 1;
}

.social-btn:hover i { transform: rotate(360deg) scale(1.2); }

/* Section légale */
.footer-legal-section {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px 0;
  border-top: 1px solid rgba(246, 92, 92, 0.35);
  backdrop-filter: blur(10px);
}

.legal-container {
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.legal-links h5,
.tech-stack h5 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 40px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-buttons {
  display: flex;
  flex-wrap: wrap;       /* ✅ les boutons passent à la ligne */
  justify-content: center; /* ✅ centrage horizontal */
  gap: 50px;
  flex-grow: 1;
  width: 100%;
}



.legal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid #de3A3A;
  border-radius: 25px;
  color: #de3A3A;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.legal-btn:hover {
  background: #de3A3A;
  border-color: #de3A3A;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(246, 92, 92, 0.35);
  color:#fff;
}

.legal-btn i { font-size: 16px; }

/* Badges techno – on conserve le vert (accent secondaire) */
.tech-badges {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  flex-direction: row;
  margin-top: 2vw;
  justify-content: center;
  margin-top: 30px;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 20px;
  color: #00ff41;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(0, 255, 65, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.tech-badge i { font-size: 14px; }

/* Copyright final */
.footer-bottom {
  background: #000000;
  padding: 25px 0;
  border-top: 1px solid rgba(246, 92, 92, 0.35);
}

.bottom-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;

  position: relative; /* pour centrer la signature par rapport à ce conteneur */
}

.bottom-container .footer-signature {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}


.copyright p {
  color: #c79c9c;
  font-size: 14px;
  margin: 0;
}

.copyright strong { color: #de3a3a; }

.footer-signature p {
  color: #c79c9c;
  font-size: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.heart-icon {
  color: #8B5CF6;
  animation: heartbeat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(139,92,246,.6));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.footer-signature a {
  color: #8B5CF6;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-signature a:hover { color: #ffffff; }

.scroll-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  
  border: 2px solid #de3A3A;
  color: #de3A3A;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 34px rgba(246, 92, 92, 0.5);
  background: #de3A3A;
  color:#fff;
}

/* Cookies modernisés */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  border-top: 2px solid #de3A3A;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cookie-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.cookie-icon i {
  color: #de3A3A;
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(139,92,246,.6));
}

.cookie-text h4 {
  color: #ffffff;
  margin: 0 0 8px 0;
  font-size: 18px;
}

.cookie-text p {
  color: #b8b8c7;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-actions { display: flex; gap: 15px; }

.cookie-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: none; border-radius: 25px;
  font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; font-size: 14px;
}

.cookie-btn.accept {
  background: #10b981;
  color: #00150e;
}

.cookie-btn.accept:hover {
  background: #0ea371;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16,185,129,.4);
}

.cookie-btn.decline {
  background: #ef4444;
  color: white;
}

.cookie-btn.decline:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239,68,68,.4);
}

.cookie-btn.customize {
  background: rgba(246, 92, 92, 0.2);
  border: 2px solid #de3A3A;
  color: #E9D5FF;
}

.cookie-btn.customize:hover {
  background: #de3A3A;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(246, 92, 92, 0.45);
}

.manage-cookies-btn {
  position: fixed;
  bottom: 20px; right: 20px;
  border: 2px solid #de3A3A; border-radius: 50px;
  padding: 15px 20px; color: #de3A3A;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-weight: 600; transition: all 0.4s ease;
  z-index: 1000;
}

.manage-cookies-btn:hover {
  background: #de3A3A;
  box-shadow: 0 10px 30px rgba(246, 92, 92, 0.5);
  color: #fff;
}

/* Modal cookies */
.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 10001; padding: 20px; backdrop-filter: blur(5px);
}

.cookie-modal .modal-content {
  background: #121216;
  border-radius: 20px;
  max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto;
  border: 2px solid #de3A3A;
  box-shadow: 0 0 50px rgba(246, 92, 92, 0.45);
}

.modal-header {
  background: var(--accent-linear);
  padding: 25px 30px;
  border-radius: 18px 18px 0 0;
  display: flex; justify-content: space-between; align-items: center;
}

.modal-header h3 {
  color: white; margin: 0; font-size: 20px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none; color: white;
  width: 35px; height: 35px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-body { padding: 30px; }

.cookie-category {
  margin-bottom: 25px; padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header {
  display: flex; align-items: flex-start; gap: 20px;
}

.category-header h4 {
  color: #ffffff; margin: 0 0 5px 0; font-size: 16px;
}

.category-header p {
  color: #b8b8c7; margin: 0; font-size: 14px; line-height: 1.4;
}

/* Switch toggle */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #333; transition: 0.4s; border-radius: 24px;
}

.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background-color: white;
  transition: 0.4s; border-radius: 50%;
}

input:checked + .slider { background-color: #de3A3A; }
input:checked + .slider:before { transform: translateX(26px); }
input:disabled + .slider { background-color: #de3A3A; opacity: 0.6; cursor: not-allowed; }

.modal-footer { padding: 20px 30px 30px; text-align: center; }

.modal-btn {
  padding: 15px 30px; border-radius: 25px; font-size: 16px; font-weight: bold;
  border: none; cursor: pointer; transition: all 0.3s ease;
}

.modal-btn.secondary {
  background: #de3A3A; color: white;
}

.modal-btn.secondary:hover {
  background: #d92828;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(246, 92, 92, 0.45);
}

/* Animations */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1370px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .legal-container {
    grid-template-columns: 1fr;
    gap: 30px; text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .footer-stats { flex-direction: column; gap: 15px; }
  .legal-buttons { justify-content: center; }
  .cookie-content { flex-direction: column; gap: 20px; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }
  .social-networks { gap: 10px; }
  .social-btn { width: 45px; height: 45px; }
}

@media (max-width: 900px) {
  .bottom-container { 
    flex-direction: column; 
    gap: 15px; 
    text-align: center; 
    align-items: center;
  }

  .bottom-container .footer-signature {
    position: static;
    transform: none;
  }
}

@media (max-width: 480px) {
  .footer-main { padding: 40px 0; }
  .footer-container { padding: 0 15px; }
  .divider-line { display: none; }
  .brand-logo { flex-direction: column; text-align: center; gap: 15px; }
  .legal-buttons { flex-direction: column; width: 100%; }
  .legal-btn { justify-content: center; }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { justify-content: center; }
}

/* Pop-up */
.popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(20, 20, 28, 0.9);
  color: #fff;
  padding: 15px 30px;
  border-radius: 10px;
  display: none;
  z-index: 1000;
  border: 1px solid rgba(139,92,246,.35);
  box-shadow: 0 12px 32px rgba(139,92,246,.35);
}

/* Pop-up visible */
.popup:not(.hidden) { display: block; }

/* Message de succès / erreur */
.popup.success { background-color: #10b981; color: #00150e; }
.popup.error   { background-color: #ef4444; }

/* Divers animations */
@keyframes rotateYAnimation { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes slideInFromLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@keyframes gelatine {
  0%,100% { transform: scale(1,1); }
  25% { transform: scale(0.9,1.1); }
  50% { transform: scale(1.1,0.9); }
  75% { transform: scale(0.95,1.05); }
}
@-webkit-keyframes gelatine {
  0%,100% { -webkit-transform: scale(1,1); transform: scale(1,1); }
  25% { -webkit-transform: scale(0.9,1.1); transform: scale(0.9,1.1); }
  50% { -webkit-transform: scale(1.1,0.9); transform: scale(1.1,0.9); }
  75% { -webkit-transform: scale(0.95,1.05); transform: scale(0.95,1.05); }
}

#lottie-container { width: 600px; height: 600px; }

/* Liens e-mail */
.email a { color: #e0e0e0; text-decoration: none; }
.email a:hover { color: #de3A3A; }
.email2 a { text-decoration: none; color: #bbb; }
.email2 a:hover { color: #de3a3a; }



















/* HERO LOTTIE */
.hero-lottie-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 30rem;
}

.hero-lottie {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 1024px) {
    .hero-animation {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* Si ton lottie a une taille fixe, tu peux même renforcer : */
    .hero-animation lottie-player {
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        margin-left: auto;
        margin-right: auto;
        margin-top: 50px;
        text-align: center;
        align-items: center;
    }
}






























/* ===== Scrollbar - Thème sombre ===== */

html[data-theme="dark"] {
  scrollbar-width: thin;
  scrollbar-color: #de3A3A #100505;
}

html[data-theme="dark"]::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html[data-theme="dark"]::-webkit-scrollbar-track {
  background: #050510;
  border-radius: 999px;
}

html[data-theme="dark"]::-webkit-scrollbar-thumb {
  background: #de3A3A;
  border-radius: 999px;
}


/* ===== Scrollbar - Thème clair ===== */

/* Firefox */
html[data-theme="light"] {
  scrollbar-width: thin;
  scrollbar-color: #de3A3A #f5e5e5;
}

/* Chrome / WebKit */
html[data-theme="light"]::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html[data-theme="light"]::-webkit-scrollbar-track {
  background: #f5e5e5;
  border-radius: 999px;
}

html[data-theme="light"]::-webkit-scrollbar-thumb {
  background: #de3A3A;
  border-radius: 999px;
}




















/* Empêche le scroll quand l'overlay est ouvert */
body.overlay-open { overflow: hidden; }

/* Backdrop plein écran */
.notify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity .25s ease;
}

/* Carte */
.notify-modal {
  width: min(92vw, 520px);
  background: #111;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
  padding: 20px 18px;
  transform: translateY(10px);
  transition: transform .25s ease;
}

/* Header/icone/close */
.notify-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.notify-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.notify-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
}

/* Contenu + actions */
.notify-message { margin: 0 0 14px 0; line-height: 1.5; color: #ddd; }
.notify-actions { display: flex; justify-content: flex-end; gap: 10px; }
.notify-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #1b1b1b;
  color: #fff; cursor: pointer;
}
.notify-btn.primary { background: #0e3325; border-color: #00ff41; }

/* Variantes */
.notify-modal.success { border-top: 3px solid #00ff41; }
.notify-modal.error   { border-top: 3px solid #ff4444; }
.notify-modal.info    { border-top: 3px solid #2e86ff; }

/* Apparition */
.notify-overlay.show { opacity: 1; }
.notify-overlay.show .notify-modal { transform: translateY(0); }





















/* 1) On retire la ligne continue */
.story-timeline::before { display: none; }

/* 2) Espacement vertical responsive entre items */
.story-timeline {
  --gap-y: clamp(40px, 6vw, 80px);  /* ajuste comme tu veux */
  position: relative;
}

/* Chaque item gère ses segments au-dessus et au-dessous */
.timeline-item {
  position: relative;
  margin-block: calc(var(--gap-y) / 2); /* l'espace entre items = var(--gap-y) */
  z-index: 2; /* contenu au-dessus des segments */
}

/* 3) Segments de ligne, centrés à 50%, placés EN DEHORS de la box de l'item */
.timeline-item::before,
.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(246, 92, 92, 0.2);
  z-index: 0;              /* sous l'item */
  pointer-events: none;
}

/* Segment supérieur : de la bordure haute de l'item vers l'item précédent */
.timeline-item::before {
  bottom: 100%;                          /* démarre juste au-dessus de l'item */
  height: calc(var(--gap-y) / 2);        /* couvre la moitié de l'espace */
}

/* Segment inférieur : de la bordure basse vers l'item suivant */
.timeline-item::after {
  top: 100%;                             /* démarre juste en-dessous de l'item */
  height: calc(var(--gap-y) / 2);
}

/* Pas de segment qui sort en haut/bas de la timeline */
.timeline-item:first-child::before { display: none; }
.timeline-item:last-child::after { display: none; }

/* Icône au-dessus de tout (facultatif, juste pour être explicite) */
.timeline-icon { z-index: 3; position: relative; }













/* Overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;        /* au lieu de center => commence en haut */
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;               /* on peut scroller l’overlay si la modale est trop grande */
  padding: 24px 0;                /* petit espace haut/bas pour respirer */
}
.auth-overlay.open { 
  display: flex; 
}

/* Modal */
.auth-modal {
  width: min(560px, 92vw);
  background: #170f0f;
  border: 1px solid var(--border-color-soft);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 20px 60px rgba(246, 92, 92,.25), inset 0 0 0 1px rgba(246, 92, 92,.2);
  position: relative;
  color: var(--text-primary);

  max-height: calc(100vh - 48px); /* ne dépasse jamais la hauteur d’écran */
  overflow-y: auto;               /* contenu interne scrollable */
  margin: 0 16px;                 /* marges latérales en mobile */
}

/* Close */
.auth-close {
  position: absolute; top: 10px; right: 10px;
  background: transparent; border: none; color: var(--text-secondary);
  cursor: pointer; padding: 6px; border-radius: 8px;
}
.auth-close:hover { background: rgb(246 92 92); }

/* Titre */
.auth-title {
  margin: 6px 6px 16px; font-size: 1.4rem; font-weight: 700;
  color: var(--accent-primary);
}

/* Form */
.auth-form { display: grid; gap: 14px; }
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px){ .auth-grid-2 { grid-template-columns: 1fr; } }

.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: .9rem; color: #fff; }

.auth-field input,
.auth-field select {
  width: 100%;
  background: #231212;
  border: 1px solid var(--border-color-soft);
  color: #c79c9c;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: rgba(246, 92, 92,.6);
  box-shadow: 0 0 0 3px rgba(246, 92, 92,.18);
}

/* Input + eye */
.auth-input-with-icon { position: relative; }
.auth-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: #c79c9c;
  cursor: pointer; padding: 4px; border-radius: 8px;
}
.auth-eye:hover { color: var(--accent-primary); }

/* Messages champ */
.auth-error { color: #ff6b6b; font-size: .8rem; min-height: 1em; }

/* Actions */
.auth-actions-row { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 50px; }

/* Boutons */
.auth-btn {
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  cursor: pointer; transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid transparent;
}
.auth-btn-primary {
  background: var(--accent-linear);
  color: #fff; box-shadow: 0 10px 30px rgba(246, 92, 92,.35); border: none;
}
.auth-btn-primary:hover { box-shadow: 0 12px 36px rgba(246, 92, 92,.5); transform: translateY(-1px); }

/* Switch */
.auth-switch { margin-top: 6px; font-size: .9rem; color: #fff; text-align: center; }
.auth-link { background: none; border: none; color: var(--accent-primary); cursor: pointer; font-weight: 700; }




/* Mobile : un peu plus serré */
@media (max-width: 600px){
  .auth-modal {
    width: 100%;
    margin: 0 10px;
    border-radius: 14px;
    padding: 18px 16px;
  }
}





/* Supprime le fond blanc + styles par défaut de Google */
.gm-style .gm-style-iw-c {
  background: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  color: #f0f0f0 !important;
}

/* Contenu interne de la fenêtre */
.gm-style-iw-d {
  color: #000000 !important;
  text-align: center !important;
  overflow: visible !important;
  max-height: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column !important;
  padding: 10px 16px !important;
}

/* Cache les scrollbars */
.gm-style-iw::-webkit-scrollbar,
.gm-style-iw-d::-webkit-scrollbar {
  display: none !important;
}

/* 🔹 Maintient la croix de fermeture à droite */
.gm-style .gm-style-iw-chr {
  position: absolute !important;
  top: -25px !important;
  right: -10px !important;
  transform: none !important;
  display: block !important;
}

/* (optionnel) améliore l'apparence de la croix */
.gm-style .gm-style-iw-chr > img {
  filter: invert(1) brightness(1.2) !important; /* rend la croix blanche sur fond sombre */
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.gm-style .gm-style-iw-chr > img:hover {
  opacity: 1;
}

/* ✅ Fond noir uniquement pour les images dans l'info window */
.gm-style-iw-d img {
  background: #000000 !important;
  border-radius: 8px;
  object-fit: cover;
}
















/* =============================
   THEME SWITCH — LIGHT MODE
============================= */
:root[data-theme="light"] {
  /* Backgrounds */
  --bg-page: radial-gradient(circle at 20% 20%, #f7f7fb 0%, #ffffff 60%);
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-solid: #ffffff;
  --bg-card-hover: rgba(247,247,252,0.95);

  /* Text */
  --text-primary: #0f1222;
  --text-secondary: rgba(15,18,34,0.75);
  --text-dim: rgba(15,18,34,0.55);

  /* Borders / accents */
  --border-color: rgba(246, 92, 92, 0.25);
  --border-color-soft: rgba(246, 92, 92, 0.18);
  --border-light: rgba(0,0,0,0.06);

  /* Accent inchangés (violet / indigo / etc.) */
  /* --accent-primary / --accent-secondary / --accent-linear conservés */
  --ring-glow: 0 20px 60px rgba(246, 92, 92, 0.18),
               0 0 80px rgba(241, 99, 169, 0.22);
}

/* =============================
   LIGHT-SPECIFIC FIXES
   (certains éléments avaient des couleurs en dur)
============================= */

/* Topbar */
:root[data-theme="light"] .topbar {
  background: #470a0a;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(6px);
}
:root[data-theme="light"] .topbar-link { color: #fff; }
:root[data-theme="light"] .topbar-link:hover { color: var(--accent-primary); }

/* Header */
:root[data-theme="light"] .header {
  background: var(--accent-linear);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

:root[data-theme="light"] .desktop-nav button {
  color : #fff
}

:root[data-theme="light"] .desktop-nav button::before {
  background-color: #fff;
}

:root[data-theme="light"] .logo-text .web-part {
  color: #470a0a;
}

/* Badges / petits fonds semi-transparents bleutés */
:root[data-theme="light"] .hero-badge {
  background: rgb(255 224 233 / 90%);
  border: 1px solid rgba(37, 99, 235, 0.30);
  color: #555164;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Champs / inputs du portfolio (pour contraste sur clair) */
:root[data-theme="light"] .portfolio-search-input,
:root[data-theme="light"] .portfolio-tech-filter {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

:root[data-theme="light"] .portfolio-search-input::placeholder {
  color: var(--text-dim);
}

:root[data-theme="light"] .service-item {
  box-shadow: none;
  border:1px solid var(--border-color);
  background: rgb(255 235 235 / 90%);
}

:root[data-theme="light"] .service-item .service-icon {
  box-shadow: none;
}

:root[data-theme="light"] .feature span {
  color: var(--text-secondary);
}

:root[data-theme="light"] .service-item span {
  color: var(--text-secondary);
}

:root[data-theme="light"] .cta-btn {
  box-shadow: none;
}

:root[data-theme="light"] .service-card {
  box-shadow: none;
  background: rgb(255 224 233 / 90%);
}

:root[data-theme="light"] .service-card-title {
  color: #555164;
}

:root[data-theme="light"] .service-btn {
  box-shadow: none;
}

:root[data-theme="light"] .services-cta {
  box-shadow: none;
  background: rgb(255 235 235 / 90%);
}

:root[data-theme="light"] .cta-content h3 {
  color: #555164;
}

:root[data-theme="light"] .cta-content p {
  color: #c79c9c;
}

:root[data-theme="light"] .portfolio-slide-counter {
  box-shadow: none;
}

:root[data-theme="light"] .portfolio-realisation-card {
  box-shadow: none;
  background: rgb(255 224 233 / 90%);
}

:root[data-theme="light"] .portfolio-realisation-card:hover {
  background: #fff;
}

:root[data-theme="light"] .portfolio-real-card-btn {
  box-shadow: none;
}

:root[data-theme="light"] .stat-card {
  box-shadow: none;
  background: rgb(255 235 235 / 90%);
}

:root[data-theme="light"] .stat-label {
  color:#c79c9c;
}

:root[data-theme="light"] .stat-icon-wrapper {
  box-shadow: none;
}

:root[data-theme="light"] .tab-btn {
  background:var(--bg-card);
  color:#aaa3c3;
}

:root[data-theme="light"] .tab-btn.active {
  background:var(--accent-linear);
  color:#fff;
}

:root[data-theme="light"] .service-item {
  border-bottom: 1px solid #aaa3c3;
}

:root[data-theme="light"] .pricing-card {
  background: radial-gradient(circle at 20% 20%, rgba(246, 92, 92, 0.07) 0%, rgb(255 255 255) 60%);
  box-shadow: none;
}

:root[data-theme="light"] .choose-plan-btn {
  box-shadow: none;
}

:root[data-theme="light"] .feature:hover {
  box-shadow: none;
}

:root[data-theme="light"] .service-item:hover {
  box-shadow: none;
}

:root[data-theme="light"] .card-header {
  background: rgb(255 235 235 / 90%);
}

:root[data-theme="light"] .pricing-card.popular .card-header {
  background: rgb(255 224 233 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .price-period {
  color: #6879cc;
}

:root[data-theme="light"] .info-card {
  background: rgb(255 224 233 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .pricing-info {
  background: rgb(255 235 235 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .plan-name {
  color: #555164;
}

:root[data-theme="light"] .info-card h4 {
  color: #555164;
}

:root[data-theme="light"] .timeline-content p {
  color:#c79c9c;
}

:root[data-theme="light"] .profile-subtitle {
  color:#c79c9c;
}

:root[data-theme="light"] .profile-card {
  background: rgb(255 224 233 / 90%);
}

:root[data-theme="light"] .avatar-ring {
  background: rgb(255 235 235 / 90%);
}

:root[data-theme="light"] .profile-name {
  background: #de3A3A;
  background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .timeline-content {
  background: rgb(255 235 235 / 90%);
}

:root[data-theme="light"] .skill-name {
  color:#c79c9c;
}

:root[data-theme="light"] .skill-category {
  background: rgb(255 224 233 / 90%);
}


:root[data-theme="light"] .about-cta {
  background: rgb(255 235 235 / 90%);
  color:#c79c9c;
}

:root[data-theme="light"] .avatar-ring::before {
  background: conic-gradient(from 0deg, transparent, #de3A3A5e, transparent);
}

:root[data-theme="light"] .form-card {
  background: rgb(255 224 233 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .business-card {
  background: rgb(255 224 233 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .social-section {
  background: rgb(255 224 233 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .map-section {
  background: rgb(255 235 235 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .form-header h3 {
  color:#555164;
}

:root[data-theme="light"] .input-wrapper input {
  border: 2px solid rgba(246, 92, 92, 0.30);
  color: #c79c9c;
}

:root[data-theme="light"] .textarea-wrapper textarea {
  border: 2px solid rgba(246, 92, 92, 0.30);
  color: #c79c9c;
}

:root[data-theme="light"] .select-wrapper select {
  border: 2px solid rgba(246, 92, 92, 0.30);
  color: #c79c9c;
}

:root[data-theme="light"] .select-wrapper select option {
  background: #fff;
  color: #c79c9c;
}

:root[data-theme="light"] .input-wrapper {
  background: #fff;
  border-radius: 15px;
}

:root[data-theme="light"] .textarea-wrapper {
  background: #fff;
  border-radius: 15px;
}

:root[data-theme="light"] .select-wrapper {
  background: #fff;
  border-radius: 15px;
}

:root[data-theme="light"] .label {
  color: #555164;
}

:root[data-theme="light"] .value {
  color: #c79c9c;
}

:root[data-theme="light"] .value:hover {
  color: #de3A3A;
}

:root[data-theme="light"] .contact-item:hover {
  background: #fff;
  border: 2px solid #de3A3A;
  color:#de3A3A;
}

:root[data-theme="light"] .contact-item:hover .contact-label {
    color: #de3A3A;
}

:root[data-theme="light"] .contact-item:hover .contact-value {
  color: #c0c0c0;
}

:root[data-theme="light"] .contact-item:hover .contact-value:hover {
  color: #de3A3A;
}

:root[data-theme="light"] .contact-item:hover svg{
  color:#de3A3A !important;
}

:root[data-theme="light"] .contact-item svg{
  color:#fff !important;
}

:root[data-theme="light"] .contact-item2 {
  background: #fff;
  border: 2px solid rgba(246, 92, 92, 0.30);
}

:root[data-theme="light"] .contact-item2:hover {
  background: #fff;
  border: 2px solid #de3A3A;
  color:#de3A3A;
  transform: translateY(-5px) scale(1.1);
}

:root[data-theme="light"] .contact-item2:hover .contact-label {
    color: #de3A3A;
}

:root[data-theme="light"] .contact-item2:hover .contact-value {
  color: #c0c0c0;
}

:root[data-theme="light"] .contact-item2:hover .contact-value:hover {
  color: #de3A3A;
}

:root[data-theme="light"] .contact-item2:hover svg{
  color:#de3A3A !important;
}

:root[data-theme="light"] .contact-item2 svg{
  color:#de3A3A !important;
}

:root[data-theme="light"] .social-section h4 {
  color: #555164;
}

:root[data-theme="light"] .social-link {
  color: #c79c9c;
  background: #fff;
  border: 2px solid rgba(246, 92, 92, 0.30);
}

:root[data-theme="light"] .social-link:hover {
  border: 2px solid #de3A3A;
  transform: translateY(-5px) scale(1.1);
}

:root[data-theme="light"] .map-section h4 {
  color: #555164;
}

:root[data-theme="light"] .faq-section {
  background: rgb(255 235 235 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .faq-item {
  background: rgb(255 224 233 / 90%);
  box-shadow: none;
}

:root[data-theme="light"] .faq-item h4 {
  color: #555164;
}

:root[data-theme="light"] .faq-section h3 {
  color: #555164;
}

:root[data-theme="light"] .faq-content p {
  color: #c79c9c;
}

:root[data-theme="light"] .footer-main {
  background: var(--accent-linear);
}

:root[data-theme="light"] .info-part {
  color: #470a0a;
}

:root[data-theme="light"] .brand-tagline {
  color: #fff;
}

:root[data-theme="light"] .brand-description {
  color: #fff;
}

:root[data-theme="light"] .stat-item {
  box-shadow: none;
  background: #fff;
  border: 2px solid rgba(246, 92, 92, 0.30);
}

:root[data-theme="light"] .nav-list li {
  color: #fff;
}

:root[data-theme="light"] .nav-list li:hover {
  border-color: #de3A3A;
  background: #fff;
  color: #de3A3A;;
}

:root[data-theme="light"] .contact-value {
  color: #e0e0e0;
}

:root[data-theme="light"] .contact-label {
  color: #fff;
}

:root[data-theme="light"] .contact-value:hover {
  color: #de3A3A;
}

:root[data-theme="light"] .newsletter-form input {
  background: #fff;
  color: #c79c9c;
}

:root[data-theme="light"] .newsletter-section p {
  color: #fff;
}

:root[data-theme="light"] .footer-bottom {
  background: #470a0a;
}

:root[data-theme="light"] .legal-btn {
  color: #fff;
  border: 2px solid #fff;
}

:root[data-theme="light"] .legal-btn:hover {
  color: #de3A3A;
  background: #fff;
  border: 2px solid #de3A3A;
}

:root[data-theme="light"] .social-btn {
  border: 2px solid #fff;
  color:#fff;
}

:root[data-theme="light"] .social-btn:hover {
  color:#de3A3A;
  background: #fff;
  border: 2px solid #de3A3A;
}

:root[data-theme="light"] .logo-ring {
  background: #fff;
}

:root[data-theme="light"] .welcome-text {
  color: #fff;
}

:root[data-theme="light"] .pricing-note p {
  color: #c79c9c;
}

:root[data-theme="light"] .auth-close {
  color:#fff;
  background: rgb(246 92 92);
}

:root[data-theme="light"] .auth-close:hover {
  color:rgb(246 92 92);
  background: #fff;
  border: 1px solid rgb(246 92 92);
}

:root[data-theme="light"] .auth-modal {
  background: #fff;
}

:root[data-theme="light"] .auth-switch {
  color:#c79c9c;
}

:root[data-theme="light"] .auth-field label {
  color:#c79c9c;
}

:root[data-theme="light"] .auth-field input, :root[data-theme="light"] .auth-field select {
  background: #e6e6e6;
}

:root[data-theme="light"] .portfolio-status-badge.completed {
  box-shadow: none;
}

:root[data-theme="light"] .portfolio-action-btn {
  box-shadow: none;
}

:root[data-theme="light"] .tech-tag, :root[data-theme="light"] .portfolio-tech-tag {
  box-shadow: none;
}

:root[data-theme="light"] .portfolio-metric, :root[data-theme="light"] .metric {
  box-shadow: none;
}

:root[data-theme="light"] .portfolio-cta-btn.tertiary, :root[data-theme="light"] .cta-btn.tertiary {
  box-shadow: none;
}

:root[data-theme="light"] .portfolio-project-modal {
  background: #fff;
}

:root[data-theme="light"] .portfolio-comment-form textarea {
  background: #fff;
  color: #c79c9c;
}

:root[data-theme="light"] .scroll-btn {
  color: #de3A3A;
  border: 2px solid #de3A3A;
}

:root[data-theme="light"] .scroll-btn:hover {
  color: #fff;
  border: 2px solid #de3A3A;
  background: #de3A3A;
}

:root[data-theme="light"] .mobile-menu-btn {
  box-shadow: none;
  border: 2px solid #de3A3A;
  background: none;
}

:root[data-theme="light"] .newsletter-form button {
  color:#fff;
  background: #de3A3A;
}

:root[data-theme="light"] .newsletter-form button:hover {
  color:#de3A3A;
  background: #fff;
}

:root[data-theme="light"] .portfolio-progress-bar {
  box-shadow: none;
}

:root[data-theme="light"] .portfolio-slider-dots {
  box-shadow: none;
}

:root[data-theme="light"] .portfolio-control-btn {
  box-shadow: none;
}

:root[data-theme="light"] .section-title {
  color:#de3A3A;
}

:root[data-theme="light"] .svc-list li {
  color:#6d5b5b;
}

:root[data-theme="light"] .news-track {
  box-shadow: none;
}

:root[data-theme="light"] .slide-cta  {
  box-shadow: none;
}

:root[data-theme="light"] .slide-cta:hover  {
  box-shadow: none;
}

/* Fallback sans classe: détecte un lien vers Google Maps */
.gm-style-iw-d a[href*="google."][href*="maps"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  border-radius: 10px;
  background: #de3A3A;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  border: 1px solid rgba(246, 92, 92, .35);
  box-shadow: 0 6px 18px rgba(246, 92, 92, .25);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.gm-style-iw-d a[href*="google."][href*="maps"]:hover { 
  background: #7d2020; 
  box-shadow: 0 10px 24px rgba(124, 58, 237, .35);
  transform: translateY(-1px);
}

.gm-style-iw-d a[href*="google."][href*="maps"]:active { 
  transform: translateY(0);
}















/* ===========================================
   THEME CLAIR – ADAPTATION DU MENU MOBILE
   =========================================== */
:root[data-theme="light"] #mobile-header {
  background: var(--accent-linear) !important;
  border-bottom: 1px solid var(--border-light) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

/* Texte logo + burger en clair */
:root[data-theme="light"] #mobile-header span {
  color: #fff !important;
}
:root[data-theme="light"] #mobile-header #menu-toggle {
  color: #fff !important;
}

/* Fond du menu déroulant en clair */
:root[data-theme="light"] #mobile-menu {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* Bandeau auth en haut du menu mobile */
:root[data-theme="light"] #mobile-auth {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* Liens du menu mobile (texte + séparateurs) */
:root[data-theme="light"] #mobile-menu a.mobile-link {
  color: var(--text-primary) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* Boutons Connexion / Inscription dans le bloc mobile-auth */
:root[data-theme="light"] #mobile-auth button {
  color: #470a0a !important;
}

/* Le bouton violet d'inscription reste lisible sur clair */
:root[data-theme="light"] #mobile-auth button:last-child {
  background: #de3A3A !important;
  color: #fff !important;
}

















/* Style de base du bouton */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

/* Icône SVG (par défaut gris clair) */
.theme-toggle svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

/* Hover : couleur violette + petit effet scale */
.theme-toggle:hover svg {
  stroke: #de3A3A;           /* 💜 couleur hover */
  transform: scale(1.1);
}




















/* ===== TITRE ===== */
.portfolio-real-card-title{
  margin: .85rem 1rem .15rem;
  color: rgb(246 92 92);
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.25;
  /* tailles fluides */
  font-size: clamp(1.05rem, 1rem + .6vw, 1.35rem);

  /* clamp sur 2 lignes (évite les titres trop longs) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  position: relative;
}

/* petit liseré d’accent sous le titre (sobre) */
.portfolio-real-card-title::after{
  content:"";
  display:block;
  height: 2px;
  width: 36px;
  margin-top: .45rem;
  border-radius: 2px;
  background: var(--accent-linear);
  opacity: .9;
  transition: width .25s ease, opacity .25s ease;
}
.portfolio-realisation-card:hover .portfolio-real-card-title::after{
  width: 56px;
  opacity: 1;
}

/* ===== TEXTE ===== */
.portfolio-real-card-text{
  margin: .35rem 1rem 1rem;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.55;

  /* clamp sur 3 lignes + suppression du min-height */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* (optionnel) Un peu d’air avant les stats si besoin */
.portfolio-card-stats{
  margin-top: .25rem; /* ou .5rem selon ta densité */
}







/* Cacher la barre auth en haut en mobile */
@media (max-width: 1300px) {
  .topbar-right {
    display: none;
  }
}





/* Corrige le scroll horizontal sur mobile/tablette
   en évitant le slide horizontal de info-section */
@media (max-width: 1024px) {
  .info-section {
      opacity: 0;
      transform: translateY(30px); /* ou juste "none" si tu veux */
  }

  .info-section.visible {
    opacity: 1;
    transform: translateY(0); /* ou "none" pour aucun mouvement */
  }
}






/* Conteneur commun scroll + cookies */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;              /* espace entre scroll et cookies */
  z-index: 1000;          /* même niveau que manage-cookies */
  flex-direction: column;
}

/* À l'intérieur du conteneur, le bouton cookies n'est plus fixed */
.floating-actions .manage-cookies-btn {
  position: static;
  bottom: auto;
  right: auto;
}









/* ===== Commentaires - Modales Projet ===== */

.portfolio-comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

/* Zone de texte */
.portfolio-comment-form textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    padding: 14px 16px;
    border-radius: 14px;
    background: #0f0f17;
    border: 1px solid rgba(246, 92, 92, 0.25);
    color: #d1d5f0;
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-comment-form textarea::placeholder {
    color: #777a95;
    opacity: 0.7;
}

.portfolio-comment-form textarea:focus {
    border-color: rgba(139,92,246,.7);
    box-shadow: 0 0 0 3px rgba(139,92,246,.25);
}

/* Bouton Envoyer */
.portfolio-comment-form button[type="submit"] {
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139,92,246,.95), rgba(99,102,241,.95));
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .25s ease;
    box-shadow: 0 8px 24px rgba(139,92,246,.35);
}

.portfolio-comment-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(139,92,246,.45);
}

.portfolio-comment-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(139,92,246,.2);
}

/* Message succès */
#commentSuccess {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e !important; /* vert propre */
    margin-top: 10px;
}









/* Thème sombre */
#mobile-menu .mobile-auth-welcome {
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

/* Thème clair */
:root[data-theme="light"] #mobile-menu .mobile-auth-welcome {
  color: #de3A3A; /* ton texte sombre du thème clair */
}
