/* ============================================================
   DJOSITE - STYLES PREMIUM
   ============================================================ */

/* ── Variables ── */
:root {
  --white: #ffffff;
  --off-white: #f4f8ff;
  --blue-light: #4fa3e8;
  --blue-mid: #2176c7;
  --blue-dark: #0d4a8a;
  --blue-glow: rgba(79, 163, 232, 0.25);
  --black: #0a0f1e;
  --dark: #111827;
  --gray: #6b7280;
  --gray-light: #e5edf8;
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(79,163,232,0.18);
  --shadow: 0 8px 40px rgba(13,74,138,0.12);
  --shadow-lg: 0 20px 60px rgba(13,74,138,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 3px; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(13,74,138,0.07);
  transition: var(--transition);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-dark);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo span { color: var(--blue-light); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-light);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--blue-mid); }
.nav-links a:hover::after { width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(33,118,199,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(33,118,199,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--blue-mid);
  border: 2px solid var(--blue-mid);
}

.btn-outline:hover {
  background: var(--blue-mid);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33,118,199,0.3);
}

.btn-white {
  background: white;
  color: var(--blue-dark);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239,68,68,0.4); }

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16,185,129,0.4); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ── Hero Section ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}

#hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 50%, var(--blue-light) 100%);
  background-size: cover;
  background-position: center;
  transition: all 0.6s ease;
}

#hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,15,30,0.55) 0%, rgba(10,15,30,0.3) 60%, rgba(10,15,30,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 5%;
  max-width: 900px;
  animation: heroFadeIn 1s ease both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: heroFadeIn 1s 0.2s ease both;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  animation: heroFadeIn 1s 0.3s ease both;
}

.hero-title .accent {
  background: linear-gradient(90deg, #7dd3fc, #38bdf8, #bae6fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: heroFadeIn 1s 0.4s ease both;
}

.hero-desc[contenteditable="true"] {
  outline: 2px dashed rgba(255,255,255,0.5);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: text;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-scroll svg { opacity: 0.7; }

/* ── Particles overlay ── */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ── Sections ── */
section {
  padding: 90px 5%;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--blue-light);
  border-radius: 1px;
}

/* ── Que Faisons Nous ── */
#what-we-do {
  background: white;
  position: relative;
  overflow: hidden;
}

#what-we-do::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(79,163,232,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.what-text h2 { margin-bottom: 1rem; color: var(--dark); }
.what-text h2 span { color: var(--blue-mid); }
.what-text p { color: var(--gray); font-size: 1.05rem; margin-bottom: 2rem; }

#what-desc {
  text-align: center;
  white-space: pre-wrap;
}

.what-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-mid));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.feature-card p { font-size: 0.82rem; color: var(--gray); }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ── Floating orbs ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ── Page inner (tarifs, réalisations, avis) ── */
.page-header {
  padding: 140px 5% 60px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 { position: relative; z-index: 1; }

.page-body { padding: 60px 5%; max-width: 1100px; margin: 0 auto; }

/* ── Réalisation Cards ── */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.real-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  animation: cardIn 0.5s ease both;
}

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

.real-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.real-gallery {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gray-light);
}

.real-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.real-gallery-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery-btn {
  background: rgba(255,255,255,0.9);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--blue-dark);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-btn:hover { background: white; transform: scale(1.1); }

.gallery-count {
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

.real-body { padding: 20px; }
.real-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.real-body p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

.real-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}

/* ── Avis ── */
.avis-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.avis-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  animation: cardIn 0.4s ease both;
  transition: var(--transition);
}

.avis-card:hover { box-shadow: var(--shadow-lg); transform: translateX(4px); }

.avis-stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 8px; }
.avis-author { font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.avis-text { color: var(--gray); font-size: 0.95rem; }

/* ── Admin Panel ── */
#admin-panel {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 420px; height: 100vh;
  background: white;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  z-index: 2000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#admin-panel.open {
  display: block;
  transform: translateX(0);
}

.admin-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: white;
  padding: 24px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header h3 { font-size: 1.1rem; margin-bottom: 4px; }
.admin-header p { opacity: 0.75; font-size: 0.8rem; }

.admin-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--gray-light);
  background: var(--off-white);
  padding: 0 8px;
}

.admin-tab {
  padding: 12px 16px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.admin-tab.active {
  color: var(--blue-mid);
  border-bottom-color: var(--blue-mid);
}

.admin-tab-content { padding: 24px 20px; display: none; }
.admin-tab-content.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--off-white);
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  background: white;
}

