/* =========================================================
   ADE Renov — maquette Timy Studio
   DA « l'heure dorée » : relevée sur leurs propres photos.
   Le brun-noir chaud et l'or viennent du coucher de soleil
   sur leur dépôt (p03) et de la pierre de la Maison Carrée
   devant laquelle ils garent leur camion (p00). Le rouge et
   le bleu sont ceux de l'éclair floqué sur leurs véhicules.
   ========================================================= */

:root {
  /* Palette — nuit chaude, pierre, lumière */
  --color-bg:           #16110D;
  --color-bg-alt:       #1F1813;
  --color-surface:      #2A211A;
  --color-text:         #EFE6D8;
  --color-text-muted:   #B6A392;
  --color-accent:       #F0A62B;
  --color-accent-hover: #FFBF4D;
  --color-red:          #D63A28;
  --color-blue:         #3556AD;
  --color-border:       rgba(239, 230, 216, 0.14);
  --color-border-lite:  rgba(239, 230, 216, 0.07);

  /* Typographie — serif romain (la pierre) + sans humaniste chaud */
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, "Palatino LT STD", "URW Palladio L", "Times New Roman", serif;
  --font-body:    Candara, "Gill Sans", "Gill Sans MT", Optima, "Lucida Grande", sans-serif;

  /* Espacements */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   2rem;
  --space-xl:   4rem;
  --space-2xl:  clamp(4.5rem, 9vw, 8rem);

  /* Rayons */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Transitions */
  --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
dl, dd { margin: 0; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Blocs communs ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.sec-head { max-width: 46rem; margin-bottom: var(--space-xl); }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.sec-head > p { margin-top: var(--space-md); color: var(--color-text-muted); font-size: 1.08rem; }
.sec-head-c { max-width: 42rem; margin-inline: auto; text-align: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.92rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1.02rem; font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-fast);
}
.btn .arr { transition: transform var(--t-base); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: var(--color-accent); color: var(--color-bg); }
.btn-gold:hover { background: var(--color-accent-hover); }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-block { width: 100%; justify-content: center; }

/* Note Google : étoiles partielles par calque clippé */
.note { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: 0; }
.stars { position: relative; display: inline-block; font-size: 1.1rem; letter-spacing: 0.1em; line-height: 1; }
.stars-base { color: rgba(239, 230, 216, 0.22); }
.stars-fill {
  position: absolute; inset: 0;
  overflow: hidden; white-space: nowrap;
  color: var(--color-accent);
}
.note-txt { font-size: 0.95rem; color: var(--color-text-muted); }
.note-txt strong { color: var(--color-text); font-family: var(--font-display); font-size: 1.06rem; letter-spacing: 0.01em; }
.note-txt a { color: inherit; text-underline-offset: 3px; }
.note-txt a:hover { color: var(--color-accent); }
.note-lg { justify-content: center; margin-bottom: var(--space-md); }
.note-lg .stars { font-size: 1.35rem; }

.lien-ext {
  display: inline-block; margin-top: var(--space-lg);
  font-weight: 700; font-size: 0.98rem;
  color: var(--color-accent); text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 3px;
  transition: border-color var(--t-base);
}
.lien-ext:hover { border-color: var(--color-accent); }

/* ---------- Marqueur de maquette ---------- */
.pitch {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--color-red); color: #fff;
  padding: 0.6rem 1.25rem;
  font-size: 0.86rem; font-weight: 700;
  text-align: center;
}
.pitch-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 17, 13, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base);
}
.nav.scrolled { background: rgba(22, 17, 13, 0.94); border-bottom-color: var(--color-border-lite); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 1.7rem; }
.nav-links a {
  text-decoration: none; font-size: 0.95rem; font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--t-base);
}
.nav-links a:hover { color: var(--color-accent); }
.nav-tel { display: flex; flex-direction: column; text-decoration: none; text-align: right; }
.nav-tel-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--color-text-muted); }
.nav-tel-num { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--color-accent); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5.5rem) 0 var(--space-2xl); }
.hero-glow {
  position: absolute; top: -22%; right: 4%;
  width: min(58vw, 760px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(240, 166, 43, 0.20) 0%, rgba(240, 166, 43, 0.05) 42%, transparent 68%);
  pointer-events: none;
}
.hero-bolt {
  position: absolute; left: -4%; top: 8%;
  width: clamp(220px, 26vw, 420px); height: 118%;
  opacity: 0.055;
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-text { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); letter-spacing: -0.022em; }
.hero h1 .hl { color: var(--color-accent); font-style: italic; }
.hero-lede {
  margin-top: var(--space-lg);
  max-width: 34rem;
  font-size: clamp(1.04rem, 1.5vw, 1.19rem);
  color: var(--color-text-muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--space-lg); }
.note-hero { margin-top: var(--space-lg); }

/* La photo, ouverte par la colonnade */
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; height: auto;
  /* La photo est un portrait 3:4 : on la borne pour garder le CTA a l'ecran sur un portable. */
  max-height: 68vh;
  object-fit: cover; object-position: center 45%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.hero-photo figcaption {
  margin-top: 0.85rem;
  font-size: 0.86rem; color: var(--color-text-muted);
  text-align: right;
}
.shutters {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  pointer-events: none;
}
/* Sans JS, les volets restent ouverts : la photo est visible quoi qu'il arrive. */
.shutters i { background: var(--color-bg); transform: scaleY(0); will-change: transform; }
.js .shutters i { transform: scaleY(1); transform-origin: top center; }
.js .shutters i:nth-child(even) { transform-origin: bottom center; }

