/* =============================================
   ARMANDO Carrelage Maçonnerie et Demolition
   Feuille de style principale
   ============================================= */

:root {
  --color-dark: #1f2937;
  --color-dark-2: #111827;
  --color-stone: #8d8378;
  --color-stone-light: #efece7;
  --color-accent: #d97706;
  --color-accent-dark: #b45309;
  --color-light: #f8f7f4;
  --color-white: #ffffff;
  --color-text: #374151;
  --color-text-light: #6b7280;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 76px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-dark); line-height: 1.2; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ancres : compense la hauteur du header sticky */
section[id] { scroll-margin-top: var(--header-height); }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 3000;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
address { font-style: normal; }

/* ---------- Reveal on scroll (uniquement si JS actif) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero : animation d'entrée en CSS pur (le titre reste visible dès le 1er rendu pour le LCP) */
.hero-anim { animation: heroIn 0.8s ease both; }
.hero-anim--title { animation-name: heroInTitle; }
.hero__subtitle.hero-anim { animation-delay: 0.1s; }
.hero__cta.hero-anim { animation-delay: 0.2s; }
.hero__stats.hero-anim { animation-delay: 0.3s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes heroInTitle { from { transform: translateY(20px); } to { transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.4);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid rgba(17, 24, 39, 0.2);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}
.btn--small { padding: 10px 20px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--color-dark-2);
  color: var(--color-white);
  font-size: 0.8rem;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 24px;
}
.top-bar__phone { font-weight: 600; color: var(--color-accent); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  transition: box-shadow var(--transition), background var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
}
.logo span { color: var(--color-accent); }
.logo__img { height: 52px; width: auto; display: block; }

.nav { display: flex; gap: 22px; }
.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav__link:hover,
.nav__link.is-active { color: var(--color-accent); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero { isolation: isolate; }
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-dark-2);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,0.75) 0%, rgba(17,24,39,0.55) 45%, rgba(17,24,39,0.85) 100%);
}
.hero__content {
  position: relative;
  color: var(--color-white);
  padding-top: 60px;
  padding-bottom: 60px;
}
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--color-white);
  max-width: 800px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--color-accent); }
.hero__subtitle {
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 28px;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--color-white); }
.hero__stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
}
.scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-white);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-head__desc { color: var(--color-text-light); font-size: 1.05rem; }

section { padding: 100px 0; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__image { position: relative; }
.about__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
}
.about__badge strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-accent); }
.about__badge span { font-size: 0.8rem; color: var(--color-text-light); }
.about__points span { color: var(--color-accent); margin-right: 4px; }

