/* ================= BASE BUTTON ================= */

.btn-base{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 28px;
    border-radius:999px;
    font-weight:600;
    font-size:15px;
    position:relative;
    overflow:hidden;
    transition:all .35s ease;
    cursor:pointer;
    letter-spacing:.5px;
}

/* ================= HOVER LIGHT EFFECT ================= */

.btn-base::before{
    content:"";
    position:absolute;
    width:0%;
    height:100%;
    left:0;
    top:0;
    background:linear-gradient(120deg,transparent,rgba(255,255,255,0.15),transparent);
    transition:width .35s ease;
}

.btn-base:hover::before{
    width:140%;
}

/* ================= PRIMARY DARK ================= */

.btn-primary-custom{
    background:linear-gradient(135deg,#1e293b,#334155);
    color:#f1f5f9;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 8px 20px rgba(0,0,0,0.45);
}

.btn-primary-custom:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 35px rgba(0,0,0,0.65);
}

/* ================= OUTLINE DARK ================= */

.btn-outline-custom{
    border:2px solid rgba(255,255,255,0.25);
    color:#e2e8f0;
    background:transparent;
}

.btn-outline-custom:hover{
    background:#0f172a;
    border-color:#6366f1;
    color:#6366f1;
    transform:translateY(-2px);
}

/* ================= GLASS DARK ================= */

.btn-glass{
    backdrop-filter:blur(8px);
    background:rgba(15,23,42,0.65);
    border:1px solid rgba(255,255,255,0.08);
    color:#e2e8f0;
}

.btn-glass:hover{
    background:rgba(30,41,59,0.85);
    transform:scale(1.04);
}

/* ================= SCIENCE BUTTON ================= */

.btn-science{
    background:linear-gradient(135deg,#0ea5e9,#06b6d4);
    color:white;
    box-shadow:0 0 18px rgba(6,182,212,0.45);
}

.btn-science:hover{
    transform:translateY(-3px) scale(1.04);
    box-shadow:0 0 30px rgba(6,182,212,0.7);
}

/* ================= ICON ANIMATION ================= */

.btn-base i{
    transition:transform .3s ease;
}

.btn-base:hover i{
    transform:translateX(4px);
}


/* ================================
GLOBAL CONTAINER
================================ */
.container {
    max-width: 1200px;
}

/* ================================
HERO SECTION
================================ */

#accueil {
    position: relative;
}

#particles-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 1;
}

/* corrige les badges flottants sur mobile */
#accueil .absolute {
    max-width: 80%;
    font-size: 0.8rem;
}

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

h1 {
    line-height: 1.2;
}

@media (max-width: 768px) {

    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    p {
        font-size: 0.95rem;
    }
}

/* ================================
HERO LAYOUT
================================ */

@media (max-width: 1024px) {

    #accueil .container {
        flex-direction: column;
        text-align: center;
    }

}

/* cartes dans hero */
#accueil .bg-white {
    width: 100%;
}

/* badges flottants repositionnés */
@media (max-width: 768px) {

    #accueil .absolute.-top-6 {
        top: -20px;
        right: 10px;
        transform: rotate(3deg);
    }

    #accueil .absolute.-bottom-6 {
        bottom: -20px;
        left: 10px;
        transform: rotate(-3deg);
    }

}

/* ================================
A PROPOS
================================ */

#a-propos img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    #a-propos .flex {
        flex-direction: column;
        text-align: center;
    }

}

/* cards grid dans à propos */
#a-propos .grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {

    #a-propos .grid {
        grid-template-columns: 1fr;
    }

}

/* ================================
FORMATIONS
================================ */

#formations .grid {
    gap: 2rem;
}

@media (max-width: 768px) {

    #formations .grid {
        grid-template-columns: 1fr;
    }

}

/* ================================
EXPERIENCES
================================ */

#experiences .flex {
    align-items: flex-start;
}

@media (max-width: 640px) {

    #experiences .flex {
        flex-direction: column;
        gap: 1rem;
    }

}

/* icone expérience */
#experiences .w-12 {
    flex-shrink: 0;
}

/* ================================
PARCOURS
================================ */

#parcours .grid {
    gap: 1.5rem;
}

@media (max-width: 1024px) {

    #parcours .grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 640px) {

    #parcours .grid {
        grid-template-columns: 1fr;
    }

}

/* ================================
BUTTONS
================================ */

.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-glass {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
}

.btn-base:hover {
    transform: translateY(-2px);
}

/* ================================
SECTIONS SPACING
================================ */

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {

    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

}

/* ================================
CARDS HOVER
================================ */

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

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* ================================
SMOOTH RESPONSIVE IMAGES
================================ */

img {
    max-width: 100%;
    height: auto;
}

/* ================================
GRID GAP MOBILE
================================ */

@media (max-width: 640px) {

    .gap-16 {
        gap: 2rem !important;
    }

    .gap-12 {
        gap: 1.5rem !important;
    }

}
