/* --- VARIABLES ET STYLES DE BASE --- */
:root {
    --primary-blue: #007BFF;
    --primary-yellow: #FFC107;
    --whatsapp-green: #25D366; 
    --icon-yes-color: #28a745;
    --icon-no-color: #dc3545;
    --dark-bg: #1a1a2e;
    --dark-bg-secondary: #162447;
    --light-text: #f4f4f4;
    --dark-text: #333;
    --body-bg: #FFFFFF;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--body-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- VISIBILITÉ POUR L'ANIMATION GSAP --- */
.reveal-item {
    visibility: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ESPACEMENTS STANDARDS --- */
h1, h2, h3, h4, p, ul, .grid-3, .grid-4, .pricing-grid, .tabs-container, .custom-offer-card, .transparency-note, .feature-table-wrapper {
    margin-bottom: 1.5rem;
}
h1:last-child, h2:last-child, h3:last-child, h4:last-child, p:last-child, ul:last-child, .grid-3:last-child, .grid-4:last-child, .pricing-grid:last-child, .tabs-container:last-child, .custom-offer-card:last-child, .transparency-note:last-child, .feature-table-wrapper:last-child {
    margin-bottom: 0;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

.section-title { text-align: center; margin-bottom: 1rem; }
.subsection-title { text-align: center; margin-top: 4rem; color: var(--primary-blue); }
.section-subtitle { max-width: 700px; text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 3rem; line-height: 1.6; opacity: 0.9; }
.section-light { background-color: var(--light-bg); padding: 80px 0; }
.section-dark { background-color: var(--dark-bg); color: var(--light-text); padding: 80px 0; }

/* --- BOUTONS --- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--primary-yellow); color: var(--dark-text); }
.btn-primary:hover { background-color: #ffd043; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4); }
.btn-secondary { background-color: transparent; border: 2px solid var(--primary-blue); color: var(--primary-blue); }
.main-header .btn-secondary { border-color: var(--primary-yellow); color: var(--primary-yellow); }
.main-header .btn-secondary:hover { background-color: var(--primary-yellow); color: var(--dark-text); }
.btn-secondary:hover { background-color: var(--primary-blue); color: #fff; }

/* --- HEADER --- */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 15px 0; transition: background-color 0.4s ease, box-shadow 0.4s ease; }
.main-header.scrolled { background-color: rgba(26, 26, 46, 0.85); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.main-header .logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-yellow); }
.main-header .main-nav { display: flex; align-items: center; gap: 15px; }


/* --- HERO --- */
#hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--light-text); overflow: hidden; }
#hero h1, #hero p { margin-bottom: 1.5rem; }
.video-background { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); z-index: 1; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(26,26,46,0.8) 0%, rgba(26,26,46,0.6) 50%, rgba(26,26,46,0.8) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; }

