/* ===================================
   Kid Pixel - Main Stylesheet
   Following the design principles from principes_directeurs.md
   =================================== */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-purple: #7935f5;
    --color-gray-light: #f4f4f4;
    --color-text: #333333;

    /* Typography */
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --container-padding: 50px;
    --border-radius: 50px;

    /* Breakpoints */
    --mobile: 768px;
    --tablet: 1024px;
    --desktop: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text);
}

/* Accessibility: focus styles and skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    background: var(--color-purple);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    z-index: 10000;
}

a:focus-visible {
    outline: 3px solid rgba(121, 53, 245, 0.35);
    border-radius: 6px;
}

.nav-link:focus,
.dropdown-toggle:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(121, 53, 245, 0.35), 0 8px 20px rgba(121, 53, 245, 0.15);
}

.navbar .nav-link.active {
    color: var(--color-purple);
    font-weight: 600;
}

/* Container & Layout */
.container {
    max-width: var(--desktop);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-black {
    background-color: var(--color-black);
    color: var(--color-white);
}

.section-gray {
    background-color: var(--color-gray-light);
}

.section-purple {
    background-color: var(--color-purple);
    color: var(--color-white);
}

/* Grid System */
.columns {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.column {
    flex: 1;
}

/* Navigation */
.navbar {
    background-color: var(--color-white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo img {
    height: 50px;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--color-purple);
    color: var(--color-white);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--color-text);
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-gray-light);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    background-color: rgba(121, 53, 245, 0.1);
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* États actifs du hamburger */
.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Animations pour le menu mobile */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 120px 0 var(--section-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-direction: column;
}

/* Ensure text-center class works properly in hero sections */
.hero .text-center {
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-weight: 200;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-top: 1.5rem;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive hero subtitle */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
        margin-top: 1rem;
        padding: 0 1rem;
    }
}

/* Blog Placeholder Styles */
.blog-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-light);
    border-radius: 10px;
    color: var(--color-purple);
    transition: all 0.3s ease;
}

.blog-placeholder:hover {
    background-color: var(--color-purple);
    color: var(--color-white);
}

.blog-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-placeholder span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Inverted Button for Purple Backgrounds */
.btn-inverted {
    background-color: var(--color-white) !important;
    color: var(--color-purple) !important;
    border: 2px solid var(--color-white) !important;
}

.btn-inverted:hover {
    background-color: transparent !important;
    color: var(--color-white) !important;
    border-color: var(--color-white) !important;
    transform: translateY(-2px);
}

.btn-inverted i {
    color: inherit;
}

/* 404 Error Page Styles */
.error-404 {
    text-align: center;
    padding: 2rem 0;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-purple);
    margin: 0;
    line-height: 1;
}

.error-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.suggestion-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-5px);
}

.suggestion-card i {
    font-size: 3rem;
    color: var(--color-purple);
    margin-bottom: 1rem;
}

