/* ============================================
   RÉSIDENCE SAINTE-MARIE — styles
   ============================================ */

:root {
  --burgundy: #722F37;
  --burgundy-dark: #4A1D24;
  --burgundy-light: #9B4951;
  --burgundy-soft: #F4E4E5;
  --gold: #C9A961;
  --gold-light: #E0C896;
  --cream: #FAF6F0;
  --cream-deep: #F4E8D8;
  --warm-white: #FFFDF9;
  --text-dark: #2A1A1C;
  --text-muted: #6B5A5C;
  --border: #E8DDD0;

  --shadow-sm: 0 2px 8px rgba(74, 29, 36, 0.08);
  --shadow-md: 0 8px 24px rgba(74, 29, 36, 0.12);
  --shadow-lg: 0 20px 60px rgba(74, 29, 36, 0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--warm-white);
  overflow-x: hidden;
}

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--burgundy-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; }

h1 em, h2 em {
  color: var(--burgundy);
  font-style: italic;
  font-weight: 500;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
  padding: 0.4em 1em;
  background: var(--burgundy-soft);
  border-radius: 99px;
}

.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 1.2rem 0 2rem;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--warm-white);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-ghost:hover {
  background: var(--burgundy);
  color: var(--warm-white);
}

.btn-sm {
  padding: 0.7rem 1.3rem;
  font-size: 0.85rem;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 0.7rem 0;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(74, 29, 36, 0.15));
  transition: transform var(--transition);
}

.logo:hover .logo-mark { transform: scale(1.05); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--burgundy-dark);
  font-weight: 600;
}

.logo-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width var(--transition);
}

.main-nav a:hover { color: var(--burgundy); }
.main-nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--burgundy-dark);
  border-radius: 2px;
  transition: transform var(--transition);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, var(--burgundy-soft) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(201, 169, 97, 0.15) 0%, transparent 55%),
    var(--cream);
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(114, 47, 55, 0.06) 0, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.06) 0, transparent 2px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--burgundy);
  line-height: 1;
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-card-inner {
  width: 100%;
  height: 100%;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--burgundy-soft) 0%, var(--cream-deep) 100%);
  opacity: 0.5;
}

.hero-card-inner svg,
.hero-card-inner .hero-logo { position: relative; z-index: 1; }

.hero-logo {
  width: 70%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(74, 29, 36, 0.2));
  animation: gentle-sway 7s ease-in-out infinite;
}

@keyframes gentle-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2deg); }
}

.hero-card-tag {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--warm-white);
  color: var(--burgundy);
  padding: 0.7rem 1.2rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse-dot 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--burgundy);
  border-radius: 99px;
  display: grid;
  place-items: center;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  background: var(--burgundy);
  border-radius: 2px;
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { transform: translateY(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ============================================
   SECTIONS GÉNÉRIQUES
   ============================================ */

.section {
  padding: 7rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-top: 1rem;
}

/* ============================================
   IKIGAI
   ============================================ */

.ikigai {
  background:
    radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, var(--burgundy-soft) 0%, transparent 55%),
    var(--warm-white);
  position: relative;
  overflow: hidden;
}

.ikigai::before {
  content: '生き甲斐';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30rem;
  font-family: var(--font-serif);
  color: var(--burgundy);
  opacity: 0.025;
  pointer-events: none;
  font-weight: 700;
  white-space: nowrap;
}

.ikigai-intro {
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 2rem;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.ikigai-intro p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
}

.ikigai-intro strong {
  color: var(--burgundy);
  font-style: normal;
  font-weight: 600;
}

.ikigai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 1;
}

.ikigai-card {
  background: var(--warm-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.ikigai-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.ikigai-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.ikigai-card:hover::after { transform: scaleX(1); }

.ikigai-card:nth-child(1) { border-top: 4px solid #E15A6E; }
.ikigai-card:nth-child(2) { border-top: 4px solid var(--gold); }
.ikigai-card:nth-child(3) { border-top: 4px solid var(--burgundy); }
.ikigai-card:nth-child(4) { border-top: 4px solid #5A7A4A; }

.ikigai-step {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--burgundy);
  opacity: 0.12;
  line-height: 1;
}

.ikigai-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--burgundy-soft);
  color: var(--burgundy);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.ikigai-icon svg {
  width: 28px;
  height: 28px;
}

.ikigai-card:hover .ikigai-icon {
  background: var(--burgundy);
  color: var(--cream);
  transform: scale(1.05) rotate(-5deg);
}

.ikigai-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.ikigai-card h3 em {
  color: var(--burgundy);
  font-style: italic;
}

.ikigai-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.ikigai-pledge {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--cream);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.ikigai-pledge::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.2) 0%, transparent 70%);
}