.about__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 20px; }
.about__text p { margin-bottom: 16px; color: var(--color-text); }
.about__points { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.about__points li { font-weight: 500; color: var(--color-dark); }

/* ---------- Services ---------- */
.services { background: var(--color-white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--color-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.service-card__img { height: 220px; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card__img img { transform: scale(1.08); }
.service-card__body { padding: 28px; }
.service-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin: -54px 0 14px;
  position: relative;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}
.service-card__body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card__body p { color: var(--color-text-light); margin-bottom: 16px; font-size: 0.95rem; }
.service-card__body ul { display: flex; flex-direction: column; gap: 6px; }
.service-card__body ul li {
  font-size: 0.9rem;
  color: var(--color-dark);
  padding-left: 18px;
  position: relative;
}
.service-card__body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--color-stone-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  background: linear-gradient(0deg, rgba(17,24,39,0.85), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  text-align: left;
}
.gallery__item:hover span,
.gallery__item:focus-visible span { opacity: 1; transform: translateY(0); }
/* Écrans tactiles : légende toujours visible (pas de survol) */
@media (hover: none) {
  .gallery__item span { opacity: 1; transform: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img {
  max-width: 86vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; text-align: center; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  color: var(--color-white);
  line-height: 1;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__close { top: 20px; right: 20px; font-size: 2.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.6rem; padding-bottom: 6px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--color-dark-2); }
.testimonials .eyebrow { color: var(--color-accent); }
.testimonials .section-head h2 { color: var(--color-white); }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial-card__stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card blockquote { color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; margin-bottom: 24px; }
.testimonial-card__author strong { display: block; color: var(--color-white); }
.testimonial-card__author span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Contact ---------- */
.contact__wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.contact__desc { color: var(--color-text-light); margin: 14px 0 28px; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.contact__email { overflow-wrap: anywhere; }
.contact__zone {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--color-stone-light);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}
.contact__zone strong { display: block; color: var(--color-dark); margin-bottom: 4px; }
.contact__zone p { font-size: 0.92rem; color: var(--color-text); }
.contact__list { display: flex; flex-direction: column; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-stone-light);
  border-radius: 50%;
  font-size: 1.2rem;
}
.contact__icon--svg { color: var(--color-accent); }
.contact__list strong { display: block; margin-bottom: 2px; color: var(--color-dark); }
.contact__list a:hover { color: var(--color-accent); }

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 380px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--color-dark-2); color: rgba(255, 255, 255, 0.7); padding-top: 72px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.logo--footer { color: var(--color-white); display: inline-block; margin-bottom: 16px; }
.logo--footer .logo__img { height: 64px; filter: brightness(0) invert(1); }
.footer__title { font-family: var(--font-heading); font-weight: 600; color: var(--color-white); font-size: 1rem; margin-bottom: 8px; }
.footer__grid p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col span { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer__col a:hover { color: var(--color-accent); }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; margin-top: 24px; }
.footer__bottom-inner { text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); display: flex; flex-direction: column; gap: 6px; }
.footer__credit a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--color-white); }

/* ---------- Mobile call FAB ---------- */
.mobile-call-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.mobile-call-fab.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablette */
@media (max-width: 1024px) {
  .header__actions .btn--small { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__image { max-width: 460px; margin: 0 auto; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-auto-rows: 220px; }
  .contact__wrap { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 80px 0; }
}

/* Mobile */
@media (max-width: 900px) {
  .top-bar__inner { flex-direction: column; gap: 4px; text-align: center; padding: 10px 24px; }

  .nav {
    position: absolute;
    top: 100%;
    z-index: -1;
    left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(17,24,39,0.06); }
  .header__actions .btn--small { display: none; }
  .burger { display: flex; width: 44px; height: 44px; }

  .hero { min-height: 100vh; min-height: 100svh; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__stats { justify-content: space-between; gap: 16px; }

  .services__grid { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:last-child { grid-column: span 2; } /* évite une vignette orpheline */

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__col { gap: 4px; }
  .footer__col a, .footer__col span { padding: 8px 0; }
  .top-bar__phone { padding: 6px 0; }

  .contact__map { min-height: 280px; }
  .contact__map iframe { min-height: 280px; }

  .mobile-call-fab { display: flex; }

  section { padding: 64px 0; }
}

/* Petit mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .top-bar__inner { padding: 8px 16px; font-size: 0.75rem; }
  .logo__img { height: 44px; }
  .hero__content { padding-top: 40px; padding-bottom: 90px; }
  .hero__subtitle { font-size: 1rem; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero__stat strong { font-size: 1.6rem; }
  .hero__stat span { font-size: 0.75rem; }
  .about__badge { left: 12px; bottom: -16px; }
  .gallery__grid { grid-auto-rows: 150px; gap: 10px; }
  .gallery__item span { font-size: 0.72rem; padding: 10px; }
  .contact__buttons .btn { width: 100%; }
  .testimonial-card { padding: 24px; }
  .lightbox { padding: 16px; }
  .lightbox__nav { top: auto; bottom: 24px; transform: none; }
  .lightbox img { max-width: 92vw; max-height: 70vh; }
}

/* Respecte la préférence « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
