/*
 * DAPAO Theme - Main Stylesheet
 * Design system identique au site React original
 */

/* ═══ CSS Variables ═══ */
:root {
    --color-primary-container: #004863;
    --color-primary-fixed-dim: #accaff;
    --color-secondary: #0e445c;
    --color-surface: #131313;
    --color-surface-container: #1f1f1f;
    --color-surface-container-high: #2a2a2a;
    --color-surface-container-lowest: #0e0e0e;
    --color-on-surface: #e2e2e2;
    --color-on-surface-variant: #b8c9e7;
    --color-outline: #8399ae;
    --color-ral-5025: #00535e;
    --font-size-base: 16px;
    --font-size-headline: 64px;
}

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

html { scroll-behavior: smooth; font-size: var(--font-size-base); }
body { background: #000; color: var(--color-on-surface); font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; overflow-x: hidden; }

/* ═══ Typography ═══ */
.font-headline, .font-headline-display { font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; }
.font-body { font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; }
.font-label { font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; font-size: 12px; line-height: 1.2; letter-spacing: 0.15em; font-weight: 700; text-transform: uppercase; }

.font-headline-display { font-size: clamp(3.5rem, 15vw, 5.25rem); line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; }

h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; }

/* ═══ Layout ═══ */
.max-w-container { max-width: 1440px; }