.ikigai-pledge h3 {
  color: var(--cream);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.ikigai-pledge ul {
  list-style: none;
  position: relative;
}

.ikigai-pledge li {
  padding: 0.7rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.02rem;
  color: rgba(250, 246, 240, 0.92);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.ikigai-pledge li:last-child { border-bottom: none; }

.ikigai-pledge li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--gold);
  font-size: 1.1rem;
}

/* ============================================
   À PROPOS
   ============================================ */

.apropos {
  background: var(--cream);
}

.apropos-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.apropos-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0 0.5rem;
}

.value-tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--warm-white);
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 99px;
  border: 1px solid var(--burgundy-soft);
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.value-tag:hover {
  background: var(--burgundy);
  color: var(--cream);
  transform: translateY(-2px);
  border-color: var(--burgundy);
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  font-weight: 500;
}

.feature-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--burgundy);
  background: var(--burgundy-soft);
  padding: 4px;
  border-radius: 50%;
}

.apropos-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.stat-card {
  background: var(--warm-white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card.alt {
  background: var(--burgundy);
  color: var(--cream);
}

.stat-card.alt .stat-num,
.stat-card.alt .stat-label { color: var(--cream); }

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-weight: 500;
}

.stat-card small {
  font-size: 0.7rem;
  color: var(--gold);
  display: block;
  margin-top: 0.5rem;
}

.stat-card.alt small { color: var(--gold-light); }

/* ============================================
   VISITE INTERACTIVE
   ============================================ */

.visite {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
}

.visite-stage {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.building-wrap {
  position: relative;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.building {
  width: 100%;
  height: auto;
  display: block;
}

.building .room {
  cursor: pointer;
  transition: opacity var(--transition);
}

.window {
  stroke: var(--burgundy-dark);
  stroke-width: 1.5;
  transition: all var(--transition);
}

.window-large,
.window-special { stroke-width: 1.5; }

.window-bar {
  stroke: #FAF6F0;
  stroke-width: 2.5;
  pointer-events: none;
  stroke-linecap: round;
}

.shutter {
  fill: var(--burgundy);
  transition: all var(--transition);
  pointer-events: none;
}

.door {
  fill: var(--burgundy-dark);
  stroke: #2A0F12;
  stroke-width: 1.5;
  transition: all var(--transition);
}

.room:hover .window,
.room:hover .door {
  fill: var(--gold) !important;
  filter: brightness(1.1) drop-shadow(0 0 14px rgba(201, 169, 97, 0.7));
}

.room:hover .shutter {
  fill: var(--burgundy-dark);
}

.room.active .window,
.room.active .door {
  fill: var(--gold) !important;
  filter: drop-shadow(0 0 18px rgba(201, 169, 97, 0.9));
}

.room.active .shutter {
  fill: var(--burgundy-dark);
}

.room .window-decor { pointer-events: none; }

.room-label-svg {
  fill: var(--burgundy-dark);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0.5;
}

.room:hover .room-label-svg { opacity: 1; }

.click-hint {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--burgundy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  animation: hintBounce 3s ease-in-out infinite;
}

.click-hint .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}

.click-hint .pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulse-ring 1.8s infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Panneau d'info */
.room-panel {
  background: linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  transition: all 0.5s ease;
}

.room-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.25) 0%, transparent 70%);
}

.room-panel.updating { transform: scale(0.98); opacity: 0.7; }

.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  display: none;
}

.panel-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.room-panel.has-selection .panel-close { display: block; }

