/* =============================================
   STYLES CAMTEL RECHARGE
   Charte graphique officielle Camtel
   ============================================= */

/* Variables */
:root {
    --camtel-blue: #005b9f;
    --camtel-blue-dark: #004070;
    --camtel-gray: #333333;
    --camtel-gray-light: #4D4D4D;
    --camtel-gray-bg: #F5F5F5;
    --camtel-white: #FFFFFF;
    --camtel-black: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 91, 159, 0.2);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--camtel-gray-bg) 0%, #FFFFFF 100%);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* =============================================
   HEADER CAMTEL
   ============================================= */
.camtel-header {
    background: linear-gradient(135deg, var(--camtel-gray), var(--camtel-gray-light));
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    color: var(--camtel-white);
    font-weight: 700;
    letter-spacing: 1px;
}

.camtel-blue {
    color: var(--camtel-blue);
    font-weight: 800;
}

.slogan {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Navigation */
.camtel-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.camtel-nav a {
    color: var(--camtel-white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.camtel-nav a i {
    color: var(--camtel-blue);
}

.camtel-nav a:hover {
    background: var(--camtel-blue);
    transform: translateY(-2px);
}

.camtel-nav a:hover i {
    color: white;
}

.camtel-nav a.active {
    background: var(--camtel-blue);
    font-weight: 600;
}

/* =============================================
   HERO SECTION
   ============================================= */
.camtel-hero {
    background: linear-gradient(135deg, var(--camtel-gray), var(--camtel-blue));
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    margin-bottom: 40px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.stat i {
    font-size: 1.5rem;
    color: var(--camtel-blue);
}

/* =============================================
   SECTION TITRES
   ============================================= */
.section-title {
    font-size: 2rem;
    color: var(--camtel-gray);
    margin: 40px 0 30px;
    text-align: center;
    position: relative;
}

.section-title i {
    color: var(--camtel-blue);
    margin-right: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--camtel-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =============================================
   GRILLE DES LIENS - INTERFACE PRINCIPALE
   ============================================= */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.link-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-decoration: none;
    color: var(--camtel-gray);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--camtel-blue);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: var(--camtel-blue);
    box-shadow: var(--shadow-hover);
}

.link-card:hover::before {
    transform: translateX(0);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--camtel-gray), var(--camtel-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--camtel-gray);
}

.link-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.link-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--camtel-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: rotate(360deg);
}

.link-arrow i {
    color: white;
    font-size: 1rem;
}

/* =============================================
   QUALITÉS ET DÉFAUTS
   ============================================= */
.camtel-attributes {
    margin: 60px 0;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.attribute-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.attribute-card:hover {
    transform: translateY(-5px);
}

.attribute-card.pros {
    border-top-color: #28a745;
}

.attribute-card.cons {
    border-top-color: #dc3545;
}

.attribute-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.attribute-card.pros .attribute-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.attribute-card.cons .attribute-icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.attribute-card h3 {
    color: var(--camtel-gray);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.attribute-card ul {
    list-style: none;
    padding: 0;
}

.attribute-card ul li {
    margin-bottom: 12px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.attribute-card.pros ul li i {
    color: #28a745;
    margin-top: 3px;
}

.attribute-card.cons ul li i {
    color: #dc3545;
    margin-top: 3px;
}

/* =============================================
   ÉTAPES - COMMENT ÇA MARCHE
   ============================================= */
.steps-camtel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.step {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--camtel-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 3px solid white;
}

.step i {
    font-size: 2.5rem;
    color: var(--camtel-blue);
    margin: 15px 0;
}

.step h3 {
    color: var(--camtel-gray);
    margin-bottom: 10px;
}

.step p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =============================================
   GRILLE DES FORFAITS
   ============================================= */
.camtel-forfaits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.camtel-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.camtel-card:hover {
    transform: translateY(-5px);
    border-color: var(--camtel-blue);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 2rem;
    color: var(--camtel-blue);
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge.populaire {
    background: var(--camtel-blue);
}

.camtel-card h3 {
    color: var(--camtel-gray);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 60px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--camtel-blue);
    margin: 15px 0;
}

.btn-camtel {
    background: var(--camtel-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: 2px solid var(--camtel-blue);
}

.btn-camtel:hover {
    background: var(--camtel-gray);
    border-color: var(--camtel-gray);
}

.btn-camtel-secondary {
    background: transparent;
    color: var(--camtel-gray);
    border: 2px solid var(--camtel-gray);
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-camtel-secondary:hover {
    background: var(--camtel-gray);
    color: white;
}

/* =============================================
   FILTRES ET RECHERCHE
   ============================================= */
.camtel-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--camtel-gray);
    border-radius: 50px;
    color: var(--camtel-gray);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--camtel-blue);
    border-color: var(--camtel-blue);
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50px;
    padding: 5px 20px;
    min-width: 300px;
}

.search-box i {
    color: var(--camtel-blue);
    margin-right: 10px;
}

.search-box input {
    border: none;
    padding: 10px 0;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

/* =============================================
   FIL D'ARIANE
   ============================================= */
.breadcrumb {
    padding: 15px 0;
    color: #666;
}

.breadcrumb a {
    color: var(--camtel-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--camtel-blue);
}

.breadcrumb i {
    margin: 0 10px;
    color: #999;
    font-size: 0.8rem;
}

.breadcrumb span {
    color: var(--camtel-blue);
    font-weight: 600;
}

/* =============================================
   PAGINATION
   ============================================= */
.camtel-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--camtel-gray);
    border-radius: 50%;
    color: var(--camtel-gray);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: var(--camtel-blue);
    border-color: var(--camtel-blue);
    color: white;
}

/* =============================================
   FORMULAIRES CRÉDIT
   ============================================= */
.credit-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.credit-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-step {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-step h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--camtel-gray);
}

.step-number {
    background: var(--camtel-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--camtel-gray);
}

.phone-input {
    display: flex;
    align-items: center;
}

.prefix {
    background: #f0f0f0;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-weight: 600;
    color: var(--camtel-gray);
}

.phone-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-left: none;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    outline: none;
}

