/* ══════════════════════════════════════════════
   PROHABITAT35 — Styles page d'accueil (index.css)
   ══════════════════════════════════════════════ */

/* ── FIX ZOOM iOS ── */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ── NAV ACTIONS (spécifique index) ── */
nav { justify-content: space-between; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-btn-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: #1a2233;
  padding: 0.55rem 1.1rem; border-radius: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none; transition: background 0.3s;
}
.nav-btn-phone:hover { background: var(--gold-light); }
.nav-btn-contact {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.07); color: var(--warm-gray);
  padding: 0.55rem 1.1rem; border-radius: 6px; border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 500;
  text-decoration: none; transition: background 0.3s, border-color 0.3s;
}
.nav-btn-contact:hover { background: rgba(255,255,255,0.11); border-color: var(--gold); color: var(--gold); }

/* ── HERO ── */
#accueil {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr; padding-top: 80px;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 5vw 6rem 8vw; position: relative;
}
.hero-content::after {
  content: ''; position: absolute; right: 0; top: 10%; bottom: 10%;
  width: 1px; background: var(--border);
}
.hero-tag {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 2rem; color: #c2c7cc;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle {
  font-size: 1rem; color: var(--warm-gray);
  line-height: 1.8; max-width: 38ch; margin-bottom: 3rem;
}
.hero-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.hero-visual { position: relative; overflow: hidden; background: #1e2537; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); transition: transform 8s ease;
}
.hero-slide.active img { transform: scale(1); }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,28,28,0.15) 0%, transparent 60%);
}
.hero-counter {
  position: absolute; bottom: 2rem; right: 2rem;
  display: flex; gap: 0.6rem; z-index: 2;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: white; transform: scale(1.3); }

/* ── HERO STATS ── */
.hero-stats {
  display: flex; gap: 3rem; margin-top: 3.5rem;
  padding-top: 3rem; border-top: 1px solid var(--border);
}
.stat-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 0.5rem;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(122,179,212,0.18); border: 1px solid rgba(122,179,212,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 0.4rem;
}
.stat-num {
  font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--warm-gray); display: block; line-height: 1.2; white-space: nowrap;
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: rgba(194,199,204,0.5); text-transform: uppercase;
}
.stat-sub { font-size: 0.78rem; color: rgba(194,199,204,0.4); white-space: nowrap; }

/* ── À PROPOS ── */
#apropos {
  background: #1a1f2e; color: #c2c7cc;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
