@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

:root {
    --bg-dark: #2f4d3b;       /* Vert quasi noir pour le fond principal */
    /* --bg-section: #142b20;    Vert mousse profond pour les sections et cartes */
    --primary-green: #38423d; /* Vert forêt pour les éléments interactifs */
    --accent-gold: #c5a059;   /* Or vieilli pour les boutons et détails */
    --text-main: #e0e7e1;     /* Blanc cassé avec une pointe de vert */
    --text-muted: #c8e0cf;    /* Texte secondaire grisé-vert */
     --bg-section: #685f46;
    
}

body {
    font-family: "Nunito", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    /* font-family: 'Playfair Display', serif; Si tu as choisi le duo élégant */
    line-height: 1.6;
    margin: 0;
}

h1 {
    font-weight:700;
}

h1, h2, h3
{ font-family: "Nunito", sans-serif; 
    letter-spacing: 2px; 
    
 }

 

/* Au tout début du fichier, dans le sélecteur html */
html {
    scroll-behavior: smooth;
}

/* Animation de fondu à l'entrée de la page */
body  {
    animation: fadeInPage 1.5s ease-in-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style du bouton "Retour en haut" */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: 0.3s;
    z-index: 1000;
}

#backToTop:hover {
    transform: scale(1.1);
    background-color: var(--primary-green);
}



/* Variables de mise en page */
.container {
    background-color: var(--bg-dark);
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.bg-light { 
     background-color: var(--bg-dark); }

/* nouvelle section hero  */
/* Section Hero */
.hero {
    position: relative; /* Nécessaire pour positionner le flou */
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden; /* Empêche le flou de déborder sur les côtés */
}

/* On crée une couche spécifique pour l'image floutée */
.hero::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    
    /* Remplace par image accueil*/
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../assets/accueil.jpg') center/cover no-repeat;
    
    /* L'effet de flou */
    filter: blur(2px); 
    
    /* On agrandit légèrement l'image pour éviter les bords blancs dus au flou */
    transform: scale(1.1); 
    z-index: 1;
}

/* On s'assure que le texte reste au-dessus du flou */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0px 20px;
   

}




.hero h1 { font-size: 3rem; margin-bottom: 20px; }

/* Boutons */


.btn-outline{
    background-color: var(--bg-section);
    color: white;
    margin-top: -30px ;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    text-decoration:none;
}
.btn-main {
    display: inline-block; /* INDISPENSABLE pour que les marges haut/bas fonctionnent */
    margin-top: 30px;      /* Ajuste la valeur selon tes goûts */
    
    /* Tes autres styles (couleurs, padding, etc.) */
    background-color: var(--bg-section);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
}

.btn-main:hover { 
    background-color: var(--bg-dark);
    
}

/* Grille de bénéfices */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #708078 !important; /* Un vert un poil plus clair que le fond */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}


   .icon svg {
        width: 50px;
        height:50px;
       

    }
/* Style du Header & Navigation */
header {
    text-transform: uppercase;
    background-color: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

.logo {
    width:  100px;           /* Largeur de ton logo */
    height: 100px;           /* Hauteur de ton logo */
    background-image: url('../assets/logo.png');
    background-size: contain;    /* Pour que le logo ne soit pas coupé */
    background-repeat: no-repeat;
    background-position: center;
}

header ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

header ul li a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Effet au survol (Hover) */
header ul li a:hover {
    color: var(--accent-color);
}

/* La petite barre sous l'onglet au survol */
header ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

header ul li a:hover::after {
    width: 100%;
}

/* Style pour l'onglet de la page active */
header ul li a.active {
    color: var(--text-main);
    font-weight: 700;
}

header ul li a.active::after {
    width: 100%;
}

/* Page Services */
.subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 40px;
}

.service-item {

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10px;
    border-radius: 10px;
    margin: 20px 0;
    background: rgba(255, 238, 0, 0.3);
    padding: 25px;
    /* border: 1px solid rgba(255, 255, 255, 0.5); */
    text-align: left;
    box-shadow: 0 5px 9px rgba(0,0,0,0.5);
    color: var(--text-main);


}

.service-text { 
    flex: 2; 
    margin-left:30px;
 }
.service-text h2 {
     color: var(--primary-color); 
     margin-top: 0;
     }
.service-text ul 
{   list-style-type:none;
    padding-left: 20px; 
    color: #c5e4ce; 
    
}


.service-price {
    flex: 1;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-main);
    text-align: right;
    margin-right:30px;
}

/* hr { border: 0; border-top: 1px solid #eee; margin: 0; } */

/* Grille d'infos pratiques */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-box {
    border-radius: 12px;
    background: var(--bg-dark);
    padding: 25px;
    /* border: 1px solid rgba(255, 255, 255, 0.5); */
    text-align: left;
    box-shadow: 0 5px 9px rgba(0,0,0,0.3);
    color: var(--text-main);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    .service-price {
        text-align: center;
        margin-top: 20px;
    }
}
/* Mise en page Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}

.contact-info {
    flex: 1;
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
     color: var(--accent-color); 
     margin-top: 0; 
    }

.contact-form {
    flex: 2;
}

/* Style des champs du formulaire */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Alertes de confirmation/erreur */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Mobile */
@media (max-width: 768px) {
    .contact-wrapper { flex-direction: column; }
}


/* Grille du Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.blog-card {
    background:var(--primary-green);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    width: 100%;           /* Prend toute la largeur de sa carte */
    height: 250px;         /* Hauteur fixe pour que toutes les vignettes soient égales */
    object-fit: cover;     /* TRÈS IMPORTANT : recadre l'image sans l'écraser */
    display: block;        /* Évite les espaces bizarres en dessous */
    border-radius: 8px 8px 0 0; /* Arrondi seulement les coins du haut si tu veux */
}

.category-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.blog-content {
    /** background: rgba(217, 224, 218, 0.4);**/
    padding: 25px;
}

.blog-date {
    font-size: 0.85rem;
    color: #999;
}

.blog-content h2 {
    font-size: 1.3rem;
    margin: 10px 0;
    color: var(--primary-color);
}

.blog-content p {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}


/* Style du Footer */
footer {
    background:var(--bg-dark);
    color: #ecf0f1;
    padding-top: 60px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left; /* On aligne à gauche pour les colonnes */
    padding-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-weight: bold;
    border: 1px solid #bdc3c7;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Bande de copyright tout en bas */
.footer-bottom {
    background:var(--bg-dark);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    /* border-top: 1px solid #34495e; */
}

.footer-bottom a {
    color: #bdc3c7;
}

/* Ajustement mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.article-body {
    text-align: left;
    color: var(--text-main);
}

.article-body ul, .article-body ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%; /* Évite que les photos de ton ami ne dépassent du site */
    height: auto;
    border-radius: 8px;
}
/* On cible toutes les images qui se trouvent DANS le contenu de l'article */
.article-content img {
    max-width: 100% !important; /* Le !important force la priorité sur les réglages de l'éditeur */
    height: auto !important;
    margin: 10px 0;
}