/* ---------- Bande de faits ---------- */
.faits { background: var(--color-bg-alt); border-block: 1px solid var(--color-border-lite); }
.faits-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}
.fait { display: flex; flex-direction: column; gap: 2px; padding-left: var(--space-md); border-left: 2px solid var(--color-red); }
.fait strong { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: -0.015em; }
.fait span { font-size: 0.9rem; color: var(--color-text-muted); }

/* ---------- Prestations ---------- */
.presta { padding: var(--space-2xl) 0; }
.presta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-md); }
.p-card {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-lite);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base);
}
.p-card:hover { border-color: var(--color-border); transform: translateY(-3px); }
.p-card-lg { grid-column: span 3; }
.p-photo { overflow: hidden; }
.p-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform var(--t-slow); }
.p-card-lg:hover .p-photo img { transform: scale(1.04); }
.p-body { padding: var(--space-lg); }
.p-k {
  display: block; margin-bottom: 0.7rem;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--color-red); letter-spacing: 0.08em;
}
.p-body h3 { font-size: 1.4rem; }
.p-body p { margin-top: 0.6rem; color: var(--color-text-muted); font-size: 0.99rem; }

/* ---------- Chantiers ---------- */
.chantiers { padding: var(--space-2xl) 0; background: var(--color-bg-alt); border-block: 1px solid var(--color-border-lite); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.m-cell { position: relative; margin: 0; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; background: var(--color-surface); }
.m-cell img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform var(--t-slow); }
.m-cell:hover img { transform: scale(1.05); }
.m-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(22, 17, 13, 0.92), transparent);
  font-size: 0.92rem; font-weight: 600;
}

/* ---------- Avis ---------- */
.avis { padding: var(--space-2xl) 0; }
.avis-grid { columns: 2; column-gap: var(--space-md); }
.avis blockquote {
  break-inside: avoid;
  margin: 0 0 var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-lite);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
}
.avis blockquote p { font-size: 1.04rem; line-height: 1.58; white-space: pre-line; }
.avis blockquote cite {
  display: block; margin-top: var(--space-md);
  font-style: normal; font-weight: 700; font-size: 0.93rem;
}
.avis blockquote cite span {
  display: block; font-weight: 400; font-size: 0.82rem;
  color: var(--color-text-muted); letter-spacing: 0.04em;
}

/* ---------- L'entreprise ---------- */
.maison { padding: var(--space-2xl) 0; background: var(--color-bg-alt); border-block: 1px solid var(--color-border-lite); }
.maison-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.maison-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; border: 1px solid var(--color-border); }
.maison-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.maison-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.maison-text .lede { margin-top: var(--space-md); color: var(--color-text-muted); font-size: 1.06rem; }
.repere { margin-top: var(--space-lg); display: grid; gap: 0.9rem; }
.repere > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--space-md); padding-bottom: 0.9rem; border-bottom: 1px solid var(--color-border-lite); }
.repere dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--color-text-muted); padding-top: 3px; }
.repere dd { font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact { padding: var(--space-2xl) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.contact-tel {
  display: inline-block; margin-top: var(--space-md);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  color: var(--color-accent); text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--t-base);
}
.contact-tel:hover { color: var(--color-accent-hover); }
.contact-meta { margin-top: var(--space-lg); display: grid; gap: var(--space-md); }
.contact-meta > div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-border-lite); }
.contact-meta dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--color-text-muted); padding-top: 4px; }
.contact-meta dd { font-size: 1rem; }
.h-row { display: flex; justify-content: space-between; gap: var(--space-md); max-width: 22rem; }
.h-off { color: var(--color-text-muted); }

.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-lite);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.field { margin-bottom: var(--space-md); }
.field label { display: block; margin-bottom: 0.45rem; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--t-base);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); }
.form-note { margin-top: var(--space-md); font-size: 0.82rem; color: var(--color-text-muted); text-align: center; }

/* ---------- Footer ---------- */
.foot { background: var(--color-bg-alt); border-top: 1px solid var(--color-border-lite); padding: var(--space-xl) 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 0.8rem; }
.foot-brand strong { display: block; font-family: var(--font-display); font-size: 1.06rem; }
.foot-brand span { font-size: 0.85rem; color: var(--color-text-muted); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { font-size: 0.9rem; color: var(--color-text-muted); text-decoration: none; transition: color var(--t-base); }
.foot-links a:hover { color: var(--color-accent); }
.foot-cred { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 11, 8, 0.94);
  padding: var(--space-lg);
}
.lightbox.open { display: flex; }
.lb-img { max-width: min(1100px, 92vw); max-height: 88vh; width: auto; border-radius: var(--radius-md); }
.lb-close, .lb-nav {
  position: absolute; background: none; border: none; color: var(--color-text);
  font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 0.4rem 0.9rem;
  transition: color var(--t-base);
}
.lb-close:hover, .lb-nav:hover { color: var(--color-accent); }
.lb-close { top: 1rem; right: 1.4rem; font-size: 2.2rem; }
.lb-prev { left: 0.6rem; }
.lb-next { right: 0.6rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  /* Le texte passe devant la photo : le CTA telephone reste visible sans scroller. */
  .hero-in { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 62%; }
  .hero-photo figcaption { text-align: left; }
  .faits-in { grid-template-columns: repeat(2, 1fr); }
  .presta-grid { grid-template-columns: repeat(2, 1fr); }
  .p-card, .p-card-lg { grid-column: span 1; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .avis-grid { columns: 1; }
  .maison-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-tel-label { display: none; }
  .faits-in, .presta-grid, .mosaic { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .repere > div, .contact-meta > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .shutters { display: none; }
}
