:root {
  --primary: #0E3A37;
  --accent: #EB632A;
  --transparent: #eb642a2e;
  --light: #F8FAFC;
  --white: #fff;
}

/* =========================
   GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
}

/* =========================
   BACKGROUND BLOBS
========================= */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: -1;
}

.blob1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  left: -100px;
}

.blob2 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  bottom: -150px;
  right: -150px;
}

/* =========================
   SECTION
========================= */
.section-space {
  padding: 80px 20px;
}

/* =========================
   CARDS & HOVER EFFECT
========================= */
.hover-lift {
  transition: all 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* =========================
   HERO
========================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px; /* espace automatique entre tous les éléments */
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 900px;
  color: var(--primary);
  margin-bottom: 25px;
}

.hero-title .line {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-title .line:nth-child(3) {
  animation-delay: 0.5s;
}

/* Highlight effet gradient */
.highlight {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtitle */
.hero-subtitle {
  margin:auto;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 30px;
  display: inline-flex;
  justify-content: center;
  margin-bottom: 25px;
  background: var(--transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--primary);
}

/* Buttons */
.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn.primary {
  background: var(--accent);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
}

.btn.secondary {
  background: var(--primary);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 30px;
}

/* Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BUTTONS
========================= */
.btn {
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.4s;
}

.btn:hover::after {
  left: 100%;
}

/* =========================
   MASONRY
========================= */
.masonry {
  column-count: 3;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: 0.4s;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: 0.4s;
}

.masonry-item:hover img {
  transform: scale(1.08);
}

/* Responsive Masonry */
@media(max-width:1024px) {
  .masonry {
    column-count: 2;
  }
}

@media(max-width:640px) {
  .masonry {
    column-count: 1;
  }
}

/* =========================
   FILTER BUTTONS
========================= */
.filter-btn {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* =========================
   FLOATING ACTION BUTTONS (FAB)
========================= */
#fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

/* Bouton principal */
.fab-main {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.fab-main.active {
  transform: rotate(45deg);
  /* transforme le + en X */
}

/* Boutons secondaires */
.fab-item {
  position: absolute;
  bottom: 5px;
  right: 70px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transform: translateX(40px) scale(0.8);
  pointer-events: none;
  transition: all 0.35s ease;
}

/* Apparition */
#fab.active .fab-item {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* Cascade (effet pro) */
#fab.active .whatsapp {
  right: 70px;
  transition-delay: 0.05s;
}

#fab.active .call {
  right: 130px;
  transition-delay: 0.1s;
}

#fab.active .top {
  right: 190px;
  transition-delay: 0.15s;
}

/* Couleurs */
.fab-item.whatsapp {
  background: #25D366;
}

.fab-item.call {
  background: var(--accent);
}

.fab-item.top {
  background: var(--accent);
  color: var(--white);
}

/* Hover effet premium */
.fab-item:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* =========================
   MOBILE MENU & NAVBAR
========================= */
header nav {
  display: none;
}

header nav.show {
  display: flex !important;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlideDown 0.35s forwards;
}

@keyframes fadeSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#navbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.377);
  transition: 0.3s;
}

/* =========================
   MODALS
========================= */
.portfolio-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.portfolio-modal.active {
  display: flex;
}

.portfolio-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  text-align: center;
}

@media (max-width: 768px) {

  .section-space {
    padding: 60px 15px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .fab-main {
    width: 50px;
    height: 50px;
  }

  .fab-item {
    width: 45px;
    height: 45px;
  }

}