/* assets/css/style.css */

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f9f4;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Écran de chargement */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeOut 3s forwards;
}

.loading-screen img {
    width: 150px;
    height: auto;
    animation: spin 2s linear infinite;
}

.loading-screen p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-top: 20px;
    animation: fadeIn 2s ease-in-out;
}

/* Header */
header {
    background-color: #28a745;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

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

header .logo img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Section Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    background-color: #e9f5e9;
}

.hero-content {
    max-width: 50%;
    padding: 20px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #28a745;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #218838;
}

.hero-image img {
    width: 50%;
    height: auto;
    border-radius: 10px;
}

/* Section À Propos */
.about {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #28a745;
}

.about p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.about-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about-images img {
    width: 30%;
    height: auto;
    border-radius: 10px;
}

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

.service-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.card h3 {
    font-size: 1.2rem;
    margin: 15px 0;
    color: #28a745;
}

.card p {
    font-size: 1rem;
}

/* Section Vidéo */
.video-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
}

.video-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #28a745;
}

.video-container iframe {
    width: 80%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* Section Contact */
.contact {
    text-align: center;
    padding: 50px 20px;
    background-color: #e9f5e9;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #28a745;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact button {
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #218838;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}