@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap');


body {
    font-family: 'Baloo Bhai 2', cursive;
}

.container-rea {
    padding: 100px 5% 50px;
    background: transparent !important;
}

.site-footer {
    position: relative;
    z-index: 99; /* On force le footer à passer devant tout le reste */
    clear: both; /* Sécurité au cas où tu as des floats */
    display: block !important;
}
/* ------------------------------------------ */
/* ------------------ HOME ------------------ */
/* ------------------------------------------ */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

.fleur {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}
.fleur-gauche { width: 60%; left: -20%; top: 20%; transform: rotate(-15deg); }
.fleur-droite { width: 40%; right: -10%; top: 5%; transform: rotate(10deg); }

/* --- TITRE BIENVENUE --- */
.bien-wrapper {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 90%;
}
.bien { width: 130%; max-width: 600px; height: auto; }

/* --- CAROUSEL REA --- */
.rea-line-container {
    position: absolute;
    top: 55%;
    width: 100%;
    z-index: 5;
    padding-left: 20%; /* Décalage initial vers la droite */
}
.rea-track {
    display: flex;
    gap: 30px;
}
.rea-card {
    width: 300px;
    height: 200px;
    background: #eee;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease-out;
}

.rea-card:hover {
    transform: scale(1.05);
}

/* --- Creation du Web --- */
.decor-bas-gauche {
    position: absolute;
    bottom: 5%;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.label {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

/* --- LE CV  --- */
.decor-bas-droit {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 10;
}

.cv-link {
    position: relative; /* Nécessaire pour placer le trait par rapport au texte */
    text-decoration: none;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    padding-bottom: 4px;
    display: inline-block;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Largeur à 0 au départ */
    height: 2px;
    background: #2b44ff; /* Ton bleu */
    transition: width 0.3s ease-in-out; /* Animation fluide */
}

.cv-link:hover .underline {
    width: 100%; /* Le trait prend toute la largeur */
}

@media (max-width: 768px) {
    .label { display: none; } /* Cache le texte sur mobile pour gagner de la place */
    .decor-bas-gauche, .decor-bas-droit { bottom: 3%; }
}

/* --- RECTANGLE BLEU --- */
.blue-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.blue-card {
    position: absolute;
    top: 150vh; /* Sous l'écran */
    left: 50%;
    transform: translateX(-50%) rotate(-5deg); /* Légèrement de travers */
    background: #2b44ff;
    width: 90%;
    max-width: 900px;
    padding: 50px;
    border-radius: 40px;
    z-index: 100;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.card-content { display: flex; align-items: center; gap: 40px; }
.img-portrait { width: 30%; border-radius: 20px; }
.titre-moi{
    width: 60%;
    margin-left: 20%;
}
.txt-moi{
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
}

.btn-savoir {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: white;
    color: #2b44ff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
}

/* ------------------------------------------ */
/* ------------- Fond fleurs ---------------- */
/* ------------------------------------------ */

.fleurs-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Passe derrière tout le contenu */
    pointer-events: none; /* Empêche de gêner le clic sur les projets */
    overflow: hidden;
}

.fleur-fixe {
    position: absolute;
    opacity: 0.4; /* Très léger pour ne pas gêner la lecture des projets */
}

.fleur-gauche {
    width: 50%;
    left: -15%;
    top: 10%;
    transform: rotate(-15deg);
}

.fleur-droite {
    width: 40%;
    right: -10%;
    bottom: 5%;
    transform: rotate(20deg);
}

/* --- Titre --- */
.header-titre {
    text-align: center;
    margin-bottom: 40px;
}

.titre-rea {
    width: 100%;
    max-width: 450px;
    height: auto;
}

/* --- Filtres --- */
.filtres {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filtre-btn {
    background: transparent;
    color: #fa6597;
    border: 1px solid #fa6597;
    border-radius: 50px;
    padding: 8px 25px;
    font-family: 'Baloo Bhai 2', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.filtre-btn:hover {
    background-color: #fa6597;
    color: #ffffff;
}

.filtre-btn.active {
    background-color: #fa6597;
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(250, 101, 151, 0.34);
}

/* --- Grille des projets (Mobile First) --- */
.projets-grid {
    display: grid !important;
    grid-template-columns: 1fr; /* 1 colonne par défaut sur mobile */
    gap: 30px;
    width: 90%;               /* Espace sur les côtés */
    max-width: 1200px;
    margin: 0 auto 120px auto; /* "auto" centre horizontalement */
    padding: 20px;
}

.projet-item {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.projet-item:hover {
    transform: translateY(-10px);
}

.projet-item img {
    width: 100% !important;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* --- Adaptations écran --- */

/* Tablette : 2 colonnes */
@media (min-width: 601px) {
    .projets-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop : 3 colonnes */
@media (min-width: 901px) {
    .projets-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


/* ------------------------------------------ */
/* ----------------- Propos ----------------- */
/* ------------------------------------------ */

.content-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bio Section - Le conteneur */
.bio-section {
    margin: 100px 0;
    width: 90%; /* Augmenté un peu pour plus d'espace */
    max-width: 1000px;
    display: flex; /* Utilise flex pour centrer l'image à l'intérieur */
    justify-content: center;
}

/* L'image de la bio */
.img-bio-complete {
    width: 100%; /* L'image prend toute la place du conteneur, mais pas plus ! */
    height: auto;
    display: block; /* Supprime le display: flex ici, ce n'est pas nécessaire sur une img */
}

/* Titre "À propos de moi" - Correction de la taille */
.title-propos {
    position: absolute;
    top: 100px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 250px; /* Utilise une taille fixe en px ou un % plus grand, 15% c'était trop petit */
    text-align: center;
}


/* Rectangles Parcours */
.rectangles-container {
    display: flex;
    justify-content: center;
    gap: -20px; /* Chevauchement léger */
    margin: 50px 0;
    height: 450px;
    width: 90%;
}

.card {
    width: 250px;
    height: 400px;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.section-title {
    margin-top: 5px; /* Donne de l'espace après la bio */
    margin-bottom: 30px;
    width: 100%;
    z-index: 15;
    text-align: center;
}

.mini-titre {
    width: 400px; /* Ajuste la taille de ton image parcours.svg */
    height: auto;
}

/* Couleurs des rectangles */
.card-blue { background-color: #75baff; transform: rotate(-5deg); }
.card-yellow { background-color: #fef3b3; transform: rotate(2deg); z-index: 2; }
.card-red { background-color: #ffaead; transform: rotate(-3deg); }

/* EFFET SURVOL : Passe devant les autres */
.card:hover {
    z-index: 100 !important;
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-icon { width: 90px; margin-bottom: 20px; }
.card-text { text-align: center; font-family: "Baloo Bhai 2" ,sans-serif; }

/* SLIDER DE LOGOS */
.skills-slider {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    margin-top: 50px;
}

.slider-track {
    display: flex;
    width: calc(200px * 14); /* Ajuste selon le nombre de logos */
    animation: scroll 20s linear infinite;
}

.slider-track img {
    width: 100px;
    margin: 0 50px;
    transition: 0.3s;
}
.slider-track img:hover { filter: grayscale(0%); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); }
}
@media (max-width: 1024px) {
    .rectangles-container {
        flex-direction: column;
        height: auto; /* Laisse couler en mobile */
        gap: 20px;
        align-items: center;
    }
    .card {
        transform: rotate(0deg) !important; /* On enlève l'inclinaison en mobile */
    }
}

.img-bio-complete{
    width: 120%;
}