/* Reset & base */

html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
/* Header imposant sticky */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
background: linear-gradient(
    90deg,
    #010c1c 0%,
    #141d29 100%
);

    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}


.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}


.logo {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav ul li a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #e0e0e0;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #ff9800;
}


header nav ul {
    display: flex;
    list-style: none;

}

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

header nav ul li a {
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ff9800;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    transition: 
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}



body {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
}

/* Titres */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Logo */
.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}



/* On ajoute un padding-top au body pour ne pas cacher le contenu derrière le header */
body {
    padding-top: 7vh;
}




/* Hero */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

/* Slides */
.hero-slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Overlay sombre pour lisibilité */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(13, 27, 42, 0.75),
        rgba(13, 27, 42, 0.85)
    );
    z-index: 1;
}

/* Contenu */
.hero-container {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}



/* Services */
.services {
    padding: 4rem 0;
    text-align: center;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    
}

.card {
    background-color: #010c1c;
    padding: 2rem;
    border-radius: 10px;
    width: 250px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}
.apropos {
    padding: 5rem 0;
    background-color: #0d1b2a; /* bleu foncé */
    color: #e0e0e0;
}

.apropos h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.apropos p {
    text-align: center;
    max-width: 800px;
    margin: auto;
    margin-bottom: 3rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* About */
.apropos {
    padding: 4rem 0;
    text-align: center;
    background-color: #1b1b1b;
}

/* Contact */
.contact {
    padding: 4rem 0;
    text-align: center;
}

.contact form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
}

.contact input, 
.contact textarea {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
}

.contact button {
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #1e1e1e;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

footer .social a {
    color: #ff9800;
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}
/* Section services */
.section-services {
    padding: 4rem 0;
    background-color: #1b1b1b;
    color: #e0e0e0;
}
/* Section services */
#particulier {
    padding: 4rem 0;
    background-color: #111940; /* gris foncé */
    color: #e0e0e0;
}

#business {
    padding: 4rem 0;
    background-color: #0d1b2a; /* bleu foncé */
    color: #e0e0e0;
}

/* Les autres styles restent identiques */


/* Grille de cartes */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #010c1c;
    width: 220px;
    height: 300px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}


.service-card .icon {
    font-size: 3rem;
}


/* Blocs texte + image */
.text-image {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.text-image.reverse {
    flex-direction: row-reverse;
}

.text-image img {
    width: 45%;
    border-radius: 10px;
    object-fit: cover;
}

.text-image .text {
    width: 55%;
}

.text-image h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.text-image p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .service-grid {
        flex-direction: column;
        align-items: center;
    }

    .text-image, .text-image.reverse {
        flex-direction: column;
    }

    .text-image img, .text-image .text {
        width: 100%;
    }
}

/* Mini CV */
.mini-cv {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center; /* centre verticalement la photo et le texte */
    
}

.mini-cv .photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1e88e5;
}

.mini-cv .infos {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* aligne le contenu en haut */
    align-items: flex-start;     /* aligne tout le texte à gauche */
    padding-left: 0;             /* facultatif si tu veux sans décalage */
    text-align: left;            /* force l’alignement gauche du texte */
}


.mini-cv ul {
    list-style-type: disc; /* ou circle, square */
    margin-left: 0; /* pas de marge externe */
    padding-left: 1.2rem; /* alignement propre */
}


.mini-cv h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}


/* Avant animation */
.hidden {
    opacity: 0;
    transform: translateY(50px); /* descend un peu */
    transition: all 0.8s ease-out;
}

/* Après apparition */
.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Effet hover sur les cartes de service */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Bouton avec effet lumineux au hover */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: all 0.5s ease;
}
.btn-primary:hover::after {
    left: 0;
}