/* ── Toggle Switch ── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
}

.toggle-label { font-size: 0.9rem; font-weight: 500; color: var(--dark); }
.toggle-sub { font-size: 0.78rem; color: var(--gray); }

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--gray-light);
  border-radius: 24px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider { background-color: var(--blue-mid); }
input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Modal / Pop ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.6);
  backdrop-filter: blur(6px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-overlay.open { display: flex; }

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

.modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
  background: var(--gray-light);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--dark);
}

.modal-close:hover { background: #fecaca; color: #dc2626; transform: rotate(90deg); }

.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--gray-light);
}

/* ── Star Rating ── */
.star-rating {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.star-rating .star {
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-light);
  transition: color 0.15s, transform 0.15s;
}

.star-rating .star.active,
.star-rating .star:hover { color: #f59e0b; transform: scale(1.15); }

/* ── Login section ── */
#login-section {
  background: linear-gradient(135deg, #0d4a8a 0%, #2176c7 100%);
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

#login-section::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.login-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 40px;
  max-width: 440px;
  margin: 0 auto;
  color: white;
}

.login-box h3 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.login-box .sub {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.login-box .form-group label { color: rgba(255,255,255,0.8); }
.login-box .form-group input {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.login-box .form-group input::placeholder { color: rgba(255,255,255,0.4); }
.login-box .form-group input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }

/* ── Contact popup ── */
.contact-popup .modal { max-width: 400px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.contact-item:hover { color: var(--blue-mid); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.contact-item:hover .contact-icon { background: var(--blue-light); }

/* ── Toast notification ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-left: 4px solid var(--blue-mid);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 300px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Admin close overlay ── */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0,0,0,0.3);
}
.admin-overlay.open { display: block; }

/* ── Nav admin button ── */
.btn-admin-trigger {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-trigger:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(33,118,199,0.35); }

/* ── Image upload zone ── */
.upload-zone {
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-zone:hover { border-color: var(--blue-light); background: rgba(79,163,232,0.04); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone p { font-size: 0.85rem; color: var(--gray); }
.upload-zone strong { color: var(--blue-mid); }

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--gray-light);
}

.image-preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-img {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(239,68,68,0.9);
  color: white;
  border: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.image-preview-item:hover .remove-img { display: flex; }

/* ── Section editable indicator ── */
[contenteditable="true"] {
  outline: 2px dashed rgba(33,118,199,0.3);
  border-radius: 4px;
  cursor: text;
  position: relative;
  min-height: 1em;
}

/* ── Tarifs page ── */
.tarifs-desc {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ── Avis pending badge ── */
.pending-badge {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile / Tablette / Desktop
   ══════════════════════════════════════════════════════════════ */

/* ── Tablette large (≤ 1024px) ── */
@media (max-width: 1024px) {
  section { padding: 70px 5%; }
  .what-grid { gap: 40px; }
  .page-body { padding: 50px 5%; }
  #admin-panel { width: 380px; }
}

/* ── Tablette (≤ 768px) ── */
@media (max-width: 768px) {

  /* Nav */
  nav { padding: 0 4%; height: 62px; }
  .nav-links { display: none; }
  .nav-logo { font-size: 1.25rem; }

  /* Hero */
  #hero { min-height: 100svh; }
  .hero-content { padding: 0 6%; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); letter-spacing: -0.5px; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-badge { font-size: 0.78rem; padding: 6px 14px; }

  /* Boutons hero — colonne sur mobile */
  .hero-content > div { flex-direction: column; align-items: center; gap: 10px !important; }
  .btn-lg { padding: 13px 28px; font-size: 0.95rem; }

  /* Sections */
  section { padding: 55px 4%; }
  .page-body { padding: 40px 4%; max-width: 100%; }
  .page-header { padding: 110px 4% 50px; }
  .page-header h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  /* Que faisons nous */
  .what-grid { grid-template-columns: 1fr; gap: 36px; }
  .what-visual { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-card { padding: 18px 14px; }

  /* Boutons groupe */
  .btn-group { flex-direction: column; gap: 10px; }
  .btn-group .btn { justify-content: center; width: 100%; }

  /* Réalisations */
  .realisations-grid { grid-template-columns: 1fr; gap: 20px; }
  .real-gallery { height: 200px; }

  /* Admin panel — plein écran sur mobile */
  #admin-panel { width: 100% !important; }
  .admin-tabs { gap: 0; }
  .admin-tab { padding: 10px 12px; font-size: 0.78rem; }

  /* Modals */
  .modal { margin: 10px; max-width: calc(100vw - 20px) !important; }
  .modal-body { padding: 18px 20px; }
  .modal-footer { padding: 12px 20px 20px; flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; justify-content: center; }

  /* Avis */
  .avis-list { gap: 12px; }
  .avis-card { padding: 18px; }

  /* Login box */
  .login-box { padding: 28px 20px; }

  /* Footer */
  footer { padding: 30px 4%; }
  footer .footer-links { gap: 14px; font-size: 0.82rem; }

  /* Toast */
  .toast-container { bottom: 16px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }

  /* Lightbox flèches */
  .lb-arrow { width: 42px; height: 42px; font-size: 1.4rem; }
  #lb-prev { left: 8px; }
  #lb-next { right: 8px; }
  #lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  #lightbox img { max-width: 96vw; max-height: 80vh; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {

  /* Nav */
  nav { padding: 0 3%; height: 58px; }
  .nav-logo { font-size: 1.1rem; }
  .btn-admin-trigger { padding: 6px 12px; font-size: 0.78rem; }
  .btn-login-icon { width: 34px; height: 34px; font-size: 1rem; }

  /* Hero */
  .hero-title { font-size: clamp(1.9rem, 10vw, 2.6rem); }
  .hero-desc { font-size: 0.88rem; }
  .hero-badge { font-size: 0.72rem; }
  .hero-scroll { display: none; }

  /* Sections */
  section { padding: 45px 3%; }
  .page-body { padding: 30px 3%; }
  .page-header { padding: 95px 3% 40px; }

  /* Que faisons nous */
  .what-visual { grid-template-columns: 1fr; }
  .what-text h2 { font-size: 1.6rem; }
  .what-text p { font-size: 0.92rem; }

  /* Réalisations */
  .real-gallery { height: 180px; }
  .real-body { padding: 14px; }
  .real-body h3 { font-size: 1rem; }
  .real-body p { font-size: 0.84rem; }
  .real-actions { padding: 0 14px 14px !important; flex-wrap: wrap; }

  /* Avis page */
  .star-btn { font-size: 1.8rem; }
  .global-score { font-size: 2.4rem; }

  /* Admin tabs */
  .admin-tab { padding: 9px 8px; font-size: 0.72rem; }
  .admin-tab-content { padding: 18px 14px; }

  /* Modals */
  .modal-header { padding: 18px 16px 12px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 10px 16px 18px; }

  /* Contact items */
  .contact-icon { width: 38px; height: 38px; font-size: 1.1rem; }

  /* Tarifs */
  .tarif-grid { grid-template-columns: 1fr; }
  .tarif-price { font-size: 2.2rem; }

  /* Lightbox */
  #lb-counter { font-size: 0.78rem; padding: 4px 12px; bottom: 14px; }
  .lb-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
}

/* ── Très petit mobile (≤ 360px) ── */
@media (max-width: 360px) {
  .hero-title { font-size: 1.75rem; }
  .btn { padding: 10px 18px; font-size: 0.88rem; }
  .nav-logo { font-size: 1rem; }
}

/* ── Hamburger menu ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 38px; height: 38px;
  border-radius: 8px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.hamburger:hover { background: var(--gray-light); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav links mobile open state */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 8px 30px rgba(13,74,138,0.12);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    animation: menuSlideDown 0.25s ease;
  }

  .nav-links.open { display: flex; }

  @keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px 5%;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-light);
    transition: background var(--transition), color var(--transition);
  }
  .nav-links a:hover { background: var(--off-white); color: var(--blue-mid); }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
}

/* ── Bouton login icône ── */
.btn-login-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--blue-light);
  background: transparent;
  color: var(--blue-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-login-icon:hover { background: var(--blue-mid); color: white; transform: scale(1.08); }
.btn-login-icon.logged-in { background: var(--blue-mid); color: white; border-color: var(--blue-mid); }

/* ── Footer ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 5%;
  text-align: center;
  font-size: 0.85rem;
}

footer strong { color: white; }
footer .footer-links { display: flex; gap: 20px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
footer .footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--transition); }
footer .footer-links a:hover { color: var(--blue-light); }
