/* --- VARIABLES DE COULEURS --- */
:root {
    --bleu-principal: #0D3B66;
    --jaune-dore: #F2C94C;
    --blanc: #FFFFFF;
    --gris-clair: #F8F9FA;
    --gris-texte: #555555;
    --gris-fonce: #333333;
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gris-texte);
    background-color: var(--blanc);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--bleu-principal);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--gris-clair);
}

.text-center {
    text-align: center;
}

/* --- BOUTONS --- */
.btn-primary {
    display: inline-block;
    background-color: var(--jaune-dore);
    color: var(--gris-fonce); /* Texte sombre, comme dans le design */
    padding: 12px 30px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid var(--jaune-dore);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--jaune-dore);
}

/* --- NAVIGATION --- */
header {
    background-color: var(--blanc);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px; /* Ajuster la taille */
}

.brand-text {
    font-family: 'Playfair Display', serif; /* Police serif pour la marque, comme dans le design */
    font-size: 20px;
    font-weight: 400; /* Plus fin, comme dans le design */
    text-transform: uppercase;
    color: var(--bleu-principal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--bleu-principal);
    font-weight: 600;
    text-transform: capitalize; /* Casse de titre, comme dans le design */
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--jaune-dore);
}

.btn-nav {
    background-color: var(--jaune-dore);
    color: var(--gris-fonce) !important;
    padding: 8px 20px;
    border-radius: 5px;
}

.btn-nav:hover {
    background-color: transparent;
    color: var(--jaune-dore) !important;
}

.burger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--bleu-principal);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: url('images/water-bg.jpg?v=1') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px; /* Compense le header */
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1; /* Très subtil, comme dans le design */
    z-index: 1;
}

.hero-watermark img {
    width: 300px; /* Ajuster la taille */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 38, 66, 0.6); /* Superposition bleu marine sombre */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--blanc);
}

.hero-content h1 {
    color: var(--blanc);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem; /* Ajuster la taille */
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.highlight-box {
    color: var(--gris-fonce);
    background-color: var(--jaune-dore);
    padding: 0 10px;
    display: inline-block; /* Garde le fond uni */
}

/* --- SECTION COMMUNES --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--jaune-dore);
    margin: 0 auto 30px auto;
}

.divider-left {
    height: 3px;
    width: 60px;
    background-color: var(--jaune-dore);
    margin: 10px 0 30px 0;
}

/* --- ENGAGEMENT --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item i {
    font-size: 40px;
    color: var(--jaune-dore);
    margin-bottom: 15px;
}

/* --- À PROPOS --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--blanc);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--jaune-dore);
    box-shadow: 0 10px 20px rgba(13, 59, 102, 0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--gris-clair);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 30px;
    color: var(--bleu-principal);
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background-color: var(--bleu-principal);
    color: var(--jaune-dore);
}

/* --- CONTACT --- */
.contact-section {
    background-color: var(--bleu-principal);
    color: var(--blanc);
}

.contact-section h2 {
    color: var(--blanc);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info ul {
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--jaune-dore);
    font-size: 1.5rem;
}

.contact-form {
    background: var(--blanc);
    padding: 40px;
    border-radius: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--bleu-principal);
}

/* --- FOOTER --- */
footer {
    background-color: #08223a; /* Même que la superposition hero, ou plus sombre */
    color: var(--blanc);
    padding: 50px 0 20px 0;
    text-align: center;
}

.footer-logo img {
    height: 60px; /* Ajuster la taille */
    margin-bottom: 10px;
}

.footer-social {
    margin: 20px 0;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    line-height: 40px;
    margin: 0 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--jaune-dore);
    color: var(--bleu-principal);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #bbb;
}

/* --- ANIMATIONS AU SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* À remplacer par un menu JS au clic en prod */
    }
    
    .burger-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-watermark img {
        width: 200px;
    }

    .features-grid,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
}

/* --- AVIS CLIENTS (SLIDER) --- */
.testimonial-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

/* Effet de fondu blanc sur les côtés pour adoucir l'entrée et la sortie */
.testimonial-slider::before,
.testimonial-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}
.testimonial-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.testimonial-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* L'animation dure 25 secondes. Plus le chiffre est grand, plus ça défile lentement */
    animation: scroll-testimonials 25s linear infinite; 
}

/* Le défilement se met en pause quand on passe la souris dessus pour pouvoir lire */
.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: var(--gris-clair);
    width: 350px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    flex-shrink: 0;
    border-top: 4px solid var(--jaune-dore);
}

