
/* -------------------- Styles globaux -------------------- */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* -------------------- Header -------------------- */


/* -------------------- Main Section -------------------- */
main {
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

h2 {
    color: #007BFF;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-align: center;
    animation: slideIn 1s ease-out;
}

/* -------------------- Formulaires -------------------- */
form {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

input[type="text"],
input[type="date"],
select {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

input[type="submit"] {
    background-color: #007BFF;
    color: white;
    padding: 12px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #0069d9;
}

input[type="submit"]:active {
    background-color: #0056b3;
}

/* -------------------- Footer -------------------- */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #333;
    color: white;
    animation: fadeIn 1s ease-out;
}

footer p {
    font-size: 0.9rem;
}

/* -------------------- Animation -------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 768px) {
    header nav ul {
        text-align: center;
        margin-top: 10px;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    main {
        padding: 20px;
    }

    form {
        gap: 15px;
    }

    h2 {
        font-size: 2em;
    }

    input[type="submit"] {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    header nav ul li {
        margin: 5px 0;
    }

    input[type="submit"] {
        width: 100%;
    }
}

/* -------------------- Section Publicité -------------------- */
#publicite {
    background-color: #007BFF;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

#publicite h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#publicite p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: white;
    color: #007BFF;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0069d9;
    color: white;
}

/* -------------------- Section Services -------------------- */
#services {
    padding: 50px 20px;
    text-align: center;
}

#services h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.service-item {
    display: inline-block;
    width: 30%;
    margin: 0 10px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-item img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1rem;
    color: #555;
}

/* -------------------- Section Expériences -------------------- */
#experiences {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

#experiences h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.experience {
    display: inline-block;
    width: 45%;
    margin: 10px 2.5%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.experience blockquote {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.experience cite {
    font-size: 1em;
    font-weight: bold;
    color: #007BFF;
}

.experience img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 768px) {
    .service-item {
        width: 80%;
        margin: 10px auto;
    }

    .experience {
        width: 80%;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    #publicite h1 {
        font-size: 2em;
    }

    .service-item {
        width: 90%;
    }

    .experience {
        width: 90%;
    }
}

/* -------------------- Header avancé -------------------- */
header {
    background-color: #007BFF;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#logo {
    display: flex;
    align-items: center;
}

#logo .logo-img {
    width: 50px;
    margin-right: 15px;
    transition: transform 0.3s ease-in-out;
}

#logo h1 {
    font-size: 2rem;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

#logo:hover .logo-img {
    transform: rotate(360deg);
}

#logo:hover h1 {
    color: #FFD700;
}

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

nav ul li {
    margin-right: 30px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFD700;
}

nav ul li a {
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    nav ul li {
        margin: 10px 0;
    }

    #logo h1 {
        font-size: 1.5rem;
    }
}
#formations {
    padding: 50px 20px;
    text-align: center;
}

.formation-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.formation {
    background-color: #fff;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.formation:hover {
    transform: translateY(-5px);
}

.formation h3 {
    margin-bottom: 15px;
    color: #007BFF;
}

.formation ul {
    list-style: disc;
    text-align: left;
    padding-left: 20px;
}
#details-formation {
    padding: 50px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.formation-detail {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-in-out;
}

.formation-detail img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
}

.formation-detail h2 {
    font-size: 2em;
    color: #007BFF;
    margin-bottom: 15px;
}

.formation-detail h3 {
    margin-top: 25px;
    color: #333;
}

.formation-detail ul {
    margin-left: 20px;
    list-style: disc;
    color: #555;
}

.formation-detail p {
    font-size: 1.1rem;
    color: #444;
    margin-top: 10px;
}

.flyer-highlight {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.flyer-container h2 {
    color: #228B22;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.flyer-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    max-height: 600px;
}

.flyer-container img:hover {
    transform: scale(1.03);
}

.flyer-container .cta-button {
    margin-top: 20px;
    display: inline-block;
}
@media screen and (max-width: 768px) {
    .flyer-container h2 {
        font-size: 1.4em;
        padding: 0 10px;
    }

    .flyer-container img {
        max-height: 400px;
        width: 100%;
        height: auto;
    }

    .flyer-container .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}
.social-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-buttons a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.social-buttons .whatsapp {
    background-color: #25D366;
}

.social-buttons .facebook {
    background-color: #1877F2;
}

.social-buttons .instagram {
    background: linear-gradient(45deg, #feda75, #d62976, #962fbf, #4f5bd5);
}

.social-buttons a:hover {
    opacity: 0.8;
}
