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

/* Since Soleil is a premium font, we'll use a system font stack as fallback */
@font-face {
    font-family: 'Soleil';
    src: local('Soleil'), local('Helvetica Neue'), local('Arial');
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Soleil', 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

.imageai-gradient {
    background: radial-gradient(farthest-corner at 40px 40px, #8C7ACA, #B14B44, #B3867B, #6A719F);
}

.imageai-gradient-text {
    background: radial-gradient(farthest-corner at 40px 40px, #8C7ACA, #B14B44, #B3867B, #6A719F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.imageai-gradient-light {
    background: radial-gradient(farthest-corner at 40px 40px, #9D8CD5, #C26058, #C49990, #8083AF);
}

.imageai-gradient-border {
    position: relative;
    z-index: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.imageai-gradient-border::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(farthest-corner at 40px 40px, #8C7ACA, #B14B44, #B3867B, #6A719F);
    animation: rotate 6s linear infinite;
}

.imageai-gradient-border::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: white;
    border-radius: 0.4rem;
}

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.stagger-fade-in > * {
    opacity: 0;
    transform: translateY(20px);
    /* Fallback pour s'assurer que les éléments sont visibles même sans l'animation */
    animation: fadeIn 0.8s forwards;
}

.stagger-fade-in.active > *:nth-child(1) {
    animation: slideUp 0.5s 0.1s forwards;
}

.stagger-fade-in.active > *:nth-child(2) {
    animation: slideUp 0.5s 0.2s forwards;
}

.stagger-fade-in.active > *:nth-child(3) {
    animation: slideUp 0.5s 0.3s forwards;
}

.stagger-fade-in.active > *:nth-child(4) {
    animation: slideUp 0.5s 0.4s forwards;
}

.stagger-fade-in.active > *:nth-child(5) {
    animation: slideUp 0.5s 0.5s forwards;
}

.stagger-fade-in.active > *:nth-child(n+6) {
    animation: slideUp 0.5s 0.6s forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.noise-bg {
    position: relative;
    overflow: hidden;
}

.noise-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Progress bar for demo generator */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(to right, #8C7ACA, #B14B44, #B3867B, #6A719F);
    transition: width 0.4s ease;
}

/* Loading dots animation */
.loading span {
    animation-name: loadingDots;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0% {
        opacity: 0.2;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}

/* Marquee text */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee {
    white-space: nowrap;
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #B3867B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B14B44;
}

/* Code editor styles */
.code-editor {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.code-editor-header {
    background-color: #2a2a3e;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-editor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.code-line {
    display: block;
    line-height: 1.5;
}

.code-comment {
    color: #6a737d;
}

.code-keyword {
    color: #ff79c6;
}

.code-string {
    color: #f1fa8c;
}

.code-property {
    color: #8be9fd;
}

.code-number {
    color: #bd93f9;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background-color: white;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Blobs animation */
.blob {
    background: linear-gradient(180deg, rgba(140, 122, 202, 0.3) 0%, rgba(177, 75, 68, 0.3) 100%);
    height: 400px;
    width: 400px;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    animation: blob-movement 20s linear infinite alternate;
    position: absolute;
    z-index: -1;
    filter: blur(30px);
    opacity: 0.7;
}

.blob:nth-child(2) {
    background: linear-gradient(180deg, rgba(177, 75, 68, 0.2) 0%, rgba(106, 113, 159, 0.2) 100%);
    height: 350px;
    width: 350px;
    animation-delay: -5s;
    animation-duration: 15s;
    filter: blur(20px);
}

.blob:nth-child(3) {
    background: linear-gradient(180deg, rgba(179, 134, 123, 0.2) 0%, rgba(140, 122, 202, 0.2) 100%);
    height: 300px;
    width: 300px;
    animation-delay: -10s;
    animation-duration: 18s;
    filter: blur(25px);
}

@keyframes blob-movement {
    0%, 100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: translate(0%, 0%) rotate(0deg);
    }
    25% {
        border-radius: 55% 45% 30% 70% / 55% 30% 70% 45%;
    }
    50% {
        border-radius: 30% 70% 55% 45% / 30% 55% 45% 70%;
        transform: translate(5%, 5%) rotate(180deg);
    }
    75% {
        border-radius: 70% 30% 45% 55% / 70% 30% 70% 30%;
    }
}

/* Assurer que les éléments du hero sont toujours visibles */
section.pt-32 .stagger-fade-in > * {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

/* Restaurer les animations une fois les corrections terminées */
/* Décommenter ces lignes après avoir vérifié que tout fonctionne
section.pt-32 .stagger-fade-in > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

section.pt-32 .stagger-fade-in.active > *:nth-child(1) {
    animation: slideUp 0.5s 0.1s forwards;
}

section.pt-32 .stagger-fade-in.active > *:nth-child(2) {
    animation: slideUp 0.5s 0.2s forwards;
}

section.pt-32 .stagger-fade-in.active > *:nth-child(3) {
    animation: slideUp 0.5s 0.3s forwards;
}

section.pt-32 .stagger-fade-in.active > *:nth-child(4) {
    animation: slideUp 0.5s 0.4s forwards;
}

section.pt-32 .stagger-fade-in.active > *:nth-child(5) {
    animation: slideUp 0.5s 0.5s forwards;
}

section.pt-32 .stagger-fade-in.active > *:nth-child(n+6) {
    animation: slideUp 0.5s 0.6s forwards;
}
*/
