/* loovidra_agency/website/static/website/css/style.css */

/* --- 1. VARIABLES & RESET --- */
:root {
    --primary-color: #0A1128; /* Bleu Nuit */
    --accent-color: #d7ad60;  /* Or Ambré */
    --btn-gradient: linear-gradient(to right, #d7ad60, #dec085);
    --whatsapp-color: #25D366;
    --text-color: #333333;
    --light-bg: #F9FAFB;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 18px; } /* Taille de base confortable */

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 2. HEADER & NAVIGATION --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LE LOGO (IL EST ICI MAINTENANT - VISIBLE PARTOUT) --- */
.logo {
    display: inline-block;
    font-size: 1.5rem;       /* TAILLE CORRIGÉE */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase; /* MAJUSCULES FORCÉES */
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation au survol */
.logo:hover {
    transform: translateY(-3px) scale(1.05);
}

.agency-tag {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.8em; /* 60% de la taille du logo */
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Animation survol du tag */
.logo:hover .agency-tag {
    color: var(--accent-color);
    text-shadow: none; 
}

/* --- NAVIGATION LINKS --- */
.nav-links { display: flex; gap: 30px; align-items: center; }

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-color); }

.btn-nav {
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 5px;
}
.btn-nav:hover { background-color: var(--primary-color); color: var(--white) !important; }

/* --- 3. HERO SECTION --- */
.hero {
    /* Image de fond gérée ici pour la sécurité */
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    height: 600px;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    color: var(--white);
    position: relative;
    text-align: center;
	text-shadow: 2px 2px 3px #000000; 
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    opacity: 1;
	text-shadow: 1px 1px 3px #000000;
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- 4. BOUTONS --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(to right, #d7ad60, #dec085);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(215, 173, 96, 0.3); 
}

.btn-primary:hover {
    background: linear-gradient(to right, #e3bd72, #ebd5a0);
    box-shadow: 0 6px 20px rgba(215, 173, 96, 0.5);
    color: #091521; /* Texte sombre au survol */
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-secondary:hover { background-color: var(--white); color: var(--primary-color); }

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white);
    font-size: 1.1rem;
    padding: 15px 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- 5. SECTIONS COMMUNES --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 3rem; color: var(--primary-color); }
.bg-light { background-color: var(--light-bg); }

/* --- 6. GRIDS --- */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;

    /* CORRECTION : 325px permet de faire tenir 3 cartes sur la ligne */
    /* Calcul : (325px * 3 cartes) + (30px * 2 espaces) = 1035px */
    /* Ça rentre parfaitement dans ton conteneur de 1100px */
    flex: 0 1 325px; 
    
    max-width: 100%;
}

.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.project-info { padding: 20px; }
.project-info h3 { margin-bottom: 10px; color: var(--primary-color); }
.project-info p { font-size: 0.95rem; color: #64748b; margin-bottom: 15px; }
.btn-text { color: var(--accent-color); font-weight: 600; font-size: 0.9rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature { padding: 20px; }
.feature h3 { margin-bottom: 15px; color: var(--primary-color); }

/* --- 7. FOOTER --- */
.contact-section { text-align: center; background-color: var(--light-bg); border-top: 1px solid #e2e8f0; }
.contact-sub { margin-top: 20px; color: #64748b; font-size: 0.9rem; }
footer { background-color: var(--primary-color); color: var(--white); text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* --- 8. MOBILE RESPONSIVE --- */
/* --- 8. MOBILE RESPONSIVE & HAMBURGER --- */

/* 1. Configuration du bouton Hamburger (Caché sur PC) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* 2. Configuration Mobile (Uniquement écrans < 768px) */
@media (max-width: 768px) {
    
    /* On force l'affichage du Hamburger sur mobile */
    .hamburger {
        display: block;
        z-index: 2000;
        
        /* AJOUTS POUR LE COLLER À DROITE : */
        position: absolute; /* Le sort du flux normal */
        right: 20px;        /* Le colle à 20px du bord droit */
        top: 28px;          /* L'ajuste verticalement (pour un header de 80px) */
    }

    /* On transforme le menu en panneau latéral coulissant */
    .nav-links {
        /* On enlève le "display: none" qui bloquait tout */
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%); /* Caché à droite par défaut */
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding-top: 50px;
    }

    /* Classe active (ajoutée par le JS) pour ouvrir le menu */
    .nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }

    .nav-links a {
        color: var(--white);
        font-size: 1.2rem;
    }

    /* Ajustements typo existants */
    .hero-content h1 { font-size: 2rem; }
    .logo { font-size: 1.3rem; }

    /* Animation du bouton en X */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--accent-color); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--accent-color); }
}



/* --- 9. SECTION TARIFS (PRICING) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

/* Mise en avant du niveau PREMIUM (Le plus vendu) */
.pricing-card.featured {
    border: 2px solid var(--accent-color);
    background-color: #fffcf5; /* Légèrement doré */
}

.badge-featured {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    position: absolute;
    top: 0;
    right: 0;
    border-bottom-left-radius: 10px;
    text-transform: uppercase;
}

.price-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.price-tag span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #64748b;
}

.price-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.price-features li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.payment-info {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #cbd5e1;
}

.payment-info strong {
    color: var(--primary-color);
}



/* --- 10. TABLEAU COMPARATIF (PAGE SERVICES) --- */
.comparison-section {
    padding: 60px 0;
    background-color: var(--white);
    overflow-x: auto; /* Pour le mobile */
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #f8fafc;
    width: 25%;
}

.comparison-table tr:hover {
    background-color: #f1f5f9;
}

/* --- 11. PROCESS STEPS --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.step-number {
    background-color: var(--accent-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 15px auto;
}



/* --- 12. BANNIÈRES INTERNES (HERO PAGES) --- */
/* LOOVIDRA/loovidra_agency/website/static/website/css/style.css */

/* --- 12. BANNIÈRES INTERNES (HERO PAGES) --- */
.page-header {
    /* Hauteur fixe pour les pages internes (moins haut que l'accueil) */
    height: 400px; 
    
    /* Centrage du contenu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    
    /* Gestion de l'image de fond */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Marge en bas pour décoller du contenu */
    margin-bottom: 0; 
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    
    /* MODIFICATION ICI : Ombre noire, dense et proche */
    text-shadow: 2px 2px 3px #000000; 
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    padding: 0 20px;
    
    /* MODIFICATION ICI : On enlève la transparence (opacity: 1) et on ajoute l'ombre */
    opacity: 1; 
    text-shadow: 1px 1px 3px #000000;
}


/* --- 13. STYLE SPÉCIFIQUE PAGE "WHY US" --- */

/* Les Cartes Caractéristiques (plus sophistiquées que l'accueil) */
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent-color);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: #fffcf5; /* Fond très léger doré */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Section Confiance / Promise layout */
.trust-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .trust-container {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}

.check-list li {
    margin-bottom: 25px;
    padding-left: 0;
    list-style: none;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
}

.check-list strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.check-list span {
    color: #64748b;
    font-size: 0.95rem;
}



/* --- 14. STYLE PAGE PORTFOLIO (WORK) --- */

.btn-filter {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.level-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.empty-state {
    text-align: center;
    padding: 40px;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    color: #94a3b8;
}

/* --- ÉLÉMENTS FLOTTANTS LOOVIDRA --- */

/* Bouton WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999; /* Pour passer au-dessus de tout */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* loovidra_agency/website/static/website/css/style.css */

/* --- ASCENSEUR (Back to Top) --- */
#backToTop {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 99;
    width: 60px;
    height: 55px;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    padding: 0;
    
    /* État initial : Invisible */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}

/* État quand on scrolle : Visible */
#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Effet au survol */
#backToTop:hover {
    transform: translateY(-8px) scale(1.05);
}

/* L'unique définition de l'animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

