/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Header Styles */
header {
    background-color: #28a745; /* Vert vibrant */
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 1px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

header nav ul li a:hover {
    color: #e0f2f1; /* Teinte plus claire de vert */
    transform: translateY(-2px);
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('https://via.placeholder.com/1600x800?text=Image+Hero+Trottinette') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 150px 20px;
    height: 70vh; /* Adjust height for visual appeal */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.button {
    background-color: #007bff; /* Bleu pour les boutons d'action */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none; /* For links styled as buttons */
    display: inline-block; /* For links styled as buttons */
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    background-color: white;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

section h2 {
    text-align: center;
    font-size: 2.8em;
    color: #28a745;
    margin-bottom: 50px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #28a745;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
#about .about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

#about .about-text {
    flex: 1;
    font-size: 1.1em;
}

#about .about-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#about .about-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tariffs Section */
#tariffs .tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.tariff-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.tariff-card h3 {
    color: #28a745;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.tariff-card .price {
    font-size: 2.5em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

.tariff-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.tariff-card ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.tariff-card ul li::before {
    content: '✓';
    color: #28a745;
    margin-right: 10px;
}

.tariff-note {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: #555;
}

/* Contact Section */
#contact .contact-info {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
}

#contact .contact-info p {
    margin: 10px 0;
}

#contact .contact-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

#contact .contact-info a:hover {
    text-decoration: underline;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-form h3 {
    text-align: center;
    color: #28a745;
    margin-bottom: 30px;
    font-size: 2em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button.button,
.registration-form button.button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 5px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

footer .footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #28a745;
}

/* Modal Styles (for registration) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 40px;
    border: 1px solid #888;
    width: 90%; /* Could be more responsive */
    max-width: 600px; /* Max width for larger screens */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: slideIn 0.4s ease-out;
}

.modal-content h2 {
    text-align: center;
    color: #28a745;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

.registration-form .form-group {
    margin-bottom: 18px;
}

.registration-form .button {
    margin-top: 20px;
}

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

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

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

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

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

    #hero h2 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1.1em;
    }

    .section-padding {
        padding: 50px 0;
    }

    section h2 {
        font-size: 2.2em;
    }

    #about .about-content {
        flex-direction: column;
    }

    #about .about-images {
        grid-template-columns: 1fr;
    }

    .tariff-card {
        padding: 20px;
    }

    .tariff-card .price {
        font-size: 2em;
    }

    .modal-content {
        margin: 10% auto;
        padding: 25px;
    }
}

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

    #hero h2 {
        font-size: 2em;
    }

    #hero p {
        font-size: 1em;
    }

    section h2 {
        font-size: 1.8em;
    }

    .button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9em;
    }
}