/*==========================================
VARIABLES
==========================================*/

:root{

    --primary:#23ABFF;

    --primary-dark:#0F6CBD;

    --secondary:#ff6b35;

    --success:#27ae60;

    --danger:#e74c3c;

    --dark:#1f2937;

    --gray:#6b7280;

    --light:#f5f7fb;

    --white:#ffffff;

    --shadow:
    0 15px 40px rgba(0,0,0,.10);

    --shadow-hover:
    0 25px 60px rgba(35,171,255,.18);

    --radius:22px;

    --transition:.35s ease;

}


/*==========================================
RESET
==========================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}


html{

    scroll-behavior:smooth;

}


body{

    font-family:'Montserrat',sans-serif;

    color:var(--dark);

    background:

    radial-gradient(circle at top left,
    rgba(35,171,255,.10),
    transparent 35%),

    radial-gradient(circle at bottom right,
    rgba(35,171,255,.12),
    transparent 45%),

    linear-gradient(
    180deg,
    #ffffff,
    var(--light));

    min-height:100vh;

    overflow-x:hidden;

    line-height:1.7;

}


/*==========================================
CONTENEUR
==========================================*/

.container{

    width:min(92%,1350px);

    margin:auto;

}


/*==========================================
IMAGES
==========================================*/

img{

    display:block;

    max-width:100%;

}


/*==========================================
LIENS
==========================================*/

a{

    text-decoration:none;

    color:inherit;

}


/*==========================================
LISTES
==========================================*/

ul{

    list-style:none;

}


/*==========================================
FORMULAIRES
==========================================*/

button,
input{

    font-family:inherit;

    outline:none;

    border:none;

}


/*==========================================
SÉLECTION
==========================================*/

::selection{

    background:var(--primary);

    color:var(--white);

}


/*==========================================
ANIMATION
==========================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==========================================
HERO
==========================================*/

.hero{

    position:relative;

    min-height:560px;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:120px 20px 90px;

    overflow:hidden;

    background:

    linear-gradient(
    135deg,
    rgba(35,171,255,.06),
    rgba(255,255,255,1));

}


/*==========================================
HALOS LUMINEUX
==========================================*/

.hero::before{

    content:"";

    position:absolute;

    width:700px;

    height:700px;

    left:-220px;

    top:-280px;

    border-radius:50%;

    background:

    radial-gradient(circle,
    rgba(35,171,255,.18),
    transparent 72%);

}


.hero::after{

    content:"";

    position:absolute;

    width:650px;

    height:650px;

    right:-180px;

    bottom:-260px;

    border-radius:50%;

    background:

    radial-gradient(circle,
    rgba(255,107,53,.10),
    transparent 72%);

}


/*==========================================
CONTENU
==========================================*/

.hero-content{

    position:relative;

    z-index:2;

    width:min(900px,92%);

    animation:fadeUp .8s ease;

}


/*==========================================
TITRE
==========================================*/

.hero h1{

    font-size:clamp(2.8rem,6vw,5rem);

    font-weight:800;

    line-height:1.1;

    color:var(--dark);

    margin-bottom:25px;

    letter-spacing:-2px;

}


.hero h1 span{

    background:

    linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark));

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

    background-clip:text;

}


/*==========================================
DESCRIPTION
==========================================*/

.hero p{

    max-width:720px;

    margin:0 auto 45px;

    color:var(--gray);

    font-size:1.2rem;

    line-height:1.9;

}


/*==========================================
BADGE
==========================================*/

.hero-content::before{

    content:"Recherche intelligente SKYRA";

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 24px;

    margin-bottom:30px;

    border-radius:50px;

    background:rgba(35,171,255,.10);

    color:var(--primary-dark);

    font-size:.9rem;

    font-weight:700;

    letter-spacing:.8px;

    border:1px solid rgba(35,171,255,.12);

}


/*==========================================
RESPONSIVE
==========================================*/

@media(max-width:768px){

    .hero{

        min-height:470px;

        padding:90px 20px 70px;

    }

    .hero h1{

        font-size:2.5rem;

        letter-spacing:-1px;

    }

    .hero p{

        font-size:1rem;

        margin-bottom:35px;

    }

}

/*==========================================
BARRE DE RECHERCHE
==========================================*/

