/* ==========================================================================
   Meynier Décoration — feuille de style (v2, identité renforcée)
   ========================================================================== */

:root {
  --navy: #004e79;
  --navy-dark: #003a59;
  --navy-light: #0a6b9e;
  --gold: #fcb414;
  --gold-dark: #e29e00;
  --ink: #364c4c;
  --accent-warm: #d19b52;
  --accent-warm-dark: #a76928;
  --bg: #fdfdfd;
  --bg-alt: #f2f4f4;
  --muted: #6d827e;
  --border: #e2e6e5;
  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 14px 34px rgba(0, 43, 66, 0.12);
  --shadow-sm: 0 6px 16px rgba(0, 43, 66, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; line-height: 1.15; margin: 0 0 0.6em; font-weight: 800; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; }

/* Eyebrow — police manuscrite, signature de la marque */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.1em;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--light { color: #fff; }
.eyebrow--gold { color: var(--gold); }

.section { padding: 88px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.text-center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.lead.mx-auto { margin-left: auto; margin-right: auto; }

/* Forme décorative géométrique (angles dorés) — motif maison, pas de logo tiers */
.section::before,
.section::after { content: none; }
.shape-corner {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 6px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}
.shape-corner--tl { top: -20px; left: -20px; border-right: none; border-bottom: none; }
.shape-corner--br { bottom: -20px; right: -20px; border-left: none; border-top: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.98rem;
  font-family: inherit;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(252, 180, 20, 0.35);
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(252, 180, 20, 0.45); }
.btn::after {
  content: "→";
  transition: transform 0.25s ease;
}
.btn:hover::after { transform: translateX(4px); }
.btn--outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 14px 36px;
  box-shadow: none;
}
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); box-shadow: 0 8px 20px rgba(0, 78, 121, 0.35); }
.btn--navy:hover { background: var(--navy-dark); }
.btn--ghost {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  box-shadow: none;
  padding: 14px 36px;
}
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 253, 253, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,43,66,0.08); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo img { height: 50px; width: auto; border-radius: 4px; transition: height 0.25s ease; flex-shrink: 0; }
.site-header.is-scrolled .logo img { height: 42px; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.nav a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--navy); }
.nav a.nav__phone::after { content: none; }
.nav a.nav__phone:hover { color: #fff; }
.nav a.nav__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav__phone:hover { background: var(--gold); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
}

/* Hero slider (accueil) */
.hero-slider {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,43,66,0.82) 0%, rgba(0,43,66,0.55) 42%, rgba(0,43,66,0.15) 62%, rgba(0,43,66,0.05) 100%);
}
.hero-slide__goldblock {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 34%;
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold-dark) 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.94;
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-slide__inner { max-width: 620px; }
.hero-slide h1, .hero-slide .hero-h {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 0.4em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}
.hero-slide p {
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  font-size: 1.08rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}
.hero-slide .eyebrow {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.hero-slide .btn {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.55s, transform 0.7s ease 0.55s;
}
.hero-slide.is-active .eyebrow,
.hero-slide.is-active h1,
.hero-slide.is-active .hero-h,
.hero-slide.is-active p,
.hero-slide.is-active .btn {
  opacity: 1;
  transform: translateY(0);
}

.hero-nav {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hero-dot {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
}
.hero-dot.is-active { background: var(--gold); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(0,43,66,0.25);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

/* Page hero (sous-pages) */
.page-hero {
  position: relative;
  padding: 120px 0 64px;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(0,43,66,0.90) 0%, rgba(0,43,66,0.72) 55%, rgba(0,43,66,0.5) 100%);
}
.page-hero__goldblock {
  position: absolute;
  top: 0; right: -6%; bottom: 0;
  width: 28%;
  background: var(--gold);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.9;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero .lead { color: rgba(255,255,255,0.88); }

/* Apparition au scroll — dégradation en douceur :
   le contenu reste visible par défaut ; seul le JS (une fois chargé)
   ajoute .reveal-ready juste avant d'observer, pour ne jamais bloquer
   le contenu si le script ne s'exécute pas. */
[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 0.09s); }

/* Grids */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { overflow: hidden; height: 220px; }
.card__media img { height: 220px; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.08); }
.card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; border-top: 3px solid var(--gold); }
.card__body h3 { color: var(--navy); }
.card__body p { flex: 1; color: var(--muted); font-size: 0.95rem; }
.card__body a.btn { align-self: flex-start; padding: 11px 26px; font-size: 0.85rem; }

