/* ==========================================================
   ARC-EN-CIEL — Électricité & Bâtiment
   style.css — Feuille de style principale
   ========================================================== */

/* ========== CSS VARIABLES ========== */
:root {
  --bg: #FFFFFF;
  --bg-card: #F7F7F5;
  --bg-card-hover: #F0F0ED;
  --text: #2A2A2A;
  --text-muted: #6B6B6B;
  --text-heading: #0F1115;
  --accent-gradient: linear-gradient(135deg, #FF6B6B, #FFA94D, #FFD43B, #69DB7C, #4DABF7, #9775FA);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(151,117,250,0.1));
  --accent-red: #E03131;
  --accent-orange: #F76707;
  --accent-yellow: #F59F00;
  --accent-green: #2F9E44;
  --accent-blue: #1971C2;
  --accent-purple: #6741D9;
  --border-color: rgba(0,0,0,0.08);
  --border-color-light: rgba(0,0,0,0.04);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ========== RAINBOW ACCENT BAR ========== */
.rainbow-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 1001;
}

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 3px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-arc {
  display: inline-block;
  width: 32px;
  height: 16px;
  border-radius: 100px 100px 0 0;
  border: 3px solid transparent;
  border-bottom: none;
  background: transparent;
  position: relative;
  overflow: visible;
}

.logo-arc::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 100px 100px 0 0;
  border: 3px solid transparent;
  border-bottom: none;
  background: var(--accent-gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

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

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

.nav-links a:hover { color: var(--text-heading); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.5rem;
  background: var(--accent-gradient);
  color: #FFFFFF !important;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: var(--transition);
}

.nav-cta:hover { transform: scale(1.05); opacity: 0.9; }
.nav-cta::after { display: none !important; }

.nav-phone {
  padding: 0.5rem 1rem;
  background: rgba(25,113,194,0.08);
  color: var(--accent-blue) !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: var(--transition);
}
.nav-phone:hover { background: rgba(25,113,194,0.15); }
.nav-phone::after { display: none !important; }

/* Burger menu */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); border-radius: 2px; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(77,171,247,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(151,117,250,0.06) 0%, transparent 50%),
              radial-gradient(circle at 50% 20%, rgba(255,107,107,0.05) 0%, transparent 40%);
  animation: heroBg 20s ease-in-out infinite alternate;
}

@keyframes heroBg {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 3%) rotate(3deg); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  background: rgba(0,0,0,0.02);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #FFFFFF;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(25,113,194,0.25); }

.btn-secondary {
  background: rgba(0,0,0,0.04);
  color: var(--text);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover { background: rgba(0,0,0,0.07); transform: translateY(-2px); }

/* ========== SECTIONS COMMON ========== */
section { padding: 7rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.8;
}

/* ========== SERVICES ========== */
#services { background: var(--bg); }

.services-header { margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: var(--border-color);
  box-shadow: var(--shadow);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--icon-bg);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 1.2rem;
  position: relative;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ========== ABOUT / À PROPOS ========== */
#about {
  background: linear-gradient(180deg, var(--bg) 0%, #FAFAF8 50%, var(--bg) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  position: relative;
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-subtle);
  opacity: 0.5;
}

.about-image-placeholder .placeholder-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.about-image-placeholder .placeholder-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.2rem 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.about-text .section-subtitle { margin-bottom: 1.5rem; }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(77,171,247,0.1);
}

.value-item h4 {
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ========== DEVIS / CONTACT ========== */
#devis { background: var(--bg); }

.devis-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 3.5rem;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color-light);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255,107,107,0.1);
}

.contact-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-item strong {
  display: block;
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.horaires-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.horaire-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.horaire-row .jour { color: var(--text-muted); }
.horaire-row .heures { color: var(--text-heading); font-weight: 500; }

/* ========== FORMULAIRE ========== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form-card .form-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group label .required { color: var(--accent-red); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(25,113,194,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); color: var(--text); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-submit .btn-primary {
  flex: 1;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

.form-message {
  display: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.form-message.success {
  display: block;
  background: rgba(105,219,124,0.1);
  border: 1px solid rgba(105,219,124,0.2);
  color: var(--accent-green);
}

.form-message.error {
  display: block;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  color: var(--accent-red);
}

/* ========== AVANT / APRÈS SLIDER ========== */
.before-after-section { margin-top: 3rem; margin-bottom: 3rem; }

.before-after {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--shadow);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.ba-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.ba-label {
  position: absolute;
  bottom: 1rem;
  z-index: 4;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.ba-label-left {
  left: 1rem;
  background: rgba(224,49,49,0.85);
  color: #fff;
}

.ba-label-right {
  right: 1rem;
  background: rgba(41,171,89,0.85);
  color: #fff;
}

/* ========== GALERIE RÉALISATIONS ========== */
#realisations { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========== FOOTER ========== */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 1.5rem; list-style: none; }

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text-heading); }

/* ========== SCROLL ANIMATIONS ========== */
/* Par défaut les éléments sont visibles (au cas où JS ne charge pas) */
/* La classe .js-loaded est ajoutée par le script au chargement */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== LIGHTBOX (agrandir les photos) ========== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.6);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  pointer-events: none;
}

/* ========== BOUTON APPEL FLOTTANT (MOBILE) ========== */
.floating-call {
  display: none;
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #FFF;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(25,113,194,0.4);
  z-index: 999;
  animation: pulseCall 2s ease-in-out infinite;
}

@keyframes pulseCall {
  0%, 100% { box-shadow: 0 6px 20px rgba(25,113,194,0.4); }
  50% { box-shadow: 0 6px 30px rgba(25,113,194,0.7); }
}

@media (max-width: 768px) {
  .floating-call { display: flex; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .devis-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Navigation mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

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

  /* Le bouton téléphone devient pleine largeur dans le menu mobile */
  .nav-phone {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem !important;
    font-size: 1rem !important;
    box-sizing: border-box;
  }

  .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
    box-sizing: border-box;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  nav .nav-inner { padding: 0 1rem; }

  /* Sections : padding réduit */
  section { padding: 4rem 1.2rem; }

  /* Hero */
  .hero { padding: 6rem 1.2rem 3rem; min-height: auto; }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .hero p { font-size: 1rem; }

  /* Boutons hero : pleine largeur pour faciliter le tap */
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  /* Titres de section */
  .section-title { font-size: 1.75rem; }

  /* Cartes services : padding réduit */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.8rem 1.3rem; }

  /* Stats : bien visibles */
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat { padding: 1rem 0.3rem; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }

  /* Formulaire */
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem 1.2rem; width: 100%; }
  .contact-card { padding: 1.5rem 1.2rem; width: 100%; }
  .contact-info { width: 100%; }
  .devis-container { width: 100%; }

  /* Empêcher les textes longs de déborder */
  .contact-item { min-width: 0; }
  .contact-item .contact-icon { flex-shrink: 0; }
  .contact-item > div:not(.contact-icon) { min-width: 0; flex: 1; overflow: hidden; }
  .contact-item span,
  .contact-item a {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.85rem;
  }

  /* Galerie */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }

  /* Footer centré proprement */
  .footer-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* Très petits écrans (iPhone SE, etc.) */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.5rem; }
  .stat-number { font-size: 1.2rem; }
  .nav-phone { font-size: 0.9rem !important; }
  .logo { font-size: 1.2rem; }
}