.search-box {

    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    max-width: 820px;

    margin: 0 auto;

    padding: 10px;

    box-sizing: border-box;

    background: rgba(255,255,255,.95);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(35,171,255,.10);

    border-radius: 70px;

    box-shadow:
        0 20px 50px rgba(35,171,255,.12);

    transition: var(--transition);
}


.search-box:hover {

    transform: translateY(-3px);

    box-shadow:
        0 30px 70px rgba(35,171,255,.18);
}


.search-box:focus-within {

    border-color: rgba(35,171,255,.30);

    box-shadow:
        0 0 0 6px rgba(35,171,255,.10),
        0 25px 60px rgba(35,171,255,.18);
}


/*==========================================
ICÔNE
==========================================*/

.search-box::before {

    content: "\f002";

    font-family: "Font Awesome 6 Free";

    font-weight: 900;

    color: var(--primary);

    font-size: 20px;

    flex-shrink: 0;

    margin-left: 22px;
    margin-right: 18px;
}


/*==========================================
CHAMP
==========================================*/

.search-box input {

    flex: 1 1 auto;

    width: 100%;
    min-width: 0;

    height: 66px;

    padding: 0 10px;

    box-sizing: border-box;

    border: none;
    outline: none;

    background: transparent;

    font-family: inherit;

    font-size: 16px;

    color: var(--dark);

    font-weight: 500;
}


.search-box input::placeholder {

    color: #9ca3af;

    opacity: 1;
}


/*==========================================
BOUTON
==========================================*/

.search-box button {

    flex: 0 0 auto;

    min-height: 56px;

    border: none;

    cursor: pointer;

    padding: 0 34px;

    border-radius: 50px;

    color: var(--white);

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;

    white-space: nowrap;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 15px 35px rgba(35,171,255,.28);

    transition: var(--transition);
}


.search-box button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 20px 40px rgba(35,171,255,.35);
}


.search-box button:active {

    transform: scale(.98);
}


/*==========================================
TABLETTE
==========================================*/

@media (max-width: 991px) {

    .search-box {

        width: 100%;

        max-width: 760px;

        padding: 9px;

        border-radius: 55px;
    }


    .search-box::before {

        font-size: 19px;

        margin-left: 18px;
        margin-right: 12px;
    }


    .search-box input {

        height: 60px;

        font-size: 16px;

        padding: 0 8px;
    }


    .search-box button {

        min-height: 52px;

        padding: 0 25px;

        font-size: 15px;
    }
}


/*==========================================
TABLETTE PORTRAIT / GRAND MOBILE
==========================================*/

@media (max-width: 768px) {

    .search-box {

        width: 100%;

        max-width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        padding: 14px;

        border-radius: 24px;

        box-sizing: border-box;
    }


    /* Suppression de l'icône en mode vertical */

    .search-box::before {

        display: none;
    }


    /* Champ de recherche */

    .search-box input {

        display: block;

        width: 100% !important;

        min-width: 0 !important;

        height: 58px !important;

        min-height: 58px;

        padding: 0 17px;

        border: 1px solid #e8eef5;

        border-radius: 15px;

        background: #f9fbfd;

        font-size: 16px !important;

        text-align: left;

        box-sizing: border-box;
    }


    .search-box input:focus {

        border-color: var(--primary);

        background: #fff;

        box-shadow:
            0 0 0 4px rgba(35,171,255,.08);
    }


    /* Bouton pleine largeur */

    .search-box button {

        display: flex;

        align-items: center;
        justify-content: center;

        width: 100% !important;

        min-height: 56px;

        height: 56px;

        padding: 0 20px;

        border-radius: 15px;

        font-size: 16px;
    }
}


/*==========================================
TÉLÉPHONE
==========================================*/

@media (max-width: 576px) {

    .search-box {

        width: 100%;

        padding: 12px;

        gap: 10px;

        border-radius: 20px;

        box-shadow:
            0 12px 35px rgba(35,171,255,.12);
    }


    .search-box input {

        width: 100% !important;

        height: 56px !important;

        min-height: 56px !important;

        padding: 0 16px !important;

        font-size: 16px !important;

        border-radius: 14px;
    }


    .search-box button {

        width: 100% !important;

        height: 54px !important;

        min-height: 54px !important;

        padding: 0 16px !important;

        border-radius: 14px;

        font-size: 16px;
    }
}


/*==========================================
PETIT TÉLÉPHONE
==========================================*/

