/* ============================================================
   1. VARIABLES & POLICES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Sofia&display=swap');

:root {
    --deep-plum: #4a2c3a;        /* Prune foncé */
    --main-rose: #d6a4bc;        /* Rose lotus */
    --soft-blue: #4da3d4;        /* Bleu ciel doux */
    --bg-light: #ffe6ef;         /* Fond rosé */
    --white: #ffffff;
    --accent-gold: #c5a059;      /* Doré */
    
    --shadow-soft: 0 10px 30px rgba(74, 44, 58, 0.05);
    --shadow-hover: 0 20px 50px rgba(74, 44, 58, 0.12);
    --radius-lg: 40px;
}

/* ============================================================
   2. GLOBAL & RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--deep-plum);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   3. NAVIGATION (HEADER)
   ============================================================ */
.header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.nav-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-site {
    text-decoration: none;
    color: var(--deep-plum);
    font-weight: 800;
    font-size: 1.4rem;
    font-family: 'dancing script', cursive;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--deep-plum);
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover { color: var(--main-rose); }

.header-badge {
    height: 60px;
    width: auto;
}

/* ============================================================
   4. SECTION HERO (PAGE D'ACCUEIL)
   ============================================================ */
.hero {
    background: var(--deep-plum);
    color: white;
    /* On enlève le padding vertical pour que le conteneur gère la hauteur */
    padding: 0 20px; 
    position: relative;
    overflow: hidden; /* Empêche l'image de faire scroller la page horizontalement */
}

/* Conteneur parent relatif pour positionner les éléments absolus */
.hero-relative {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    /* Hauteur minimale pour garantir l'espace nécessaire */
    min-height: 600px; 
}

/* --- Bloc de texte positionné à gauche --- */
.hero-text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 60%; /* Empêche le texte de prendre toute la largeur */
    z-index: 5; /* Place le texte sous l'image si elles se chevauchent */
    font-family: "Dancing Script", cursive;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-text h2 {
    font-size: 2.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Bouton d'appel à l'action */
.hero-cta-button {
    display: inline-block;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid var(--main-rose);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: 0.3s;
}

.hero-cta-button:hover {
    background: var(--white);
    color: var(--deep-plum);
}

/* --- Image qui empiète sur la droite --- */
.hero-logo-overlap {
    position: absolute;
    right: -50px; /* Fait sortir l'image à droite du conteneur */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Passe au-dessus du texte pour l'effet de chevauchement */
    text-align: right;
}

.main-hero-logo {
    height: 350px; /* Grande taille pour l'image */
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================================
   5. TEXTES D'INTRODUCTION
   ============================================================ */
.section-p {
    font-family: 'Dancing Script', cursive;
    color: var(--deep-plum);
    padding: 40px 20px 10px;
    text-align: center;
}

.section-hero {
    font-family: 'Dancing Script', cursive;
    color: var(--deep-plum);
    text-align: center;
    padding: 10px 20px;
}

.section-phrase {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Sofia Sans', cursive;
    font-size: 1.4rem;
    color: var(--deep-plum);
}

.section-li {
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding-left: 20px;
    font-family: 'Sofia Sans', cursive;
    color: var(--deep-plum);
    text-align: center;
}

.section-h3 {
    text-align: center;
    margin: 40px 0;
    font-family: 'Sofia Sans', cursive;
    font-size: 1.8rem;
    font-weight: 400;
}

/* ============================================================
   6. GRILLE DE SERVICES
   ============================================================ */
.section { padding: 30px 20px; }

.section-title {
    text-align: center;
    font-family: "Dancing Script", cursive;
    margin-bottom: 50px;
    font-size: 3.8rem;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.service-box {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), var(--bg-image);
    background-size: cover;
    background-position: center;
    transition: 0.4s;
    padding: 20px;
}

.service-box:hover {
    transform: translateY(-10px);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), var(--bg-image);
}

.service-content {
    color: white;
    text-align: center;
    z-index: 2;
}

.service-content h3 {
    font-family: "Dancing Script", cursive;
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.cta-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: "Sofia Sans", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ============================================================
   7. FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--deep-plum);
    color: white;
    padding: 40px 5%;
    border-top: 4px solid var(--accent-gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-image img { height: 80px; }

.footer-info p {
    margin: 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ============================================================
   8. RESPONSIVE (MOBILE ET TABLETTE)
   ============================================================ */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .hero-text h2 { font-size: 2.2rem; }
    .main-hero-logo { height: 450px; }
}

@media (max-width: 900px) {
    .hero {
        padding: 60px 20px;
    }
    .hero-relative {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Sur mobile, on remet le texte et l'image dans le flux normal */
    .hero-text {
        position: static;
        transform: none;
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-logo-overlap {
        position: static;
        transform: none;
        right: auto;
        text-align: center;
    }

    .main-hero-logo { height: 300px; }

    .hero-text h1 { font-size: 3rem; }
    
    .services-grid { grid-template-columns: 1fr; }

    .footer-container { flex-direction: column; text-align: center; }
}