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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F4FF 100%);
    overflow-x: hidden;
    color: #111827;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --ringci-bleu: #0A6CFF;
    --ringci-orange: #FF8A00;
    --ringci-bleu-fonce: #0052CC;
    --ringci-orange-fonce: #E67A00;
    --ringci-noir: #111827;
    --ringci-gris: #4B5563;
    --ringci-gris-clair: #F3F4F6;
}

/* ========== SPLASH SCREEN ========== */
.splash {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeOut 0.6s ease-out 4.5s forwards;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    z-index: 2;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

.splash-logo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--ringci-bleu);
    box-shadow: 0 8px 24px rgba(10,108,255,0.1);
    position: relative;
    z-index: 2;
    animation: logoPulse 2s ease-in-out infinite;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.splash-title .bleu {
    color: var(--ringci-bleu);
}

.splash-title .orange {
    color: var(--ringci-orange);
}

.splash-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 auto;
    line-height: 1.5;
    color: #111827;
    max-width: 280px;
}

.splash-progress {
    width: 180px;
    height: 2px;
    background: #E2E8F0;
    border-radius: 2px;
    margin: 28px auto 0;
    overflow: hidden;
}

.splash-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--ringci-bleu), var(--ringci-orange));
    animation: progress 4.5s ease-out forwards;
}

/* Étoiles */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.star-bleu {
    background: var(--ringci-bleu);
    box-shadow: 0 0 5px var(--ringci-bleu);
    opacity: 0.5;
}

.star-orange {
    background: var(--ringci-orange);
    box-shadow: 0 0 5px var(--ringci-orange);
    opacity: 0.5;
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--ringci-bleu);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    border-color: var(--ringci-orange);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-text .ring {
    color: var(--ringci-bleu);
    transition: color 0.3s ease;
}

.logo-text .ci {
    color: var(--ringci-orange);
    transition: color 0.3s ease;
}

.logo:hover .logo-text .ring {
    color: var(--ringci-orange);
}

.logo:hover .logo-text .ci {
    color: var(--ringci-bleu);
}

/* ========== NAVIGATION CONTAINER ========== */
.nav-container {
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ringci-bleu), var(--ringci-orange));
    transition: width 0.3s ease;
}

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

.nav a:hover {
    color: var(--ringci-orange);
}

.nav a.active {
    color: var(--ringci-orange);
}

.nav a.active::after {
    width: 100%;
    background: var(--ringci-orange);
}

.nav-buttons {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
}

.btn-login {
    background: transparent;
    color: var(--ringci-bleu);
    border: 1px solid var(--ringci-bleu);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: rgba(10, 108, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 108, 255, 0.15);
}

.btn-register {
    background: linear-gradient(135deg, var(--ringci-bleu), var(--ringci-bleu-fonce));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 108, 255, 0.3);
    background: linear-gradient(135deg, var(--ringci-bleu-fonce), var(--ringci-bleu));
}

/* ========== MENU HAMBURGER ========== */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--ringci-bleu);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

.nav-overlay.active {
    display: block;
}

/* ========== HERO CARROUSEL ========== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.2s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--ringci-bleu), var(--ringci-orange));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: badgePulse 2s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: white;
}

.hero h1 .bleu {
    color: var(--ringci-bleu);
    text-shadow: 0 0 20px rgba(10, 108, 255, 0.5);
}

.hero h1 .orange {
    color: var(--ringci-orange);
    text-shadow: 0 0 20px rgba(255, 138, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: white !important;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--ringci-orange), var(--ringci-orange-fonce));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.4);
}

/* ========== SECTIONS ========== */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #111827 !important;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #111827;
    position: relative;
}

.section-title .bleu {
    color: var(--ringci-bleu);
}

.section-title .orange {
    color: var(--ringci-orange);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ringci-bleu), var(--ringci-orange));
    border-radius: 3px;
}

/* Pricing Tabs */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid #E5E7EB;
    color: #4B5563;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--ringci-bleu), var(--ringci-orange));
    color: white;
    border: none;
}

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

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px -12px rgba(10, 108, 255, 0.2);
    border-color: var(--ringci-bleu);
}

.feature-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.feature-card p {
    color: #111827 !important;
    line-height: 1.5;
    font-size: 0.85rem;
}

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

.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 1.8rem;
    text-align: center;
    border: 1px solid #E5E7EB;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--ringci-orange);
    transform: scale(1.02);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ringci-orange);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
}

.pricing-icon {
    font-size: 2rem;
    margin: 0 auto 0.5rem;
}

