/*==================================
 * VARIABLES & CONFIGURATION
 *==================================*/
:root {
    --primary: #FF553E;
    --primary-dark: #cc4432;
    --primary-light: #ff8066;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-light: rgba(255, 255, 255, 0.85);
    --bg-light: #F9FAFB;
    --transition-default: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(255, 85, 62, 0.1), 0 4px 6px -4px rgba(255, 85, 62, 0.05), 0 25px 50px -12px rgba(255, 85, 62, 0.15);
}

html {
  scroll-padding-top: 70px; /* ajuster selon la hauteur de votre navbar */
}

/*==================================
 * RESET & BASE
 *==================================*/
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    margin: 0;
    padding: 0;
  scroll-padding-top: 70px; /* ajuster selon la hauteur de votre navbar */
}

/*==================================
 * UTILITAIRES
 *==================================*/
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*==================================
 * HEADER & NAVIGATION
 *==================================*/
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    height: 64px;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 34px;
}

.logo .p { color: var(--text-primary); }
.logo .x { color: var(--primary); }

.nav-link {
    color: var(--text-secondary) !important;
    transition: var(--transition-default);
    padding: 0.5rem 1rem !important;
}

.dot-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0) 70%);
    top: 0;
    right: -250px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 70%);
    bottom: -200px;
    left: -200px;
}

.hero-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.lead-text {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.features-list {
    position: relative;
    z-index: 1;
}

/*==================================
 * DÉCORATIONS & PATTERNS
 *==================================*/
.dot-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0) 70%);
    top: 0; /* Au lieu de -250px */
    right: -250px;
    pointer-events: none;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 70%);
    bottom: -200px;
    left: -200px;
}

/*==================================
 * BOUTONS & INTERACTIONS
 *==================================*/
.modern-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: var(--transition-default);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 992px) {
    .navbar-collapse .modern-button {
        display: inline-flex !important;
        align-items: center !important;
    }
}

.modern-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #5b21b6 100%);
    color: white;
    transform: translateY(-1px);
}

.outline-button {
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition-default);
    text-decoration: none;
}

/*==================================
 * ANIMATIONS DU HERO
 *==================================*/
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes shadowPulse {
    0% {
        transform: scaleX(1);
        opacity: 0.5;
    }
    50% {
        transform: scaleX(0.85);
        opacity: 0.3;
    }
    100% {
        transform: scaleX(1);
        opacity: 0.5;
    }
}

.screenshot-container {
    padding: 2rem;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.screenshot-preview {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.screenshot-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    background-size: 200% 100%;
    animation: shine 8s infinite linear;
    z-index: 2;
}

.screenshot-preview::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15), transparent 70%);
    filter: blur(5px);
    z-index: -1;
    animation: shadowPulse 6s ease-in-out infinite;
}

/*==================================
 * CARDS & CONTENEURS
 *==================================*/
.card {
    border-radius: 16px;
    overflow: visible !important; /* Au lieu de hidden pour permettre au numéro de dépasser */
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.card .position-absolute {
    z-index: 2; /* S'assurer que le numéro reste au-dessus */
}

.card-body {
    overflow: hidden; /* Garder l'overflow hidden pour le contenu interne si nécessaire */
    border-radius: 16px;
    position: relative;
    background: white;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/*==================================
 * FOOTER
 *==================================*/
footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #0f172a 100%);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

footer a {
    color: var(--text-light);
    transition: var(--transition-default);
}

footer a:hover {
    color: white;
    text-decoration: none;
}

.footer-link {
    transition: var(--transition-default);
}

.footer-link:hover {
    color: white !important;
    opacity: 0.8;
}


/*==================================
 * MEDIA QUERIES
 *==================================*/
@media (max-width: 992px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        box-shadow: var(--shadow-md);
    }

    .hero {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .screenshot-container {
        animation: float 6s ease-in-out infinite;
        transform: scale(0.9);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .modern-button,
    .outline-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/*==================================
 * ANIMATIONS AOS
 *==================================*/
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

.accordion-button {
    color: var(--text-primary);
    background-color: white !important;
}

.accordion-button:not(.collapsed) {
    background-color: #fff1f0 !important;
    color: var(--text-secondary);  /* Un gris plus doux que le noir mais avec bon contraste */
    box-shadow: none;
}

/* On retire complètement l'effet de focus */
.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff6b6b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff6b6b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}