@import 'tailwindcss';
@import 'tw-animate-css';
@import 'shadcn/tailwind.css';

@custom-variant dark (&:is(.dark *));

/*

* ============================================================
* HAPPY HOURS — DESIGN SYSTEM
* ============================================================
*
* Direction artistique :
*
* Noir espresso  → élégance, soirée, restaurant premium
* Champagne      → luxe discret, lumière chaude
* Ivoire         → confort, respiration, lisibilité
* Bronze         → accent chaleureux et gastronomique
*
* Typographie :
* Inter          → interface, navigation, informations
* Cormorant      → titres, identité premium
* ============================================================
  */

/*

* ============================================================
* THEME TAILWIND
* ============================================================
  */

@theme inline {

/*

* ---
* TYPOGRAPHIE
* ---

*/

--font-sans:
var(--font-inter),
ui-sans-serif,
system-ui,
sans-serif;

--font-serif:
var(--font-cormorant),
ui-serif,
Georgia,
serif;

/*

* ---
* COULEURS SHADCN / UI
* ---

*/

--color-background: var(--background);
--color-foreground: var(--foreground);

--color-card: var(--card);
--color-card-foreground: var(--card-foreground);

--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);

--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);

--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);

--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);

--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);

--color-destructive: var(--destructive);

--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);

/*

* ---
* HAPPY HOURS — COULEURS DE MARQUE
* ---

*/

--color-hh-night: var(--hh-night);
--color-hh-night-deep: var(--hh-night-deep);
--color-hh-night-soft: var(--hh-night-soft);

--color-hh-gold: var(--hh-gold);
--color-hh-gold-light: var(--hh-gold-light);
--color-hh-gold-dark: var(--hh-gold-dark);

--color-hh-cream: var(--hh-cream);
--color-hh-cream-soft: var(--hh-cream-soft);

--color-hh-bronze: var(--hh-bronze);

/*

* Ancienne variable conservée
* pour éviter de casser les composants existants.
  */

--color-rose-profond: var(--hh-gold);
--color-rose-profond-foreground: var(--hh-night);

/*

* ---
* GRAPHIQUES
* ---

*/

--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);

/*

* ---
* SIDEBAR
* ---

*/

--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);

--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground:
var(--sidebar-primary-foreground);

--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground:
var(--sidebar-accent-foreground);

--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);

/*

* ---
* RAYONS
* ---

*/

--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.35);
--radius-2xl: calc(var(--radius) * 1.7);
--radius-3xl: calc(var(--radius) * 2);
--radius-4xl: calc(var(--radius) * 2.5);
}

/*

* ============================================================
* VARIABLES PRINCIPALES
* ============================================================
  */