.pricing-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.pricing-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ringci-bleu);
    margin: 0.8rem 0;
}

.pricing-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #111827;
}

.pricing-subtitle {
    font-size: 0.8rem;
    color: #111827 !important;
    margin-bottom: 1rem;
}

.pricing-features {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
    flex: 1;
}

.pricing-features li {
    padding: 0.4rem 0;
    color: #111827 !important;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--ringci-bleu);
    font-weight: bold;
}

.pricing-info {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: #111827;
    text-align: center;
}

.btn-show-more {
    background: transparent;
    color: var(--ringci-bleu);
    border: 1px solid var(--ringci-bleu);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: auto;
    align-self: center;
}

.btn-show-more:hover {
    background: rgba(10, 108, 255, 0.05);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ringci-bleu), var(--ringci-bleu-fonce));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

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

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--ringci-gris-clair);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--ringci-bleu);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    border-color: var(--ringci-orange);
    transform: scale(1.05);
}

.testimonial-text {
    font-style: italic;
    color: #111827;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--ringci-bleu);
}

.testimonial-role {
    font-size: 0.8rem;
    color: #111827;
}

/* About */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.about-text p {
    color: #111827 !important;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-stats {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ringci-bleu), var(--ringci-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
}

.stat-label {
    color: #111827;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Contact */
.contact-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--ringci-gris-clair);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

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

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #111827;
}

.contact-item p {
    color: #111827;
}

.contact-form {
    flex: 1;
    background: var(--ringci-gris-clair);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    color: #111827;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--ringci-bleu);
    box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--ringci-bleu), var(--ringci-orange));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 108, 255, 0.3);
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #111827;
    color: white;
    border-radius: 100px;
    font-size: 0.85rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #1a1a2e;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo .ring {
    color: var(--ringci-bleu);
    font-weight: 700;
}

.footer-logo .ci {
    color: var(--ringci-orange);
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ringci-bleu), var(--ringci-orange));
    transition: width 0.3s ease;
}

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

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 8px 12px;
    border-radius: 100px;
    cursor: pointer;
    color: white;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-link[data-social="facebook"] {
    background: #1877F2;
}

.social-link[data-social="youtube"] {
    background: #FF0000;
}

.social-link[data-social="tiktok"] {
    background: #000000;
}

.social-link[data-social="instagram"] {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #405de6);
}

.social-link[data-social="linkedin"] {
    background: #0A66C2;
}

.social-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

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

@keyframes progress {
    to { width: 100%; }
}

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

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

@keyframes starFloat {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    15% { opacity: 0.6; }
    30% { opacity: 0.6; }
    60% { opacity: 0.3; }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.6); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.home {
    opacity: 0;
    animation: pageLoad 0.6s ease-out 0.2s forwards;
}

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

/* ========== RESPONSIVE ========== */

/* Grands écrans */
@media (min-width: 1200px) {
    .section {
        padding: 5rem 2rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Écrans moyens */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 1.5rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

/* Tablette */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* Mobile - Menu hamburger */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-container {
        position: relative;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .nav a {
        font-size: 1.1rem;
        padding: 5px 0;
    }
    
    .nav-buttons {
        flex-direction: column;
        margin-left: 0;
        margin-top: 1rem;
        gap: 0.8rem;
        width: 100%;
    }
    
    .btn-login, .btn-register {
        width: 100%;
        text-align: center;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }
    
    .header {
        padding: 1rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn-hero-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 80%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        gap: 0.5rem;
    }
    
    .social-name {
        display: none;
    }
    
    .social-link {
        padding: 10px;
        border-radius: 50%;
    }
    
    .pricing-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .btn-hero-primary {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-image {
        width: 50px;
        height: 50px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-price {
        font-size: 1.5rem;
    }
    
    .pricing-card h3 {
        font-size: 1.1rem;
    }
    
    .pricing-features li {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-logo img {
        width: 35px;
        height: 35px;
    }
    
    .footer-logo .ring, .footer-logo .ci {
        font-size: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.7rem;
    }
    
    .footer-copyright p {
        font-size: 0.65rem;
    }
    
    .toast {
        padding: 8px 16px;
        font-size: 0.7rem;
        bottom: 1rem;
    }
}

/* Très petit mobile */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .pricing-price {
        font-size: 1.3rem;
    }
    
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .btn-show-more {
        padding: 4px 12px;
        font-size: 0.65rem;
    }
}

/* Mode paysage sur mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Support des écrans avec encoches */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }
    
    .hero-content {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--ringci-bleu), var(--ringci-orange));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ringci-bleu-fonce);
}