/* ========================================
   VARIABLES CSS & RESET
   Pizza Son' Theme - Global Styles
======================================== */

:root {
    /* Couleurs principales */
    --color-primary: #00ADB5;
    --color-primary-dark: #008B92;
    --color-primary-light: #E8F8F9;
    --color-secondary: #FF6B35;
    --color-accent: #FFD6A5;
    --color-dark: #1A1A2E;
    --color-light: #FFFFFF;
    --color-text: #2D3748;
    --color-text-light: #718096;

    /* Espacement */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Bordures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ========================================
   POLICES - MONA SANS
======================================== */

@font-face {
    font-family: 'Mona Sans';
    src: url('../fonts/MonaSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('../fonts/MonaSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('../fonts/MonaSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('../fonts/MonaSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('../fonts/MonaSans-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   RESET & BASE
======================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Compensation pour le header fixe lors du scroll vers les ancres */
section[id],
[id]:target {
    scroll-margin-top: 100px;
}

body {
    font-family: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   CLASSES UTILITAIRES - COULEURS
======================================== */

.color-primary { color: var(--color-primary); }
.color-secondary { color: var(--color-secondary); }
.color-accent { color: var(--color-accent); }
.color-dark { color: var(--color-dark); }
.color-light { color: var(--color-light); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }

/* ========================================
   LAYOUT & CONTAINERS
======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    text-align: center;
}

.section-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.125rem);
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    display: inline-block;
    padding: clamp(0.75rem, 1.5vw, 1.125rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), #FF8C5A);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 1px solid white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 173, 181, 0.3);
}

/* ========================================
   MENU - LABELS & VALEURS
======================================== */

.menu-label {
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-value {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 500;
    color: var(--color-text);
}

.menu-prix-container {
    text-align: center;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 107, 53, 0.05));
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 107, 53, 0.3);
}

.menu-prix {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--color-secondary);
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

.menu-note {
    margin: 0;
    font-size: clamp(0.75rem, 1.1vw, 0.875rem);
    font-weight: 600;
    color: var(--color-secondary);
}

/* ========================================
   INFORMATIONS IMPORTANTES
======================================== */

.infos-note {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: var(--color-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: var(--spacing-xl) auto;
}

.infos-note-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.infos-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-primary) 20%, 
        var(--color-primary) 80%, 
        transparent);
    margin: var(--spacing-sm) 0;
}

.infos-note svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.infos-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.infos-note span {
    font-weight: bold;
}

.infos-note-primary {
    flex: 1;
}

.infos-note-secondary {
    font-style: italic;
    padding-left: calc(20px + var(--spacing-sm));
}

.cta-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

/* ========================================
   ACCESSIBILITÉ
======================================== */

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.horaire-closed {
    color: #d32f2f;
    font-weight: 600;
}

/* ========================================
   BULLES DÉCORATIVES FLOTTANTES
======================================== */

/* Container des bulles */
.decorative-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

/* Bulles de base */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: floatBubble 20s ease-in-out infinite;
    will-change: transform;
}

/* Couleurs des bulles */
.bubble-primary {
    background: radial-gradient(circle at 30% 30%, rgba(0, 173, 181, 0.25), rgba(0, 173, 181, 0.05));
    border: 1px solid rgba(0, 173, 181, 0.15);
}

.bubble-secondary {
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.03));
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.bubble-accent {
    background: radial-gradient(circle at 30% 30%, rgba(255, 214, 165, 0.35), rgba(255, 214, 165, 0.1));
    border: 1px solid rgba(255, 214, 165, 0.2);
}

/* Tailles des bulles */
.bubble-sm { 
    width: 80px; 
    height: 80px; 
}

.bubble-md { 
    width: 150px; 
    height: 150px; 
}

.bubble-lg { 
    width: 250px; 
    height: 250px; 
}

.bubble-xl { 
    width: 400px; 
    height: 400px; 
}

/* Animations avec délais différents pour chaque bulle */
.bubble:nth-child(1) { animation-delay: 0s; animation-duration: 18s; }
.bubble:nth-child(2) { animation-delay: -3s; animation-duration: 22s; }
.bubble:nth-child(3) { animation-delay: -6s; animation-duration: 25s; }
.bubble:nth-child(4) { animation-delay: -9s; animation-duration: 20s; }
.bubble:nth-child(5) { animation-delay: -12s; animation-duration: 28s; }
.bubble:nth-child(6) { animation-delay: -15s; animation-duration: 24s; }
.bubble:nth-child(7) { animation-delay: -18s; animation-duration: 26s; }
.bubble:nth-child(8) { animation-delay: -21s; animation-duration: 23s; }
.bubble:nth-child(9) { animation-delay: -2s; animation-duration: 19s; }
.bubble:nth-child(10) { animation-delay: -5s; animation-duration: 21s; }
.bubble:nth-child(11) { animation-delay: -8s; animation-duration: 27s; }
.bubble:nth-child(12) { animation-delay: -11s; animation-duration: 24s; }
.bubble:nth-child(13) { animation-delay: -14s; animation-duration: 22s; }
.bubble:nth-child(14) { animation-delay: -17s; animation-duration: 25s; }
.bubble:nth-child(15) { animation-delay: -20s; animation-duration: 20s; }

/* Animation principale */
@keyframes floatBubble {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -20px) rotate(3deg);
    }
    50% {
        transform: translate(-10px, -15px) rotate(-2deg);
    }
    75% {
        transform: translate(20px, 8px) rotate(5deg);
    }
}

/* Animation alternative plus douce */
@keyframes floatBubbleSlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(8px, -12px) scale(1.03);
    }
}

.bubble-slow {
    animation-name: floatBubbleSlow;
}

/* Sections avec bulles */
.section-with-bubbles {
    position: relative;
    overflow: visible;
}

/* Bulles sur mobile - tailles réduites et positionnées dans les coins */
@media (max-width: 768px) {
    .decorative-bubbles {
        display: block;
        overflow: hidden;
    }

    .bubble {
        opacity: 0.3;
    }

    .bubble-sm {
        width: clamp(40px, 12vw, 60px);
        height: clamp(40px, 12vw, 60px);
    }

    .bubble-md {
        width: clamp(60px, 18vw, 100px);
        height: clamp(60px, 18vw, 100px);
    }

    .bubble-lg {
        width: clamp(80px, 25vw, 150px);
        height: clamp(80px, 25vw, 150px);
    }

    .bubble-xl {
        width: clamp(100px, 30vw, 200px);
        height: clamp(100px, 30vw, 200px);
    }
}

/* Réduire les animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
    }
}

/* ========================================
   ANIMATIONS GÉNÉRALES
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBackground {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 30px) rotate(-5deg);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   RESPONSIVE - GLOBAL
======================================== */

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .container,
    .container-wide {
        padding: 0 var(--spacing-sm);
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        width: 100%;
    }
}

/* Responsive overrides moved to `assets/css/responsive-fixes.css` to centralize media queries and overrides.
   Any further responsive adjustments should be added in that file. */