/* ============================================
   MONSIEUR REVE — Design System
   3 couleurs : Bleu nuit, Sable, Or
   Mobile-first responsive
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Chalkduster';
  src: url('fonts/Chalkduster_Regular.woff2') format('woff2');
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1B2A4A;
  --sand: #F9E7CF;
  --gold: #EFB91C;
  --white: #FFFDF8;
  --text: #1B2A4A;
  --text-light: #F9E7CF;
  --radius: 8px;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }
.chalk { font-family: 'Chalkduster', cursive; }
.gold { color: var(--gold); }
.tagline { font-family: 'Chalkduster', cursive; font-size: clamp(0.9rem, 2.5vw, 1.1rem); color: var(--gold); }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--blue { background: var(--blue); color: var(--text-light); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn--gold { background: var(--gold); color: var(--blue); }
.btn--blue { background: var(--blue); color: var(--sand); }
.btn--outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--blue); }
.btn--small { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--blue);
  padding: 0.75rem 0;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.nav__logo { height: 50px; width: auto; }
.nav__links { display: none; gap: 1.5rem; align-items: center; }
.nav__links a {
  color: var(--sand);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sand);
  transition: transform 0.3s;
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--blue);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: var(--sand);
  font-size: 1.3rem;
  font-weight: 600;
}
.nav__mobile a:hover { color: var(--gold); }
.nav__close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--sand);
  cursor: pointer;
  background: none;
  border: none;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,42,74,0.5) 0%, rgba(27,42,74,0.8) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.25rem 3rem;
  max-width: 700px;
}
.hero__content h1 { margin-bottom: 1rem; }
.hero__content p { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 2rem; opacity: 0.9; }

/* --- Stats bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat__number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold);
}
.stat__label { font-size: 0.85rem; opacity: 0.8; margin-top: 0.25rem; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card__body { padding: 1.5rem; }
.card__body h3 { color: var(--blue); }
.card__body p { font-size: 0.95rem; color: #555; margin-top: 0.5rem; }

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
}
.testimonial p { font-style: italic; font-size: 0.95rem; color: #444; }
.testimonial__author { font-weight: 700; color: var(--blue); margin-top: 0.75rem; font-style: normal; font-size: 0.9rem; }

/* --- Press logos --- */
.press { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; opacity: 0.7; }
.press img { height: 40px; width: auto; filter: grayscale(100%); transition: filter 0.3s; }
.press img:hover { filter: none; }

/* --- Footer --- */
.footer {
  background: var(--blue);
  color: var(--sand);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer h4 { color: var(--gold); margin-bottom: 0.75rem; font-size: 1rem; }
.footer p, .footer a { font-size: 0.9rem; opacity: 0.8; }
.footer a:hover { color: var(--gold); opacity: 1; }
.footer__bottom {
  border-top: 1px solid rgba(249,231,207,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer__social { display: flex; gap: 1rem; }
.footer__social a { font-size: 0.9rem; }

/* --- Newsletter form --- */
.newsletter { display: flex; flex-direction: column; gap: 0.75rem; max-width: 400px; }
.newsletter input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(249,231,207,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--sand);
  font-family: 'Poppins', sans-serif;
}
.newsletter input::placeholder { color: rgba(249,231,207,0.5); }

/* --- Contact form --- */
.form { max-width: 600px; margin: 0 auto; }
.form__group { margin-bottom: 1.25rem; }
.form__group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(27,42,74,0.15);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form__group input:focus,
.form__group textarea:focus { outline: none; border-color: var(--gold); }
.form__group textarea { min-height: 150px; resize: vertical; }

/* --- Film 4 acts --- */
.acts { counter-reset: act; }
.act {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(27,42,74,0.1);
}
@media (min-width: 768px) {
  .act { grid-template-columns: 1fr 1fr; }
  .act:nth-child(even) .act__img { order: -1; }
}
.act__img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.act__label {
  font-family: 'Chalkduster', cursive;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- Pricing box --- */
.price-box {
  background: var(--blue);
  color: var(--sand);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.price-box__amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
}
.price-box__desc { margin: 1rem 0; opacity: 0.8; }

/* --- Image with overlay text --- */
.img-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.img-section__bg {
  position: absolute;
  inset: 0;
}
.img-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,0.7);
}
.img-section__content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Spacing on body for fixed nav --- */
body { padding-top: 70px; }

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