.phone-input input:focus {
    border-color: var(--camtel-blue);
}

.form-group small {
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Grille des montants */
.montant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.montant-option {
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.montant-option:hover {
    border-color: var(--camtel-blue);
    transform: translateY(-3px);
}

.montant-option.selected {
    border-color: var(--camtel-blue);
    background: rgba(0, 91, 159, 0.05);
}

.montant-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--camtel-gray);
    margin-bottom: 5px;
}

.montant-devise {
    color: #999;
    font-size: 0.9rem;
}

/* Grille paiement */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.payment-option {
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-option i {
    font-size: 2rem;
    color: var(--camtel-gray);
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--camtel-blue);
    background: rgba(0, 91, 159, 0.05);
}

.payment-option.selected i {
    color: var(--camtel-blue);
}

/* Actions formulaire */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

/* Récapitulatif */
.recap-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    border: 3px solid var(--camtel-blue);
}

.recap-container h3 {
    color: var(--camtel-gray);
    margin-bottom: 20px;
}

.recap-details {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.recap-details p {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
}

.recap-details strong {
    color: var(--camtel-gray);
}

.recap-details span {
    color: var(--camtel-blue);
    font-weight: 600;
}

.recap-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* =============================================
   CONFIRMATION PAGE
   ============================================= */
.confirmation-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.confirmation-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-hover);
    border: 3px solid var(--camtel-blue);
}

.success-icon i {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
}

.confirmation-card h2 {
    color: var(--camtel-gray);
    margin-bottom: 30px;
}

.transaction-details {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

.detail-value {
    color: var(--camtel-gray);
    font-weight: 600;
}

.detail-value.montant {
    color: var(--camtel-blue);
    font-size: 1.2rem;
}

.statut-success {
    color: #28a745 !important;
}

.statut-success i {
    margin-right: 5px;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.sms-info {
    background: #e8f4fd;
    border-radius: 50px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #0066cc;
}

.sms-info i {
    font-size: 1.2rem;
}

/* =============================================
   LOADER
   ============================================= */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--camtel-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.camtel-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--camtel-gray);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    border-left: 4px solid var(--camtel-blue);
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.camtel-toast i {
    color: var(--camtel-blue);
}

/* =============================================
   BOUTON RETOUR
   ============================================= */
.back-to-menu {
    text-align: center;
    margin: 40px 0;
}

/* =============================================
   FOOTER CAMTEL
   ============================================= */
.camtel-footer {
    background: linear-gradient(135deg, var(--camtel-gray), var(--camtel-gray-light));
    color: white;
    padding: 50px 30px 20px;
    border-radius: 20px 20px 0 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--camtel-blue);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--camtel-blue);
}

.footer-col i {
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--camtel-blue);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 992px) {
    .links-grid,
    .camtel-forfaits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-camtel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .montant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .camtel-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .links-grid,
    .camtel-forfaits-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-camtel {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col p,
    .footer-col a {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .camtel-filters {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .montant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .camtel-toast {
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .montant-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
}
 
 .suffix {
    background: #f0f0f0;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-left: none;
    border-radius: 0 10px 10px 0;
    font-weight: 600;
    color: var(--camtel-gray);
}

.amount-input-simple {
    display: flex;
    align-items: center;
}

.amount-input-simple input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px 0 0 10px;
    font-size: 1rem;
    outline: none;
}

.amount-input-simple input:focus {
    border-color: var(--camtel-blue);
}

.payment-option.selected { border-color: #005b9f !important; background-color: #f0f7ff !important; box-shadow: 0 0 0 2px rgba(0, 91, 159, 0.2); } .payment-option:hover { border-color: #005b9f; background-color: #fafafa; }
