/* Variables de couleurs */
:root {
    --primary-blue: #0056b3;
    --ice-blue: #e3f2fd;
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-grey);
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

header nav ul li a:hover {
    color: var(--ice-blue);
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.5); /* Assombrit l'image pour que le texte blanc ressorte bien */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    color: var(--white);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Ajoute de la lisibilité au texte blanc */
}

.hero p {
    color: var(--white);
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
}

.btn:hover, .btn-submit:hover {
    background-color: #004494;
}

/* Sections communes */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-weight: bold;
    border-top: 4px solid var(--primary-blue);
}

/* Formulaires */
.form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Contact Info */
.contact-info {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer a {
    color: var(--ice-blue);
    text-decoration: none;
}

/* =========================================
   POP-UP COOKIES
   ========================================= */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-content a {
    color: var(--ice-blue);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--white);
}

.btn-cookie {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background-color: #004494;
}