/* ============================================================================
   CHARTE GRAPHIQUE CLIPKIT - FICHIER UNIFIÉ
   ============================================================================
   Ce fichier contient tous les styles et la charte graphique
   utilisés sur le site ClipKit pour assurer la cohérence visuelle
   ============================================================================ */

:root {
    --primary: #ff6b6b;
    --primary-dark: #ff5252;
    --secondary: #4ecdc4;
    --accent: #45b7d1;
    --accent2: #96ceb4;
    --background: #0f0f23;
    --surface: #1a1a2e;
    --surface-light: #16213e;
    --text: #ffffff;
    --text-muted: #b8b8b8;
    --border: #2d3748;
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --gradient-secondary: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    --gradient-accent: linear-gradient(135deg, #96ceb4 0%, #feca57 100%);
    --shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
    --shadow-hover: 0 20px 40px rgba(255, 107, 107, 0.3);
    --glow: 0 0 20px rgba(255, 107, 107, 0.5);
}

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

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

/* Effet de particules en arrière-plan plus joyeux */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(150, 206, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(254, 202, 87, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 15s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(-15px, -10px) scale(1.05) rotate(1deg); }
    50% { transform: translate(-5px, -15px) scale(1.1) rotate(-1deg); }
    75% { transform: translate(10px, -5px) scale(1.05) rotate(0.5deg); }
}

/* Particules flottantes */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 107, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(78, 205, 196, 0.3) 3px, transparent 3px),
        radial-gradient(circle at 50% 10%, rgba(150, 206, 180, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 10% 60%, rgba(254, 202, 87, 0.3) 2px, transparent 2px);
    background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px;
    animation: particleFloat 20s linear infinite;
    z-index: -1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-200px) rotate(360deg); }
}

/* Header */
header {
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.1) 0%, transparent 100%);
}

header img {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(255, 107, 107, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.2) saturate(1.3); }
}

header p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
nav {
    margin-bottom: 2rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

/* Contenu principal */
main {
    min-height: 60vh;
}

/* Boutons plus joyeux */
.btn {
    background: var(--gradient-primary);
    color: #000;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    transform: scale(1);
}

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

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover), var(--glow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--secondary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--gradient-secondary);
    color: #000;
    border-color: var(--secondary);
}

.btn-yellow {
    background: var(--gradient-accent);
    color: #000000;
    border: 2px solid #feca57;
}

.btn-yellow:hover {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(254, 202, 87, 0.4);
}

/* Sections */
section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sectionTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes sectionTitleGlow {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.1) saturate(1.2); }
}

/* Grille de fonctionnalités */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover::after {
    opacity: 1;
}

.feature h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.feature:hover h3 {
    color: var(--accent);
}

.feature p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Section "Comment ça marche" */
.how-it-works {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 50%, rgba(150, 206, 180, 0.05) 100%);
    z-index: -1;
}

.how-it-works ol {
    list-style: none;
    counter-reset: step-counter;
}

.how-it-works li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 4rem;
    position: relative;
    font-size: 1.1rem;
}

.how-it-works li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 1.2rem;
    animation: stepPulse 2s ease-in-out infinite;
}

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

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq details {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq details:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

.faq summary {
    font-weight: 600;
    padding: 1.5rem 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq summary:hover {
    background: rgba(255, 107, 107, 0.08);
}

.faq summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq p {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Section témoignages */
.testimonials {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05) 0%, rgba(150, 206, 180, 0.05) 100%);
    z-index: -1;
}

.testimonial {
    background: rgba(42, 42, 78, 0.6);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    font-family: serif;
    animation: quoteFloat 3s ease-in-out infinite;
}

@keyframes quoteFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.testimonial p {
    margin-left: 2rem;
    font-style: italic;
    color: var(--text-muted);
}

.testimonial-author {
    margin-top: 1rem;
    margin-left: 2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Conteneurs de contenu */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-box {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.content-box:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
    font-weight: 600;
}

tr:hover {
    background: rgba(255, 107, 107, 0.05);
}

/* Footer */
footer {
    background: var(--surface);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

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

footer a:hover {
    color: var(--primary-dark);
}

/* Responsive design */
@media (max-width: 1200px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    header p {
        font-size: 1.2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-it-works li {
        padding-left: 3rem;
    }
    
    .how-it-works li::before {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Animations d'entrée plus dynamiques */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feature, .testimonial, .faq details, .content-box {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Effet de brillance sur les éléments */
.feature:hover, .testimonial:hover, .content-box:hover {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.1);
}
