/* ===================================================
   SIONTEL BUSINESS CONNECT
   PORTAIL FORMULAIRES PREMIUM
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --primary:#0F2D52;
    --primary-light:#1D4E89;
    --accent:#D4A017;
    --accent-light:#F0C75E;
    --background:#F5F7FA;
    --card:#FFFFFF;
    --text:#1B2430;
    --text-light:#6B7280;
    --border:#E5E7EB;
    --shadow:0 15px 40px rgba(15,45,82,.08);
    --shadow-hover:0 25px 60px rgba(15,45,82,.15);
    /* Vert CTA Inscription */
    --success:#16A34A;
    --success-light:#22C55E;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--background);
    color:var(--text);
    min-height:100vh;
    overflow-x:hidden;
    position:relative;
}

/* ===================================================
   BACKGROUND
=================================================== */

.background{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:
        radial-gradient(circle at top left,
        rgba(15,45,82,.10),
        transparent 35%),

        radial-gradient(circle at bottom right,
        rgba(212,160,23,.08),
        transparent 30%);

    z-index:-1;
}

/* ===================================================
   HEADER
=================================================== */

header{
    text-align:center;
    padding:70px 20px 40px;
}

.logo{
    width:110px;
    height:auto;
    margin-bottom:25px;

    animation:fadeUp .8s ease;
}

header h1{
    font-size:3rem;
    font-weight:700;
    color:var(--primary);

    margin-bottom:12px;

    animation:fadeUp .9s ease;
}

header p{
    color:var(--text-light);
    font-size:1.05rem;
    max-width:650px;
    margin:auto;

    animation:fadeUp 1s ease;
}

/* ===================================================
   SEARCH
=================================================== */

.search-section{
    display:flex;
    justify-content:center;
    padding:20px;
}

.search-box{

    width:100%;
    max-width:600px;

    background:white;

    border:1px solid var(--border);

    border-radius:60px;

    padding:16px 25px;

    display:flex;
    align-items:center;
    gap:15px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.05);

    transition:.3s;
}

.search-box:hover{
    box-shadow:
    0 15px 35px rgba(0,0,0,.08);
}

.search-box i{
    color:var(--primary);
    font-size:18px;
}

.search-box input{

    width:100%;

    border:none;
    outline:none;

    background:none;

    color:var(--text);

    font-size:16px;
}

.search-box input::placeholder{
    color:#9CA3AF;
}

/* ===================================================
   GRID
=================================================== */

.cards-container{

    max-width:1400px;

    margin:auto;

    padding:40px;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:30px;
}

/* ===================================================
   CARD
=================================================== */

.card{

    position:relative;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:30px;

    box-shadow:var(--shadow);

    transition:.4s ease;

    overflow:hidden;

    animation:fadeUp .8s ease;
}

.card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:
    linear-gradient(
    90deg,
    var(--primary),
    var(--accent)
    );
}

.card:hover{

    transform:
    translateY(-10px);

    box-shadow:
    var(--shadow-hover);

    border-color:
    rgba(212,160,23,.4);
}

.card h2{

    color:var(--primary);

    font-size:1.4rem;

    margin-bottom:15px;

    font-weight:600;
}

.card p{

    color:var(--text-light);

    line-height:1.7;

    margin-bottom:25px;
}

/* ===================================================
   BUTTON
=================================================== */

.card a{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    text-decoration:none;

    padding:14px 24px;

    border-radius:12px;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light)
    );

    color:white;

    font-weight:600;

    transition:.3s;

    box-shadow:
    0 10px 25px rgba(15,45,82,.20);
}

.card a:hover{

    transform:
    translateY(-3px);

    box-shadow:
    0 15px 30px rgba(15,45,82,.30);
}




/* ===================================================
   BADGE
=================================================== */

.badge{

    position:absolute;

    top:20px;
    right:20px;

    background:
    linear-gradient(
    135deg,
    var(--accent),
    var(--accent-light)
    );

    color:var(--primary);

    font-size:12px;

    font-weight:700;

    padding:8px 14px;

    border-radius:50px;

    letter-spacing:.5px;
}


.card[data-type="inscription"] a{
    background:linear-gradient(135deg,#16A34A,#22C55E);
}

/* ===================================================
   FOOTER
=================================================== */

footer{

    margin-top:40px;

    padding:40px 20px;

    text-align:center;

    color:var(--text-light);

    font-size:14px;
}

/* ===================================================
   SCROLLBAR PREMIUM
=================================================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#edf1f5;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary-light);
}

/* ===================================================
   ANIMATIONS
=================================================== */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===================================================
   RESPONSIVE TABLET
=================================================== */

@media(max-width:992px){

    header h1{
        font-size:2.5rem;
    }

    .cards-container{
        padding:25px;
    }
}

/* ===================================================
   RESPONSIVE MOBILE
=================================================== */

@media(max-width:768px){

    header{
        padding:50px 20px 30px;
    }

    .logo{
        width:90px;
    }

    header h1{
        font-size:2rem;
    }

    header p{
        font-size:.95rem;
    }

    .cards-container{
        padding:20px;
        gap:20px;
    }

    .card{
        padding:25px;
    }

    .search-box{
        padding:14px 20px;
    }
}

/* ===================================================
   PETITS MOBILES
=================================================== */

@media(max-width:480px){

    header h1{
        font-size:1.8rem;
    }

    .card h2{
        font-size:1.2rem;
    }

    .card a{
        width:100%;
    }
}