/* ============================================================
   Rives Parisiennes Paris-Melun — style.css
   DA : Poppins 200/300/600 · Navy #1B355F · Brun #423217
        Or #a57d25→#f1dd81 · Footer or #9e7a31
   ============================================================ */

/* ===== Poppins auto-hébergée (RGPD-clean) ===== */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/poppins-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-600.woff2') format('woff2');
}

/* ===== Variables ===== */
:root {
  --navy:        #1B355F;
  --brown:       #423217;
  --gold-dark:   #a57d25;
  --gold-mid:    #f1dd81;
  --gold-light:  #fbf2a9;
  --gold-hover:  #f6af37;
  --footer-gold: #7d5f21;
  --grey-bg:     #f7f7f7;
  --text:        #333333;
  --white:       #ffffff;
  --font:        'Poppins', sans-serif;
  --header-h:    72px;
}

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

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

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

address { font-style: normal; }

img {
  display: block;
  max-width: 100%;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
}

.header-logo img {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

/* ===== Nav desktop ===== */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.65rem;
  right: 0.65rem;
  height: 1px;
  background: var(--gold-mid);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link--cta {
  color: var(--gold-mid);
  border: 1px solid rgba(241, 221, 129, 0.4);
  padding: 0.35rem 0.85rem;
  margin-left: 0.5rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
  color: var(--navy);
  background: var(--gold-mid);
  border-color: var(--gold-mid);
}

/* ===== Header right (tel + burger) ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone:hover {
  color: var(--gold-mid);
}

/* ===== Burger ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open .burger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.is-open .burger-bar:nth-child(2) {
  opacity: 0;
}
.burger.is-open .burger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== Mobile nav ===== */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(280px, 80vw);
  background: var(--navy);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(0, 0, 0, 0.45);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.mobile-link:hover { color: var(--white); }

.mobile-link--cta {
  color: var(--gold-mid);
  border-bottom-color: rgba(241, 221, 129, 0.2);
  margin-top: 0.5rem;
}

.mobile-link--phone {
  margin-top: auto;
  border-bottom: none;
  padding: 1rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.mobile-link--phone:hover {
  background: rgba(241, 221, 129, 0.10);
}

.mobile-phone-label {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-phone-number {
  color: var(--gold-mid);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('assets/fond03.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 53, 95, 0.78) 0%,
    rgba(27, 53, 95, 0.70) 50%,
    rgba(27, 53, 95, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 3rem 1.5rem;
  max-width: 680px;
  width: 100%;
}

.hero-subtitle {
  font-size: 0.875rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.hero-accent {
  background: linear-gradient(
    90deg,
    var(--gold-dark)  0%,
    var(--gold-mid)   25%,
    var(--gold-light) 50%,
    var(--gold-mid)   75%,
    var(--gold-dark)  100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-address {
  font-size: 0.875rem;
  font-weight: 200;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.hero-phone {
  display: inline-block;
  font-size: 1rem;
  font-weight: 300;
  color: var(--gold-mid);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.hero-phone:hover {
  color: var(--white);
}

/* ===== Intro ===== */
.intro {
  background: var(--grey-bg);
  padding: 5.5rem 1.5rem;
}

.intro-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.intro-line {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-mid));
  margin: 0 auto 2.25rem;
}

.intro-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 2.75rem;
}

/* ===== CTA ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9rem 2.5rem;
  background: var(--brown);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-cta:not(:disabled):hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-gold);
  color: var(--white);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.875rem;
  font-weight: 300;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(27, 53, 95, 0.4);

  /* État initial : caché en bas */
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.1rem;
  color: var(--gold-mid);
  flex-shrink: 0;
}

.toast strong {
  font-weight: 600;
}

/* ===== Page mentions légales ===== */
.legal-main {
  min-height: calc(100vh - var(--header-h));
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  background: var(--grey-bg);
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-title {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(27, 53, 95, 0.12);
}

.legal-inner h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.legal-inner p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal-inner p strong {
  font-weight: 600;
  color: var(--navy);
}

.legal-inner a {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-color: var(--gold-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-inner a:hover {
  color: var(--gold-hover);
}

.legal-back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(27, 53, 95, 0.12);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .header-phone { display: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }

  .site-header { padding: 0 1.25rem; }

  .header-logo img { height: 34px; }

  .hero-content { padding: 2rem 1.25rem; }

  .intro { padding: 3.5rem 1.25rem; }

  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.875rem; }
}