.suggestion-card h4 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.suggestion-card p {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

.hero-desktop {
    display: block;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 120px 0 var(--section-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-mobile {
    display: none;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 120px 0 var(--section-padding);
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

/* Ensure hero containers are properly centered */
.hero-desktop .container,
.hero-mobile .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-video {
    flex: 0 0 50%;
    max-width: 50%;
}

.hero-text {
    flex: 0 0 50%;
    max-width: 50%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-purple), #8b4cf5);
    color: var(--color-white) !important;
    border: 2px solid var(--color-purple);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(121, 53, 245, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(121, 53, 245, 0.4);
    background: linear-gradient(135deg, #8b4cf5, var(--color-purple));
    color: var(--color-white) !important;
    border-color: var(--color-purple);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* États de focus pour l'accessibilité */
.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(121, 53, 245, 0.3), 0 8px 25px rgba(121, 53, 245, 0.4);
}

.btn-primary:focus:not(:hover) {
    transform: none;
}

.btn-primary i {
    color: inherit;
}

.btn-primary:visited {
    color: var(--color-white) !important;
}

.btn-primary:hover:visited {
    color: var(--color-purple) !important;
}

/* Additional button visibility fixes */
.btn-primary:link,
.btn-primary:active {
    color: var(--color-white) !important;
    text-decoration: none;
}

.btn-primary:hover:link,
.btn-primary:hover:active {
    color: var(--color-white) !important;
    text-decoration: none;
}

/* Ensure button text is always visible in all contexts */
.blog-post .btn-primary,
.section .btn-primary,
article .btn-primary {
    color: var(--color-white) !important;
    background: linear-gradient(135deg, var(--color-purple), #8b4cf5) !important;
}

.blog-post .btn-primary:hover,
.section .btn-primary:hover,
article .btn-primary:hover {
    color: var(--color-white) !important;
    background: linear-gradient(135deg, #8b4cf5, var(--color-purple)) !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-purple);
    border: 2px solid var(--color-purple);
}

.btn-secondary:hover {
    background-color: var(--color-purple);
    color: var(--color-white);
}

/* Tabs */
.tabs-container {
    max-width: 100%;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button:hover,
.tab-button.active {
    background-color: var(--color-white);
    color: var(--color-black);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-text {
    color: var(--color-white);
}

.tab-text p {
    margin-bottom: 1.5rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .columns {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-video,
    .hero-text {
        flex: none;
        width: 100%;
    }

    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
        --container-padding: 30px;
    }

    .hero-desktop {
        display: none;
    }

    .hero-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 80px 0 40px;
        min-height: 100vh;
    }

    .hero {
        padding: 80px 0 40px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        margin-top: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
    }

    .navbar-menu.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0.5rem 0 0 1rem;
    }

    /* Contact Form Mobile */
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Separators */
.separator {
    width: 60px;
    height: 3px;
    background-color: var(--color-purple);
    margin: 2rem auto;
}

.separator-white {
    background-color: var(--color-white);
}

/* Three Column Layout */
.columns-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

/* Process List */
.process-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.process-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.process-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-purple);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checklist-item i {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checklist-item div {
    flex: 1;
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 3rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.1);
}

.logo-item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item a {
    text-decoration: none;
    color: inherit;
}

.service-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

/* Barre de progression de lecture */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-purple), #8b4cf5);
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(121, 53, 245, 0.3);
}

/* Indicateur de scroll pour les pages longues */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100px;
    background-color: rgba(121, 53, 245, 0.2);
    border-radius: 2px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* L'élément de remplissage est créé dynamiquement en JavaScript */

.service-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--section-padding) 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-purple);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-purple);
    color: var(--color-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-white);
    color: var(--color-purple);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--color-white);
    position: relative;
}

/* Inline validation states */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.form-control.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.12);
}

.form-group .error-text {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.35rem;
    display: block;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(121, 53, 245, 0.1), 0 8px 25px rgba(121, 53, 245, 0.15);
    transform: translateY(-2px);
}

.form-control:hover:not(:focus) {
    border-color: #ccc;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-purple);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 1.2rem;
}

.contact-details p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
}

.contact-details a {
    color: var(--color-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--color-text);
}

/* Benefit Items */
.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--color-purple);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-item h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-purple);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-content p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
}

/* Hero Content Variations */
.hero-image {
    flex: 0 0 25%;
}

.hero-text {
    flex: 0 0 75%;
}

/* Introduction Content */
.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Featured Video */
.featured-video {
    max-width: 800px;
    margin: 0 auto;
}

/* Testimonials */
.testimonials {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--color-purple);
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial p {
    margin: 0;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
}

/* CTA Content */
.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Button with Icon */
.btn i {
    margin-right: 0.5rem;
}

/* Responsive adjustments for hero variations */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
        align-items: center;
        justify-content: center;
    }

    .hero-video,
    .hero-image,
    .hero-text {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .hero-video {
        order: 2;
        margin-top: 2rem;
    }

    .hero-image {
        order: 2;
        margin-top: 2rem;
    }

    .hero-text {
        order: 1;
    }
}

