/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

main {
    flex: 1; 
    padding-top: 60px; 
    padding-bottom: 60px;
}


.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
     font-family: 'Merriweather', serif;
     color: #003366; 
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
}

h3 {
     font-size: 1.5em;
     margin-bottom: 10px;
}

a {
    color: #0056b3; 
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e7e7e7;
    z-index: 1000;
}

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

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

header .logo img {
    height: 50px; 
    margin-right: 15px;
}


header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #003366;
}
/* Style for logo link */
.logo-link {
    color: inherit; 
    text-decoration: none;
}
.logo-link:hover {
    text-decoration: none; 
}


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

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

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding: 5px 0; 
    border-bottom: 2px solid transparent; 
}

header nav ul li a:hover,
header nav ul li a.active 
{
    color: #0056b3;
    text-decoration: none;
    border-bottom: 2px solid #0056b3; 
}


/* Hero Section (Home Page) */
#hero {
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('hero_background.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

#hero h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #fff;
}

#hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #d4a017; 
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: inline-block; 
    margin-top: 10px; 
}


.cta-button:hover {
    background-color: #b38600; 
    text-decoration: none;
    color: #fff;
}

/* Intro Section (Home Page) */
#intro {
    background-color: #f8f9fa; 
    padding: 60px 0;
    text-align: center;
}

#intro p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
}

#intro .quick-links {
    margin-top: 30px;
}

.quick-link-button {
     background-color: #003366; 
     color: white;
     padding: 12px 25px;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     font-size: 1em;
     font-weight: bold;
     text-decoration: none;
     transition: background-color 0.3s ease;
     margin: 0 10px;
}

.quick-link-button:hover {
    background-color: #002244; 
    color: white;
    text-decoration: none;
}


/* Page Specific Sections */
.page-header {
    background-color: #e7f0f7; 
    padding: 30px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h2 {
    margin-bottom: 0;
    color: #003366;
}


/* Services Section Styling (Used on services.html) */
.service-list { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item { 
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

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

.service-item img {
    width: 80px; 
    height: 80px;
    margin-bottom: 20px;
}

/* Tarifs Section Styling (Used on tarifs.html) */
.tarifs-intro p { 
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.pricing-options { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.option { 
    border: 1px solid #ddd;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    background-color: #fff;
}

.option h3 { 
    margin-top: 0;
}

.price { 
    font-size: 1.4em;
    font-weight: bold;
    color: #003366;
    margin-top: 15px;
}

.tarifs-outro p {
    text-align: center;
    font-style: italic;
    color: #555;
}


/* Contact Section Styling (Used on contact.html) */
.contact-grid { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info { 
    background-color: #e7f0f7; 
    padding: 30px;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-form-container { 
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#contact-form h3 { 
    margin-top: 0;
    text-align: center;
    margin-bottom: 25px;
}

#contact-form label { 
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

#contact-form textarea {
    resize: vertical;
}

#contact-form button[type="submit"] {
     background-color: #003366; 
     color: white;
     padding: 14px 25px;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     font-size: 1.1em;
     font-weight: bold;
     width: 100%;
     transition: background-color 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    background-color: #002244; 
}

#form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}


/* Footer */
footer {
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto; 
}

footer p {
    margin: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center; 
    }
    header .logo {
        margin-bottom: 10px; 
    }


    header nav {
        margin-top: 15px;
    }

     header nav ul {
        justify-content: center;
        flex-wrap: wrap; 
    }

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

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

    .contact-grid { 
        grid-template-columns: 1fr; 
    }

    .contact-info { 
        margin-bottom: 30px;
    }

    .pricing-options { 
         grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
     header h1 {
        font-size: 1.5em;
    }
     header .logo img {
        height: 40px;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.3em;
    }
    .service-list { 
        grid-template-columns: 1fr;
    }
     #hero {
        padding: 60px 0;
    }
    #hero h2 {
        font-size: 1.9em;
    }
    #hero p {
        font-size: 1em;
    }
    .cta-button, .quick-link-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .contact-grid {
        gap: 20px;
    }
    .contact-info, .contact-form-container {
        padding: 20px;
    }
    #contact-form input[type="text"],
    #contact-form input[type="email"],
    #contact-form input[type="tel"],
    #contact-form textarea {
        padding: 10px;
    }
     #contact-form button[type="submit"] {
         padding: 12px 20px;
    }

}