/**
 * @file        website/css/style.css
 * @brief       Styles pour le site web public ProductionInterne
 *
 * @package     ProductionInterne
 * @subpackage  Website
 * @category    css
 * @author      P'tite Tête
 * @copyright   2025 P'tite Tête <productioninterne@ptitetete.com>
 * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License
 * @version     1.1.1
 * @since       1.0.0
 */

/* Variables CSS */
:root {
    --primary-color: #1E78BB;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient: linear-gradient(135deg, #1E78BB 0%, #4fb3d4 100%);
}

/* Styles généraux */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 20px;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    opacity: 0.8;
}

/* Language switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.lang-switcher a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.lang-switcher a:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Hero section */
.hero-section {
    background: var(--gradient);
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') bottom/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead,
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Cards et sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Feature icons modernisés */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

/* Screenshots containers */
.screenshot-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.screenshot-container:hover {
    transform: translateY(-5px);
}

/* Boutons */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    border: none;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Boutons customisés */
.btn-custom {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-custom {
    background: var(--gradient);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 120, 187, 0.3);
    color: white;
}

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

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
}

/* Stats section */
.stats-section {
    background: white;
    padding: 60px 0;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 10px;
}

/* Testimonials */
.testimonial {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Changelog styles */
.version-current {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid var(--success-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.version-future {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 3px solid var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.version-current h2 {
    color: var(--success-color);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-color);
}

.badge-info {
    background: var(--info-color);
}

.badge-warning {
    background: var(--warning-color);
}

/* Download section - now pricing section */
.download-section {
    text-align: center;
    margin: 60px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--light-color), white);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.download-section h2,
.download-section h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

/* Pricing tiers */
.pricing-tier {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.pricing-tier:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.pricing-tier.featured {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f8fff9, white);
    position: relative;
}

.pricing-tier.featured::before {
    content: "RECOMMANDÉ";
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
}

.pricing-tier h5 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.pricing-tier .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pricing-tier .price small {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Footer */
footer {
    margin-top: auto;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer .badge {
    margin: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1,
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section .lead,
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .download-section {
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Styles pour les listes avec icônes */
.icon-list {
    list-style: none;
    padding-left: 0;
}

.icon-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.icon-list li i {
    width: 20px;
    margin-right: 10px;
    color: var(--success-color);
}

/* Styles pour les alertes personnalisées */
.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 20px;
    margin: 20px 0;
}

.alert-info-custom {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-success-custom {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

/* Styles pour les cartes de prix */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border-color: var(--success-color);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "RECOMMANDÉ";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.price-subtitle {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* Responsive pour pricing cards */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
        margin-top: 2rem;
    }
    
    .price {
        font-size: 3rem;
    }
}

/* === STYLES DOCUMENTATION === */

/* Navigation de documentation */
.doc-nav {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doc-nav strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.doc-nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 10px;
    margin-right: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 5px;
}

.doc-nav a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.doc-nav a.active {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* Contenu de documentation */
.doc-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.doc-content h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.doc-content h2 {
    color: var(--dark-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.8rem;
}

.doc-content h3 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.doc-content h4 {
    color: var(--dark-color);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.doc-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.doc-content ul, .doc-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.doc-content li {
    margin-bottom: 8px;
}

.doc-content blockquote {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid var(--info-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
    font-style: italic;
}

.doc-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    color: #e83e8c;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.doc-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

.doc-content pre code {
    background: transparent;
    padding: 0;
    color: #333;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.doc-content th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.doc-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.doc-content tr:nth-child(even) {
    background: #f8f9fa;
}

.doc-content tr:hover {
    background: #e3f2fd;
}

/* Alertes dans la documentation */
.doc-alert {
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid;
}

.doc-alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-left-color: var(--info-color);
    color: #0c5460;
}

.doc-alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left-color: var(--warning-color);
    color: #856404;
}

.doc-alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left-color: var(--success-color);
    color: #155724;
}

.doc-alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-left-color: var(--danger-color);
    color: #721c24;
}

/* Responsive pour documentation */
@media (max-width: 768px) {
    .doc-content {
        padding: 25px 20px;
    }
    
    .doc-content h1 {
        font-size: 2rem;
    }
    
    .doc-content h2 {
        font-size: 1.5rem;
        padding-left: 15px;
    }
    
    .doc-nav {
        padding: 15px;
    }
    
    .doc-nav a {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }
}