/* style.css - Dynamic Inov : Style inspiré d'AménageHome */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #8b5cf6;       /* Mauve violet */
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  
  --accent: #c4b5fd;        /* Lavande claire */
  --accent-light: #ede9fe;
  --accent-dark: #6d28d9;
  
  --dark: #0a0a0a;          /* Fond noir */
  --dark2: #111111;         /* Fond sections alt */
  --dark3: #1a1a1a;         /* Cartes */
  --dark4: #141414;
  
  --white: #f4f0ff;         /* Texte blanc-lavande */
  --gray: #a78bfa;          /* Texte secondaire mauve clair */
  --gray-light: #7c6fad;    /* Texte muted */
  --gray-dark: #ede9fe;
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius: 12px;
  --radius-lg: 16px;
  --glass-border: rgba(139, 92, 246, 0.18);
  --glass-bg: rgba(10, 10, 10, 0.85);

  --pure-white: #ffffff;
  --pure-black: #000000;
}

html[data-theme="light"] {
  --dark: #f8fafc;
  --dark2: #ffffff;
  --dark3: #f1f5f9;
  --dark4: #e2e8f0;
  
  --white: #0f172a;
  --gray: #334155;
  --gray-light: #475569;
  --gray-dark: #1e293b;
  
  --glass-border: rgba(139, 92, 246, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.95);
}

html {
  scroll-behavior: smooth;
  background-color: var(--dark);
}

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Fond noir + lueurs mauve */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--dark);
}

body::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(196, 181, 253, 0.06) 0%, transparent 40%);
}

/* ===== GEOMETRIC LAYOUT FRAMES ===== */
.classic-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2) 20%, rgba(6, 182, 212, 0.2) 80%, transparent);
  margin: 2rem 0;
}

/* ===== SHOWCASE GLASS CARDS ===== */
.showcase-card {
  position: relative;
  background: var(--dark2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Thin red corners on cards on hover */
.showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  pointer-events: none;
  transition: all 0.4s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  background: var(--dark3);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(139, 92, 246, 0.12);
}

.showcase-card:hover::before {
  border-color: rgba(139, 92, 246, 0.15);
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 150px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

nav.nav-scrolled {
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 90px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  color: var(--primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.12);
  background: rgba(124, 58, 237, 0.06);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--white);
}

.nav-logo-text span {
  color: var(--primary);
}

/* Custom logo image styles */
.nav-logo-img {
  height: 270px;
  width: auto;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(60px);
}

nav.nav-scrolled .nav-logo-img {
  height: 90px;
  transform: translateY(0);
}

.footer-logo-img {
  height: 140px;
  width: auto;
  display: block;
}

.shield-logo-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 15px 45px rgba(139, 92, 246, 0.45));
  transition: transform 0.3s ease;
}

.shield-logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--txt-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle-btn i {
  font-size: 18px;
}
.theme-toggle-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.nav-cta:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #a78bfa;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
#accueil {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-top: 150px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('../uploads/hero_renovation_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1; /* Transparence à 100% pour bien voir l'image */
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 2rem;
  border-radius: 6px;
  letter-spacing: 1.5px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  color: #ffffff;
}

h1 .accent {
  color: #ffffff;
  display: block;
}

h1 .sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-light);
  display: block;
  margin-top: 15px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 14px 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--primary-light);
  line-height: 1.1;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Classical Hexagon/Octagon Visual shield */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shield {
  position: relative;
  width: 650px;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px; /* Classic sharp square/diamond visual */
  transform: rotate(45deg);
  background: transparent;
  box-shadow: none;
}

.hero-ring {
  display: none;
}

.shield-bg {
  display: none;
}

.shield-inner {
  position: absolute;
  transform: rotate(-45deg);
  text-align: center;
  z-index: 5;
  width: 600px;
}

.shield-logo-letters {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.shield-logo-letters .g {
  color: var(--primary);
}

.shield-services-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 10px;
  border-top: 1px solid rgba(139, 92, 246, 0.4);
  border-bottom: 1px solid rgba(139, 92, 246, 0.4);
  padding: 4px 0;
  display: inline-block;
  width: 140px;
}

.shield-tagline {
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 14px;
  letter-spacing: 1px;
}

/* Floating ornaments around diamond logo */
.hero-icons {
  display: none;
}

/* ===== SECTION GENERAL STYLES ===== */
section {
  padding: 7.5rem 0;
  position: relative;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 5;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  font-size: 15.5px;
  color: var(--txt-body);
  max-width: 580px;
  line-height: 1.7;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 4.5rem;
}

.service-card {
  padding: 2.8rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
}

.service-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(124, 58, 237, 0.25);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  letter-spacing: 1px;
}

.service-icon {
  font-size: 38px;
  margin-bottom: 1.8rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-2px);
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 0.85rem;
  color: var(--txt-main);
}

.service-desc {
  font-size: 14px;
  color: var(--txt-body);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.service-features {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.25rem;
}

.service-features li {
  font-size: 13px;
  color: var(--txt-main);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: '✓';
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

/* ===== GARANTIE BANNER ===== */
.garantie-banner {
  margin-top: 3.5rem;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.garantie-text h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.garantie-text p {
  font-size: 14.5px;
  color: var(--txt-body);
  margin-top: 6px;
}

.garantie-badge {
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.18);
  padding: 1.25rem 2.25rem;
  border-radius: var(--radius);
  text-align: center;
  white-space: nowrap;
}

.garantie-badge .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--primary);
}

.garantie-badge .label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 6px;
  color: var(--txt-muted);
}

/* ===== DEVIS SECTION ===== */
.devis-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
  margin-top: 4.5rem;
}

.devis-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.devis-info p {
  font-size: 14.5px;
  color: var(--txt-body);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.devis-avantages {
  list-style: none;
}

.devis-avantages li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 14px;
  color: var(--txt-main);
}

.devis-avantages li:last-child {
  border-bottom: none;
}

.check {
  width: 20px;
  height: 20px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.devis-form {
  padding: 3rem 2.8rem;
  border-radius: var(--radius-lg);
}

.form-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--white);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: #1f1f1f;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

select option {
  background: var(--dark3);
  color: var(--white);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.service-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.service-check {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark3);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
  user-select: none;
}

.service-check:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
}

.service-check.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.12);
}

.service-check input[type="checkbox"] {
  display: none;
}

.cb-box {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.service-check.active .cb-box {
  background: var(--accent);
  border-color: var(--accent);
}

.cb-box::after {
  content: '✓';
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  display: none;
}

.service-check.active .cb-box::after {
  display: block;
}

.cb-label {
  font-size: 13px;
  font-weight: 500;
  color: #c4b5fd;
}

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(218, 27, 27, 0.2);
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(218, 27, 27, 0.35);
}

.form-note {
  font-size: 11px;
  color: var(--txt-muted);
  text-align: center;
  margin-top: 15px;
  line-height: 1.5;
}

.success-msg {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
}

.success-msg h4 {
  color: #059669;
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
}

.success-msg p {
  color: var(--txt-body);
  font-size: 14px;
}

/* ===== AVIS SECTION ===== */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 4.5rem;
}

.avis-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
}

.stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.avis-text {
  font-size: 14px;
  color: var(--txt-body);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.avis-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.author-avatar {
  width: 38px;
  height: 38px;
  background: rgba(218, 27, 27, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  border-radius: 50%;
  color: var(--primary);
  border: 1px solid rgba(218, 27, 27, 0.15);
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--txt-main);
}

.author-city {
  font-size: 12px;
  color: #7c6fad;
  margin-top: 2px;
}

.author-service {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 2rem 3rem;
  margin-top: 3.5rem;
  border-radius: var(--radius);
}

.rating-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--primary);
}

.rating-detail p {
  margin-bottom: 5px;
  font-size: 13.5px;
  color: #7c6fad;
}

.rating-detail strong {
  color: var(--txt-main);
  font-weight: 600;
}

/* ===== PHOTOS / REALISATIONS ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 4rem;
}

.media-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: #f1f5f9;
  cursor: pointer;
}

.media-item img, .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.media-item:hover img, .media-item:hover video {
  transform: scale(1.03);
}

.media-item .media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 46, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(4px);
}

.media-item:hover .media-overlay {
  opacity: 1;
}

.media-overlay .media-icon {
  font-size: 28px;
}

.media-overlay .media-caption {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  padding: 0 16px;
}

.media-item .media-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(23, 32, 46, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 10px;
  font-size: 10px;
  color: #60a5fa;
  font-weight: 600;
  border-radius: 4px;
}

.media-item .admin-del-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: #EF4444;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.media-admin-mode .media-item .admin-del-btn {
  display: flex;
}

.media-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #7c6fad;
  background: var(--dark3);
  border: 1px dashed rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

.media-empty-icon {
  font-size: 40px;
  margin-bottom: 1rem;
}

/* Lightbox */
#media-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 8, 12, 0.96);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

#media-lightbox.open {
  display: flex;
}

#media-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

#media-lightbox-content img, #media-lightbox-content video {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#media-lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: #ffffff;
  color: #17202e;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4.5rem;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-radius: var(--radius);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7c6fad;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--white);
}

.contact-value a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover {
  color: var(--primary);
}

.horaires {
  padding: 2rem;
  margin-top: 24px;
}

