/**
 * KICK-OFF Theme - CHARTE STRICTE 3 COULEURS
 *
 * UNIQUEMENT 3 COULEURS AUTORISÉES :
 * - Vert principal : #7EFFA9 (boutons, accents, hover, liens actifs)
 * - Gris foncé : #1C1C1C (header, footer, fonds foncés, textes sur fond clair)
 * - Blanc cassé : #F0F2F5 (fonds de page, textes sur fonds foncés)
 *
 * AUCUNE autre couleur autorisée (pas de #FFFFFF, #000000, ou autre)
 */

/* ==========================================
   IMPORT FONTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,900;1,900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES - CHARTE KICK-OFF
   ========================================== */
:root {
    /* UNIQUEMENT 3 COULEURS */
    --vert-principal: #7EFFA9;
    --gris-fonce: #1C1C1C;
    --blanc-casse: #F0F2F5;

    /* Typographie */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================
   RESET & BASE
   ========================================== */
body {
    font-family: var(--font-body);
    color: var(--gris-fonce);
    background-color: var(--blanc-casse);
}

/* ==========================================
   TYPOGRAPHIE - TITRES
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    text-wrap: balance;
    letter-spacing: 0.02em;
    color: var(--gris-fonce);
}

/* Sur fond foncé */
.hero-kickoff h1,
.hero-kickoff h2,
.hero-kickoff h3 {
    color: var(--blanc-casse);
}

/* ==========================================
   CLASSE HERO-KICKOFF (Sections foncées)
   ========================================== */
.hero-kickoff {
    background-color: var(--gris-fonce);
    color: var(--blanc-casse);
}

.accent-word {
    color: var(--vert-principal);
}

/* ==========================================
   BOUTONS PRIMAIRES
   ========================================== */
.btn-primary,
button[type="submit"]:not(.btn-secondary),
a.btn-primary {
    background-color: var(--vert-principal);
    color: var(--gris-fonce);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover,
button[type="submit"]:hover:not(.btn-secondary) {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(126, 255, 169, 0.3);
}

/* ==========================================
   BOUTONS SECONDAIRES / OUTLINE
   ========================================== */
.btn-secondary {
    background-color: transparent;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

/* Sur fond clair */
.btn-secondary {
    color: var(--gris-fonce);
    border: 2px solid var(--gris-fonce);
}

/* Sur fond foncé */
.hero-kickoff .btn-secondary,
footer .btn-secondary {
    color: var(--blanc-casse);
    border: 2px solid var(--blanc-casse);
}

.btn-secondary:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background-color: var(--blanc-casse);
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(28, 28, 28, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(28, 28, 28, 0.12);
}

/* ==========================================
   BADGES & TAGS
   ========================================== */
.badge-accent {
    background-color: var(--vert-principal);
    color: var(--gris-fonce);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================
   ÉTOILES RATING
   ========================================== */
.star-rating {
    color: var(--vert-principal);
}

/* ==========================================
   HEADER STYLES
   ========================================== */
.header-kickoff {
    background-color: var(--gris-fonce);
    color: var(--blanc-casse);
}

/* ==========================================
   INPUTS & FORMS
   ========================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--vert-principal);
    box-shadow: 0 0 0 3px rgba(126, 255, 169, 0.1);
}

input[type="range"] {
    accent-color: var(--vert-principal);
}

/* États de validation */
.input-valid {
    border-color: var(--vert-principal) !important;
    background-color: rgba(126, 255, 169, 0.05);
}

.input-invalid {
    border-color: #EF4444 !important;
    background-color: #FEF2F2;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.fade-in-card:nth-child(1) { animation-delay: 0.1s; }
.fade-in-card:nth-child(2) { animation-delay: 0.2s; }
.fade-in-card:nth-child(3) { animation-delay: 0.3s; }
.fade-in-card:nth-child(4) { animation-delay: 0.1s; }
.fade-in-card:nth-child(5) { animation-delay: 0.2s; }
.fade-in-card:nth-child(6) { animation-delay: 0.3s; }

/* ==========================================
   CARD HOVER EFFECT
   ========================================== */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(28, 28, 28, 0.15), 0 8px 10px -6px rgba(28, 28, 28, 0.1);
}

/* ==========================================
   TAG STYLES
   ========================================== */
.tag {
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag:hover {
    transform: scale(1.05);
}

/* ==========================================
   SPINNER ANIMATION
   ========================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ==========================================
   TABS STYLES
   ========================================== */
.tab-active {
    background-color: rgba(126, 255, 169, 0.1);
    color: var(--noir-principal);
    font-weight: 600;
    border-bottom: 2px solid var(--vert-principal);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-kickoff {
    background-color: var(--gris-fonce);
    color: var(--blanc-casse);
}

.footer-kickoff a:hover {
    color: var(--vert-principal);
}

/* ==========================================
   LIENS
   ========================================== */
a {
    transition: color 0.3s ease;
}

/* Sur fond clair */
a:hover {
    color: var(--vert-principal);
}

/* Sur fond foncé */
.hero-kickoff a:hover,
footer a:hover {
    color: var(--vert-principal);
}
