/* ===== GLOBAL ===== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0d1b2a;
    color: white;
    transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; }

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0,0,0,0.85);
    transition: background 0.3s;
}
header .logo img { width: 150px; height: auto; }
.header-nav { display: flex; gap: 10px; }
.header-nav .btn {
    background: #00b4d8;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
}
.header-nav .btn:hover {
    background: #0096c7;
    transform: translateY(-3px);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to right, #0d1b2a, #1b263b);
}
.hero-part { 
    margin-bottom: 30px; 
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}
.hero h2 { font-size: 42px; margin-bottom: 10px; }
.hero p { font-size: 20px; line-height: 1.6; }

/* ===== SECTIONS ===== */
.section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

/* ===== SERVICES ===== */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.service-item {
    flex: 1 1 200px;
    background: #1b263b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item img {
    width: 160px; /* images légèrement agrandies */
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item img:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.4);
}
.service-item h3 { margin-bottom: 10px; color: white; font-size: 20px; }
.service-item p { color: #ccc; font-size: 16px; line-height: 1.5; }

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

/* Conteneur du formulaire centré et en colonne */
.section {
    display: flex;
    flex-direction: column; /* empile titre + formulaire verticalement */
    align-items: center;    /* centre horizontalement */
    justify-content: center; /* centre verticalement si tu veux */
    padding: 50px 20px;
}

/* Limiter la largeur du formulaire */
.form-box {
    width: 100%;
    max-width: 500px;  /* largeur max du formulaire */
    margin: 0 auto;    /* centre le formulaire */
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

button {
    background: #00b4d8;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

button:hover {
    background: #0096c7;
}

/* Responsive pour mobile */
@media(max-width:600px){
    .form-box { width: 90%; }
}

/* ===== RESEAUX ===== */
.social-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-icons img {
    width: 45px;
    padding: 8px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s;
}
.social-icons img:hover {
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    background: #000;
    color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== RESPONSIVE ===== */
@media(max-width:900px){
    .services-grid { flex-direction: column; align-items: center; }
    .form-box { width: 90%; margin: auto; }
}