.panel-icon {
  width: 64px;
  height: 64px;
  background: var(--gold);
  color: var(--burgundy-dark);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.panel-icon svg {
  width: 32px;
  height: 32px;
}

.room-panel .eyebrow {
  background: rgba(201, 169, 97, 0.2);
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}

.room-panel h3 {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.room-panel p {
  color: rgba(250, 246, 240, 0.85);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.panel-features {
  list-style: none;
  margin-top: auto;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.panel-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: rgba(250, 246, 240, 0.9);
}

.panel-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================
   SERVICES
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--warm-white);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--burgundy-soft);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--burgundy-soft);
  color: var(--burgundy);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  transition: all var(--transition);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-icon {
  background: var(--burgundy);
  color: var(--cream);
  transform: rotate(-5deg) scale(1.05);
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   BANDE SÉCURITÉ
   ============================================ */

.security-band {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--cream);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.security-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(201, 169, 97, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.security-text .eyebrow {
  background: rgba(201, 169, 97, 0.2);
  color: var(--gold-light);
}

.security-text h3 {
  color: var(--cream);
  font-size: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.security-text h3 em {
  color: var(--gold);
  font-style: italic;
}

.security-text p {
  color: rgba(250, 246, 240, 0.85);
}

.security-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.security-list li {
  background: rgba(250, 246, 240, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 169, 97, 0.2);
  padding: 1.4rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.security-list li:hover {
  background: rgba(250, 246, 240, 0.12);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.security-list span {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.security-list strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.4;
}

/* ============================================
   GALERIE
   ============================================ */

.galerie { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 200px 200px;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
  display: grid;
  place-items: center;
}

.gallery-item span {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  z-index: 2;
  position: relative;
}

.gi-1 { background: linear-gradient(135deg, #722F37, #9B4951); grid-column: span 2; }
.gi-2 { background: linear-gradient(135deg, #9B4951, #C9A961); }
.gi-3 { background: linear-gradient(135deg, #C9A961, #E0C896); }
.gi-4 { background: linear-gradient(135deg, #4A1D24, #722F37); }
.gi-5 { background: linear-gradient(135deg, #5A7A4A, #8FB37A); grid-column: span 2; }
.gi-6 { background: linear-gradient(135deg, #6B8AA8, #4A1D24); display: none; }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.2) 0, transparent 50%);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* ============================================
   TÉMOIGNAGES
   ============================================ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--warm-white);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--burgundy);
  position: relative;
  transition: transform var(--transition);
}

.testimonial:hover { transform: translateY(-4px); }

.quote-mark {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.testimonial p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--burgundy);
  font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--burgundy-dark);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--burgundy) 0%, transparent 70%);
  opacity: 0.5;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
}

.contact h2,
.contact h3 { color: var(--cream); }

.contact .eyebrow {
  background: rgba(201, 169, 97, 0.2);
  color: var(--gold-light);
}

.contact p {
  color: rgba(250, 246, 240, 0.85);
  margin-bottom: 2.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-list svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-list strong {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list small {
  color: var(--gold-light);
  font-size: 0.78rem;
  display: block;
  margin-top: 0.3rem;
}

.contact-list a {
  color: var(--cream);
  font-size: 1.05rem;
  transition: color var(--transition);
  font-weight: 500;
}

.contact-list a:hover { color: var(--gold); }

.contact-form {
  background: var(--warm-white);
  color: var(--text-dark);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--burgundy-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color var(--transition);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}

.contact-form button {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--burgundy-dark);
  color: var(--cream);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(250, 246, 240, 0.7);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(250, 246, 240, 0.8);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--gold); }

.copyright {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  font-size: 0.82rem;
  color: rgba(250, 246, 240, 0.6);
}

/* ============================================
   ANIMATIONS REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .hero-inner,
  .apropos-inner,
  .visite-stage,
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

  .hero-visual { max-width: 380px; margin: 0 auto; }

  .main-nav,
  .header-cta { display: none; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--warm-white);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
  }

  .menu-toggle { display: flex; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gi-1, .gi-5 { grid-column: span 2; }
  .gi-6 { display: grid; }

  .ikigai-grid { grid-template-columns: 1fr; }
  .ikigai::before { font-size: 18rem; }

  .security-content { grid-template-columns: 1fr; gap: 2rem; }
  .security-list { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }

  .section { padding: 5rem 0; }
}

@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .apropos-visual { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 2.2rem; }
  .room-panel { padding: 2rem 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gi-1, .gi-5 { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .ikigai-card { padding: 2rem 1.5rem; }
  .ikigai-pledge { padding: 2rem 1.5rem; }
  .ikigai-intro { padding: 1.5rem; }
  .ikigai-intro p { font-size: 1.1rem; }

  .security-list { grid-template-columns: 1fr; }
  .security-text h3 { font-size: 1.6rem; }
}