:root {

color-scheme: light;

/*

* ==========================================================
* PALETTE HAPPY HOURS
* ==========================================================
*
* Une palette plus chaleureuse et plus luxueuse.
  */

--hh-night-deep: oklch(0.115 0.012 55);
--hh-night: oklch(0.155 0.014 55);
--hh-night-soft: oklch(0.215 0.018 55);

--hh-gold-dark: oklch(0.54 0.095 70);
--hh-gold: oklch(0.69 0.125 76);
--hh-gold-light: oklch(0.82 0.105 82);

--hh-bronze: oklch(0.58 0.085 58);

--hh-cream: oklch(0.975 0.012 85);
--hh-cream-soft: oklch(0.945 0.018 82);

/*

* ==========================================================
* FOND & TEXTE
* ==========================================================
  */

--background: var(--hh-cream);

--foreground:
oklch(0.205 0.018 55);

/*

* ==========================================================
* CARTES
* ==========================================================
  */

--card:
oklch(0.995 0.006 85);

--card-foreground:
oklch(0.205 0.018 55);

--popover:
oklch(0.995 0.006 85);

--popover-foreground:
oklch(0.205 0.018 55);

/*

* ==========================================================
* ACTION PRINCIPALE
* ==========================================================
*
* Le champagne doré devient la couleur d'action.
  */

--primary:
var(--hh-gold);

--primary-foreground:
var(--hh-night-deep);

/*

* ==========================================================
* SECONDAIRES
* ==========================================================
  */

--secondary:
oklch(0.925 0.018 80);

--secondary-foreground:
oklch(0.255 0.018 55);

/*

* ==========================================================
* MUTED
* ==========================================================
  */

--muted:
oklch(0.935 0.015 82);

--muted-foreground:
oklch(0.49 0.018 60);

/*

* ==========================================================
* ACCENT
* ==========================================================
  */

--accent:
oklch(0.905 0.028 78);

--accent-foreground:
oklch(0.21 0.018 55);

/*

* ==========================================================
* BORDURES / INPUTS
* ==========================================================
  */

--border:
oklch(0.30 0.018 60 / 12%);

--input:
oklch(0.30 0.018 60 / 16%);

--ring:
var(--hh-gold);

/*

* ==========================================================
* DESTRUCTIVE
* ==========================================================
  */

--destructive:
oklch(0.58 0.20 25);

/*

* ==========================================================
* GRAPHIQUES
* ==========================================================
  */

--chart-1: var(--hh-gold);
--chart-2: var(--hh-bronze);
--chart-3: oklch(0.48 0.06 58);
--chart-4: var(--hh-gold-light);
--chart-5: oklch(0.84 0.045 82);

/*

* ==========================================================
* RAYON GLOBAL
* ==========================================================
  */

--radius: 0.75rem;

/*

* ==========================================================
* SIDEBAR
* ==========================================================
  */

--sidebar:
var(--hh-night);

--sidebar-foreground:
oklch(0.95 0.012 85);

--sidebar-primary:
var(--hh-gold);

--sidebar-primary-foreground:
var(--hh-night-deep);

--sidebar-accent:
var(--hh-night-soft);

--sidebar-accent-foreground:
oklch(0.95 0.012 85);

--sidebar-border:
oklch(0.95 0.012 85 / 10%);

--sidebar-ring:
var(--hh-gold);
}

/*

* ============================================================
* BASE
* ============================================================
  */

@layer base {

* {
  @apply border-border outline-ring/50;
  }

html {
scroll-behavior: smooth;
background: var(--hh-cream);
}

body {
@apply bg-background text-foreground;

font-family:
  var(--font-inter),
  ui-sans-serif,
  system-ui,
  sans-serif;

min-height: 100vh;

text-rendering: optimizeLegibility;

-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

}

/*

* ---
* TITRES
* ---

*/

h1,
h2,
h3,
h4,
h5,
h6 {
font-family:
var(--font-cormorant),
ui-serif,
Georgia,
serif;

text-wrap: balance;

}

/*

* ---
* LIENS
* ---

*/

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

/*

* ---
* BOUTONS
* ---

*/

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

/*

* ---
* SÉLECTION
* ---

*/

::selection {
background:
var(--hh-gold);

color:
  var(--hh-night-deep);

}

/*

* ---
* SCROLLBAR
* ---

*/

::-webkit-scrollbar {
width: 9px;
}

::-webkit-scrollbar-track {
background:
var(--hh-cream-soft);
}

::-webkit-scrollbar-thumb {
background:
var(--hh-gold-dark);

border-radius: 999px;

border:
  2px solid var(--hh-cream-soft);

}

::-webkit-scrollbar-thumb:hover {
background:
var(--hh-gold);
}
}

/*

* ============================================================
* UTILITAIRES HAPPY HOURS
* ============================================================
  */

/*

* ---
* FOND SOMBRE PREMIUM
* ---

*/

.hh-dark {
background:
var(--hh-night);

color:
white;
}

/*

* ---
* FOND NOIR PROFOND
* ---

*/

.hh-dark-deep {
background:
var(--hh-night-deep);

color:
white;
}

/*

* ---
* FOND SOMBRE SECONDAIRE
* ---

*/

.hh-dark-soft {
background:
var(--hh-night-soft);

color:
white;
}

/*

* ---
* TEXTE DORÉ
* ---

*/

.hh-gold {
color:
var(--hh-gold);
}

/*

* ---
* TEXTE DORÉ CLAIR
* ---

*/

