/* ============================================
   BakeOS - Mascot-Centric Design
   Tout tourne autour de Foxi ! 🦊
   ============================================ */

/* Variables de Design */
:root {
    /* Palette Fox */
    --fox-orange: #E86A1A;
    --fox-orange-light: #FF9A4D;
    --fox-cream: #FFF5E6;
    --fox-brown: #3D2314;
    --fox-dark: #1A0F0A;

    /* UI Colors */
    --bg-dark: #0D0806;
    --bg-section: #1A0F0A;
    --bg-card: #241510;
    --text-light: #FFF9F5;
    --text-muted: #A08070;

    /* Typography */
    --font-main: 'Nunito', sans-serif;
    --font-display: 'Fredoka', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;

    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(232, 106, 26, 0.15);
    --shadow-glow: 0 0 60px rgba(232, 106, 26, 0.3);

    /* Radius - Très arrondi pour look mignon */
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-full: 9999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 15, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 40px;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--fox-orange);
}

.nav-cta {
    background: var(--fox-orange);
    color: var(--fox-dark);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--fox-orange-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Sections Mascotte - Structure Principale
   ============================================ */
.mascot-section {
    min-height: 100vh;
    padding: var(--section-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mascot-section:nth-child(odd) {
    background: var(--bg-dark);
}

.mascot-section:nth-child(even) {
    background: var(--bg-section);
}

.mascot-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mascot-wrapper.reverse {
    direction: rtl;
}

.mascot-wrapper.reverse>* {
    direction: ltr;
}

/* ============================================
   Mascotte - Le Personnage Principal
   ============================================ */
.mascot-main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-img {
    max-width: 450px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s ease;
}

.mascot-img:hover {
    transform: scale(1.05);
}

/* Animations Mascottes */
.mascot-float {
    animation: mascotFloat 4s ease-in-out infinite;
}

.mascot-bounce {
    animation: mascotBounce 2s ease-in-out infinite;
}

.mascot-chill {
    animation: mascotChill 5s ease-in-out infinite;
}

.mascot-wave {
    animation: mascotWave 3s ease-in-out infinite;
}

.mascot-tilt {
    animation: mascotTilt 4s ease-in-out infinite;
}

.mascot-large {
    max-width: 350px;
}

@keyframes mascotFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes mascotBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(-3deg);
    }

    75% {
        transform: translateY(-5px) rotate(3deg);
    }
}

@keyframes mascotChill {

    0%,
    100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

@keyframes mascotWave {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-5deg) scale(1.02);
    }

    75% {
        transform: rotate(5deg) scale(1.02);
    }
}

@keyframes mascotTilt {

    0%,
    100% {
        transform: rotate(0deg) translateX(0);
    }

    33% {
        transform: rotate(-5deg) translateX(-10px);
    }

    66% {
        transform: rotate(5deg) translateX(10px);
    }
}

/* Bulle de Dialogue */
.mascot-speech {
    position: absolute;
    top: 0;
    right: -20px;
    background: var(--fox-cream);
    color: var(--fox-brown);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    animation: speechPop 0.5s ease 0.5s both, speechFloat 3s ease-in-out 1s infinite;
}

.mascot-speech.speech-left {
    right: auto;
    left: -20px;
}

.mascot-speech::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 40px;
    border: 15px solid transparent;
    border-top-color: var(--fox-cream);
    border-bottom: 0;
}

.mascot-speech.speech-left::after {
    right: auto;
    left: 40px;
}

.speech-main {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.speech-sub {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
}

@keyframes speechPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes speechFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ============================================
   Contenu des Sections
   ============================================ */
.mascot-content {
    max-width: 600px;
}

.section-label {
    display: inline-block;
    background: rgba(232, 106, 26, 0.15);
    color: var(--fox-orange);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.mascot-content h1,
.mascot-content h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.mascot-content h2 {
    font-size: 3rem;
}

.highlight {
    background: linear-gradient(135deg, var(--fox-orange), var(--fox-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Boutons */
.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--fox-orange);
    color: var(--fox-dark);
}

.btn-primary:hover {
    background: var(--fox-orange-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--fox-orange);
}

.btn-secondary:hover {
    background: var(--fox-orange);
    color: var(--fox-dark);
}

.btn-outline {
    background: transparent;
    color: var(--fox-orange);
    border: 2px solid var(--fox-orange);
}

.btn-outline:hover {
    background: var(--fox-orange);
    color: var(--fox-dark);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-badges span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(232, 106, 26, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--fox-orange);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--fox-orange);
    transform: scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fox-orange);
    color: var(--fox-dark);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--fox-orange);
    margin-bottom: 24px;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--fox-orange);
}

.testimonial-card .stars {
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-card .author {
    display: flex;
    flex-direction: column;
}

.testimonial-card .author strong {
    color: var(--fox-orange);
}

.testimonial-card .author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   FAQ Items
   ============================================ */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 24px 28px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--fox-orange);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: rgba(232, 106, 26, 0.05);
}

.faq-item p {
    padding: 0 28px 24px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.cta-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-section .mascot-img {
    margin-bottom: 40px;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-content>p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.demo-form input {
    padding: 18px 24px;
    border: 2px solid var(--bg-card);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.demo-form input:focus {
    outline: none;
    border-color: var(--fox-orange);
}

.demo-form input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-section);
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 250px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--fox-orange);
}

.footer-social span {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--fox-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .mascot-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .mascot-wrapper.reverse {
        direction: ltr;
    }

    .mascot-content {
        max-width: 100%;
    }

    .mascot-content h1,
    .mascot-content h2 {
        font-size: 2.5rem;
    }

    .mascot-img {
        max-width: 350px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .feature-cards,
    .testimonial-cards {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .mascot-section {
        min-height: auto;
        padding: 80px 0;
    }

    .mascot-wrapper {
        padding: 0 20px;
    }

    .mascot-content h1,
    .mascot-content h2 {
        font-size: 2rem;
    }

    .mascot-img {
        max-width: 280px;
    }

    .mascot-speech {
        position: relative;
        right: 0;
        left: 0;
        margin-top: 20px;
    }

    .mascot-speech::after {
        display: none;
    }

    .btn {
        padding: 14px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

/* Hero Section spécifique */
.hero-section {
    padding-top: 120px;
}

/* Selection */
::selection {
    background: var(--fox-orange);
    color: var(--fox-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--fox-brown);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fox-orange);
}