/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Color Palette - Pastel, lumineux, chaleureux */
  --color-background: #fffaf7; /* blanc crème doux */
  --color-surface: #ffffff;
  --color-surface-alt: #f9f3ef;

  --color-text: #2f2530; /* brun-prune élégant */
  --color-text-soft: #6e6270;
  --color-border-subtle: rgba(47, 37, 48, 0.08);

  --color-primary: #f2a6c7; /* rose poudré */
  --color-primary-soft: #ffe3ef;
  --color-primary-strong: #e17aa7;

  --color-accent-blue: #a9d8ff; /* bleu ciel */
  --color-accent-sand: #e8d3b8; /* beige sable */
  --color-accent-turquoise: #9ddfd3; /* turquoise doux */

  --color-success: #74c69d;
  --color-warning: #ffb347;
  --color-danger: #e76f51;

  /* Neutral grays - doux, sans dureté */
  --gray-50: #f8f5f9;
  --gray-100: #f1ecf2;
  --gray-200: #e0d7e2;
  --gray-300: #cec0d1;
  --gray-400: #b19fb9;
  --gray-500: #947f9d;
  --gray-600: #786480;
  --gray-700: #5c4a63;
  --gray-800: #42344a;
  --gray-900: #2c2233;

  /* Typography */
  --font-sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", 
    system-ui, -system-ui, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-md: 1.0625rem; /* 17px, léger confort lecture */
  --font-size-lg: 1.25rem; /* 20px */
  --font-size-xl: 1.5rem; /* 24px */
  --font-size-2xl: 1.875rem; /* 30px */
  --font-size-3xl: 2.25rem; /* 36px */
  --font-size-4xl: clamp(2.5rem, 5vw, 3.25rem); /* H1 mobile-first */

  --line-height-tight: 1.2;
  --line-height-snug: 1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem;  /* 24px */
  --space-7: 1.75rem; /* 28px */
  --space-8: 2rem;    /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem;   /* 48px */
  --space-16: 4rem;   /* 64px */
  --space-20: 5rem;   /* 80px */
  --space-24: 6rem;   /* 96px */

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows - doux, atmosphère premium et chaleureuse */
  --shadow-soft: 0 10px 30px rgba(34, 15, 34, 0.08);
  --shadow-medium: 0 16px 45px rgba(34, 15, 34, 0.12);
  --shadow-focus: 0 0 0 3px rgba(242, 166, 199, 0.5);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;

  /* Layout */
  --container-max-width: 1120px; /* idéal pour photos lifestyle et sections aérées */
}

/* Reduced motion friendly transitions */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}


/* ========================================================================== 
   Reset / Normalize
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
ul, ol, dl {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding-left: 0;
}

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* Remove default focus outlines; reintroduce with :focus-visible below */
:focus {
  outline: none;
}


/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  background: radial-gradient(circle at top left, rgba(242, 166, 199, 0.16), transparent 55%),
              radial-gradient(circle at bottom right, rgba(159, 221, 210, 0.18), transparent 55%),
              var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.02em;
}

h2 {
  font-size: var(--font-size-3xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--font-size-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-soft);
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

a {
  color: var(--color-primary-strong);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: var(--color-accent-turquoise);
}

a:active {
  opacity: 0.8;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-8) 0;
}

/* Helpful vertical rhythm */
section {
  padding-block: var(--space-10);
}

@media (min-width: 768px) {
  section {
    padding-block: var(--space-16);
  }
}


/* ========================================================================== 
   Accessibility
   ========================================================================== */

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-md);
}

/* Utility class for elements that should use focus ring but not change layout */
.focus-ring-inset:focus-visible {
  box-shadow: 0 0 0 2px #fff, var(--shadow-focus);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus-visible {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}


/* ========================================================================== 
   Layout & Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

@media (max-width: 767.98px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Alignment & text utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-text-soft);
}

/* Spacing utilities (commonly used) */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.py-6 { padding-block: var(--space-6); }
.py-10 { padding-block: var(--space-10); }

/* Constrained text width for long content */
/* ========================================================================== 
   Components - Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast),
              border-color var(--transition-base),
              color var(--transition-base);
}

.btn:hover {
  background: var(--color-primary-strong);
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--color-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-strong);
  border-color: rgba(242, 166, 199, 0.7);
}

.btn-outline:hover {
  background: var(--color-primary-soft);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}


/* ========================================================================== 
   Components - Form Elements
   ========================================================================== */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(110, 98, 112, 0.6);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), var(--shadow-focus);
  background-color: #ffffff;
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'],
.select[aria-invalid='true'] {
  border-color: var(--color-danger);
}

.label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-helper {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

.form-error {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}


/* ========================================================================== 
   Components - Card & Surfaces
   ========================================================================== */

.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 241, 248, 0.96));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.card-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

/* Hero overlay card for premium ambiance (ex: ambiance casino élégante) */
.hero-overlay-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(47, 37, 48, 0.8), rgba(47, 37, 48, 0.6));
  color: #fff;
  box-shadow: 0 22px 60px rgba(34, 15, 34, 0.35);
}

.hero-overlay-card h1,
.hero-overlay-card h2,
.hero-overlay-card p {
  color: #fff;
}


/* ========================================================================== 
   Components - Media & Imagery
   ========================================================================== */

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(232, 211, 184, 0.7); /* rappel beige sable */
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
}

/* Accent tag for ambiance descriptions (décoration inspirée des salons de casino, etc.) */
.ambiance-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, rgba(242, 166, 199, 0.16), rgba(169, 216, 255, 0.18));
  border: 1px solid rgba(242, 166, 199, 0.4);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}


/* ========================================================================== 
   Components - Navigation & Footer Shell (generic)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(255, 250, 247, 0.9), rgba(255, 250, 247, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

.nav-primary a {
  position: relative;
  padding-block: 0.25rem;
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-turquoise));
  transition: width var(--transition-base);
}

.nav-primary a:hover::after,
.nav-primary a[aria-current='page']::after {
  width: 100%;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 959.98px) {
  .nav-primary {
    display: none;
  }
}

.site-footer {
  padding-block: var(--space-10);
  background: linear-gradient(180deg, rgba(248, 241, 248, 0.9), rgba(239, 220, 207, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.site-footer h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

.site-footer p,
.site-footer a,
.site-footer li {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}


/* ========================================================================== 
   Helpers for Page-specific Sections (generic)
   ========================================================================== */

.hero {
  padding-block: var(--space-10);
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-16);
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.section-intro {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.section-eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}


/* ========================================================================== 
   Motion Safety
   ========================================================================== */

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