.value {
  padding: 26px 22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent;
}
.value:hover { transform: translateY(-4px); border-bottom-color: var(--gold); box-shadow: var(--shadow); }
.value .value__num {
  font-family: 'Londrina Outline', cursive;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.1em;
}
.value h3 { color: var(--navy); }
.value p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
  position: relative;
  transition: box-shadow 0.3s ease;
}
.gallery figure:hover { box-shadow: var(--shadow); }
.gallery .gallery__img-wrap { overflow: hidden; }
.gallery img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 700;
}

.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.two-col .media-frame {
  position: relative;
  border-radius: var(--radius);
}
.two-col .media-frame::before {
  content: "";
  position: absolute;
  top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 4px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.two-col .media-frame img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Testimonial */
.testimonial { text-align: center; max-width: 760px; margin: 0 auto; position: relative; }
.testimonial::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 8rem;
  color: rgba(252,180,20,0.35);
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.testimonial p.quote {
  font-family: 'Caveat', cursive;
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3em;
  position: relative;
}
.testimonial .who { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }

/* Partners */
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 52px; }
.partners img { max-height: 46px; width: auto; filter: grayscale(100%); opacity: 0.65; transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease; }
.partners img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.06); }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; right: -8%; bottom: 0;
  width: 40%;
  background: var(--gold);
  opacity: 0.14;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(253,253,253,0.82); margin-bottom: 1.6em; position: relative; }
.cta-band .container { position: relative; }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { margin-bottom: 0.4em; }
.contact-info .lead { margin-bottom: 2em; color: var(--muted); }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 1.4em; }
.contact-info dd { margin: 0.2em 0 0; font-weight: 700; font-size: 1.08rem; color: var(--navy); }

form.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  border-top: 4px solid var(--gold);
}
.radio-row { display: flex; gap: 24px; margin-bottom: 18px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252,180,20,0.18);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin: -6px 0 18px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; display: none; }
.form-status.is-success { display: block; background: #e5f4ec; color: #1e6b45; }
.form-status.is-error { display: block; background: #fbe7e7; color: #a13030; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(253,253,253,0.85); padding: 56px 0 24px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--accent-warm)); }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9em; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid a { display: block; margin-bottom: 8px; color: rgba(253,253,253,0.72); font-size: 0.92rem; transition: color 0.2s ease, transform 0.2s ease; }
.footer-grid a:hover { color: var(--gold); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(253,253,253,0.15); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(253,253,253,0.55); }

/* Legal page */
.legal h2 { margin-top: 1.6em; font-size: 1.15rem; }
.legal p { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .media-frame::before { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-slide__goldblock { width: 46%; }
}
@media (max-width: 640px) {
  .nav { position: fixed; inset: 68px 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; display: none; overflow-y: auto; z-index: 90; }
  .nav.is-open { display: flex; }
  /* Le blur du header transforme celui-ci en repère de positionnement pour
     ses enfants en "position: fixed" (dont le menu ci-dessus), ce qui le
     confine à la hauteur du header au lieu de tout l'écran : on le coupe
     pendant que le menu est ouvert. */
  .site-header.nav-open { backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav__phone { order: 10; margin-top: 12px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .radio-row { gap: 16px; }
  .hero-slide__goldblock { width: 100%; clip-path: none; opacity: 0.22; }
  .hero-slider { min-height: 92vh; }
  .hero-arrow { display: none; }
  .page-hero__goldblock { width: 55%; opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  .hero-slide .eyebrow, .hero-slide h1, .hero-slide .hero-h, .hero-slide p, .hero-slide .btn { opacity: 1; transform: none; }
}
