/* ==========================================================================
   Rivage Studio — feuille de styles partagée
   ========================================================================== */

:root {
  --cream: #FAF6EF;
  --cream-dark: #F2E9D8;
  --white: #FFFFFF;
  --sand: #EEE3CD;
  --sand-line: #E4D6B8;
  --ink: #2A2620;
  --ink-soft: #5B5449;
  --ink-faint: #8A8175;
  --rivage: #2E5A6E;
  --rivage-dark: #1F4453;
  --rivage-pale: #E7EFF0;
  --gold: #B08A4E;
  --gold-light: #D9BD86;
  --border: #E4D8BE;
  --shadow: 0 20px 50px -25px rgba(42, 38, 32, 0.25);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
}

a { -webkit-tap-highlight-color: transparent; }

a, button, .clickable { cursor: pointer; }

::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--rivage);
  outline-offset: 3px;
  border-radius: 4px;
}

.container-narrow { max-width: 1120px; margin-inline: auto; padding-inline: 1.5rem; }
.container-wide { max-width: 1320px; margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo-mark { display: flex; align-items: baseline; gap: 2px; line-height: 1; }

.nav-link {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color 200ms ease;
}
.nav-link:hover { color: var(--rivage); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 200ms ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--rivage);
  color: var(--white);
  box-shadow: 0 12px 24px -12px rgba(31, 68, 83, 0.55);
}
.btn-primary:hover { background: var(--rivage-dark); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 12px 24px -12px rgba(176, 138, 78, 0.55);
}
.btn-gold:hover { background: #97723e; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--rivage); color: var(--rivage); transform: translateY(-2px); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--sand-line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rivage);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.justify-center::after {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Icon badges ---------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background: var(--rivage-pale);
  color: var(--rivage);
  flex-shrink: 0;
}
.icon-badge.gold { background: #F6EDDD; color: var(--gold); }
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--rivage-pale);
  color: var(--rivage);
  flex-shrink: 0;
}
.icon-circle.gold { background: #F6EDDD; color: var(--gold); }
.icon-circle svg { width: 2.25rem; height: 2.25rem; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--cream);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--rivage); outline-offset: 4px; }
.faq-chevron { width: 20px; height: 20px; color: var(--rivage); flex-shrink: 0; transition: transform 200ms ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { margin-top: 0.75rem; color: var(--ink-soft); }

/* ---------- Image placeholder (pas de photos stock) ---------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--sand) 0%, var(--cream-dark) 100%);
  border: 1px dashed var(--sand-line);
  color: var(--ink-faint);
  border-radius: var(--radius-md);
}
.img-placeholder svg { width: 2.25rem; height: 2.25rem; opacity: 0.55; }

/* ---------- Section dividers / decorative ---------- */
.wave-divider { display: block; width: 100%; height: auto; color: var(--sand); }

.dot-grid {
  background-image: radial-gradient(var(--sand-line) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--rivage-dark); color: var(--cream); }
.site-footer a { color: var(--cream); opacity: 0.82; transition: opacity 200ms ease; }
.site-footer a:hover { opacity: 1; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.mobile-menu a:not(.btn) { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }

/* ---------- Misc ---------- */
.text-rivage { color: var(--rivage); }
.text-gold { color: var(--gold); }
.bg-rivage-pale { background: var(--rivage-pale); }
.bg-sand { background: var(--sand); }
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; animation: none; } }

/* ---------- Marquee (bandeau défilant) ---------- */
.marquee {
  background: var(--rivage-dark);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 1.1rem 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  padding-right: 2.5rem;
  color: var(--cream);
}
.marquee-item .dot { color: var(--gold-light); font-style: normal; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Logo mark ---------- */
.logo-mark svg { display: block; }

/* ---------- Monogramme animé (page À propos) ---------- */
/* Effet "écran de veille DVD" : le monogramme rebondit sur les bords de la carte */
.orbit-x { animation: bounceX 7s linear infinite; }
.orbit-y { animation: bounceY 5s linear infinite; }
@keyframes bounceX {
  0%   { transform: translateX(-28px); }
  50%  { transform: translateX(58px); }
  100% { transform: translateX(-28px); }
}
@keyframes bounceY {
  0%   { transform: translateY(-113px); }
  50%  { transform: translateY(82px); }
  100% { transform: translateY(-113px); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-x, .orbit-y { animation: none; }
}

/* Le monogramme animé n'est affiché qu'à partir des écrans tablette/ordinateur */
.about-illustration { display: none; }
@media (min-width: 768px) {
  .about-illustration { display: block; }
}

/* ---------- Responsive critique header (toujours prioritaire, anti-FOUC) ---------- */
.nav-desktop { display: none !important; }
.cta-desktop { display: none !important; }
.burger-btn { display: inline-flex !important; }
.mobile-menu { display: none !important; }
.mobile-menu.is-open { display: block !important; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex !important; }
  .cta-desktop { display: inline-flex !important; }
  .burger-btn { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* ---------- Icône animée "responsive" (démo mobile/ordinateur) ---------- */
.resp-icon {
  font-size: 12px;
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.resp-icon__frame {
  width: 10em;
  height: 6.5em;
  box-sizing: border-box;
  padding: .5em;
  border: .125em solid currentColor;
  border-radius: .375em;
  display: flex;
  gap: .375em;
  overflow: hidden;
  animation: resp-frame 4s ease-in-out infinite,
             resp-row   4s step-end     infinite;
}
.resp-icon__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3125em;
}
.resp-icon__bar {
  display: block;
  height: .375em;
  width: 100%;
  background: currentColor;
  border-radius: .0625em;
  flex-shrink: 0;
}
.resp-icon__bar--dim { opacity: .35; }
.resp-icon__block {
  flex: 1;
  min-width: 0;
  min-height: 1.5em;
  border: .125em solid currentColor;
  border-radius: .1875em;
  opacity: .35;
}
.resp-icon__stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: resp-stand 4s step-end infinite;
}
.resp-icon__stand i { width: .125em; height: .5em; background: currentColor; }
.resp-icon__stand b { width: 2.125em; height: .125em; background: currentColor; border-radius: .0625em; }

@keyframes resp-frame {
  0%, 28%   { width: 10em;    height: 6.5em; }
  42%, 72%  { width: 3.625em; height: 6.5em; }
  86%, 100% { width: 10em;    height: 6.5em; }
}
@keyframes resp-row {
  0%, 28%   { flex-direction: row; }
  42%, 72%  { flex-direction: column; }
  86%, 100% { flex-direction: row; }
}
@keyframes resp-stand {
  0%, 28%   { opacity: 1; }
  42%, 72%  { opacity: 0; }
  86%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .resp-icon__frame,
  .resp-icon__stand { animation: none; }
}