/* ═══ Colors ═══ */
.bg-black { background-color: #000; }
.bg-primary-container { background-color: var(--color-primary-container); }
.text-primary-container { color: var(--color-primary-container); }
.text-primary-fixed-dim { color: var(--color-primary-fixed-dim); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.border-primary-container { border-color: var(--color-primary-container); }

/* ═══ Glass Effects ═══ */
.glass-surface { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.glass-border { border: 1px solid rgba(117, 117, 117, 0.3); }
.glass-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(117, 117, 117, 0.3); }

/* ═══ Animations ═══ */
.animate-in { animation: animateIn 0.7s ease-out; }
.fade-in { animation: fadeIn 0.7s ease-out; }
@keyframes animateIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.waveform-anim { display: flex; align-items: flex-end; gap: 2px; height: 20px; }
.waveform-bar { width: 2px; background-color: #00535e; animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* ═══ Utilities ═══ */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-6 { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--color-primary-container); }

/* ═══ Spacing (matching React design tokens) ═══ */
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.mb-28 { margin-bottom: 7rem; }
.gap-6 { gap: 1.5rem; }

/* ═══ Grid ═══ */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-rows-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:col-span-5 { grid-column: span 5 / span 5; }
    .md\:col-span-7 { grid-column: span 7 / span 7; }
    .md\:col-span-8 { grid-column: span 8 / span 8; }
    .md\:row-span-2 { grid-row: span 2 / span 2; }
    .md\:h-\[800px\] { height: 800px; }
    .md\:h-auto { height: auto; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:items-end { align-items: end; }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:px-16 { padding-left: 4rem; padding-right: 4rem; }
    .md\:pl-8 { padding-left: 2rem; }
    .md\:w-auto { width: auto; }
    .md\:bottom-0 { bottom: 0; }
    .md\:bottom-8 { bottom: 2rem; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:sticky { position: sticky; }
    .lg\:top-28 { top: 7rem; }
    .lg\:mt-0 { margin-top: 0; }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ═══ Flexbox ═══ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.items-end { align-items: end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: end; }

/* ═══ Spacing ═══ */
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; } .gap-16 { gap: 4rem; }
.p-2 { padding: 0.5rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; } .mb-20 { margin-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.ml-2 { margin-left: 0.5rem; } .pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; } .pt-4 { padding-top: 1rem; }

/* ═══ Sizing ═══ */
.w-full { width: 100%; } .h-full { height: 100%; }
.w-1 { width: 0.25rem; } .h-1 { height: 0.25rem; }
.w-6 { width: 1.5rem; } .h-8 { height: 2rem; } .w-8 { width: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }
.h-[85vh] { height: 85vh; }
.h-[380px] { height: 380px; }
.h-[500px] { height: 500px; }
.min-h-screen { min-height: 100vh; }
.min-h-\[calc\(100vh-200px\)\] { min-height: calc(100vh - 200px); }
.min-w-0 { min-width: 0; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.aspect-square { aspect-ratio: 1/1; }
.aspect-\[4\/5\] { aspect-ratio: 4/5; }
.aspect-\[16\/9\] { aspect-ratio: 16/9; }
.aspect-\[21\/9\] { aspect-ratio: 21/9; }
.aspect-video { aspect-ratio: 16/9; }

/* ═══ Position ═══ */
.relative { position: relative; } .absolute { position: absolute; }
.fixed { position: fixed; } .sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; } .right-0 { right: 0; } .bottom-0 { bottom: 0; } .left-0 { left: 0; }
.top-4 { top: 1rem; } .right-4 { right: 1rem; } .left-4 { left: 1rem; }
.top-8 { top: 2rem; } .right-6 { right: 1.5rem; } .right-8 { right: 2rem; }
.left-8 { left: 2rem; } .right-10 { right: 2.5rem; }
.bottom-10 { bottom: 2.5rem; } .bottom-20 { bottom: 5rem; }
.bottom-24 { bottom: 6rem; }
.z-0 { z-index: 0; } .z-10 { z-index: 10; } .z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; } .z-\[100\] { z-index: 100; }
.z-\[1000\] { z-index: 1000; } .z-\[1001\] { z-index: 1001; }

/* ═══ Text ═══ */
.text-white { color: #fff; }
.text-white\/30 { color: rgba(255,255,255,0.3); }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-black { color: #000; }
.text-\[\#757575\] { color: #757575; }
.text-\[\#404040\] { color: #404040; }
.text-\[\#00535e\] { color: #00535e; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-emerald-400 { color: #34d399; }
.text-emerald-500 { color: #10b981; }

.text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; } .text-6xl { font-size: 3.75rem; }
.text-\[9px\] { font-size: 9px; } .text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; } .text-\[8px\] { font-size: 8px; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.font-bold { font-weight: 700; } .font-black { font-weight: 900; }
.font-medium { font-weight: 500; }
.leading-none { line-height: 1; } .leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.1em\] { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.4em\] { letter-spacing: 0.4em; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* ═══ Backgrounds ═══ */
.bg-white { background-color: #fff; }
.bg-white\/5 { background-color: rgba(255,255,255,0.05); }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/15 { background-color: rgba(255,255,255,0.15); }
.bg-black\/40 { background-color: rgba(0,0,0,0.4); }
.bg-black\/60 { background-color: rgba(0,0,0,0.6); }
.bg-black\/80 { background-color: rgba(0,0,0,0.8); }
.bg-black\/90 { background-color: rgba(0,0,0,0.9); }
.bg-black\/95 { background-color: rgba(0,0,0,0.95); }
.bg-neutral-900 { background-color: #171717; }
.bg-\[\#050505\] { background-color: #050505; }
.bg-\[\#0e0e0e\] { background-color: #0e0e0e; }
.bg-primary-container\/10 { background-color: rgba(0,72,99,0.1); }
.bg-primary-container\/20 { background-color: rgba(0,72,99,0.2); }

.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-black { --tw-gradient-from: #000; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent); }
.via-black\/20 { --tw-gradient-stops: var(--tw-gradient-from), rgba(0,0,0,0.2), var(--tw-gradient-to, transparent); }
.via-black\/40 { --tw-gradient-stops: var(--tw-gradient-from), rgba(0,0,0,0.4), var(--tw-gradient-to, transparent); }
.to-transparent { --tw-gradient-to: transparent; }
.to-black\/60 { --tw-gradient-to: rgba(0,0,0,0.6); }
.from-white { --tw-gradient-from: #fff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-white\/60 { --tw-gradient-to: rgba(255,255,255,0.6); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* ═══ Borders ═══ */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-r { border-right-width: 1px; }
.border-l { border-left-width: 1px; }
.border-l-2 { border-left-width: 2px; }
.border-b-2 { border-bottom-width: 2px; }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-white\/30 { border-color: rgba(255,255,255,0.3); }
.border-dashed { border-style: dashed; }
.border-transparent { border-color: transparent; }
.rounded-full { border-radius: 9999px; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-DEFAULT { border-radius: 0.25rem; }

/* ═══ Effects ═══ */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.opacity-0 { opacity: 0; } .opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; } .opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur-2xl { backdrop-filter: blur(40px); }
.blur-\[160px\] { filter: blur(160px); }
.blur-3xl { filter: blur(64px); }
.brightness-50 { filter: brightness(0.5); }
.brightness-\[0\.4\] { filter: brightness(0.4); }
.grayscale { filter: grayscale(100%); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* ═══ Transitions ═══ */
.transition-all { transition: all 0.15s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-opacity { transition: opacity 0.15s ease; }
.transition-transform { transition: transform 0.15s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }

/* ═══ Hover States ═══ */
.hover\:text-white:hover { color: #fff; }
.hover\:text-primary-container:hover { color: var(--color-primary-container); }
.hover\:bg-white:hover { background: #fff; }
.hover\:bg-white\/5:hover { background: rgba(255,255,255,0.05); }
.hover\:bg-white\/10:hover { background: rgba(255,255,255,0.1); }
.hover\:bg-primary-container:hover { background: var(--color-primary-container); }
.hover\:border-primary-container:hover { border-color: var(--color-primary-container); }
.hover\:border-primary-container\/50:hover { border-color: rgba(0,72,99,0.5); }
.hover\:border-white\/30:hover { border-color: rgba(255,255,255,0.3); }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:grayscale-0:hover { filter: grayscale(0%); }
.active\:scale-90:active { transform: scale(0.9); }
.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-110:active { transform: scale(1.1); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0%); }
.group:hover .group-hover\:text-primary-container { color: var(--color-primary-container); }
.group:hover .group-hover\:bg-white { background: #fff; }
.group:hover .group-hover\:text-black { color: #000; }

/* ═══ Display ═══ */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* ═══ Transform ═══ */
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.-mt-\[76px\] { margin-top: -76px; }
.-translate-x-full { transform: translateX(-100%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-full { transform: translateY(100%); }

/* ═══ Outline ═══ */
.outline-none { outline: none; }
.appearance-none { -webkit-appearance: none; appearance: none; }
.resize-none { resize: none; }
.bg-transparent { background: transparent; }

/* ═══ WP Overrides ═══ */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ═══ Selection ═══ */
::selection { background: var(--color-primary-container); color: white; }
