/* =====================================================================
   Artisan Bâtiment IDF — Feuille de style
   Palette : bleu marine + orange chantier
   ===================================================================== */

:root {
  --navy: #0f1e34;
  --navy-2: #1a2c4e;
  --navy-3: #243a63;
  --orange: #ff6a00;
  --orange-2: #ff8a33;
  --orange-dark: #e55f00;
  --gray-bg: #f5f6f8;
  --gray-2: #e9ecf2;
  --gray-text: #5b6577;
  --text: #1a2333;
  --white: #ffffff;
  --green: #25d366;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 30, 52, .08);
  --shadow-lg: 0 20px 50px rgba(15, 30, 52, .14);
  --container: 1160px;
  --transition: .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; color: var(--navy); font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 50px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap; font-family: inherit;
}
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 20px rgba(255, 106, 0, .3); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 106, 0, .4); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #c6d2e6; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.topbar__phone { color: var(--white); font-weight: 600; }
.topbar__phone:hover { color: var(--orange-2); }
.topbar__item:nth-child(2) { display: block; }

/* ---------- Header ---------- */
.header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(15,30,52,.05); transition: var(--transition); }
.header.scrolled { box-shadow: 0 6px 20px rgba(15,30,52,.1); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 12px; background: var(--orange);
  display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 14px rgba(255,106,0,.35);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-family: 'Poppins'; font-size: 17px; color: var(--navy); }
.logo__text small { font-size: 11px; color: var(--gray-text); letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--text); transition: var(--transition); position: relative; }
.nav a:not(.nav__cta):hover { color: var(--orange); }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--orange); transition: var(--transition);
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { color: var(--white) !important; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: var(--transition); }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 600px; display: flex; align-items: center;
  background: linear-gradient(120deg, rgba(15,30,52,.92), rgba(26,44,78,.78)),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--white); padding: 70px 0;
}
.hero__content { max-width: 720px; position: relative; z-index: 2; }
.hero__tag {
  display: inline-block; background: rgba(255,106,0,.18); color: var(--orange-2);
  border: 1px solid rgba(255,106,0,.4); padding: 7px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 22px; letter-spacing: .3px;
}
.hero h1 { color: var(--white); font-size: clamp(30px, 5vw, 50px); margin-bottom: 18px; }
.hero__subtitle { font-size: clamp(16px, 2vw, 19px); color: #d6deeb; max-width: 600px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: #c6d2e6; }
.hero__badges span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Trust ---------- */
.trust { padding: 0; margin-top: -50px; position: relative; z-index: 5; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.trust__item { text-align: center; padding: 8px; }
.trust__icon { font-size: 32px; margin-bottom: 10px; }
.trust__item h3 { font-size: 16px; margin-bottom: 6px; }
.trust__item p { font-size: 13.5px; color: var(--gray-text); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--gray-bg); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section__kicker { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin-bottom: 10px; }
.section__head h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.section__intro { color: var(--gray-text); font-size: 16px; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  transition: var(--transition); border: 1px solid var(--gray-2); position: relative; overflow: hidden;
}
.service::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service:hover::before { transform: scaleX(1); }
.service__icon { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); display: grid; place-items: center; margin-bottom: 18px; }
.service__icon svg { width: 30px; height: 30px; fill: var(--orange-2); }
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--gray-text); font-size: 14.5px; margin-bottom: 16px; }
.service__points li { font-size: 14px; color: var(--text); padding: 4px 0 4px 24px; position: relative; }
.service__points li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }

/* ---------- Zones ---------- */
.zones__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.zone {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow); transition: var(--transition); border-top: 4px solid var(--orange);
}
.zone:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.zone__code { font-family: 'Poppins'; font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1; }
.zone__nom { font-size: 13px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 8px 0 10px; }
.zone__texte { font-size: 13.5px; color: var(--gray-text); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(15,30,52,.9));
  color: var(--white); padding: 30px 18px 14px; font-weight: 600; font-size: 14.5px;
}

/* ---------- Avis ---------- */
.avis__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.avis { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.avis::before { content: "\201C"; position: absolute; top: 4px; right: 22px; font-size: 70px; color: var(--orange); opacity: .15; font-family: Georgia; line-height: 1; }
.avis__stars { color: #ffb300; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.avis__texte { color: var(--text); font-size: 15px; margin-bottom: 18px; font-style: italic; }
.avis__nom { font-weight: 700; color: var(--navy); }
.avis__ville { font-size: 13px; color: var(--gray-text); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange), var(--orange-dark)); color: var(--white); padding: 50px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact__info h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 14px; }
.contact__list { margin-top: 26px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-bg); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.contact__list small { display: block; font-size: 12px; color: var(--gray-text); text-transform: uppercase; letter-spacing: .5px; }
.contact__list a, .contact__list span { font-weight: 600; color: var(--navy); }
.contact__list a:hover { color: var(--orange); }

.contact__form { background: var(--navy); color: var(--white); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.contact__form h3 { color: var(--white); margin-bottom: 20px; font-size: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: #c6d2e6; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 2px solid #2c4366;
  background: #182846; color: var(--white); font-family: inherit; font-size: 15px; transition: var(--transition);
}
.field input::placeholder, .field textarea::placeholder { color: #7e8da6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #1c2c4d; }
.field select option { background: var(--navy); }
.form__note { font-size: 14px; margin-top: 12px; min-height: 18px; font-weight: 600; }
.form__note.ok { color: #4ade80; }
.form__note.err { color: #fca5a5; }
.form__hint { font-size: 13px; color: #9fabbd; margin-top: 14px; text-align: center; }
.form__hint a { color: var(--orange-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b6c2d6; padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.logo--footer .logo__text strong { color: var(--white); }
.logo--footer .logo__text small { color: #8190a8; }
.footer__txt { font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer__col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; font-family: 'Inter'; font-weight: 600; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col li { font-size: 14px; }
.footer__col a { transition: var(--transition); }
.footer__col a:hover { color: var(--orange-2); }
.footer__bottom { border-top: 1px solid #1f3056; padding: 20px 0; font-size: 13px; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Boutons flottants ---------- */
.float-btn {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; color: var(--white); box-shadow: var(--shadow-lg); z-index: 90; transition: var(--transition);
}
.float-btn--phone { background: var(--orange); bottom: 84px; }
.float-btn--whatsapp { background: var(--green); }
.float-btn:hover { transform: scale(1.1); }

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .zones__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .avis__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__item:nth-child(2) { display: none; } /* cache les horaires sur mobile */
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    background: var(--white); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 90px 28px; gap: 8px; box-shadow: -10px 0 40px rgba(0,0,0,.2);
    transform: translateX(100%); transition: transform .35s ease; z-index: 110;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 17px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--gray-2); }
  .nav__cta { border-bottom: none !important; margin-top: 10px; text-align: center; }
  .burger { display: flex; z-index: 120; }
  .burger.active span { background: var(--navy); }
  .hero { min-height: 520px; padding: 50px 0; text-align: left; }
  .section { padding: 60px 0; }
  .trust { margin-top: -40px; }
  .trust__grid { padding: 22px; gap: 14px; }
}

@media (max-width: 540px) {
  .services__grid, .zones__grid, .gallery { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__cta .btn { width: 100%; }
  .hero__badges { gap: 12px; font-size: 13px; }
  .contact__form { padding: 24px; }
}
