/* Styles modernes FCFF - Inspiration du site principal */
:root {
    --primary-color: #000000;
    --accent-color: #d4af37;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f5f5f5;
    --white: #ffffff;
    --border: #e5e7eb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #6b7280;
    --gray-800: #1f2937;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-brand:hover {
    transform: translateY(-2px);
}

.header-logo {
    height: 42px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.header-nav .header-logo {
    margin-left: 0.5rem;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 400;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

/* Flash messages */
.flash-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 2rem;
}

.flash {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flash i {
    font-size: 1.5rem;
}

.flash-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--success-color);
    color: #065f46;
}

.flash-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid var(--error-color);
    color: #991b1b;
}

.flash-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    color: #1e40af;
}

/* Main content */
.site-main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(212,175,55,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

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

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero .btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

.hero .btn-primary:hover {
    background: #c9a436;
    transform: scale(1.05);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.lookup-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.lookup-inline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 175, 55, 0.5);
}

.lookup-inline-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lookup-inline-text {
    display: flex;
    flex-direction: column;
}

.lookup-inline-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.lookup-inline-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.lookup-inline-link:hover {
    color: #e8c34a;
}

.lookup-inline-link i {
    font-size: 0.8rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.lookup-inline-link:hover i {
    transform: translateX(3px);
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Feature cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Category cards */
.category-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.category-card:hover {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.category-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.category-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Process steps */
.process-step {
    text-align: center;
}

.step-number {
    background: var(--accent-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.process-step h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.process-step p {
    color: var(--gray-600);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 2rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Forms */
.form-section {
    border-bottom: 2px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-section h2 i {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    font-size: 0.95rem;
}

label .required {
    color: var(--error-color);
    margin-left: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

input::placeholder {
    color: var(--gray-600);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #c9a436;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--accent-color);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

/* Slot/Session cards */
.slot-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
}

.slot-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.slot-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.slot-card:has(input:checked) {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fffbeb 0%, var(--white) 100%);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.slot-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    transition: all 0.3s ease;
}

.slot-card:has(input:checked)::after {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: inset 0 0 0 4px var(--white);
}

.slot-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.slot-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0.25rem 0;
}

.slot-info p i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Info boxes */
.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 0.5rem 0;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-box li i {
    color: #3b82f6;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    border-top: 3px solid var(--accent-color);
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--accent-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-col i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: var(--white);
    padding: 2rem 3rem;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .header-nav.open {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .site-main {
        padding: 2rem 1rem;
    }
    
    .hero {
        padding: 2rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .lookup-inline {
        width: 100%;
    }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }
