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

:root {
    --sand-light: #f7f5f0;
    --sand-medium: #ede8df;
    --sand-dark: #d4c7b3;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --hf-orange: #ff9d00;
    --hf-orange-dark: #e88a00;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--sand-light);
}

/* Toggle moderne FR/EN */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(45, 55, 72, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4px;
    display: flex;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    min-width: 40px;
    text-align: center;
}

.lang-btn.current {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn:not(.current):hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .language-selector {
        top: 15px;
        right: 15px;
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 35px;
    }
}

/* Style pour le branding hoololi */
.hoololi-brand {
    font-family: 'Rubik Dirt', cursive;
    font-weight: 400;
    letter-spacing: 0.05em;
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, var(--text-dark), var(--text-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Version sur fond sombre */
.hero-section .hoololi-brand,
.footer .hoololi-brand {
    background: linear-gradient(135deg, var(--sand-light), var(--sand-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Version principale (logo) */
.logo {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

/* Version inline dans le texte */
.hoololi-brand:not(.logo) {
    font-size: 1.1em;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(45, 55, 72, 0.1);
}

/* Version pour les titres */
h1 .hoololi-brand,
h2 .hoololi-brand,
h3 .hoololi-brand {
    font-size: 1.2em;
}

.hoololi-brand .small-text {
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.9;
    color: #f87171 !important;
    /* Annule les effets du gradient parent */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

/* Sur fond sombre */
.hero-section .hoololi-brand .small-text,
.footer .hoololi-brand .small-text {
    color: #ff9d00 !important;
}

.hero-section {
    background: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-bullets {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    opacity: 0.9;
    text-align: left;
}

.hero-bullets li {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 0.6rem;
    font-weight: 300;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.association-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(247, 245, 240, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(247, 245, 240, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-container {
    position: relative;
    width: clamp(200px, 40vw, 300px);
    height: clamp(200px, 40vw, 300px);
}

.mascot {
    width: clamp(150px, 30vw, 200px);
    height: clamp(150px, 30vw, 200px);
    border-radius: 50%;
    background: rgba(247, 245, 240, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(247, 245, 240, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mascot img {
    width: clamp(120px, 25vw, 160px);
    height: clamp(120px, 25vw, 160px);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: clamp(1.5rem, 3vw, 2rem);
    opacity: 0.6;
    animation: orbit 8s linear infinite;
    color: var(--sand-light);
}

.floating-icon:nth-child(1) { 
    top: 20%; 
    animation-delay: 0s; 
    animation-duration: 6s;
}
.floating-icon:nth-child(2) { 
    right: 10%; 
    top: 40%; 
    animation-delay: 2s; 
    animation-duration: 8s;
}
.floating-icon:nth-child(3) { 
    bottom: 25%; 
    left: 15%; 
    animation-delay: 4s; 
    animation-duration: 7s;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

.section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.dual-audience {
    background: var(--white);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.08);
    border: 1px solid var(--sand-medium);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.audience-card {
    text-align: center;
    padding: 2rem;
    background: var(--sand-light);
    border-radius: 15px;
    border: 2px solid var(--sand-medium);
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(45, 55, 72, 0.1);
    border-color: var(--text-dark);
}

.audience-icon {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 1rem;
    display: block;
}

.audience-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--sand-medium);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--text-dark);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(45, 55, 72, 0.1);
}

.skill-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    display: block;
}

.skill-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.skill-description {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.values-section {
    background: var(--sand-medium);
    color: var(--text-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid var(--sand-dark);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(45, 55, 72, 0.1);
}

.value-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    display: block;
}

.value-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-section {
    background: var(--white);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 20px 40px rgba(45, 55, 72, 0.08);
    border: 1px solid var(--sand-medium);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--sand-medium);
    border-radius: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background: var(--sand-light);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-dark);
    background: var(--white);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-self: center;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 55, 72, 0.3);
    background: var(--text-medium);
}

/* Styles pour la section Hugging Face */
.find-us-section {
    background: var(--sand-light);
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.social-links {
    display: flex;
    flex-direction: column; /* Vertical au lieu d'horizontal */
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hf-link,
.kaggle-link {
    width: 250px; /* Largeur fixe identique */
    justify-content: center;
}

.hf-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 1rem 2rem;
background: #ffffff; /* Fond blanc */
color: #ff9d00; /* Texte orange */
border: 2px solid #ff9d00; /* Bordure orange */
text-decoration: none;
border-radius: 50px;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(255, 157, 0, 0.2);
width: 250px;
justify-content: center;
}

.hf-link:hover {
background: #fff8f0; /* Beige très clair au survol */
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(255, 157, 0, 0.3);
}

.hf-logo {
    height: 40px; /* Ajuste la hauteur selon tes besoins */
    width: auto; /* Garde les proportions */
}

.kaggle-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 1rem 2rem;
background: #ffffff; /* Fond blanc */
color: #20beff; /* Pour le texte si besoin */
border: 2px solid #20beff; /* Bordure bleue */
text-decoration: none;
border-radius: 50px;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(32, 190, 255, 0.2);
}

.kaggle-link:hover {
background: #f5f5f5; /* Gris très clair au survol */
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(32, 190, 255, 0.3);
}

.kaggle-logo {
height: 40px;
width: auto;
/* Pas de filtre, garde le logo bleu original */
}
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 0;
}

.legal-text {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.legal-links {
    margin-top: 0.5rem;
}

.legal-link {
    color: var(--sand-light);
    text-decoration: underline;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.legal-link:hover {
    opacity: 1;
}

/* Media Queries améliorées */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .hero-visual {
        order: -1;
        text-align: center;
    }
    
    .association-badge {
        text-align: center;
    }
    
    .logo {
        text-align: center;
    }
    
    .hero-title {
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .floating-icon {
        display: none; /* Masquer sur mobile pour éviter la surcharge */
    }

    .hero-section {
        min-height: 90vh;
        padding: 1rem 0;
    }

    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .dual-audience {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact-section {
        margin: 1.5rem;
        padding: 1.5rem;
    }

    .audience-grid,
    .skills-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .audience-card,
    .skill-card,
    .value-card {
        padding: 1.5rem;
    }

    .find-us-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .dual-audience {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }
    
    .contact-section {
        margin: 1rem 0.5rem;
        padding: 1rem;
        border-radius: 10px;
    }

    .audience-card,
    .skill-card,
    .value-card {
        padding: 1rem;
    }

    .hero-bullets {
        padding-left: 1rem;
    }

    .submit-btn {
        width: 100%;
        min-width: unset;
    }

    .hf-link,
    .kaggle-link {
        padding: 0.8rem 1.5rem;
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}