.horaires h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 1.25rem;
  color: #17202e;
}

.horaire-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  font-size: 14px;
}

.horaire-row:last-child {
  border-bottom: none;
}

.horaire-row .day {
  color: #7c6fad;
}

.horaire-row .time {
  font-weight: 500;
  color: #17202e;
}

.horaire-row .time.urgence {
  color: var(--primary);
  font-weight: 700;
}

.map-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #94a3b8;
}

.map-placeholder .map-icon {
  font-size: 40px;
}

.map-placeholder p {
  font-size: 14px;
  font-weight: 500;
}

.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.zone-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  padding: 4.5rem 3rem;
  position: relative;
  z-index: 5;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.footer-logo span {
  color: var(--primary);
}

.footer-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  text-align: center;
}

.footer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #17202e;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.scroll-top.visible {
  opacity: 1;
}

.scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(218, 27, 27, 0.25);
  transform: translateY(-2px);
}

#dashboard-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  background: #ffffff;
  color: #17202e;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#dashboard-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media(max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 900px) {
  #accueil {
    align-items: flex-start;
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
    padding: 0 1.5rem !important;
  }
  
  .hero-stats {
    max-width: 100%;
  }
  
  .hero-visual {
    margin-top: 1rem;
    justify-content: center !important;
  }
  
  .hero-visual img {
    transform: none !important;
  }
  
  .devis-wrapper, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 999;
  }
  
  nav {
    padding: 0 1rem;
    height: 90px;
  }
  
  .nav-logo-img {
    height: 165px;
    max-width: 65vw;
    object-fit: contain;
    transform: translateY(35px);
  }

  #dashboard-toggle {
    bottom: 15px;
    left: 15px;
    padding: 6px 10px;
    font-size: 10px;
    opacity: 0.8;
  }
  
  .theme-toggle-btn {
    width: 30px;
    height: 30px;
  }
  .theme-toggle-btn i {
    font-size: 16px;
  }
  
  .garantie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .rating-summary {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .avis-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .service-checkboxes {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 480px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== GLOBAL FONT-SIZE ENLARGEMENT OVERRIDES ===== */
@media(min-width: 901px) {
  body {
    font-size: 18px;
    line-height: 1.7;
  }
  
  .nav-links a { font-size: 16px; }
  .nav-cta { font-size: 14px; }
  .hero-badge { font-size: 13px; }
  h1 { font-size: clamp(50px, 6vw, 76px); }
  h1 .sub { font-size: 17px; }
  .hero-desc { font-size: 19px; }
  .stat-num { font-size: 44px; }
  .stat-label { font-size: 14px; }
  
  .section-label { font-size: 15px; }
  .section-title { font-size: clamp(38px, 4.5vw, 54px); }
  .section-desc { font-size: 18.5px; }
  
  .service-num { font-size: 15px; }
  .service-title { font-size: 25px; }
  .service-desc { font-size: 17px; }
  .service-features li { font-size: 16px; }
  
  .devis-info h3 { font-size: 28px; }
  .devis-info p { font-size: 17.5px; }
  .devis-avantages li { font-size: 16px; }
  
  .garantie-text h3 { font-size: 28px; }
  .garantie-text p { font-size: 17.5px; }
  .garantie-badge .num { font-size: 48px; }
  .garantie-badge .label { font-size: 13px; }
  
  .avis-text { font-size: 17.5px; }
  .author-name { font-size: 16px; }
  .rating-big { font-size: 72px; }
  .rating-detail p { font-size: 16px; }
  
  .footer-title { font-size: 20px; }
  .footer-desc { font-size: 16px; }
  .footer-links a, .footer-contact li { font-size: 15px; }

.devis-info h3 { font-size: 28px; }
.devis-info p { font-size: 17.5px; }
.devis-avantages li { font-size: 17px; }
.form-title { font-size: 24px; }
label { font-size: 15px; }
input, select, textarea { font-size: 16px; }
.submit-btn { font-size: 14px; }

.avis-text { font-size: 17.5px; }
.author-name { font-size: 16px; }
.author-city { font-size: 13px; }
.author-service { font-size: 13px; }
.rating-big { font-size: 58px; }
.rating-detail p { font-size: 16px; }

.media-caption { font-size: 16px; }
.media-type-badge { font-size: 13px; }

.contact-label { font-size: 13px; }
.contact-value { font-size: 18px; }
.horaires h4 { font-size: 18px; }
.horaire-row { font-size: 15px; }
.zone-tag { font-size: 13px; }
.map-placeholder p { font-size: 17px; }

footer { font-size: 15px; }
.footer-info { font-size: 15px; }
.footer-tag { font-size: 13px; }
}
