/**
 * Styles pour la page de sélection du type de compte
 * EcoWeb CenC - Page choose-account-type.php
 * 
 * @author EcoWeb CenC
 * @version 1.0
 * @date 2025-09-08
 */

/* Variables CSS (si pas déjà définies dans auth.css) */
:root {
    --cenc-orange: #E67E22;
    --cenc-orange-dark: #d35400;
    --cenc-green: #27AE60;
    --cenc-green-dark: #1e8449;
    --cenc-gray: #6C757D;
    --cenc-gray-dark: #495057;
    --cenc-white: #FFFFFF;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-orange: 0 8px 25px rgba(230, 126, 34, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container principal */
.account-selection-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Header de la page */
.selection-header {
    text-align: center;
    margin-bottom: 3rem;
    /*background: rgba(255, 255, 255, 0.15);*/
    /*border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);*/
    position: relative;
    /*overflow: hidden;*/
}

/* Effet de lueur derrière le header glassmorphism */
.selection-header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    /*background: linear-gradient(135deg, 
        rgba(230, 126, 34, 0.3), 
        rgba(39, 174, 96, 0.3),
        rgba(243, 156, 18, 0.3));*/
    border-radius: 18px;
    z-index: -1;
    opacity: 0.6;
}

/* Animation subtile du glassmorphism au hover */
/*.selection-header:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}*/

.selection-header h1 {
    color: var(--cenc-white);
    font-family: var(--font-title, 'Leixo', Georgia, 'Times New Roman', serif);
    font-size: var(--font-size-title-xl, 2.5rem);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-normal, 400);
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.selection-header p {
    color: var(--cenc-white);
    font-family: var(--font-body, inherit);
    font-size: var(--font-size-body-lg, 1.125rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-normal, 1.6);
    text-shadow: none;
    position: relative;
    z-index: 1;
    font-weight: var(--font-weight-medium, 500);
}

/* Style spécial pour le logo dans le header glassmorphism */
.selection-header img {
    /*background: rgba(255, 255, 255, 0.9);*/
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    /*box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);*/
    /*margin-bottom: 1.5rem !important;*/
    position: relative;
    z-index: 1;
}

/* Grille des types de comptes */
.account-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Cartes de compte */
.account-card {
    background: var(--cenc-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    border: 3px solid transparent;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Barre colorée au top (effet hover) */
.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--cenc-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-card:hover::before {
    opacity: 1;
}

.account-card:hover {
    transform: none;
    box-shadow: var(--shadow-light);
    border-color: var(--cenc-green);
}

/* Icônes des cartes */
.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Titres des cartes */
.card-title {
    color: var(--cenc-green-dark);
    font-family: var(--font-title, 'Leixo', Georgia, 'Times New Roman', serif);
    font-size: var(--font-size-title-lg, 2rem);
    font-weight: var(--font-weight-normal, 400);
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-subtitle {
    color: var(--cenc-orange);
    font-family: var(--font-body, inherit);
    font-size: var(--font-size-body, 1rem);
    font-weight: var(--font-weight-medium, 500);
    text-align: center;
    margin-bottom: 2rem;
}

/* Liste des fonctionnalités */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--cenc-gray-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-features li::before {
    content: '✓';
    background: var(--cenc-green);
    color: var(--cenc-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Boutons d'action */
.card-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--cenc-orange);
    color: var(--cenc-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-ui, inherit);
    font-size: var(--font-size-body-lg, 1.125rem);
    font-weight: var(--font-weight-semibold, 600);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.card-btn:hover {
    transform: none;
    box-shadow: none;
    background: var(--cenc-orange-dark);
    color: var(--cenc-white);
    text-decoration: none;
}

.card-btn:active {
    background: var(--cenc-brown);
    transform: none;
}

/* Badge professionnel */
.professional-card {
    position: relative;
}

.professional-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--cenc-green);
    color: var(--cenc-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    transform: none;
    box-shadow: none;
    z-index: 1;
}

/* Section d'informations complémentaires */
.info-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.info-section h3 {
    color: var(--cenc-green-dark);
    font-family: var(--font-title, 'Leixo', Georgia, 'Times New Roman', serif);
    font-size: var(--font-size-title-md, 1.5rem);
    font-weight: var(--font-weight-normal, 400);
    margin-bottom: 1rem;
}

.info-section p {
    color: var(--cenc-gray-dark);
    font-family: var(--font-body, inherit);
    font-size: var(--font-size-body, 1rem);
    line-height: var(--line-height-normal, 1.6);
    margin-bottom: 1.5rem;
}

.info-section .tip {
    color: var(--cenc-gray);
    font-family: var(--font-body, inherit);
    font-size: var(--font-size-body-sm, 0.875rem);
    line-height: var(--line-height-normal, 1.6);
}

/* Liens de navigation */
.back-links {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-links a {
    /*color: var(--cenc-gray);*/
    color: var(--cenc-white);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.back-links a:hover {
    color: var(--cenc-orange);
}

/* Animation d'entrée */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-card.animate-in {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive Design */

/* Tablette */
@media (max-width: 768px) {
    .account-types {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .account-card {
        padding: 2rem;
    }
    
    .selection-header {
        padding: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .selection-header h1 {
        font-size: 2rem;
    }
    
    .selection-header p {
        font-size: 1.1rem;
    }
    
    .selection-header img {
        padding: 0.8rem 1.2rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .account-selection-container {
        margin: 1.5rem auto;
    }
    
    .card-icon {
        font-size: 2.8rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .account-selection-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .account-card {
        padding: 1.5rem;
    }
    
    .selection-header {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .selection-header h1 {
        font-size: 1.8rem;
    }
    
    .selection-header p {
        font-size: 1rem;
    }
    
    .selection-header img {
        padding: 0.6rem 1rem;
        border-radius: 8px;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-features li {
        font-size: 0.9rem;
    }
    
    .card-btn {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
    
    .professional-badge {
        top: 10px;
        right: 10px;
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .info-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .back-links {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .back-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .account-card {
        padding: 1.2rem;
    }
    
    .selection-header h1 {
        font-size: 1.6rem;
    }
    
    .card-icon {
        font-size: 2.2rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .account-card {
        transition: none;
    }
    
    .account-card:hover {
        transform: none;
    }
    
    .card-btn:hover {
        transform: none;
    }
    
    .animate-in {
        animation: none;
    }
}