/*
Theme Name: R.W. Rénovation
Theme URI: https://rw-renovation.fr
Author: R.W. Rénovation
Description: Thème one-page sur mesure pour R.W. Rénovation.
Version: 1.0.0
Text Domain: rw-renovation
*/

:root {
  --navy: #344a6b;
  --navy-dark: #243750;
  --gold: #d2b47a;
  --gold-soft: #eadfc9;
  --cream: #f8f7f3;
  --white: #ffffff;
  --ink: #202733;
  --muted: #657083;
  --line: #e8e4dc;
  --shadow: 0 18px 50px rgba(36, 55, 80, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--cream); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; color: var(--navy-dark); line-height: 1.14; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); letter-spacing: -.045em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 1.25rem; }
p { margin: 0 0 18px; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.section-head { margin-bottom: 46px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(36,55,80,.90);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; }
.brand-logo { width: 92px; height: 60px; object-fit: contain; flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: 27px; color: rgba(255,255,255,.88); font-size: .92rem; font-weight: 600; }
.nav a:hover { color: var(--gold); }
.nav .nav-cta { padding: 11px 18px; border: 1px solid var(--gold); color: var(--white); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); font-size: 1.7rem; }

.hero {
  position: relative;
  display: grid;
  min-height: 900px;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero::before {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,36,53,.88) 0%, rgba(23,36,53,.67) 48%, rgba(23,36,53,.12) 100%); content: ""; z-index: 1;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; max-width: 820px; padding-top: 80px; color: var(--white); }
