/* PSSN Solutions - Site Vitrine CSS */
/* Adapté des couleurs de Find Bounding Box 3D */

:root {
    --primary-color: #4389aa;      /* Bleu PSSN Solutions */
    --primary-dark: #2d6583;       /* Bleu plus foncé */
    --secondary-color: #ef972c;    /* Orange PSSN Solutions */
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #ef972c;
    --info-color: #4389aa;
    --bg-color: #f5f7fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(67, 137, 170, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================
   HEADER & NAVIGATION
   ================================= */

.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: var(--secondary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    margin-top: 10px;
    z-index: 1000;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

/* Trial Button */
.btn-trial {
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--secondary-color);
}

.btn-trial:hover {
    background: transparent;
    border-color: white;
}

/* =================================
   HERO SECTION
   ================================= */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 14px;
    opacity: 0.8;
}

/* =================================
   BUTTONS
   ================================= */

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: #d8821f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: #6c757d;
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* =================================
   SECTIONS
   ================================= */

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* =================================
   APPLICATIONS PREVIEW
   ================================= */

.applications-preview {
    background: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.app-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.app-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.app-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.app-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.app-features li {
    padding: 8px 0;
    color: var(--text-light);
}

/* ROI Highlights */
.roi-highlights {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
}

.roi-item {
    font-size: 12px;
    font-weight: 600;
}

/* =================================
   WHY PSSN SECTION
   ================================= */

.why-pssn {
    background: var(--bg-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* =================================
   USE CASES
   ================================= */

.use-cases {
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
}

.case-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.case-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* =================================
   CTA SECTION
   ================================= */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-note {
    margin-top: 20px;
    font-size: 16px;
}

.cta-note a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.cta-note a:hover {
    text-decoration: underline;
}

/* =================================
   FOOTER
   ================================= */

.main-footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

.footer-bottom p {
    margin: 5px 0;
}

/* =================================
   HAMBURGER MENU BUTTON
   ================================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation X quand ouvert */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 1200px) {
    .apps-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 12px 0;
    }

    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 18px;
    }

    /* Menu caché par défaut */
    .main-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        padding: 90px 30px 30px;
        gap: 0;
        z-index: 1050;
        overflow-y: auto;
    }

    /* Menu ouvert */
    .main-nav.open {
        display: flex;
    }

    .main-nav .nav-link {
        font-size: 18px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        border-bottom-color: var(--secondary-color);
    }

    /* Dropdown mobile */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        display: none;
    }

    .dropdown-content a {
        color: white;
        text-align: center;
        border-left: none;
        padding: 10px 20px;
        font-size: 15px;
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        padding-left: 20px;
    }

    /* Bouton essai gratuit mobile */
    .main-nav .btn-trial {
        margin-top: 10px;
        text-align: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 17px;
    }

    /* Empêcher le scroll du body quand menu ouvert */
    body.menu-open {
        overflow: hidden;
    }
    
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        padding: 0 20px;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 26px;
    }
    
    .apps-grid,
    .benefits-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Video consent responsive */
    .video-modal-content {
        width: 95% !important;
        max-width: 95% !important;
    }

    .video-consent-thumbnail img {
        border-radius: 6px;
    }

    .video-consent-message p {
        font-size: 13px;
    }

    .video-consent-buttons {
        flex-direction: column;
    }
}

/* =================================
   VIDEO MODAL
   ================================= */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.3s;
}

.video-modal-close:hover {
    color: #333;
}

/* =================================
   CONSENTEMENT CONTEXTUEL YOUTUBE
   ================================= */

.video-consent-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-color);
}

.video-consent-thumbnail {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.video-consent-thumbnail img {
    width: 100%;
    display: block;
    filter: brightness(0.7);
}

.video-consent-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-consent-message {
    max-width: 500px;
}

.video-consent-message p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.video-consent-message p strong {
    color: var(--text-color);
    font-size: 16px;
}

.video-consent-message a {
    color: var(--primary-color);
    text-decoration: underline;
}

.video-consent-message a:hover {
    color: var(--primary-dark);
}

.video-consent-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.video-consent-accept {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.video-consent-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 137, 170, 0.4);
}

.video-consent-refuse {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.video-consent-refuse:hover {
    border-color: #999;
    color: var(--text-color);
}
