/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Skip link pour l'accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Structure des slides */
.slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    scroll-snap-align: start;
}

.slide-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

/* Typographie */
.slide h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.slide h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.slide h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.slide p,
.slide li {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Amélioration du contraste pour l'accessibilité */
.low-contrast-demo {
    font-size: 1.8rem;
    color: #888;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.1;
    opacity: 0.5;
    text-shadow: none;
    font-family: 'Times New Roman', serif;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grilles et layouts */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 3rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 0.5rem;
    min-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover,
.stat-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00f5ff;
    display: block;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00f5ff, #ff00aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Pricing */
.pricing {
    display: flex;
    justify-content: space-around;
    margin: 3rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.price-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 0.5rem;
    min-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.price-card:hover,
.price-card:focus-within {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.price-card.featured {
    border: 3px solid #00f5ff;
    transform: scale(1.05);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #00f5ff;
    margin: 1rem 0;
}

/* Boutons */
.btn {
    background: #00f5ff;
    border: 2px solid #00f5ff;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    /* Taille minimum tactile */
    min-width: 44px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00f5ff, #ff00aa);
    border-radius: inherit;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    outline: 3px solid #fff;
    outline-offset: 2px;
    background: #ff00aa;
    border-color: #ff00aa;
}

.btn:hover::before,
.btn:focus::before {
    opacity: 1;
}

/* Bouton secondaire avec bordure transparente */
.btn.btn-secondary {
    background: transparent;
    border: 2px solid #00f5ff;
    color: #00f5ff;
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
    background: #00f5ff;
    color: white;
}

/* Section amendes */
.warning-card {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 140, 0, 0.2));
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 69, 0, 0.6);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.warning-card:hover,
.warning-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.3);
}

.warning-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ff4500;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Animations flottantes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Navigation */
.navigation {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 1000;
}

.nav-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 44px;
    /* Accessibilité tactile */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

.nav-dot.active {
    background: #00f5ff;
    transform: scale(1.2);
}

.nav-dot:hover,
.nav-dot:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Listes accessibles */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding-left: 1.5rem;
    position: relative;
}

ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00f5ff;
    font-weight: bold;
}

/* Screen reader only content */
.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;
}

/* Responsive */
@media (max-width: 768px) {
    .slide h1 {
        font-size: 2rem;
    }

    .slide h2 {
        font-size: 1.8rem;
    }

    .stats,
    .pricing {
        flex-direction: column;
        align-items: center;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .nav-dot {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Modes haut contraste */
@media (prefers-contrast: high) {

    .stat-card,
    .service-card,
    .price-card {
        border-width: 3px;
        background: rgba(255, 255, 255, 0.25);
    }
}

/* Respect des préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation: none;
    }

    .stat-card:hover,
    .service-card:hover,
    .price-card:hover,
    .btn:hover {
        transform: none;
    }
}

/* Améliorations pour la responsivité mobile */

/* Variables CSS pour une meilleure maintenance */
:root {
    --mobile-padding: 1rem;
    --mobile-gap: 0.8rem;
}

/* Base mobile-first */
@media (max-width: 768px) {

    /* Ajustement global des paddings */
    .slide {
        padding: var(--mobile-padding);
        min-height: 100vh;
    }

    .slide-content {
        padding: 0;
        width: 100%;
    }

    /* Cards responsives */
    .stat-card,
    .service-card,
    .price-card,
    .warning-card {
        width: 100%;
        margin: var(--mobile-gap) 0;
        padding: 1.5rem;
        min-width: unset;
        max-width: 100%;
    }

    /* Grilles en colonne unique */
    .stats,
    .services,
    .pricing {
        display: flex;
        flex-direction: column;
        gap: var(--mobile-gap);
        margin: 2rem 0;
        width: 100%;
    }

    /* Textes responsifs */
    .slide h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .slide h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .slide h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin-bottom: 0.8rem;
    }

    .slide p,
    .slide li {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        line-height: 1.5;
    }

    /* Stats responsifs */
    .stat-number {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .warning-number {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .price {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    /* Masquer le contenu desktop-only */
    .desktop-only {
        display: none !important;
    }

    /* Navigation mobile optimisée */
    .navigation {
        bottom: 1rem;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 25px;
        width: calc(100% - 2rem);
        max-width: 400px;
        justify-content: center;
        gap: 0.6rem;
    }

    .nav-dot {
        min-width: 40px;
        min-height: 40px;
    }

    /* Boutons responsifs */
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem auto;
        display: block;
    }

    /* Slide spécifique : amendes */
    #slide4 .stats {
        gap: 1rem;
    }

    #slide4 .warning-card {
        width: 100%;
        min-width: unset;
    }

    /* Slide spécifique : offres */
    #slide6 .pricing {
        gap: 1.5rem;
    }

    #slide6 .price-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Amélioration des listes */
    ul {
        padding-left: 0;
        margin: 0;
    }

    ul li {
        padding-left: 1.2rem;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    /* Formes flottantes plus petites */
    .shape:nth-child(1) {
        width: 40px;
        height: 40px;
    }

    .shape:nth-child(2) {
        width: 60px;
        height: 60px;
    }

    .shape:nth-child(3) {
        width: 30px;
        height: 30px;
    }

    /* Low contrast demo responsive */
    .low-contrast-demo {
        font-size: clamp(1rem, 4vw, 1.5rem);
        padding: 0.8rem;
    }

    /* Featured card sur mobile */
    .price-card.featured {
        transform: none;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .stat-card.featured {
        transform: none;
    }
}

/* Très petits écrans (moins de 400px) */
@media (max-width: 400px) {
    :root {
        --mobile-padding: 0.8rem;
        --mobile-gap: 0.6rem;
    }

    .slide h1 {
        font-size: 1.6rem;
    }

    .slide h2 {
        font-size: 1.4rem;
    }

    .stat-card,
    .service-card,
    .price-card,
    .warning-card {
        padding: 1.2rem;
    }

    .navigation {
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .nav-dot {
        min-width: 36px;
        min-height: 36px;
    }
}

/* Amélioration du scroll horizontal */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

.slide {
    overflow-x: hidden;
}

/* Fix pour les éléments qui dépassent */
* {
    max-width: 100vw;
}

/* Optimisation pour l'orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .slide {
        min-height: auto;
        padding: 1rem;
    }

    .slide h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .slide h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .stat-card,
    .service-card,
    .price-card {
        padding: 1rem;
    }

    .navigation {
        bottom: 0.5rem;
    }
}