/* 
    OBV Auto-École - Stylesheet
    Colors: Orange (#ff6b00), White, Green (#28a745), Black Footer
*/

:root {
    --primary-color: #ff6b00;
    --secondary-color: #28a745;
    --white: #ffffff;
    --black: #1a1a1a;
    --grey: #f4f4f4;
    --text-color: #333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-car {
    font-size: 50px;
    color: var(--primary-color);
    animation: drive 2s infinite linear;
}

@keyframes drive {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.sticky {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    margin-left: 0;
}

/* ANIMATIONS NAVBAR - Soulignement vert */
.nav-links a {
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--secondary-color) !important;
}

.nav-links a.active::after {
    width: 100%;
    background: var(--secondary-color);
}

#navbar.sticky .nav-links a {
    color: var(--text-color);
}

#navbar.sticky .nav-links a:hover,
#navbar.sticky .nav-links a.active {
    color: var(--secondary-color) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

#navbar.sticky .hamburger span {
    background: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: slideInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: slideInUp 1s ease 0.2s both;
}

.hero-btns {
    animation: fadeIn 1s ease 0.4s both;
}

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

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

/* Road Sign Animation */
.road-sign-anim {
    width: 90px;
    margin: 0 auto 30px;
    animation: signAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    margin-top: 10%;
}

.sign-board {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px;
    border: 5px solid var(--white);
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.5rem;
    transform: rotate(-5deg);
    animation: pulse 2s infinite;
}

.sign-pole {
    width: 5px;
    height: 30px;
    background: #555;
    margin: 0 auto;
}

@keyframes signAppear {
    0% { transform: translateY(-100px) rotate(-20deg); opacity: 0; }
    100% { transform: translateY(0) rotate(-5deg); opacity: 1; }
}

/* Car crossing animation */
.car-animation {
    position: absolute;
    bottom: 50px;
    left: -100px;
    font-size: 40px;
    color: var(--primary-color);
    animation: carCross 15s infinite linear;
    filter: drop-shadow(0 0 10px rgba(255,107,0,0.5));
}

@keyframes carCross {
    0% { left: -100px; transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(5px); }
    100% { left: 110%; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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.5s ease;
    z-index: -1;
}

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

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    margin-right: 15px;
}

.btn-primary:hover {
    background: #e65a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,107,0,0.3);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,107,0,0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: expandWidth 0.8s ease 0.3s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

/* ===== ANIMATIONS PROFESSIONNELLES POUR LES CARTES ===== */

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform-style: preserve-3d;
    opacity: 0;
    animation: cardAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }

.card:hover {
    transform: translateY(-15px) rotateY(5deg) scale(1.02);
    box-shadow: 0 30px 50px rgba(255, 107, 0, 0.3);
}

.card::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.5s ease;
    z-index: 2;
}