#apropos .section-title { color: #c2c7cc; }
.about-quote {
  font-size: 0.95rem; line-height: 1.85; color: rgba(194,199,204,0.72);
  border-left: 3px solid var(--gold); padding-left: 1.2rem;
  margin: 1.8rem 0 0 0; font-style: normal;
}
.about-p {
  font-size: 0.95rem; line-height: 1.85;
  color: rgba(194,199,204,0.8); margin-top: 1.5rem;
}
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 3rem; }
.value-card {
  background: #1e2639; border-radius: 8px; padding: 1.3rem 1.1rem;
  transition: background 0.3s; border: none;
}
.value-card:hover { background: #232d45; }
.value-icon-svg {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(122,179,212,0.18); border: 1px solid rgba(122,179,212,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 0.9rem;
}
.value-title { font-size: 0.88rem; font-weight: 700; color: #c2c7cc; margin-bottom: 0.4rem; }
.value-text { font-size: 0.78rem; color: rgba(194,199,204,0.5); line-height: 1.6; }
.about-image-block { position: relative; padding-bottom: 3rem; padding-right: 2rem; }
.about-img-main { width: 75%; aspect-ratio: 4/5; object-fit: cover; display: block; border-radius: 2px; }
.about-img-accent {
  position: absolute; bottom: 0; right: 0;
  width: 52%; aspect-ratio: 1; object-fit: cover;
  border: 6px solid #1a1f2e; border-radius: 2px;
}
.about-exp-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: #7ab3d4; color: #192645; border: 1px solid #7ab3d4;
  border-radius: 8px; padding: 0.5rem 0.9rem;
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'Montserrat', sans-serif; z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.about-exp-badge .num { font-size: 0.75rem; font-weight: 600; line-height: 1; }
.about-exp-badge .label { font-size: 0.65rem; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 600; }

/* ── SERVICES ── */
#services { background: #1a1f2e; padding-left: 8vw; padding-right: 8vw; }

.svc2-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 3.5rem;
  max-width: 1300px; margin-left: auto; margin-right: auto; padding: 1rem;
}
.svc2-card {
  background: #1e2639; border: none;
  border-radius: 14px; display: flex; flex-direction: column;
  min-height: 480px; cursor: pointer; overflow: hidden;
}
.svc2-card:hover {
  background: #232d45; box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  animation: cardZoom 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cardZoom {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.03); }
}
.svc2-top { padding: 2rem 1.6rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.svc2-icon {
  width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem; flex-shrink: 0;
  background: rgba(122,179,212,0.18) !important;
}
.svc2-icon svg { stroke: #7ab3d4 !important; }
.svc2-title {
  font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 700;
  color: #e8ecf0; margin-bottom: 0.55rem; line-height: 1.25; transition: color 0.3s;
}
.svc2-card:hover .svc2-title { color: #ffffff; }
.svc2-desc { font-size: 0.88rem; color: #8a92a0; line-height: 1.65; margin-bottom: 1.3rem; transition: color 0.3s; }
.svc2-card:hover .svc2-desc { color: rgba(255,255,255,0.75); }
.svc2-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.55rem; flex: 1;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1rem; transition: border-color 0.3s;
}
.svc2-card:hover .svc2-list { border-top-color: rgba(255,255,255,0.15); }
.svc2-list li {
  font-size: 0.88rem; color: #9aa0ac; padding-left: 1.2rem;
  position: relative; line-height: 1.4; transition: color 0.3s;
}
.svc2-card:hover .svc2-list li { color: rgba(255,255,255,0.85); }
.svc2-list li::before {
  content: '✓'; position: absolute; left: 0; color: #7ab3d4;
  font-size: 0.72rem; font-weight: 700; top: 0.1em; transition: color 0.3s;
}
.svc2-card:hover .svc2-list li::before { color: #ffffff; }
.svc2-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 1rem 1.6rem; border-top: 1px solid rgba(255,255,255,0.07);
  text-decoration: none; font-size: 0.88rem; font-weight: 500; color: #8a92a0;
  transition: color 0.25s, background 0.25s, border-radius 0.25s, border-top-color 0.25s;
  background: transparent; text-align: center; margin: 0 1rem 1rem;
  border-radius: 8px; border: none;
}
.svc2-card:hover .svc2-cta { background: rgba(122,179,212,0.15); color: #7ab3d4; font-weight: 600; border-top: none; }

/* ── PORTFOLIO ── */
#portfolio { background: #1a1f2e; padding-bottom: 5rem; }
.portfolio-header { margin-bottom: 3.5rem; }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ba-card {
  border-radius: 16px; overflow: hidden;
  border: 4px solid #1e2537;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3); background: #1e2537;
}
.ba-card .card-img-zone {
  position: relative; width: 100%; aspect-ratio: 4/3; min-height: 380px;
  overflow: hidden; cursor: ew-resize; user-select: none;
}
.ba-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(20,25,40,0.97) 0%, rgba(20,25,40,0.65) 55%, transparent 100%);
  padding: 1.6rem 1.2rem 1.1rem;
  pointer-events: none; z-index: 15;
}
.ba-overlay-badge {
  display: inline-block; font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 3px; margin-bottom: 0.6rem;
}
.ba-overlay-title {
  font-size: 1rem; font-weight: 700; color: #e8ecf0;
  line-height: 1.25; margin-bottom: 0.45rem;
}
.ba-overlay-loc {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; color: rgba(194,199,204,0.65); margin-bottom: 0.45rem;
}
.ba-overlay-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.ba-tag {
  font-size: 0.6rem; font-weight: 600; padding: 0.15rem 0.5rem;
  border-radius: 3px; color: rgba(194,199,204,0.7);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
}

/* Portfolio chips */
.pf-chips { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pf-chip-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(194,199,204,0.4); margin-right: 0.3rem; }
.pf-chip {
  display: inline-flex; align-items: center; padding: 0.4rem 1rem;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; color: var(--warm-gray); white-space: nowrap;
}
.pf-chip-active { border-color: var(--gold); color: var(--gold); background: rgba(122,179,212,0.1); }
.pf-chip-link {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 1rem;
  border: 1px solid var(--border); border-radius: 100px; font-size: 0.75rem; font-weight: 600;
  color: var(--warm-gray); text-decoration: none; margin-left: auto;
  transition: var(--transition); white-space: nowrap;
}
.pf-chip-link:hover { border-color: var(--gold); color: var(--gold); }
.pf-voir-plus { text-align: center; margin-top: 2.5rem; }
.btn-voir-plus {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: transparent; color: #c2c7cc; border: 1px solid var(--border);
  padding: 1rem 2.4rem; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; border-radius: 4px;
  font-weight: 600; transition: var(--transition);
}
.btn-voir-plus:hover { background: var(--gold); color: #1a1f2e; border-color: var(--gold); }
.pf-voir-sub { margin-top: 0.8rem; font-size: 0.75rem; color: rgba(194,199,204,0.4); }

/* ── TÉMOIGNAGES ── */
#temoignages { background: #1a1f2e; }
.avis-existants { margin-bottom: 3rem; }
.avis-vide {
  text-align: center; padding: 3rem 2rem; border: 2px dashed var(--border);
  border-radius: 8px; background: #1e2537; max-width: 500px; margin: 0 auto;
}
.avis-vide-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.avis-vide-titre { font-size: 1rem; font-weight: 600; color: #c2c7cc; margin-bottom: 0.5rem; }
.avis-vide-desc { font-size: 0.82rem; color: var(--warm-gray); line-height: 1.7; }

/* Bouton Google avis */
.btn-google-avis {
  display: inline-flex; align-items: center; gap: 0.9rem;
  background: #1e2537; color: #c2c7cc;
  padding: 0.9rem 1.8rem; border-radius: 8px; text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.02em; transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}
.avis-google-sub {
  margin-top: 0.9rem; font-size: 0.72rem; color: rgba(194,199,204,0.35);
}

/* ── FORMULAIRE DEVIS — composants dv-new-* ── */
.dv-new-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(194,199,204,0.6);
  margin-bottom: 0.7rem; display: block;
}
.dv-new-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1rem; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; background: #1e2537; color: rgba(194,199,204,0.65);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; user-select: none; text-align: center;
  font-family: 'Inter', sans-serif;
}
.dv-new-btn:hover { border-color: rgba(122,179,212,0.4); color: #c2c7cc; background: #2a3347; }
.dv-new-btn.sel { border-color: rgba(122,179,212,0.5); color: #c2c7cc; background: rgba(122,179,212,0.08); }
.dv-new-input {
  width: 100%; padding: 0.8rem 1.1rem; background: #1e2537;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  font-size: 0.9rem; color: #c2c7cc; outline: none;
  font-family: 'Inter', sans-serif; transition: border-color 0.2s;
}
.dv-new-input:focus { border-color: rgba(122,179,212,0.5); }
.dv-new-input::placeholder { color: rgba(194,199,204,0.3); }

/* ── RESPONSIVE INDEX ── */
@media (max-width: 1100px) {
  .svc2-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  #accueil { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 6rem 6vw 4rem; }
  .hero-content::after { display: none; }
  .hero-visual { height: 55vw; min-height: 300px; }
  #apropos { grid-template-columns: 1fr; }
  .about-image-block { display: none; }
}
@media (max-width: 900px) {
  #portfolio .ba-grid { grid-template-columns: 1fr 1fr !important; }
  .pf-chip-link { margin-left: 0; }
}
@media (max-width: 768px) {
  .hero-stats { gap: 2rem; }
  .about-values { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  #dvTravauxGrid { grid-template-columns: 1fr 1fr !important; }
  #dvDelaiGrid { grid-template-columns: 1fr 1fr !important; }
  #devis > div:last-child { padding: 1.8rem 1.5rem; }
}
@media (max-width: 600px) {
  .svc2-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  #portfolio .ba-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .ba-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  #dvTravauxGrid { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════
   IS-MOBILE — INDEX
   ══════════════════════════════════════════════ */

body.is-mobile { overflow-x: hidden; max-width: 100vw; }
body.is-mobile section { padding: 3.5rem 5vw; }

/* Hero */
body.is-mobile #accueil {
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  min-height: 100svh;
  grid-template-columns: unset;
}
body.is-mobile .hero-content {
  padding: 2.5rem 5vw 2rem;
  order: 1;
}
body.is-mobile .hero-tag { margin-bottom: 1rem; font-size: 0.65rem; }
body.is-mobile .hero-title {
  font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
body.is-mobile .hero-subtitle {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 100%;
}
body.is-mobile .hero-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}
body.is-mobile .hero-actions a {
  text-align: center;
  justify-content: center;
  min-height: 50px;
  font-size: 0.85rem;
}
body.is-mobile .hero-visual {
  order: 2;
  height: 55vw;
  min-height: 200px;
  max-height: 280px;
  width: 100%;
}
body.is-mobile .hero-stats {
  order: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid var(--border);
  background: #1e2537;
}
body.is-mobile .stat-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.4rem;
  gap: 0.3rem;
  border-right: 1px solid var(--border);
}
body.is-mobile .stat-item:last-child { border-right: none; }
body.is-mobile .stat-icon { width: 34px; height: 34px; margin-bottom: 0.2rem; }
body.is-mobile .stat-icon svg { width: 15px; height: 15px; }
body.is-mobile .stat-num { font-size: 0.68rem; white-space: normal; line-height: 1.3; }
body.is-mobile .stat-sub { font-size: 0.6rem; white-space: normal; line-height: 1.3; }

/* À propos */
body.is-mobile #apropos { grid-template-columns: 1fr; padding: 3.5rem 5vw; }
body.is-mobile .about-image-block { display: none; }
body.is-mobile .about-p { font-size: 0.88rem; }
body.is-mobile .about-values { grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 2rem; }
body.is-mobile .value-card { padding: 1rem 0.9rem; }
body.is-mobile .value-icon-svg { width: 34px; height: 34px; margin-bottom: 0.6rem; }
body.is-mobile .value-title { font-size: 0.82rem; }
body.is-mobile .value-text { font-size: 0.72rem; }

/* Services */
body.is-mobile #services { padding: 3.5rem 5vw; }
body.is-mobile .svc2-grid {
  grid-template-columns: 1fr !important;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0;
}
body.is-mobile .svc2-card { min-height: auto; border-radius: 12px; }
body.is-mobile .svc2-top { padding: 1.4rem 1.2rem 1rem; }
body.is-mobile .svc2-icon { width: 42px; height: 42px; margin-bottom: 0.9rem; }
body.is-mobile .svc2-title { font-size: 1rem; }
body.is-mobile .svc2-desc { font-size: 0.82rem; margin-bottom: 0.8rem; }
body.is-mobile .svc2-list li { font-size: 0.82rem; }
body.is-mobile .svc2-cta { padding: 0.9rem 1.2rem; font-size: 0.82rem; min-height: 48px; }

/* Portfolio */
body.is-mobile #portfolio { padding: 3.5rem 5vw 3rem; }
body.is-mobile .ba-grid,
body.is-mobile #portfolio .ba-grid { grid-template-columns: 1fr !important; gap: 1rem; }
body.is-mobile .ba-card .card-img-zone { min-height: 230px; aspect-ratio: 16/10; }
body.is-mobile .btn-voir-plus {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 0.78rem;
}

/* Témoignages */
body.is-mobile #temoignages { padding: 3.5rem 5vw; }
body.is-mobile .btn-google-avis {
  width: 100%;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
}

/* Formulaire devis */
body.is-mobile #devis { padding: 3.5rem 5vw !important; }
body.is-mobile #devis > div:last-child {
  padding: 1.5rem 1rem !important;
  border-radius: 14px;
}
body.is-mobile #dvTravauxGrid { grid-template-columns: 1fr 1fr !important; }
body.is-mobile #dvDelaiGrid { grid-template-columns: 1fr 1fr !important; }
body.is-mobile .dv-new-btn { min-height: 50px; font-size: 0.8rem; padding: 0.75rem 0.5rem; border-radius: 10px; }
body.is-mobile .dv-new-input { min-height: 50px; font-size: 0.9rem; border-radius: 10px; }
/* Champs coordonnées en 1 colonne */
body.is-mobile #devis [style*="grid-template-columns: 1fr 1fr"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

/* Footer */
body.is-mobile footer { padding: 3rem 5vw 2rem; }
body.is-mobile .footer-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
body.is-mobile .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
body.is-mobile .footer-legal { flex-wrap: wrap; gap: 1rem; }