.hero h1 { margin-bottom: 25px; color: var(--white); }
.hero h1 span { color: var(--gold); }
.hero-copy { max-width: 650px; color: rgba(255,255,255,.83); font-size: 1.22rem; }
.location { margin: 28px 0 34px; color: var(--white); font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 25px;
  border: 1px solid var(--gold); background: var(--gold); color: var(--navy-dark); font-size: .92rem; font-weight: 800; letter-spacing: .04em;
  transition: transform .2s, background .2s, color .2s;
}
.button:hover { transform: translateY(-2px); background: #dfc693; }
.button-outline { background: transparent; color: var(--white); }
.button-outline:hover { background: var(--white); color: var(--navy-dark); }
.button-navy { border-color: var(--navy); background: var(--navy); color: var(--white); }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.intro-image { position: relative; }
.intro-image img { width: 100%; min-height: 530px; object-fit: cover; box-shadow: var(--shadow); }
.intro-image::after { position: absolute; z-index: -1; right: -24px; bottom: -24px; width: 60%; height: 60%; background: var(--gold-soft); content: ""; }
.values { display: grid; margin-top: 32px; grid-template-columns: repeat(2,1fr); gap: 18px; }
.value { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.value strong { display: block; color: var(--navy-dark); font-size: 1rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { min-height: 265px; padding: 31px; border: 1px solid var(--line); background: var(--white); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-number { margin-bottom: 40px; color: var(--gold); font-size: .77rem; font-weight: 800; letter-spacing: .18em; }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.service-links a { border-bottom: 1px solid var(--gold); color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.service-links a:hover { color: var(--gold-dark); }

.gallery { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.gallery-main, .gallery-side { overflow: hidden; }
.gallery-main img { width: 100%; height: 650px; object-fit: cover; }
.gallery-side { display: grid; gap: 18px; }
.gallery-side img { width: 100%; height: 316px; object-fit: cover; }
.gallery img { transition: transform .5s; }
.gallery img:hover { transform: scale(1.025); }
.pro-project { padding: 0; background: var(--navy); color: var(--white); }
.pro-project .pro-project-grid { display: grid; height: 300px; min-height: 0; grid-template-columns: 1fr 1fr; overflow: hidden; }
.pro-project-image { height: 100%; overflow: hidden; }
.pro-project-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.pro-project-copy { display: flex; flex-direction: column; justify-content: center; padding: 26px 34px; }
.pro-project-copy .eyebrow { margin-bottom: 6px; font-size: .78rem; }
.pro-project-copy h2 { margin-bottom: 8px; font-size: clamp(1.9rem,2.35vw,2.35rem); }
.pro-project-copy .lead { max-width: 620px; margin-bottom: 13px; font-size: 1rem; line-height: 1.45; }
.pro-project-copy .actions { flex-wrap: nowrap; gap: 10px; }
.pro-project-copy .button { min-height: 44px; padding-inline: 17px; font-size: .82rem; white-space: nowrap; }
.pro-project-copy h2 { color: var(--white); }
.pro-project-copy .lead { color: rgba(255,255,255,.78); }
.button-light { border: 1px solid rgba(255,255,255,.65); background: transparent; color: var(--white); }
.button-light:hover { background: var(--white); color: var(--navy); }
.gallery-premium { grid-template-columns: repeat(12,1fr); grid-template-rows: 300px 320px 290px 275px 320px 285px; grid-auto-rows: 285px; }
.gallery-item { grid-column: span 4; margin: 0; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-wide { grid-column: span 8; grid-row: span 2; }
.gallery-tall { grid-column: span 4; grid-row: span 2; }
.gallery-moodboard { grid-auto-flow: row; gap: 14px; }
.gallery-moodboard .gallery-item:nth-child(1) { grid-column: span 5; }
.gallery-moodboard .gallery-item:nth-child(2) { grid-column: span 7; }
.gallery-moodboard .gallery-item:nth-child(3),
.gallery-moodboard .gallery-item:nth-child(4),
.gallery-moodboard .gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-moodboard .gallery-item:nth-child(6) { grid-column: span 6; }
.gallery-moodboard .gallery-item:nth-child(7),
.gallery-moodboard .gallery-item:nth-child(8) { grid-column: span 3; }
.gallery-moodboard .gallery-item:nth-child(9) { grid-column: span 3; }
.gallery-moodboard .gallery-item:nth-child(10) { grid-column: span 4; }
.gallery-moodboard .gallery-item:nth-child(11) { grid-column: span 3; }
.gallery-moodboard .gallery-item:nth-child(12) { grid-column: span 2; }
.gallery-moodboard .gallery-item:nth-child(13),
.gallery-moodboard .gallery-item:nth-child(14),
.gallery-moodboard .gallery-item:nth-child(15) { grid-column: span 4; }
.gallery-moodboard .gallery-item:nth-child(16) { grid-column: span 4; }
.gallery-moodboard .gallery-item:nth-child(17) { grid-column: span 6; }
.gallery-moodboard .gallery-item:nth-child(18) { grid-column: span 2; }

.beauty-modal {
  position: fixed; z-index: 1000; inset: 0; display: none; overflow-y: auto; padding: 32px;
  background: rgba(23,37,53,.92); backdrop-filter: blur(8px);
}
.beauty-modal:target, .beauty-modal.is-open { display: block; }
.beauty-modal-panel { width: min(1180px,100%); margin: 0 auto; padding: 34px; background: var(--white); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.beauty-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.beauty-modal-head h2 { margin-bottom: 0; font-size: clamp(2rem,4vw,3.2rem); }
.beauty-modal-close { display: grid; width: 48px; height: 48px; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); color: var(--navy-dark); font-size: 2rem; line-height: 1; }
.beauty-gallery { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-flow: dense; grid-auto-rows: 220px; gap: 14px; }
.beauty-gallery figure { grid-column: span 4; margin: 0; overflow: hidden; }
.beauty-gallery .beauty-gallery-progress { grid-column: span 6; }
.beauty-gallery .beauty-gallery-wide { grid-column: span 8; }
.beauty-gallery .beauty-gallery-tall { grid-row: span 2; }
.beauty-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.beauty-gallery img:hover { transform: scale(1.025); }
body.gallery-open { overflow: hidden; }

.project-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.project-type { min-height: 180px; padding: 32px; background: var(--white); }
.project-type::before { display: block; width: 32px; height: 2px; margin-bottom: 22px; background: var(--gold); content: ""; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.step { position: relative; padding-top: 58px; }
.step-num { position: absolute; top: 0; left: 0; color: var(--gold); font-size: 2.5rem; font-weight: 300; line-height: 1; }
.step p { color: var(--muted); font-size: .94rem; }

.area { overflow: hidden; background: var(--navy-dark); color: var(--white); }
.area h2 { color: var(--white); }
.area .lead { color: rgba(255,255,255,.72); }
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.city { padding: 10px 14px; border: 1px solid rgba(210,180,122,.55); color: var(--white); font-size: .85rem; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-card { padding: 34px; background: var(--navy-dark); color: var(--white); }
.contact-card h3 { color: var(--white); }
.contact-card a { color: var(--gold); word-break: break-word; }
.contact-list { margin: 30px 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.13); }
.form { display: grid; grid-template-columns: repeat(2,1fr); gap: 17px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy-dark); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #d9d5cd; border-radius: 0; background: var(--white); padding: 14px 15px; color: var(--ink); font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: .8rem; }
.status { margin-bottom: 22px; padding: 15px 18px; border-left: 3px solid var(--gold); background: var(--cream); }
.hp { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 34px 0; background: #172535; color: rgba(255,255,255,.65); font-size: .85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { color: var(--white); font-weight: 700; letter-spacing: .08em; }

@media (max-width: 900px) {
  .nav { position: absolute; top: 78px; right: 0; left: 0; display: none; padding: 22px; background: var(--navy-dark); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: 760px; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .project-types { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery-main img { height: 500px; }
  .gallery-side { grid-template-columns: repeat(2,1fr); }
  .pro-project .pro-project-grid { height: auto; grid-template-columns: 1fr; }
  .pro-project-image { height: 230px; }
  .pro-project-copy { padding: 34px 30px; }
  .pro-project-copy .actions { flex-wrap: wrap; }
  .gallery-premium { grid-template-columns: repeat(2,1fr); grid-template-rows: none; grid-auto-rows: 300px; }
  .gallery-item, .gallery-wide, .gallery-tall,
  .gallery-moodboard .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .beauty-gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 260px; }
  .beauty-gallery figure, .beauty-gallery .beauty-gallery-wide, .beauty-gallery .beauty-gallery-progress { grid-column: span 1; }
  .beauty-gallery .beauty-gallery-tall { grid-row: span 1; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 72px 0; }
  .brand { font-size: .9rem; }
  .brand-logo { width: 70px; height: 46px; }
  .hero { min-height: 720px; }
  .hero::before { background: linear-gradient(180deg, rgba(23,36,53,.68) 0%, rgba(23,36,53,.82) 100%); }
  .hero-copy { font-size: 1.05rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .services-grid, .project-types, .steps, .form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .gallery-main img { height: 420px; }
  .gallery-side { grid-template-columns: 1fr; }
  .gallery-side img { height: 300px; }
  .values { grid-template-columns: 1fr; }
  .intro-image img { min-height: 400px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .pro-project-image { height: 190px; }
  .pro-project-copy { padding: 28px 22px; }
  .pro-project-copy .actions { flex-direction: column; }
  .pro-project-copy .button { width: 100%; white-space: normal; }
  .gallery-premium { grid-template-columns: 1fr; grid-auto-rows: 360px; }
  .beauty-modal { padding: 12px; }
  .beauty-modal-panel { padding: 22px 16px; }
  .beauty-gallery { grid-template-columns: 1fr; grid-auto-rows: 300px; }
}
