/* ============================================
   GOGOFID - STYLE PRINCIPAL
   Charte graphique: Bleu #1F77B4 | Jaune #FFC300
   ============================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #fff;
    padding-top: 90px; /* Espace pour navbar fixe */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 90px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* Menu principal */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.nav-menu a:hover {
    color: #1F77B4;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
}

/* Flèche dropdown dynamique */
.arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 5px;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 20px;
    color: #333;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #1F77B4;
}

/* Accès privés */

.nav-access {
    display: flex;
    align-items: center;
}

.btn-access {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-login {
    background: linear-gradient(135deg, #1F77B4 0%, #FFC300 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(31, 119, 180, 0.3);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31, 119, 180, 0.4);
}


/* Burger menu (mobile) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1F77B4 0%, #FFC300 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Animation background */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Bouton principal */
.btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background: white;
    color: #1F77B4;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ============================================
   SECTION CARTES
   ============================================ */
.cards-section {
    padding: 120px 0 100px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    display: inline-block;
    color: #1F77B4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    transform: translateX(5px);
}

/* Couleurs spécifiques */
.card-partners:hover {
    border-top: 4px solid #28a745;
}

.card-merchants:hover {
    border-top: 4px solid #1F77B4;
}

.card-customers:hover {
    border-top: 4px solid #FFC300;
}

/* ============================================
   SECTION STATISTIQUES
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1F77B4 0%, #FFC300 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    text-align: center;
}

.stat-item {
    animation: fadeInUp 0.8s ease-out;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.private-link {
    color: #FFC300 !important;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESKTOP
   ============================================ */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    /* Prevent scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
    
    #navbar {
        height: 70px;
    }
    
    .logo img {
        height: 50px;
    }
    
    /* Menu mobile */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0; /* ✅ Corrigé : 0 au lieu de 100 */
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding: 0;
    }
    
    .nav-menu > li > a,
    .nav-menu > li > .dropbtn {
        padding: 10px 10px;
        font-size: 1rem;
    }
    
    /* Dropdown mobile */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        display: none;
        border-radius: 0;
    }
 
    
    .nav-menu .dropdown.active .dropdown-content {
        display: block !important;
    }
   
    .dropdown-content a {
         padding: 8px 25px;   /* ✅ Réduit de 12px à 8px */
         font-size: 0.95rem;  /* ✅ Ajoute si pas déjà présent */
    }
    
    /* ✅ NOUVEAU : Masquer le bouton connexion sur mobile */
    .nav-access {
        display: none !important;
    }
    
    /* Burger menu */
    .burger {
        display: flex;
        z-index: 1001;
    }
    
    /* Animation burger */
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}
    
    /* Hero mobile */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    /* Cartes mobile */
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats mobile */
    .stat-number {
        font-size: 3rem;
    }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
}

/* ============================================
   PAGE GUIDE SCAN - STYLES
   ============================================ */

/* Vidéo Section */
.video-section {
    margin: 80px 0;
    text-align: center;
}

.video-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.video-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.video-container video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

/* Règles d'Or */
.golden-rules {
    margin: 100px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(31, 119, 180, 0.05) 0%, rgba(255, 195, 0, 0.05) 100%);
    border-radius: 20px;
}

.golden-rules h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.rule-card {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border-top: 5px solid #1F77B4;
}

.rule-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1F77B4 0%, #FFC300 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(31, 119, 180, 0.3);
}

.rule-card h3 {
    font-size: 1.4rem;
    color: #1F77B4;
    margin: 20px 0 15px;
}

.rule-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
}

.rule-card strong {
    font-weight: 600;
}

/* Pourquoi la Taille Compte */
.size-matters {
    margin: 100px 0;
}

.size-matters h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.comparison-card {
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-card.good {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 5px solid #28a745;
}

.comparison-card.bad {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 5px solid #dc3545;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.comparison-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comparison-card.good h3 {
    color: #28a745;
}

.comparison-card.bad h3 {
    color: #dc3545;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    color: #333;
}

.comparison-card.good li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}

.comparison-card.bad li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
}

.info-box {
    background: #fff3cd;
    border-left: 5px solid #FFC300;
    padding: 25px 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.info-box p {
    margin: 0;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

/* Cas d'Usage */
.use-cases {
    margin: 100px 0;
}

.use-cases h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #1F77B4;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
}

.case-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.case-card h3 {
    font-size: 1.4rem;
    color: #1F77B4;
    margin-bottom: 15px;
}

.case-context {
    font-size: 1rem;
    color: #999;
    font-style: italic;
    margin-bottom: 20px;
}

.case-tips h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFC300;
    padding-bottom: 8px;
}

.case-tips ul {
    list-style: none;
    padding: 0;
}

.case-tips li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    color: #666;
}

.case-tips li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #1F77B4;
    font-weight: 700;
}

/* Check-list */
.checklist-section {
    margin: 80px 0;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 20px;
}

.checklist-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.checklist {
    max-width: 700px;
    margin: 0 auto;
}

.checklist-item {
    background: white;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.checklist-item .check {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: 700;
}

.checklist-item .text {
    font-size: 1rem;
    color: #333;
    flex: 1;
}

/* CTA */
.scan-cta {
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(31, 119, 180, 0.1) 0%, rgba(255, 195, 0, 0.1) 100%);
    border-radius: 20px;
    text-align: center;
}

.scan-cta h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.scan-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .video-container video {
        max-height: 300px;
    }
    
    .golden-rules,
    .checklist-section {
        padding: 40px 20px;
    }
    
    .rules-grid,
    .comparison-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-number {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}