/* Benefits List - Unified Implementation */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    line-height: 1.6;
    border-bottom: 1px solid #eee;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: '✓';
    color: var(--color-purple);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.benefits-list strong {
    color: var(--color-purple);
}

/* Image Background */
.image-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    min-height: 200px;
}

/* Content Text */
.content-text {
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Readability tweaks */
@media (max-width: 768px) {

    .content-text p,
    .blog-post-body {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    h1 {
        letter-spacing: 0.2px;
    }
}

.section .container>h2+p.lead {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Quote/Blockquote */
.quote {
    background-color: var(--color-gray-light);
    padding: 2rem;
    border-left: 5px solid var(--color-purple);
    border-radius: 10px;
    margin: 2rem 0;
    font-style: italic;
}

.quote p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Column Width Variations */
.column-60 {
    flex: 0 0 60%;
}

.column-40 {
    flex: 0 0 40%;
}

.column-67 {
    flex: 0 0 67%;
}

.column-33 {
    flex: 0 0 33%;
}

/* Usage Checklist */
.usage-checklist {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.usage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.usage-item i {
    color: var(--color-purple);
    font-size: 1.2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.usage-item div {
    flex: 1;
}

.usage-item p {
    margin: 0;
    line-height: 1.6;
}

/* Button Variations */
.btn-xlarge {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive adjustments for column variations */
@media (max-width: 768px) {

    .column-60,
    .column-40,
    .column-67,
    .column-33 {
        flex: none;
        width: 100%;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-origin: center;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(121, 53, 245, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

/* Animation des images dans les cartes */
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: var(--color-purple);
}

.blog-meta a {
    color: var(--color-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-meta a:hover {
    color: var(--color-text);
}

.blog-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--color-purple);
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-purple);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--color-text);
    gap: 1rem;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Blog Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-content {
        padding: 1.5rem;
    }
}

/* Blog Post Styles */
.breadcrumb-section {
    background-color: var(--color-gray-light);
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-text);
}

.breadcrumb-separator {
    color: #666;
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

.blog-post-header {
    padding: 3rem 0;
    background-color: var(--color-white);
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta i {
    color: var(--color-purple);
}

.blog-post-meta a {
    color: var(--color-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-meta a:hover {
    color: var(--color-text);
}

.blog-post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.blog-post-featured-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    padding: 4rem 0;
}

.blog-post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.blog-post-body .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-purple);
    margin-bottom: 2rem;
}

.blog-post-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-size: 1.8rem;
}

.blog-post-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1.4rem;
}

.blog-post-body p {
    margin-bottom: 1.5rem;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

.blog-post-body a {
    color: var(--color-purple);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-post-body a:hover {
    border-bottom-color: var(--color-purple);
}

/* Social Sharing */
.blog-post-sharing {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--color-gray-light);
    border-radius: 15px;
}

.blog-post-sharing h3 {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.social-share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--color-white);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.email {
    background-color: #666;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Author Bio */
.author-bio {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.author-info p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* Blog Post Responsive */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-post-body {
        font-size: 1rem;
    }

    .social-share-buttons {
        justify-content: center;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding: 4rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.legal-intro {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--color-purple);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-purple);
}

.legal-section h3 {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--color-text);
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-info {
    background-color: var(--color-gray-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.legal-info p {
    margin-bottom: 0.5rem;
}

.legal-info p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-purple);
    text-align: center;
    background-color: var(--color-gray-light);
    padding: 2rem;
    border-radius: 10px;
}

.legal-footer p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-footer p:last-child {
    margin-bottom: 0;
}

.legal-footer a {
    color: var(--color-purple);
    text-decoration: none;
    font-weight: 500;
}

.legal-footer a:hover {
    text-decoration: underline;
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 2rem 0;
    }

    .legal-header {
        margin-bottom: 2rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-intro {
        font-size: 1rem;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section ul,
    .legal-section ol {
        padding-left: 1.5rem;
    }

    .legal-info {
        padding: 1rem;
    }
}

/* Accordion Styles */
.accordion-container {
    margin-top: 2rem;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    padding: 1.5rem;
    background-color: var(--color-gray-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e8e8e8;
}

.accordion-header.active {
    background-color: var(--color-purple);
    color: var(--color-white);
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--color-purple);
}

.accordion-header.active i {
    transform: rotate(180deg);
    color: var(--color-white);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--color-white);
}

.accordion-content.active {
    padding: 1.5rem;
    max-height: 200px;
}

.accordion-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text);
}

/* Accordion Responsive */
@media (max-width: 768px) {
    .accordion-header {
        padding: 1rem;
    }

    .accordion-header h4 {
        font-size: 1rem;
    }

    .accordion-content.active {
        padding: 1rem;
    }
}

/* Process Steps Styles */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--color-purple);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Quote Styles */
.quote {
    background-color: var(--color-gray-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--color-purple);
    font-style: italic;
    margin: 2rem 0;
}

.quote p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* Stats Box Styles */
.stats-box {
    background-color: var(--color-purple);
    padding: 2rem;
    border-radius: 15px;
    color: var(--color-white);
}

.stats-box h4 {
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-align: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Skeleton loading amélioré - Image Loading Optimization */
.image-skeleton {
    background: linear-gradient(90deg,
            var(--color-gray-light) 25%,
            #e8e8e8 50%,
            var(--color-gray-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Amélioration du lazy loading existant */
img[data-src] {
    opacity: 0;
    background: linear-gradient(90deg,
            var(--color-gray-light) 25%,
            #e8e8e8 50%,
            var(--color-gray-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

img.loaded {
    opacity: 1;
    animation: none;
    background: none;
    transform: scale(1.02);
}

img.loaded {
    transform: scale(1);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    min-width: 80px;
}

.stat-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Process Steps Responsive */
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .step-number {
        margin: 0 auto 1rem;
    }

    .quote {
        padding: 1.5rem;
    }

    .stats-box {
        padding: 1.5rem;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .stat-number {
        min-width: auto;
    }
}

/* Video Showcase Styles */
.video-showcase {
    margin-top: 3rem;
}

.video-showcase .video-container {
    margin-bottom: 2rem;
}

.video-showcase .columns {
    align-items: center;
}

/* Benefits List Styles - Removed duplicate, using unified implementation above */

/* Video Showcase Responsive */
@media (max-width: 768px) {
    .video-showcase .columns {
        flex-direction: column;
    }

    .benefits-list li {
        flex-direction: row;
        gap: 0.75rem;
        text-align: left;
    }

    .benefits-list li::before {
        margin-top: 0.05rem;
    }
}

/* Image Loading Optimization */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
    background-color: var(--color-gray-light);
}

img.loaded {
    opacity: 1;
}

/* WebP Support Indicator */
.webp img {
    /* Styles for browsers that support WebP */
}

.no-webp img {
    /* Fallback styles for browsers without WebP support */
}

/* Image Placeholder */
.image-placeholder {
    background-color: var(--color-gray-light);
    background-image: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.5) 25%, rgba(255, 255, 255, 0.5) 75%, transparent 75%, transparent),
        linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.5) 25%, rgba(255, 255, 255, 0.5) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: placeholder-shimmer 1.5s ease-in-out infinite;
}

@keyframes placeholder-shimmer {
    0% {
        background-position: 0 0, 10px 10px;
    }

    100% {
        background-position: 20px 20px, 30px 30px;
    }
}

/* Image Loading Effect */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Tap targets and Back-to-top */
.tap-target {
    min-width: 44px;
    min-height: 44px;
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    background: var(--color-purple);
    color: var(--color-white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(121, 53, 245, 0.35);
    border: none;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top i {
    color: var(--color-white);
}

/* Generic skeleton utility for blocks */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-light) 25%, #e8e8e8 50%, var(--color-gray-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: 10px;
}