.hh-gold-light {
color:
var(--hh-gold-light);
}

/*

* ---
* TEXTE DISCRET SUR FOND SOMBRE
* ---

*/

.hh-muted {
color:
rgb(255 255 255 / 64%);
}

/*

* ---
* LIGNE DÉCORATIVE
* ---

*/

.hh-gold-line {
width: 3.5rem;
height: 1px;

background:
linear-gradient(
90deg,
transparent,
var(--hh-gold),
transparent
);
}

/*

* ---
* LIGNE DÉCORATIVE LONGUE
* ---

*/

.hh-gold-line-wide {
width: 6rem;
height: 1px;

background:
linear-gradient(
90deg,
transparent,
var(--hh-gold),
transparent
);
}

/*

* ---
* EFFET VERRE SOMBRE
* ---

*/

.hh-glass {
background:
rgb(20 18 15 / 58%);

border:
1px solid rgb(255 255 255 / 11%);

box-shadow:
0 18px 45px rgb(0 0 0 / 18%);

backdrop-filter:
blur(18px);

-webkit-backdrop-filter:
blur(18px);
}

/*

* ---
* EFFET VERRE CLAIR
* ---

*/

.hh-glass-light {
background:
rgb(255 255 255 / 72%);

border:
1px solid rgb(255 255 255 / 55%);

box-shadow:
0 18px 45px rgb(50 35 15 / 8%);

backdrop-filter:
blur(18px);

-webkit-backdrop-filter:
blur(18px);
}

/*

* ---
* OMBRE PREMIUM
* ---

*/

.hh-shadow {
box-shadow:
0 24px 60px rgb(35 25 10 / 10%),
0 8px 24px rgb(35 25 10 / 7%);
}

/*

* ---
* OMBRE FORTE
* ---

*/

.hh-shadow-lg {
box-shadow:
0 30px 80px rgb(0 0 0 / 18%),
0 12px 30px rgb(0 0 0 / 10%);
}

/*

* ---
* TRANSITION PREMIUM
* ---

*/

.hh-transition {
transition:
transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
background-color 300ms ease,
border-color 300ms ease,
color 300ms ease,
box-shadow 300ms ease,
opacity 300ms ease;
}

/*

* ---
* EFFET HOVER
* ---

*/

.hh-hover-lift {
transition:
transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 300ms ease;
}

.hh-hover-lift:hover {
transform:
translateY(-4px);

box-shadow:
0 24px 50px rgb(35 25 10 / 12%);
}

/*

* ---
* BOUTON PREMIUM
* ---

*/

.hh-button {
display:
inline-flex;

align-items:
center;

justify-content:
center;

gap:
0.5rem;

border-radius:
999px;

background:
var(--hh-gold);

color:
var(--hh-night-deep);

font-weight:
600;

transition:
transform 250ms ease,
background-color 250ms ease,
box-shadow 250ms ease;
}

.hh-button:hover {
background:
var(--hh-gold-light);

transform:
translateY(-1px);

box-shadow:
0 10px 25px rgb(80 50 10 / 16%);
}

/*

* ---
* BADGE PREMIUM
* ---

*/

.hh-badge {
display:
inline-flex;

align-items:
center;

gap:
0.4rem;

border:
1px solid
rgb(184 134 59 / 28%);

border-radius:
999px;

background:
rgb(184 134 59 / 8%);

color:
var(--hh-gold-dark);

font-size:
0.75rem;

font-weight:
600;

letter-spacing:
0.08em;

text-transform:
uppercase;
}

/*

* ---
* CONTENEUR PREMIUM
* ---

*/

.hh-container {
width:
100%;

max-width:
80rem;

margin-inline:
auto;

padding-inline:
1.25rem;
}

@media (min-width: 768px) {
.hh-container {
padding-inline:
2rem;
}
}

/*

* ---
* FADE DOUX
* ---

*/

.hh-fade-bottom {
background:
linear-gradient(
to bottom,
transparent 0%,
rgb(0 0 0 / 3%) 65%,
rgb(0 0 0 / 18%) 100%
);
}
