/* ============================================================================
   Base Styles & Reset
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    border-color: var(--border);
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--foreground);
    color: var(--background);
}

/* ── Canards décoratifs (réutilisables) ───────────────────────────────────── */

.section-duck {
    position: absolute;
    width: auto;
    pointer-events: none;
    user-select: none;
}

.section-duck--expertise {
    height: clamp(120px, 18vw, 220px);
    right: 1.5rem;
    top: 3rem;
    opacity: 0.07;
    transform: rotate(-8deg);
}

.section-duck--footer {
    height: clamp(100px, 14vw, 180px);
    left: 50%;
    top: 2rem;
    transform: translateX(-50%) rotate(6deg) scaleX(-1);
    opacity: 0.06;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
}

h1 { font-size: clamp(3rem, 14vw, 11vw); }
h2 { font-size: clamp(2.5rem, 8vw, 8rem); }
h3 { font-size: clamp(1.875rem, 5vw, 5rem); }

p {
    line-height: 1.6;
    letter-spacing: 0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

strong {
    font-weight: 600;
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.bg-background {
    background-color: var(--background);
    color: var(--foreground);
}

.bg-foreground {
    background-color: var(--foreground);
    color: var(--background);
}

.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }
.font-body       { font-family: var(--font-body); }
.font-display    { font-family: var(--font-display); }
.font-mono       { font-family: var(--font-mono); }

.muted {
    opacity: 0.4;
}

.hidden-xs { display: none; }
.hidden-sm { display: none; }

@media (min-width: 768px) {
    .hidden-sm { display: inline; }
}

@media (min-width: 1024px) {
    .hidden-xs { display: inline; }
}

/* Floating Elements */
.floating-circle {
    position: fixed;
    border: 2px solid rgba(var(--foreground-rgb), 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-circle-1 {
    top: 6rem;
    right: 2.5rem;
    width: 6rem;
    height: 6rem;
    opacity: 0.4;
    display: none;
}

.floating-circle-2 {
    bottom: 10rem;
    left: 2.5rem;
    width: 4rem;
    height: 4rem;
    opacity: 0.3;
    animation-delay: 1s;
    display: none;
}

@media (min-width: 1024px) {
    .floating-circle-1,
    .floating-circle-2 {
        display: block;
        border-color: var(--foreground);
    }
}
