/* =========================
   STYLE GÉNÉRAL
========================= */

:root{
    --primary:#0f4c81;
    --secondary:#0ea5e9;
    --dark:#0f172a;
    --light:#f8fafc;
    --gold:#fbbf24;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Segoe UI,Arial,sans-serif;
    background:#f6f8fb;
    color:#1f2937;
}

/* =========================
   TOPBAR
========================= */

.topbar{
    height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 6%;
    background:white;
    box-shadow:0 10px 30px #0001;
    position:sticky;
    top:0;
    z-index:1000;
}

/* =========================
   BRAND
========================= */

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:var(--dark);
    font-weight:800;
}

.brand-text{
    font-size:17px;
    font-weight:800;
    color:var(--dark);
}

/* =========================
   LOGO
========================= */

.logo-circle{
    width:42px;
    height:42px;
    min-width:42px;
    min-height:42px;
    max-width:42px;
    max-height:42px;

    border-radius:50%;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    background:white;

    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.logo-circle img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* =========================
   NAVIGATION
========================= */

.desktop-nav{
    display:flex;
    align-items:center;
}

.desktop-nav a{
    margin:0 10px;
    text-decoration:none;
    color:#334155;
    font-weight:600;
    transition:.3s;
}

.desktop-nav a:hover{
    color:var(--primary);
}

.btn-login,
.primary-btn{
    background:var(--primary);
    color:white!important;
    padding:11px 18px;
    border-radius:14px;
    text-decoration:none;
    display:inline-block;
    transition:.3s;
}

.btn-login:hover,
.primary-btn:hover{
    background:#0b3b63;
}

/* =========================
   MENU MOBILE
========================= */

.book-toggle{
    display:none;
    background:var(--primary);
    color:white;
    border:0;
    border-radius:10px;
    padding:12px;
    cursor:pointer;
}

.mobile-book{
    position:fixed;
    right:-330px;
    top:0;
    width:310px;
    height:100vh;
    background:white;
    z-index:999;
    padding:35px;
    box-shadow:-20px 0 50px #0003;
    transition:.45s;
    transform-origin:left;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.mobile-book.open{
    right:0;
    transform:perspective(900px) rotateY(0deg);
}

.mobile-book a{
    text-decoration:none;
    color:#111827;
    font-size:18px;
    font-weight:700;
}

.close-book{
    border:0;
    background:#fee2e2;
    color:#991b1b;
    padding:12px;
    border-radius:12px;
    cursor:pointer;
}

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

.hero{
    display:grid;
    grid-template-columns:1fr 1.1fr;
    gap:35px;
    align-items:center;
    padding:70px 6%;
}

.hero h1{
    font-size:48px;
    color:var(--dark);
    line-height:1.05;
}

.hero p{
    font-size:18px;
    line-height:1.7;
}

/* =========================
   CAROUSEL
========================= */

.carousel{
    height:430px;
    border-radius:34px;
    overflow:hidden;
    position:relative;
    box-shadow:0 25px 70px #0f172a33;
}

.slide{
    display:none;
    height:100%;
    padding:45px;
    color:white;
    background-size:cover;
    background-position:center;
    position:relative;
}

.slide:before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,#0f172acc,#0f172a55);
}

.slide.active{
    display:flex;
    align-items:end;
}

.slide-content{
    position:relative;
    max-width:520px;
}

.slide h2{
    font-size:36px;
}

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

.section{
    padding:55px 6%;
}

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.card{
    background:white;
    border-radius:24px;
    padding:28px;
    box-shadow:0 10px 35px #00000012;
}

.card i{
    font-size:34px;
    color:var(--primary);
}

/* =========================
   FORMULAIRES
========================= */

form{
    background:white;
    padding:28px;
    border-radius:24px;
    box-shadow:0 10px 35px #0001;
}

input,
select,
textarea{
    width:100%;
    padding:14px;
    margin:9px 0 16px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    outline:none;
}

button{
    cursor:pointer;
}

/* =========================
   FOOTER
========================= */

.footer{
    background:#07172d;
    color:white;
    padding:55px 6% 25px;
    margin-top:50px;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
    flex-wrap:wrap;
}

.footer-box{
    max-width:500px;
}

.footer-box h3{
    margin-bottom:18px;
    color:white;
    font-size:24px;
}

.footer-box p{
    line-height:1.9;
    color:#f1f5f9;
    margin-bottom:12px;
}

.footer-box a{
    color:white;
    text-decoration:none;
}

.social-box{
    text-align:right;
}

.socials{
    display:flex;
    gap:14px;
    justify-content:flex-end;
    flex-wrap:wrap;
    margin-top:15px;
}

.socials a{
    width:48px;
    height:48px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:19px;
    transition:.3s;
    text-decoration:none;
}

/* Facebook */
.socials a:nth-child(1){
    background:#1877f2;
}

/* X */
.socials a:nth-child(2){
    background:#000;
}

/* LinkedIn */
.socials a:nth-child(3){
    background:#0a66c2;
}

/* YouTube */
.socials a:nth-child(4){
    background:#ff0000;
}

/* WhatsApp */
.socials a:nth-child(5){
    background:#25d366;
}

.socials a:hover{
    transform:translateY(-5px) scale(1.05);
}

.footer-bottom{
    margin-top:35px;
    border-top:1px solid rgba(255,255,255,.12);
    padding-top:18px;
    text-align:center;
    color:#e2e8f0;
}

/* =========================
   ALERTES
========================= */

.alert{
    padding:14px;
    border-radius:12px;
    margin:15px 0;
}

.success{
    background:#dcfce7;
    color:#166534;
}

.danger{
    background:#fee2e2;
    color:#991b1b;
}

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

@media(max-width:850px){

    .desktop-nav{
        display:none;
    }

    .book-toggle{
        display:block;
    }

    .hero{
        grid-template-columns:1fr;
        padding-top:35px;
    }

    .hero h1{
        font-size:36px;
    }

    .cards{
        grid-template-columns:1fr;
    }

    .carousel{
        height:360px;
    }

    .footer-container{
        flex-direction:column;
    }

    .social-box{
        text-align:left;
    }

    .socials{
        justify-content:flex-start;
    }

    .brand-text{
        font-size:14px;
    }
}