@media (max-width: 400px) {

    .search-box {

        padding: 10px;

        border-radius: 18px;

        gap: 9px;
    }


    .search-box input {

        height: 54px !important;

        min-height: 54px !important;

        font-size: 16px !important;
    }


    .search-box button {

        height: 52px !important;

        min-height: 52px !important;

        font-size: 15px;
    }
}

/*==========================================
SECTION RESULTATS
==========================================*/

.container{

    position:relative;

    margin-top:80px;

    margin-bottom:100px;

}


/*==========================================
TITRE
==========================================*/

.title{

    text-align:center;

    margin-bottom:60px;

}


.title h2{

    font-size:clamp(1.8rem,4vw,3rem);

    font-weight:800;

    color:var(--dark);

    line-height:1.3;

}


/*==========================================
MOT RECHERCHÉ
==========================================*/

.title h2 span{

    position:relative;

    display:inline-block;

    padding:6px 18px;

    margin-left:8px;

    border-radius:50px;

    color:var(--primary-dark);

    background:rgba(35,171,255,.10);

    border:1px solid rgba(35,171,255,.12);

}


/*==========================================
SOULIGNEMENT PREMIUM
==========================================*/

.title h2 span::after{

    content:"";

    position:absolute;

    left:15%;

    bottom:-8px;

    width:70%;

    height:4px;

    border-radius:50px;

    background:

    linear-gradient(
        90deg,
        var(--primary),
        var(--primary-dark)
    );

}


/*==========================================
COMPTEUR
==========================================*/

.title::before{

    content:"Résultats de votre recherche";

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:10px 22px;

    margin-bottom:22px;

    border-radius:50px;

    background:rgba(35,171,255,.08);

    color:var(--primary-dark);

    font-size:.9rem;

    font-weight:700;

    letter-spacing:1px;

    text-transform:uppercase;

}


/*==========================================
RESPONSIVE
==========================================*/

@media(max-width:768px){

    .container{

        margin-top:60px;

        margin-bottom:80px;

    }

    .title{

        margin-bottom:45px;

    }

    .title h2{

        font-size:2rem;

    }

    .title h2 span{

        display:block;

        width:max-content;

        margin:18px auto 0;

    }

}


/*==========================================
GRILLE DES PRODUITS
==========================================*/

.grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));

    gap:35px;

    align-items:stretch;

}


/*==========================================
ESPACEMENT
==========================================*/

.grid>*{

    animation:fadeUp .7s ease both;

}


/*==========================================
AUCUN RESULTAT
==========================================*/

.grid>h2{

    grid-column:1/-1;

    padding:70px 30px;

    text-align:center;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(18px);

    border:1px solid rgba(35,171,255,.10);

    border-radius:28px;

    box-shadow:var(--shadow);

    color:var(--gray);

    font-size:2rem;

    font-weight:700;

}


/*==========================================
ICONE SI VIDE
==========================================*/

.grid>h2::before{

    content:"🔍";

    display:block;

    font-size:4rem;

    margin-bottom:20px;

}


/*==========================================
RESPONSIVE
==========================================*/

@media(max-width:1100px){

    .grid{

        grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

        gap:30px;

    }

}


@media(max-width:768px){

    .grid{

        grid-template-columns:1fr;

        gap:25px;

    }

}


@media(max-width:480px){

    .grid{

        gap:20px;

    }

}

/*==========================================
CARTE PRODUIT
==========================================*/

.card{

    position:relative;

    display:flex;

    flex-direction:column;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(20px);

    border:1px solid rgba(35,171,255,.08);

    border-radius:30px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}


.card:hover{

    transform:translateY(-12px);

    box-shadow:

    0 30px 70px rgba(35,171,255,.18);

    border-color:rgba(35,171,255,.18);

}


/*==========================================
HALO
==========================================*/

.card::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    radial-gradient(circle at top right,
    rgba(35,171,255,.15),
    transparent 60%);

    opacity:0;

    transition:.4s;

    pointer-events:none;

}


.card:hover::before{

    opacity:1;

}


/*==========================================
IMAGE
==========================================*/

.image{

    position:relative;

    height:260px;

    overflow:hidden;

}


.image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:transform .8s ease;

}


.card:hover .image img{

    transform:scale(1.10);

}


/*==========================================
VOILE
==========================================*/

.image::after{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        to top,

        rgba(0,0,0,.18),

        transparent 55%

    );

}


