/* css/style.css - Feuille de style principale */

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

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f5f1ec;
    color: #2d3748;
    line-height: 1.6;
}

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

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #2c5e2a 0%, #1a3a18 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.nav a:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #2c5e2a;
    color: white;
}
.btn-primary:hover {
    background: #1a4a18;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 94, 42, 0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.75rem;
}

.btn-success {
    background: #48bb78;
    color: white;
}
.btn-success:hover {
    background: #38a169;
}

.btn-warning {
    background: #ed8936;
    color: white;
}
.btn-warning:hover {
    background: #dd6b20;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}
.btn-danger:hover {
    background: #c53030;
}

.btn-disabled {
    background: #a0aec0;
    color: white;
    cursor: not-allowed;
}

/* ===== ALERTES ===== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #48bb78;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

/* ===== FORMULAIRES ===== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #4a5568;
}

.form-group .required:after {
    content: " *";
    color: #e53e3e;
}

.form-group .optional {
    font-size: 0.85rem;
    color: #718096;
    font-weight: normal;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f7fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5e2a;
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group select {
    min-width: 160px;
    flex-shrink: 0;
}

.phone-group input {
    flex: 1;
}

/* ===== CARTES ===== */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.card-header {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-danger {
    background: #fed7d7;
    color: #c53030;
}

.badge-warning {
    background: #fefcbf;
    color: #975a16;
}

.badge-admin {
    background: #e9d8fd;
    color: #6b46c1;
}

.badge-enseignant {
    background: #fefcbf;
    color: #975a16;
}

.badge-participant {
    background: #bee3f8;
    color: #2a69ac;
}

/* ===== TABLEAUX ===== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

tr:hover {
    background: #f7fafc;
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 30px 0;
}

.dashboard h1 {
    font-size: 2rem;
    color: #2c5e2a;
    margin-bottom: 25px;
}

.dashboard h2 {
    font-size: 1.4rem;
    color: #3b2a1e;
    margin: 30px 0 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.stat-card .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2c5e2a;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.9rem;
    color: #718096;
}

.stat-card .stat-sub {
    display: block;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 5px;
}

.stat-card.success {
    border-color: #48bb78;
    background: #f0fff4;
}

/* ===== SÉANCES ===== */
.seances-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.seance-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.seance-item.verrouille {
    opacity: 0.6;
}

.seance-item .seance-info h3 {
    margin: 0;
    font-size: 1rem;
}

.seance-item .seance-info .seance-status {
    margin: 5px 0 0;
    font-size: 0.85rem;
}

.seance-item .seance-info .seance-score {
    font-size: 0.85rem;
    color: #4a5568;
    margin: 5px 0 0;
}

.seance-item .seance-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== SECTION HÉRO ===== */
.hero {
    background: linear-gradient(135deg, #1a3a18 0%, #2c5e2a 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== PRÉSENTATION ===== */
.presentation {
    padding: 60px 0;
    background: white;
}

.presentation h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5e2a;
    margin-bottom: 30px;
}

.presentation p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
}

.objectifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.objectif-item {
    text-align: center;
    padding: 25px;
    background: #f7fafc;
    border-radius: 12px;
    transition: transform 0.3s;
}

.objectif-item:hover {
    transform: translateY(-5px);
}

.objectif-item .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.objectif-item h3 {
    color: #2c5e2a;
    margin-bottom: 8px;
}

.objectif-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* ===== PROGRAMME ===== */
.programme {
    padding: 60px 0;
    background: #f7fafc;
}

.programme h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5e2a;
    margin-bottom: 30px;
}

.seances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.seance-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.seance-card:hover {
    transform: translateY(-5px);
}

.seance-card .seance-number {
    display: inline-block;
    background: #2c5e2a;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.seance-card.featured {
    border-color: #2c5e2a;
    box-shadow: 0 4px 16px rgba(44, 94, 42, 0.15);
}

.seance-card h3 {
    color: #2c5e2a;
    margin-bottom: 5px;
}

.seance-card .seance-date {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.seance-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.seance-card ul li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: #4a5568;
}

.seance-card ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #2c5e2a;
}

/* ===== TARIFS ===== */
.tarifs {
    padding: 60px 0;
    background: white;
}

.tarifs h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5e2a;
    margin-bottom: 30px;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.tarif-card {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.tarif-card:hover {
    transform: translateY(-5px);
}

.tarif-card.featured {
    border-color: #2c5e2a;
    box-shadow: 0 4px 16px rgba(44, 94, 42, 0.15);
    background: white;
}

.tarif-card .prix {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5e2a;
    margin: 10px 0;
}

.tarif-card .economie {
    font-size: 0.8rem;
    color: #48bb78;
}

.tarif-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.tarif-card ul li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.tarif-card ul li:before {
    content: "✅";
    position: absolute;
    left: 0;
}

/* ===== FAQ ===== */
.faq {
    padding: 60px 0;
    background: #f7fafc;
}

.faq h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c5e2a;
    margin-bottom: 30px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.faq-item h3 {
    color: #2c5e2a;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.faq-item p {
    color: #4a5568;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a3a18;
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
    text-align: center;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* ===== PAGE D'INSCRIPTION/CONNEXION ===== */
.register-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.register-container h1 {
    text-align: center;
    color: #2c5e2a;
    font-size: 1.8rem;
}

.register-container .subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 25px;
}

.register-container .login-link,
.register-container .back-home {
    text-align: center;
    margin-top: 15px;
}

.register-container .login-link a,
.register-container .back-home a {
    color: #2c5e2a;
    text-decoration: none;
}

.register-container .login-link a:hover,
.register-container .back-home a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .phone-group {
        flex-direction: column;
    }
    
    .phone-group select {
        min-width: 100%;
        max-width: 100%;
    }
    
    .register-container {
        padding: 20px;
        margin: 20px;
    }
    
    .seance-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .seance-item .seance-actions {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .seances-grid {
        grid-template-columns: 1fr;
    }
    
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

/* ===== CORRECTION DU TELEPHONE ===== */
.phone-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.phone-group .phone-indicatif {
    min-width: 180px;
    max-width: 220px;
    flex-shrink: 0;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: #f7fafc;
}

.phone-group .phone-number {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: #f7fafc;
}

.phone-group .phone-number:focus {
    outline: none;
    border-color: #2c5e2a;
    background: white;
}

.phone-group .phone-indicatif:focus {
    outline: none;
    border-color: #2c5e2a;
    background: white;
}

@media (max-width: 600px) {
    .phone-group {
        flex-direction: column;
    }
    .phone-group .phone-indicatif {
        min-width: 100%;
        max-width: 100%;
    }
    .phone-group .phone-number {
        width: 100%;
    }
}