/* ========================================
   RESET & BASE
======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    min-height: 100vh;
    color: #333;
}

/* ========================================
   HEADER
======================================== */

header {
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
}

header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: white; 
}

header p {
    font-size: 1.3em;
    color: white;
    opacity: 0.95;
}

/* ========================================
   MAIN CONTENT
======================================== */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.apps h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 40px;
}

/* ========================================
   APP CARDS
======================================== */

.app-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.app-mascot {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.app-card h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.app-card p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.app-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* ========================================
   IMAGES
======================================== */

.header-avatar {
    width: 115%;
    height: 115%;
    object-fit: contain;
    border-radius: 20px;
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
}

/* ========================================
   BUTTONS & LINKS
======================================== */

.app-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.store-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.store-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.store-link img {
    height: 48px;
    width: auto;
}

.store-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.store-label {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.btn-details {
    height: 48px;
    padding: 0 28px;
    background: #434343;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-details:hover {
    background: #000;
}

.guide-button a {
    display: block;
    width: 80%;
    margin: 0 auto;
    background: #434343;
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: background 0.2s ease;
    text-align: center;
}

.guide-button a:hover {
    background: #5a5a5a;
}

.back-button a {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.2s ease;
    margin: 20px 0;
}

.back-button a:hover {
    background: #e0e0e0;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

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

.coming-soon {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed #667eea;
    opacity: 0.8;
}

/* ========================================
   PAGES GUIDE
======================================== */

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

.breadcrumb {
    color: white;
    padding: 20px 0;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.main-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.main-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #007aff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

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

footer {
    text-align: center;
    padding: 40px 20px;
    color: white;
}
/* ========================================
   PAGE MENU GUIDE
======================================== */

.container > .main-content h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}
/* Titre du menu guide (sur fond gris) */
.container.guide-menu h1 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    filter: brightness(0.9);
}

.icon {
    font-size: 20px;
    width: 26px;
    text-align: center;
}

/* Couleurs des boutons */
.blue   { background: #007aff; }
.orange { background: #ff9500; }
.indigo { background: #5856d6; }
.mint   { background: #34c759; }
.cyan   { background: #32ade6; }
.purple { background: #af52de; }
.teal   { background: #30b0c7; }
.brown  { background: #a2845e; }

/* Bouton Cloud (blanc avec ombre bleue) */
.btn.cloud {
    background-color: white;
    border: 1px solid #E5E5EA;
    color: #007AFF;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn.cloud:hover {
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.6);
    transform: translateY(-2px);
    filter: none;
}

/* Bouton Courses (blanc avec ombre orange) */
.btn.courses {
    background-color: white;
    border: 1px solid #E5E5EA;
    color: #FF9500;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.btn.courses:hover {
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.6);
    transform: translateY(-2px);
    filter: none;
}
/* ========================================
   PAGES INFORMATIVES (mentions légales, privacy, etc.)
======================================== */

/* Styles UNIQUEMENT pour les pages avec fond blanc (mentions, privacy) */
.main-content.info-page h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.main-content.info-page h2 {
    color: #434343;
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.main-content.info-page h3 {
    color: #666;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.main-content.info-page h4 {
    color: #777;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.main-content.info-page p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.main-content.info-page ul {
    margin: 15px 0 15px 30px;
    color: #555;
}

.main-content.info-page li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.main-content.info-page strong {
    color: #2c3e50;
}

.main-content.info-page a {
    color: #434343;
}

/* Encadré vert en avant (highlight) */
.highlight-box {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.highlight-box h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

/* Encadré dernière mise à jour */
.last-updated {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #434343;
    margin: 20px 0;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: #434343;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.back-link:hover {
    background: #000;
}
/* ========================================
   PAGE DÉTAILS APPLICATION
======================================== */

.tagline {
    font-size: 1.3em;
    font-style: italic;
}

/* Mascotte spécifique page détails (avec ombre) */
.app-mascot.detail-page {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 30px;
}

/* Titre h2 spécifique page détails */
.main-content h2 {
    color: #2c3e50;
    margin: 40px 0 20px;
    font-size: 2em;
}

/* Badge sécurité */
.security-badge {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

/* Grille de fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #434343;
}

.feature-card h4 {
    color: #434343;
    margin-bottom: 10px;
}

/* Liens du footer */
.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}
/* ========================================
   PAGE EN CONSTRUCTION (coming-soon)
======================================== */

/* Body spécifique pour page en construction (centrage vertical) */
body.coming-soon-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Carte en construction centrée */
.coming-soon-card {
    background: white;
    border-radius: 25px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    max-width: 600px;
    width: 90%;
    animation: fadeIn 1s ease;
}

/* Emoji construction */
.coming-icon {
    font-size: 80px;
    margin-bottom: 25px;
}

/* Titre dans carte */
.coming-soon-card h3 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Paragraphe dans carte */
.coming-soon-card p {
    font-size: 1.4em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Bouton retour spécifique (avec transform au hover) */
.coming-soon-card .back-button a {
    display: inline-block;
    background: #434343;
    color: white;
    padding: 16px 40px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.coming-soon-card .back-button a:hover {
    background: #2c2c2c;
    transform: scale(1.05);
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}
/* ========================================
   PAGES SIMPLES (404, suppression, etc.)
======================================== */

body.error-page { 
    font-family: Arial, sans-serif; 
    padding: 40px; 
    background: #f8f8f8; 
    margin: 0;
}

.error-page .container { 
    max-width: 600px; 
    margin: auto; 
    background: white; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
    text-align: center;
}

.error-page h1 { 
    color: #e53935; 
    margin-bottom: 20px;
}

.error-page p { 
    margin: 20px 0; 
    line-height: 1.6; 
}

.error-page a.button { 
    display: inline-block; 
    padding: 10px 20px; 
    margin-top: 20px; 
    background-color: #1976d2; 
    color: white; 
    text-decoration: none; 
    border-radius: 5px; 
    transition: background 0.3s;
}

.error-page a.button:hover { 
    background-color: #0d47a1; 
}
/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1em;
    }
    
    .app-card {
        padding: 20px;
    }
    
    .guide-button a {
        padding: 12px 20px;
        font-size: 14px;
        max-width: 90%;
    }
    
    .back-button a {
        padding: 10px 16px;
        font-size: 14px;
        max-width: 90%;
        text-align: center;
    }
}