/*==========================================
BADGE
==========================================*/

.tag{

    position:absolute;

    top:18px;

    left:18px;

    padding:10px 18px;

    border-radius:50px;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    color:var(--primary-dark);

    font-size:.85rem;

    font-weight:700;

    box-shadow:

    0 10px 25px rgba(0,0,0,.10);

    z-index:2;

}


/*==========================================
CONTENU
==========================================*/

.info{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:30px;

}


/*==========================================
TITRE
==========================================*/

.info h3{

    font-size:1.45rem;

    font-weight:700;

    color:var(--dark);

    margin-bottom:12px;

    line-height:1.35;

}


/*==========================================
DESCRIPTION
==========================================*/

.info p{

    flex:1;

    color:var(--gray);

    line-height:1.8;

    margin-bottom:28px;

}


/*==========================================
RESPONSIVE
==========================================*/

@media(max-width:768px){

    .image{

        height:220px;

    }

    .info{

        padding:24px;

    }

    .info h3{

        font-size:1.25rem;

    }

}


/*==========================================
BAS DE CARTE
==========================================*/

.more{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:18px;

    padding-top:25px;

    border-top:1px solid rgba(35,171,255,.08);

}


/*==========================================
PRIX
==========================================*/

.price{

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:130px;

    height:55px;

    padding:0 20px;

    border-radius:18px;

    background:

    linear-gradient(
        135deg,
        rgba(35,171,255,.10),
        rgba(35,171,255,.18)
    );

    color:var(--primary-dark);

    font-size:1.2rem;

    font-weight:800;

    letter-spacing:.3px;

}


/*==========================================
BOUTON
==========================================*/

.link{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    height:55px;

    padding:0 26px;

    border-radius:18px;

    overflow:hidden;

    color:var(--white);

    font-size:.95rem;

    font-weight:700;

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    box-shadow:

    0 15px 35px rgba(35,171,255,.25);

    transition:var(--transition);

}


/*==========================================
REFLET
==========================================*/

.link::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:45%;

    height:100%;

    background:

    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    transform:skewX(-25deg);

    transition:.8s;

}


.link:hover::before{

    left:150%;

}


/*==========================================
HOVER
==========================================*/

.link:hover{

    transform:translateY(-3px);

    box-shadow:

    0 22px 45px rgba(35,171,255,.35);

}


.link:active{

    transform:scale(.97);

}


/*==========================================
EFFET SUR LA CARTE
==========================================*/

.card:hover .price{

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color:var(--white);

}


/*==========================================
RESPONSIVE
==========================================*/

@media(max-width:768px){

    .more{

        flex-direction:column;

        align-items:stretch;

    }

    .price{

        width:100%;

    }

    .link{

        width:100%;

    }

}

/*==========================================
ANIMATIONS DES CARTES
==========================================*/

.card{

    animation:fadeUp .8s ease both;

}

.card:nth-child(2){

    animation-delay:.10s;

}

.card:nth-child(3){

    animation-delay:.20s;

}

.card:nth-child(4){

    animation-delay:.30s;

}

.card:nth-child(5){

    animation-delay:.40s;

}

.card:nth-child(6){

    animation-delay:.50s;

}


/*==========================================
FOCUS ACCESSIBILITÉ
==========================================*/

button:focus-visible,
input:focus-visible,
a:focus-visible{

    outline:none;

    box-shadow:

    0 0 0 5px rgba(35,171,255,.18);

    border-radius:18px;

}


/*==========================================
SCROLLBAR PREMIUM
==========================================*/

::-webkit-scrollbar{

    width:11px;

}

::-webkit-scrollbar-track{

    background:#eef5fc;

}

::-webkit-scrollbar-thumb{

    border-radius:50px;

    background:

    linear-gradient(
        var(--primary),
        var(--primary-dark)
    );

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}


/*==========================================
IMAGES
==========================================*/

img{

    user-select:none;

    -webkit-user-drag:none;

}


/*==========================================
TRANSITIONS
==========================================*/

.card,
.link,
.price,
.tag,
.search-box,
button{

    transition:var(--transition);

}


/*==========================================
SÉLECTION
==========================================*/

::selection{

    background:var(--primary);

    color:var(--white);

}


/*==========================================
RESPONSIVE TABLETTE
==========================================*/

