/* Header Admin */
.admin-header {
    background: linear-gradient(135deg, #121212, #1f1f1f);
    color: #fff;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
}

/* Logo */
.admin-header .logo a {
    color: #fff;
}

/* Effet au survol */
.admin-header .logo a:hover {
    color: #fff;
}

/* Navigation */
.admin-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.admin-header nav ul li {
    margin-left: 2rem;
}

.admin-header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.admin-header nav ul li a:hover {
    color: #e74c3c;
}

/* Bouton Contact */
.admin-header nav ul li a.btn-contact {
    background: #e74c3c;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.admin-header nav ul li a.btn-contact:hover {
    background: #e65a50;
}

/* Bouton Déconnexion */
.admin-header nav ul li a.btn-logout {
    background: #e74c3c;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.admin-header nav ul li a.btn-logout:hover {
    background: #e65a50;
}

/* Menu mobile */
.admin-header .menu-mobile {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header */
header {
    display: flex;
    background: #ffffffd2;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    margin: 0 50px;
    width: 100%;
    max-width: none;
}

/* Logo */
header .logo {
    display: flex;
    align-items: center;
}

/* Style du logo */
header .logo a {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Effet au survol */
header .logo a:hover {
    color: #333;
}

/* Animation du logo */
header .logo a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #e74c3c;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

header .logo a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Navigation */
header nav {
    display: flex;
    justify-content: flex-end;
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 2rem;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #e74c3c;

}

/* Bouton Contact */
header nav ul li a.btn-contact {
    background: #e74c3c;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

header nav ul li a.btn-contact:hover {
    background: #e65a50;
}

/* Menu mobile */
header .menu-mobile {
    display: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1040px) and (min-width: 769px) {
    .admin-header .container {
        margin: 0 20px;
        grid-template-columns: auto auto;
    }

    .admin-header nav ul li{
        margin-left: 1.5rem;
    }

    .admin-header nav ul li a.btn-logout {
        padding: 0.75rem 1rem;
    }

    /* Header Visiteur */
    header .container {
        grid-template-columns: auto auto;
    }
}

@media (max-width: 768px) {
    /* Header Admin */
    .admin-header .container {
        grid-template-columns: auto auto;
    }

    .admin-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(51, 51, 51, 0.95);
    }

    .admin-header nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    .admin-header nav ul li {
        margin: 1rem 0;
    }

    .admin-header .menu-mobile {
        display: flex;
        justify-content: flex-end;
    }

    .admin-header nav.active {
        display: block;
    }

    .admin-header .logo a{
        font-size: 1.3rem;
    }

    /* Header Visiteur */
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
    }

    header nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    header nav ul li {
        margin: 1rem 0;
    }

    header .menu-mobile {
        display: flex;
        justify-content: flex-end;
    }

    header nav.active {
        display: block;
    }
}

@media (max-width: 570px) {
    /* Header Admin */
    header .logo a {
        font-size: 1rem;
    }

    /* Header Visiteur */
    header .container {
        margin: 0 20px;
    }

    header .logo a {
        font-size: 1.5rem;
    }

    .menu-mobile i{
        font-size: 1.3rem;
    }
}

@media (max-width: 465px) and (min-width: 427px){
    .hero h2{
        font-size: 2.5rem;
    }
}

@media (max-width: 425px) {
    .hero h2{
        font-size: 1.7rem;
    }

    .hero p{
        font-size: 1.3rem;
        margin: 50px 0;
    }

    .services{
        padding: 3rem 0;
    }

    .service-item:hover{
        transform: none;
        box-shadow: none;
    }

    .about{
        padding: 3rem 0;
    }

    .atout-item:hover{
        transform: none;
        box-shadow: none;
    }

    .contact{
        padding: 3rem 0;
    }

    .contact-form{
        padding: 20px 0;
    }
}

@media (max-width: 320px) {
    .services h2{
        font-size: 2rem;
    }

    .service-list{
        gap: 10px;
    }

    .service-item{
        padding: 1rem;
    }

    .service-item:hover{
        transform: none;
        box-shadow: none;
    }

    .service-item h3{
        font-size: 1.3rem;
    }

    .about h2{
        font-size: 2rem;
    }

    .about-text h3{
        font-size: 1.5rem;
    }

    .atouts-list{
        gap: 10px;
    }

    .atout-item{
        padding: 1rem;
    } 

    .atout-item:hover{
        transform: none;
        box-shadow: none;
    }

    .about-atouts h3{
        font-size: 1.5rem;
    }

    .atout-item h4{
        font-size: 1.3rem;
    }

    .contact-wrapper{
        gap: 20px;
    }

    .contact h2{
        font-size: 2rem;
    }
}