.card:hover::before {
    left: 100%;
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

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

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(40,167,69,0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-img::after {
    opacity: 1;
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

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

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.card:hover h3::after {
    width: 100%;
}

.price {
    display: block;
    margin: 15px 0;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.btn-card {
    background: var(--primary-color);
    color: var(--white);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255,107,0,0.4);
}

/* ===== ANIMATIONS POUR LES TÉMOIGNAGES ===== */

.testimonials-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(40,167,69,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

.tab-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,107,0,0.2);
}

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

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    perspective: 1000px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 5px solid var(--primary-color);
    opacity: 0;
    animation: cardSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: left;
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotateY(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 50px rgba(255, 107, 0, 0.2);
}

.testimonial-media {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #ff6b00, #ff8c42);
    overflow: hidden;
}

.testimonial-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-card:hover .testimonial-media iframe {
    transform: scale(1.05);
}

.testimonial-content {
    padding: 25px;
    transition: transform 0.3s ease;
}

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

.testimonial-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.testimonial-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.testimonial-card:hover h3::after {
    width: 100%;
}

.testimonial-card .role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.rating {
    display: flex;
    gap: 5px;
    color: #ffc107;
    animation: starPulse 1s ease infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Styles pour les vidéos YouTube */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

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

/* Gallery Grid avec animations */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    perspective: 1000px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    height: 250px;
    opacity: 0;
    animation: galleryAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center;
}

@keyframes galleryAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }

.gallery-item:hover {
    transform: translateY(-15px) scale(1.05) rotate(2deg);
    box-shadow: 0 30px 50px rgba(255, 107, 0, 0.3);
    z-index: 10;
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b00, #ff8c42);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    transition: transform 0.5s ease;
}

.gallery-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-placeholder i {
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.gallery-item:hover .gallery-placeholder i {
    animation: bounce 1s infinite;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-weight: 600;
    font-size: 1.1rem;
    animation: slideInUp 0.3s ease;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--grey) 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(40,167,69,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-download {
    background: var(--secondary-color);
    color: var(--white);
    margin-top: 20px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.btn-download:hover {
    background: #218838;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(40,167,69,0.3);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    animation: fadeInUp 0.8s ease;
    transition: transform 0.3s ease;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

.stat-item:hover {
    transform: translateY(-10px) scale(1.1);
}

.stat-item span {
    font-size: 3rem;
    font-weight: 700;
    display: inline-block;
    animation: countUp 2s ease;
}

@keyframes countUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    animation: fadeInUp 0.8s ease;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.map-container iframe {
    transition: transform 0.5s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.direct-contact {
    display: flex;
    gap: 15px;
}

/* Bouton WhatsApp stylisé */
.btn-whatsapp { 
    background: #25d366; 
    color: white; 
    flex: 1; 
    text-align: center; 
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-tel { 
    background: #34b7f1; 
    color: white; 
    flex: 1; 
    text-align: center;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-tel:hover {
    background: #0077b6;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(52, 183, 241, 0.4);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-social {
    animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

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

.social-icon:hover::before {
    width: 80px;
    height: 80px;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: rotate(360deg) scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease 0.5s both;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,107,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,107,0,0.8); }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== QUIZ MODAL STYLES ===== */

.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.quiz-modal.hidden {
    display: none;
}

.quiz-container {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.quiz-header {
    background: linear-gradient(135deg, var(--primary-color), #ff8c42);
    color: var(--white);
    padding: 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-header h2 {
    font-size: 1.8rem;
    margin: 0;
    animation: slideInLeft 0.5s ease;
}

.close-quiz {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-quiz:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.quiz-progress {
    padding: 20px 25px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    text-align: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.quiz-content {
    padding: 40px 25px;
    min-height: 400px;
}

.question-area {
    animation: fadeInUp 0.5s ease;
}

/* Styles pour les images du quiz */
.question-image {
    text-align: center;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 15px;
    border: 2px dashed var(--primary-color);
    animation: glow 2s infinite;
}

.quiz-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float 3s ease-in-out infinite;
}

.quiz-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(255,107,0,0.3);
}

.quiz-emoji {
    font-size: 5rem;
    animation: bounce 2s infinite;
}

.question-text {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 600;
    animation: fadeInLeft 0.5s ease;
}

.options-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    padding: 15px 20px;
    border: 2px solid #ddd;
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.5s ease;
    animation-fill-mode: both;
}

.option-btn:nth-child(1) { animation-delay: 0.1s; }
.option-btn:nth-child(2) { animation-delay: 0.2s; }
.option-btn:nth-child(3) { animation-delay: 0.3s; }
.option-btn:nth-child(4) { animation-delay: 0.4s; }

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

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

.option-btn:hover {
    border-color: var(--primary-color);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255,107,0,0.1);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: rgba(255,107,0,0.1);
    font-weight: 600;
    animation: pulse 1s;
}

.option-btn.correct {
    border-color: var(--secondary-color);
    background: rgba(40,167,69,0.1);
    color: var(--secondary-color);
    animation: shake 0.5s;
}

.option-btn.incorrect {
    border-color: #dc3545;
    background: rgba(220,53,69,0.1);
    color: #dc3545;
    animation: shake 0.5s;
}

/* Results Area */
.results-area {
    animation: fadeInUp 0.5s ease;
}

.results-content {
    text-align: center;
}

.results-content h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
    animation: slideInDown 0.5s ease;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease 0.2s both;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff8c42);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(255,107,0,0.3);
    animation: pulse 2s infinite;
}

.score-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    animation: countUp 2s ease;
}

.score-details {
    text-align: left;
}

.score-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    animation: slideInLeft 0.5s ease;
}

.result-message {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    animation: slideInRight 0.5s ease;
}

.detailed-results {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    animation: slideInLeft 0.3s ease;
    animation-fill-mode: both;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.2s; }
.result-item:nth-child(3) { animation-delay: 0.3s; }
.result-item:nth-child(4) { animation-delay: 0.4s; }
.result-item:nth-child(5) { animation-delay: 0.5s; }

.result-item:last-child {
    border-bottom: none;
}

.result-item.correct {
    color: var(--secondary-color);
}

.result-item.incorrect {
    color: #dc3545;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.quiz-footer {
    padding: 20px 25px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-radius: 0 0 20px 20px;
}

.quiz-footer.hidden {
    display: none;
}

.quiz-footer .btn {
    flex: 1;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-footer .btn:not(:disabled):hover {
    transform: translateY(-3px) scale(1.05);
}

.quiz-footer .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 15px;
        z-index: 1000;
        animation: slideDown 0.3s ease forwards;
    }

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

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: var(--text-color) !important;
        display: block;
        padding: 10px;
        border-radius: 5px;
        transition: var(--transition);
    }

    .nav-links a:hover {
        background: var(--primary-color);
        color: var(--white) !important;
        transform: translateY(-2px);
    }

    #navbar.sticky .nav-links a {
        color: var(--text-color) !important;
    }

    .nav-links a.active {
        color: var(--secondary-color) !important;
        background: rgba(40,167,69,0.1);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper, .footer-grid, .form-group {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }

    /* Quiz Responsive */
    .quiz-container {
        width: 95%;
        max-height: 95vh;
    }

    .quiz-header h2 {
        font-size: 1.4rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .question-image {
        min-height: 150px;
    }

    .quiz-image {
        max-height: 150px;
    }

    .quiz-emoji {
        font-size: 4rem;
    }

    .score-display {
        flex-direction: column;
        gap: 20px;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-percentage {
        font-size: 2.5rem;
    }

    .quiz-footer {
        flex-direction: column;
    }

    .quiz-footer .btn {
        width: 100%;
    }

    /* Responsive pour le bouton WhatsApp */
    .contact-form .btn-whatsapp {
        font-size: 1.2rem !important;
        padding: 15px 25px !important;
    }

    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles spécifiques pour le bouton WhatsApp */
.contact-form .btn-whatsapp {
    font-size: 1.5rem;
    padding: 20px 40px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    box-shadow: 0 10px 20px rgba(37,211,102,0.3);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

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

.contact-form .btn-whatsapp:hover::before {
    width: 500px;
    height: 500px;
}

.contact-form .btn-whatsapp:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(37,211,102,0.4);
}

.contact-form .btn-whatsapp i {
    font-size: 2rem;
    animation: bounce 2s infinite;
}