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

h1 {
    display: none;
}

body {
    background-color: #FFFCF6;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* FONTS */
@font-face {
    font-family: 'Barbra';
    src: url('../fonts/barbra-font/Barbra-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
    font-display: swap;
}

/* CANVAS PARTICULES - TAILLE FIXE */
#canvas {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 80vh;
    max-width: 100%;
    z-index: 1;
    cursor: default;
}

/* CERCLES DÉCORATIFS */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    z-index: 2;
}

.circle-1 { 
    width: 300px; 
    height: 300px; 
    background: linear-gradient(135deg, #EBD3BB, #49252F); 
    top: 10%; 
    left: 10%; 
    animation-delay: 0s;
}

.circle-2 { 
    width: 200px; 
    height: 200px; 
    background: linear-gradient(135deg, #49252F, #EBD3BB); 
    top: 50%; 
    right: 15%; 
    animation-delay: 2s;
}

.circle-3 { 
    width: 150px; 
    height: 150px; 
    background: linear-gradient(135deg, #EBD3BB, #FFFCF6); 
    top: 30%; 
    right: 5%; 
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ÉLÉMENTS FLOTTANTS */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #EBD3BB, #49252F);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.15;
    animation: morph 8s infinite ease-in-out;
    z-index: 2;
}

.floating-element:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.floating-element:nth-child(3) { top: 40%; left: 5%; animation-delay: 4s; }

@keyframes morph {
    0%, 100% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
        transform: rotate(0deg) translateY(0); 
    }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { 
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; 
        transform: rotate(180deg) translateY(-20px); 
    }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* CONTAINER PRINCIPAL */
.main-container {
    position: relative;
    z-index: 3;
}

/* HERO SPACER */
.hero-spacer { 
    min-height: 80vh; 
    position: relative;
}

/* INDICATEUR DE SCROLL */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1.2s ease 1s forwards, bounce 2s infinite ease-in-out 2s;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid #49252F;
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: #49252F;
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   BANDEAUX ANIMÉS
======================================== */

.bandeau {
    width: 100%;
    padding: 80px 20px;
    background-color: #FFFCF6;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.bandeau.visible {
    opacity: 1;
    transform: translateY(0);
}

.bandeau-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Image du bandeau */
.bandeau-image {
    width: 100%;
    height: 400px;
    border-radius: 60%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(73, 37, 47, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Photo À propos plus petite */
.bandeau-image-small {
    max-width: 350px;
    height: 350px;
    margin: 0 auto;
}

.bandeau:hover .bandeau-image {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(73, 37, 47, 0.25);
}

.bandeau-image img {
    width: 100%;
    height: 100%;
    border-radius: 60%;
    object-fit: cover;
}

/* Texte du bandeau */
.bandeau-text {
    padding: 20px;
}

.bandeau-text h2 {
    font-family: 'Barbra', sans-serif;
    font-size: 3.5rem;
    color: #49252F;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.bandeau-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #101211;
    margin-bottom: 30px;
}

/* Bandeau pleine largeur pour les sections avec grille */
.bandeau-content-full {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bandeau-text-center {
    text-align: center;
    padding: 0 20px;
}

.bandeau-text-center h2 {
    font-family: 'Barbra', sans-serif;
    font-size: 3.5rem;
    color: #49252F;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.bandeau-text-center p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #101211;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Grille pour les cartes */
.bandeau-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

/* Carte individuelle */
.bandeau-card {
    background: #FFFCF6;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(73, 37, 47, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bandeau-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(73, 37, 47, 0.2);
}

.bandeau-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #EBD3BB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bandeau-card-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.bandeau-card-content {
    padding: 20px;
}

.bandeau-card-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: #49252F;
    margin-bottom: 10px;
    font-weight: 700;
}

.bandeau-card-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #101211;
    margin-bottom: 15px;
}

/* Tags de technologies */
.bandeau-card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.bandeau-card-tags li {
    background-color: #EBD3BB;
    padding: 5px 12px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #49252F;
    font-weight: 500;
}

/* Carte d'avis spécifique */
.bandeau-card-avis .bandeau-card-content {
    text-align: center;
}

.bandeau-card-avis .note {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0 15px;
}

.bandeau-card-avis .note img {
    width: 20px;
    height: 20px;
}

/* Liste des compétences */
.bandeau-competences-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.competence-tag {
    background-color: #49252F;
    color: #FFFCF6;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(73, 37, 47, 0.2);
}

.competence-tag:hover {
    background-color: #EBD3BB;
    color: #49252F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(73, 37, 47, 0.3);
}

/* Bouton du bandeau */
.btn-bandeau {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    background-color: #49252F;
    color: #FFFCF6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(73, 37, 47, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-bandeau::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #EBD3BB;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-bandeau:hover::before {
    width: 300px;
    height: 300px;
}

.btn-bandeau:hover {
    color: #101211;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(73, 37, 47, 0.3);
}

.btn-bandeau span {
    position: relative;
    z-index: 1;
}

/* Couleurs alternatives pour les bandeaux */
.bandeau-apropos {
    background-color: #FFFCF6;
}

.bandeau-projets {
    background-color: #F5EFE7;
}

.bandeau-avis {
    background-color: #FFFCF6;
}

.bandeau-competences {
    background-color: #F5EFE7;
}

/* ========================================
   RESPONSIVE
======================================== */

/* Desktop */
@media screen and (min-width: 1025px) {
    .scroll-indicator {
        display: block;
    }
}

/* Tablette */
@media screen and (max-width: 1024px) {
    #canvas {
        height: 75vh; /* Augmenté de 70vh à 75vh */
    }

    .hero-spacer {
        min-height: 75vh; /* Augmenté de 70vh à 75vh */
    }

    .scroll-indicator {
        display: none;
    }

    .bandeau {
        padding: 70px 30px;
    }

    .bandeau-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .bandeau-image-small {
        max-width: 280px;
        height: 280px;
    }

    .bandeau-text h2,
    .bandeau-text-center h2 {
        font-size: 2.8rem;
    }

    .bandeau-text p,
    .bandeau-text-center p {
        font-size: 1.1rem;
    }

    .bandeau-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .competence-tag {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .circle-1, .circle-2, .circle-3 {
        opacity: 0.05;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    #canvas {
        height: 72vh; /* Augmenté de 65vh à 72vh */
    }

    .hero-spacer {
        min-height: 72vh; /* Augmenté de 65vh à 72vh */
    }

    .bandeau {
        padding: 60px 20px;
    }

    .bandeau-image-small {
        max-width: 250px;
        height: 250px;
    }

    .bandeau-text h2,
    .bandeau-text-center h2 {
        font-size: 2.2rem;
    }

    .bandeau-text p,
    .bandeau-text-center p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn-bandeau {
        font-size: 1.1rem;
        padding: 12px 28px;
    }

    .bandeau-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bandeau-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .competence-tag {
        font-size: 0.95rem;
        padding: 10px 18px;
    }

    .circle-1, .circle-2, .circle-3,
    .floating-element {
        display: none;
    }
}

/* Petit mobile */
@media screen and (max-width: 480px) {
    #canvas {
        height: 70vh; /* Augmenté de 60vh à 70vh */
    }

    .hero-spacer {
        min-height: 70vh; /* Augmenté de 60vh à 70vh */
    }

    .bandeau {
        padding: 50px 15px;
    }

    /* Masquer l'image du bandeau À propos sur petit mobile */
    .bandeau-apropos .bandeau-image {
        display: none;
    }

    .bandeau-apropos .bandeau-content {
        display: block;
        text-align: center;
    }

    .bandeau-apropos .bandeau-text {
        padding: 0;
        max-width: 100%;
    }

    .bandeau-text h2,
    .bandeau-text-center h2 {
        font-size: 1.9rem;
    }

    .bandeau-text p,
    .bandeau-text-center p {
        font-size: 0.95rem;
    }

    .btn-bandeau {
        font-size: 1rem;
        padding: 10px 24px;
    }

    .bandeau-card-content h4 {
        font-size: 1.2rem;
    }

    .bandeau-card-content p {
        font-size: 0.9rem;
    }

    .competence-tag {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}