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

.hero {
    position: relative;

    background-image: url("../images/home/image-header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.site-footer {
    margin-top: 80px;
    padding: 40px 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin: 6px 0;
}

.footer-content strong {
    color: #1e3a8a;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 12px !important;
}

.hero h1{
    font-size:3rem;
    font-weight:700;
    margin-bottom:12px;
}

.hero p{
    font-size:1.15rem;
    opacity:.9;
}

.navbar{
    position:sticky;
    top:0;
    z-index:1000;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    border-bottom:1px solid #e5e7eb;

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

.nav-links{
    max-width:1200px;

    margin:auto;

    display:flex;

    gap:8px;

    align-items:center;

    padding:12px 20px;
}

.nav-links a{

    text-decoration:none;

    color:#475569;

    font-weight:600;

    padding:10px 18px;

    border-radius:999px;

    transition:all .25s ease;
}

.nav-links a:hover{

    background:#f1f5f9;

    color:#0f172a;
}

.nav-links a.active{

    background:#0f172a;

    color:white;

    box-shadow:
        0 4px 12px rgba(15,23,42,.18);
}


.home-grid{
    max-width:1000px;
    margin:40px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
}

.category-card{
    position:relative;
    height:220px; /* avant 320px */
    border-radius:18px;
    overflow:hidden;
    cursor:pointer;
    box-shadow:0 6px 18px rgba(0,0,0,.10);
}

.category-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

.category-card:hover img{
    transform:scale(1.08);
}

.category-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.15),
        transparent
    );
}

.overlay{
    position:absolute;
    left:18px;
    bottom:18px;
    z-index:2;
    color:white;
    font-size:1.4rem;
    font-weight:700;
    text-shadow:0 2px 8px rgba(0,0,0,.4);
}

section{
max-width:1100px;
margin:auto;
padding:40px 20px;
}

.page-container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

.descriptor-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    margin-bottom:40px;
    box-shadow:0 8px 30px rgba(0,0,0,0.08);
    transition:.3s;
}

.descriptor-card:hover{
    transform:translateY(-4px);
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.card-header h2{
    margin:0;
    color:#1e3a8a;
}

.badge{
    background:#dbeafe;
    color:#1e40af;
    padding:6px 12px;
    border-radius:30px;
    font-size:0.85rem;
    font-weight:600;
}

.card-images{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin-bottom:20px;
}

.image-box{
    text-align:center;
}

.image-box img{
    width:100%;
    height:320px;
    object-fit:cover;
    border-radius:15px;
    border:1px solid #e5e7eb;
}

.image-box p{
    margin-top:10px;
    color:#64748b;
    font-size:0.95rem;
}

.description{
    font-size:1.05rem;
    line-height:1.8;
    color:#334155;
}

.example{
    margin-top:20px;
    background:#f8fafc;
    border-left:4px solid #2563eb;
    padding:15px;
    border-radius:10px;
    font-weight:600;
    color:#1e293b;
}

.contain-image{
    object-fit: contain !important;
    background: white;
}



@media (max-width:768px){

    .card-images{
        grid-template-columns:1fr;
    }

    .image-box img{
        height:250px;
    }

    .card-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
}

.featured{
    grid-column: 1 / -1;
}

/* Tablette */
@media (max-width: 900px){

    .home-grid{
        max-width:700px;
        gap:16px;
    }

    .category-card{
        height:180px;
    }

    .overlay{
        font-size:1.2rem;
    }
}

/* Mobile */
@media (max-width: 600px){

    .nav-links {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        padding: 8px 12px;
        gap: 6px;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        padding: 8px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .home-grid{
        grid-template-columns:1fr;
        max-width:500px;
    }

    .featured{
        grid-column:auto;
    }

    .category-card{
        height:200px;
    }

    .overlay{
        font-size:1.3rem;
    }

    .hero{
        padding:40px 16px;
    }

    .hero h1{
        font-size:1.8rem;
    }

    .hero p{
        font-size:0.95rem;
    }
}