/* --- GRILLES & CARTES --- */
.grid-3, .grid-2 { display: grid; gap: 2.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { align-items: center; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card i { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 1rem; }
.solution-visual { display: flex; justify-content: center; align-items: center; }

/* MODIFIÉ : Augmentation de la taille de la vidéo de démonstration */
.video-mockup {
    background-color: #111;
    border-radius: 50px; /* Augmenté pour un look plus arrondi */
    padding: 20px; /* Légèrement augmenté */
    width: 100%;
    max-width: 480px; /* C'est la modification principale: de 320px à 480px */
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    border: 3px solid #444;
}
.video-mockup video {
    width: 100%;
    border-radius: 30px; /* Augmenté pour correspondre au nouveau padding */
    display: block;
}

#solution ul { list-style: none; padding-left: 0; }
#solution ul li { margin-bottom: 0.75rem; display: flex; align-items: flex-start; }
#solution ul li i { color: var(--primary-yellow); margin-right: 12px; margin-top: 5px; }
.card-benefit { text-align: center; }
.counter-value, .counter-value-pro { font-size: 3.5rem; font-weight: 700; color: var(--primary-blue); }
.card-benefit h3 { font-size: 1.2rem; margin: 0.5rem 0; color: var(--dark-text); }

/* --- ONGLETS --- */
.tabs-container { max-width: 800px; margin: 0 auto; }
.tab-buttons { display: flex; justify-content: center; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.tab-btn { background: none; border: 2px solid rgba(255, 255, 255, 0.3); color: var(--light-text); padding: 10px 20px; cursor: pointer; border-radius: 30px; font-weight: 600; transition: all 0.3s ease; }
.tab-btn.active, .tab-btn:hover { background-color: var(--primary-yellow); border-color: var(--primary-yellow); color: var(--dark-bg); }
.tab-panel { display: none; text-align: center; animation: fade-in 0.5s ease; }
.tab-panel.active { display: block; }
.tab-panel i { font-size: 3rem; color: var(--primary-yellow); margin-bottom: 1rem; }
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- SECTION PRIX DÉTAILLÉE --- */
.feature-table-wrapper { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.feature-table { width: 100%; min-width: 800px; border-collapse: collapse; background: #fff; }
.feature-table th, .feature-table td { padding: 1rem; text-align: center; border-bottom: 1px solid var(--border-color); }
.feature-table thead th { background-color: var(--dark-bg); color: var(--light-text); position: sticky; top: 0; font-size: 1rem; z-index: 2; }
.feature-table thead th:first-child { text-align: left; }
.feature-table thead span { display: block; font-size: 0.8rem; font-weight: 400; opacity: 0.8; }
.table-category-header { background-color: #f1f3f5; text-align: left !important; font-weight: 600; color: var(--dark-bg); position: sticky; left: 0; z-index: 1; }
.feature-table tbody td:first-child { text-align: left; font-weight: 600; color: var(--dark-text); position: sticky; left: 0; background: #fff; }
.icon-yes { color: var(--icon-yes-color); font-size: 1.5rem; }
.icon-no { color: var(--icon-no-color); opacity: 0.5; font-size: 1.5rem; }
.pricing-grid { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 992px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 2rem; text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pricing-card.popular { border: 2px solid var(--primary-blue); transform: scale(1.05); z-index: 10; }
.pricing-card .badge { position: absolute; top: 15px; right: -45px; background-color: var(--primary-blue); color: #fff; padding: 5px 40px; transform: rotate(45deg); font-size: 0.8rem; font-weight: 600; }
.pricing-card h3 { color: var(--primary-blue); }
.price { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.price span { font-size: 1rem; font-weight: 400; color: #777; }
.pricing-desc { font-size: 0.9rem; color: #666; flex-grow: 1; margin-top: 1rem; }
.pricing-card .btn { margin-top: 1.5rem; }
.custom-offer-card { border: 2px dashed var(--primary-blue); background-color: #e7f1ff; border-radius: 8px; padding: 2rem; text-align: center; }
.custom-offer-card i { font-size: 2rem; color: var(--primary-blue); margin-bottom: 1rem; }
.transparency-note { background-color: #fff; border: 1px solid var(--border-color); border-left: 5px solid var(--primary-yellow); border-radius: 8px; padding: 2rem; }
.transparency-note h3 { margin-top: 0; }
.transparency-details { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .transparency-details { grid-template-columns: 1fr 1fr; } }
.transparency-note h4 { font-size: 1rem; color: var(--dark-bg); }
.transparency-note ul { list-style: none; padding-left: 0; }
.transparency-note ul li { padding-left: 1.5em; position: relative; }
.transparency-note ul li::before { content: '✔️'; position: absolute; left: 0; color: var(--icon-yes-color); }

/* --- FOOTER & CONTACT FAB --- */
#footer { background: var(--dark-bg-secondary); color: var(--light-text); padding: 60px 0 40px 0; text-align: center; }
#footer .btn { margin-top: 1rem; }
#footer h2, #footer p { margin-bottom: 1.5rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.7; font-size: 0.9rem; }
.contact-fab { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    background-color: var(--primary-blue);
    color: #FFF; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.8rem;
    text-decoration: none; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
    z-index: 1000; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    opacity: 0; 
    transform: scale(0); 
    animation: fab-pop-in 0.5s 1s ease-out forwards; 
}
.contact-fab:hover { 
    transform: scale(1.1); 
    box-shadow: 0 6px 16px rgba(0,0,0,0.3); 
}
@keyframes fab-pop-in { to { opacity: 1; transform: scale(1); } }

/* --- RESPONSIVE --- */
@media (max-width: 991px) { .pricing-card.popular { transform: scale(1); } }
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .grid-3, .grid-4, .pricing-grid, .grid-2 { grid-template-columns: 1fr; }
    .tab-buttons { flex-direction: column; }
    .contact-fab { width: 50px; height: 50px; font-size: 1.5rem; bottom: 15px; right: 15px; }
    .feature-table-wrapper { border: none; box-shadow: none; }
    .feature-table { min-width: 100%; }
    .feature-table thead { display: none; }
    .feature-table, .feature-table tbody, .feature-table tr, .feature-table td { display: block; width: 100%; }
    .feature-table tr { margin-bottom: 1.5rem; }
    .table-category-header { text-align: center !important; border-bottom: 2px solid var(--primary-blue); padding-bottom: 0.5rem; margin-bottom: 1rem; }
    .feature-table td:first-child { background-color: #f1f3f5; font-weight: bold; padding: 0.75rem; border-radius: 5px 5px 0 0; border-bottom: 1px solid var(--border-color); text-align: center; }
    .feature-table td { padding: 0.75rem 1rem; text-align: right; position: relative; border-bottom: 1px dotted var(--border-color); }
    .feature-table td:last-of-type { border-bottom: none; }
    .feature-table td::before { content: attr(data-label); position: absolute; left: 1rem; font-weight: normal; color: #666; text-align: left; }
    .feature-table td:first-child::before { display: none; }
}