.stars {
    color: var(--jaune-dore);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--gris-texte);
    line-height: 1.7;
}

.client-name {
    color: var(--bleu-principal);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.client-role {
    font-size: 0.85rem;
    color: #888;
}

/* Calcul du défilement (4 cartes de 350px + 4 espaces de 30px = 1520px) */
@keyframes scroll-testimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1520px); } 
}

/* Responsive Mobile pour les avis */
@media screen and (max-width: 768px) {
    .testimonial-card {
        width: 280px;
        padding: 20px;
    }
    @keyframes scroll-testimonials {
        0% { transform: translateX(0); }
        100% { transform: translateX(-1240px); } /* 4 cartes de 280px + 4 espaces de 30px */
    }
}

/* --- RÉALISATIONS (PORTFOLIO) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1; /* Magique : Force le bloc à être un CARRÉ PARFAIT */
}

.portfolio-item img {
    width: 100%;
    height: 100%; /* L'image remplit tout le carré */
    object-fit: cover; /* L'image se recadre proprement sans se déformer */
    display: block;
    transition: transform 0.5s ease;
}

/* ... Le reste du CSS pour le overlay (le voile bleu) ne change pas ... */

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 38, 66, 0.85); /* Bleu marine presque opaque */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-overlay h3 {
    color: var(--jaune-dore);
    font-size: 1.4rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    color: var(--blanc);
    font-size: 1rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

/* Effets au survol */
.portfolio-item:hover img {
    transform: scale(1.1); /* Zoom léger de l'image */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; /* Le voile bleu apparaît */
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0); /* Le texte glisse vers le haut */
}

/* --- RESPONSIVE MOBILE : RÉALISATIONS --- */
@media screen and (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* Passe à 1 seule colonne (les unes sous les autres) */
        gap: 20px; /* Réduit l'espace géant entre les images pour le téléphone */
        padding: 0 20px; /* Ajoute une petite marge pour ne pas coller aux bords de l'écran */
    }
}

/* --- FORMULAIRE D'AVIS --- */
.review-form-container {
    max-width: 600px;
    margin: 50px auto 0 auto;
    background: var(--blanc);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--bleu-principal);
}

.review-form-container h3 {
    color: var(--bleu-principal);
    margin-bottom: 5px;
}

.review-form-container p {
    font-size: 0.9rem;
    color: var(--gris-texte);
    margin-bottom: 20px;
}

.review-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.review-form input:focus,
.review-form textarea:focus {
    border-color: var(--jaune-dore);
}

/* Le système d'étoiles interactives (Astuce CSS pure) */
.rating-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--gris-fonce);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Inversion pour l'effet de survol */
    justify-content: center;
}

.star-rating input {
    display: none; /* On cache les vrais boutons radio */
}

.star-rating label {
    color: #ccc;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 3px;
}

/* Colore les étoiles quand on clique ou qu'on survole */
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--jaune-dore);
}

.review-form .btn-submit {
    width: 100%;
    background: var(--bleu-principal);
    color: var(--blanc);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.review-form .btn-submit:hover {
    background: var(--jaune-dore);
    color: var(--bleu-principal);
}

/* Mobile */
@media screen and (max-width: 768px) {
    .review-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- MESSAGES DE NOTIFICATION DU FORMULAIRE --- */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none; /* Totalement invisible par défaut */
    font-size: 0.95rem;
    animation: fadeIn 0.5s ease-in-out;
}

/* Design du message de succès */
.form-message.success {
    display: block;
    background-color: #d4edda; /* Fond vert clair pastel */
    color: #155724; /* Texte vert foncé lisible */
    border: 1px solid #c3e6cb;
}

/* Design du message d'erreur */
.form-message.error {
    display: block;
    background-color: #f8d7da; /* Fond rouge clair pastel */
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Petit effet au survol de la souris sur ordinateur */
.phone-link:hover {
    color: var(--jaune-dore); 
}

/* --- LIEN TÉLÉPHONE (SECTION CONTACT) --- */
.phone-link {
    text-decoration: none; /* Enlève le soulignement classique des liens */
    color: #ffffff; /* Force la couleur blanche pour correspondre à l'adresse et l'email */
    font-weight: normal; /* Enlève le gras pour être identique aux autres textes */
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--jaune-dore); /* Le texte devient jaune au survol (ajustez si votre variable porte un autre nom) */
}

/* --- ESPACEMENT DE LA LIGNE TÉLÉPHONE --- */
.phone-line {
    margin-bottom: 15px; /* C'est ça qui crée l'espace en dessous ! Vous pouvez augmenter à 20px si besoin */
}