@tailwind base;
@tailwind components;
@tailwind utilities;

/* home page candidate */
.hero-section {
    background-image: url("../images/candidat-home-hero-b9CXSIm.webp");
    background-size: cover;
    background-position: center;
}

.hero-bg {
    background-image: linear-gradient(135deg, rgba(30, 61, 89, 0.9) 0%, rgba(30, 61, 89, 0.7) 100%), url("../images/hero-bg-coKPNG1.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg.home-candidate {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 61, 89, 0.15);
}

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #1E3D59 0%, #34A853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Flash messages */
.flash-message {
    position: fixed;
    top: 80px; /* juste en dessous de ton header */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9999;
    min-width: 300px;
    max-width: 600px;
    padding: 15px 40px 15px 15px;
    font-family: sans-serif;
    font-size: 14px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation: fadeSlide 5s ease forwards;
    
    }

.flash-message.success { background-color: #38a169; }
.flash-message.error   { background-color: #e53e3e; }
.flash-message.warning { background-color: #f6ad55; color: #000; }
.flash-message.info    { background-color: #4299e1; }

.flash-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* {# ecrasse le style par defaut de itl-tel #} */
.iti {
    position: relative;
    display: block
}

.iti input,
.iti input[type=tel] {
    width: 100% !important;
}

/* surgage pour que le select de country prend w-full */
.country-select {
    position: relative;
    display: block;
}

.quill-content ul {
    list-style: none; /* Retire les puces par défaut */
    padding-left: 1.5rem;
    margin-block: 2rem; /* Marge en haut et en bas */
}

.quill-content h2, h3, h4, h5, h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #6366f1;
}

.quill-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.quill-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #4f46e5; /* indigo-600 Tailwind */
    border-radius: 50%;
    transform: scale(1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.quill-content ul li:hover {
    transform: translateX(4px);
    color: #4338ca; /* indigo-800 */
}

.quill-content ul li:hover::before {
    transform: scale(1.3);
    background-color: #6366f1; /* indigo-500 */
}

    /* Listes numérotées */
.quill-content ol {
    list-style: none;
    padding-left: 1.5rem;
    margin-block: 1rem;
    counter-reset: custom-counter;
}

.quill-content ol li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.4rem;
    counter-increment: custom-counter;
    transition: transform 0.2s ease, color 0.2s ease;
}

.quill-content ol li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #f59e0b; /* amber-500 Tailwind */
    transition: color 0.2s ease;
}

.quill-content ol li:hover {
    transform: translateX(4px);
    color: #d97706; /* amber-600 */
    }

.quill-content ol li:hover::before {
    color: #fbbf24; /* amber-400 */
    }


/* In your custom CSS file, e.g., style.css */
.capitalize-first::first-letter {
    text-transform: uppercase;
}

/* Carousel Styles job external */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #3b82f6;
}