@media(max-width:992px){

    .hero{

        min-height:480px;

    }

    .hero h1{

        font-size:3rem;

    }

    .grid{

        grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    }

}


/*==========================================
RESPONSIVE MOBILE
==========================================*/

@media(max-width:768px){

    body{

        font-size:15px;

    }

    .container{

        width:94%;

    }

    .hero{

        min-height:420px;

        padding:80px 20px 60px;

    }

    .hero h1{

        font-size:2.3rem;

    }

    .hero p{

        font-size:1rem;

    }

    .card{

        border-radius:24px;

    }

    .image{

        height:210px;

    }

    .info{

        padding:22px;

    }

}


/*==========================================
PETITS SMARTPHONES
==========================================*/

@media(max-width:480px){

    .hero h1{

        font-size:2rem;

    }

    .hero-content{

        width:100%;

    }

    .grid{

        gap:18px;

    }

    .price{

        font-size:1rem;

        min-width:110px;

    }

    .link{

        font-size:.9rem;

        height:52px;

    }

}


/*==========================================
OPTIMISATIONS
==========================================*/

.card{

    will-change:transform;

}

.hero,
.card{

    isolation:isolate;

}


/*==========================================
BONUS PREMIUM
==========================================*/

/* Halo lumineux sur les cartes */

.card::after{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(
        135deg,
        rgba(255,255,255,.15),
        transparent 40%,
        transparent 60%,
        rgba(35,171,255,.05)
    );

    opacity:0;

    transition:.45s;

    pointer-events:none;

}

.card:hover::after{

    opacity:1;

}


/* Ombre sur l'image */

.image{

    box-shadow:

    inset 0 -60px 90px rgba(0,0,0,.08);

}


/* Badge catégorie */

.tag{

    backdrop-filter:blur(15px);

    letter-spacing:.4px;

}


/* Effet flottant */

.card:hover .tag{

    transform:translateY(-3px);

}


/* Bouton panier */

.link{

    position:relative;

    overflow:hidden;

}

.link span{

    position:relative;

    z-index:2;

}

.link i{

    position:relative;

    z-index:2;

    font-size:1rem;

}


/* Cercle lumineux */

.link::after{

    content:"";

    position:absolute;

    width:0;

    height:0;

    border-radius:50%;

    background:rgba(255,255,255,.18);

    transition:.45s;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

}

.link:hover::after{

    width:260px;

    height:260px;

}


/* Prix */

.price{

    position:relative;

    overflow:hidden;

}

.price::before{

    content:"";

    position:absolute;

    left:-100%;

    top:0;

    width:40%;

    height:100%;

    background:

    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    transform:skewX(-25deg);

    transition:.8s;

}

.card:hover .price::before{

    left:150%;

}


/* Micro animation */

.card:hover h3{

    color:var(--primary-dark);

}

.card:hover .price{

    transform:scale(1.05);

}


/* Optimisation GPU */

.card,
.image img,
.link,
.price,
.tag{

    transform:translateZ(0);

}

/*==========================================
BOUTON AJOUTER
==========================================*/

.add-btn{

    width:58px;

    height:58px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color:white;

    font-size:22px;

    box-shadow:

    0 15px 35px rgba(35,171,255,.25);

    transition:.35s;

}


.add-btn:hover{

    transform:

    translateY(-4px)
    rotate(90deg);

    box-shadow:

    0 22px 45px rgba(35,171,255,.35);

}


.add-btn:active{

    transform:scale(.92);

}


/*==========================================
MODAL AJOUT
==========================================*/

.modal-ajout{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(10px);

    z-index:99999;

}


.modal-box{

    width:420px;

    max-width:90%;

    padding:40px;

    border-radius:30px;

    background:white;

    text-align:center;

    box-shadow:

    0 30px 70px rgba(0,0,0,.18);

    animation:zoom .35s ease;

}


.success-icon{

    width:90px;

    height:90px;

    margin:auto;

    margin-bottom:25px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:

    linear-gradient(
    135deg,
    #27ae60,
    #2ecc71);

    color:white;

    font-size:38px;

}


.modal-box h2{

    font-weight:800;

    margin-bottom:10px;

}


.modal-box p{

    color:#6b7280;

    margin-bottom:30px;

}


.modal-box button{

    width:100%;

    height:55px;

    border:none;

    border-radius:18px;

    color:white;

    font-weight:700;

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark));

}


@keyframes zoom{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}