/* ==========================================
   1. ANIMATIONS (KEYFRAMES)
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   2. RÈGLES GÉNÉRALES & RÉINITIALISATION
   ========================================== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

hr {
    display: none;
}

/* ==========================================
   3. ENTÊTE & NAVIGATION (HEADER)
   ========================================== */
header {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    text-align: center;
    padding: 35px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.8s ease-out; /* Animation d'apparition au chargement */
}

header img {
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid #00d2ff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Effet au survol du Logo */
header img:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

header h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

header p {
    font-size: 1.1rem;
    color: #00d2ff;
    margin-bottom: 25px;
}

/* Menu de navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav a:hover {
    background-color: #00d2ff;
    color: #0f2027;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 210, 255, 0.4);
}

/* ==========================================
   4. CONTENU PRINCIPAL & CARTES
   ========================================== */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    background: #ffffff;
    padding: 35px;
    margin-bottom: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-out; /* Animation d'apparition */
}

section h2 {
    color: #2c5364;
    font-size: 1.8rem;
    border-bottom: 3px solid #00d2ff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

section > p {
    color: #666;
    margin-bottom: 20px;
}

/* EFFET DE SOULEVEMENT SUR LES CARTES DE SERVICES */
article {
    background-color: #f9fbfb;
    border-left: 4px solid #00d2ff;
    padding: 22px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-width 0.2s ease;
}

article:hover {
    transform: translateY(-5px); /* Se soulève de 5px */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Ombre plus marquée */
    border-left-width: 8px; /* La barre bleue s'agrandit légèrement */
}

h3 {
    color: #0f2027;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* ==========================================
   5. SECTION CONTACT & FORMULAIRE
   ========================================== */
#contact ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

#contact li {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

#contact a {
    color: #0083b0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

#contact a:hover {
    color: #00d2ff;
    text-decoration: underline;
}

/* Formulaire Stylisé */
form {
    background: #f0f4f8;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

label {
    font-weight: bold;
    color: #2c5364;
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #00d2ff;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

/* Bouton interactif */
button[type="submit"] {
    background: linear-gradient(135deg, #0083b0, #00d2ff);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    padding: 14px 25px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 131, 176, 0.4);
    opacity: 0.95;
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ==========================================
   6. PIED DE PAGE (FOOTER)
   ========================================== */
footer {
    background-color: #0b171c;
    color: #a0aec0;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 2px solid rgba(0, 210, 255, 0.2);
}

footer p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   7. MEDIA QUERIES (MOBILE)
   ========================================== */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.7rem;
    }

    header p {
        font-size: 0.95rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav a {
        display: block;
        padding: 12px;
    }

    main {
        margin: 20px auto;
        padding: 0 10px;
    }

    section {
        padding: 20px 15px;
    }

    section h2 {
        font-size: 1.4rem;
    }

    article {
        padding: 15px;
    }
}