/* Copie intégrale de app/styles.css pour la page admin legacy */
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
}

.nav-item:hover,
.nav-item:focus,
.nav-item.active {
    color: var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}


/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #ffde59;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f0f0f0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    padding-top: calc(80px + 2rem);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: stretch;
    padding-left: 2rem;
    padding-right: 0;
    background-color: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 600px;
}

.hero-content {
    flex: 1;
    padding: 3rem;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    background: url('/logo2.png');
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 0;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@media (max-width: 968px) {
    .hero { padding-top: calc(70px + 1rem); }
    .hero-container { flex-direction: column; padding: 0; }
    .hero-content { padding: 2rem; height: auto; min-height: 400px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    .hero-image { width: 100%; height: 400px; background-size: 60%; }
}

/* Boutons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ffde59;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
}

.cta-button:hover { transform: translateY(-3px); background: #896e01; }

/* Sections */
section { padding: 3rem 2rem; background-color: #f0f0f0; }
h2 { text-align: center; margin-bottom: 2rem; color: var(--primary-color); }

/* Formations */
.formations { padding: 3rem 2rem; background-color: #f0f0f0; }
.formations h2 { text-align: center; color: var(--primary-color); margin-bottom: 2rem; font-size: 2rem; }
.formations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.formation-card { background: #ffffff; padding: 2rem; border-radius: 15px; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); position: relative; }
.transmission-badge { position: absolute; top: -12px; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.badge-manual { right: 140px; background: #2c3e50; color: white; }
.badge-auto { right: 20px; background: #e74c3c; color: white; }
.formations-grid .formation-card:first-child .badge-manual { right: 20px; }
.formations-grid .formation-card:first-child .badge-auto { right: 20px; top: 28px; }
@media (max-width: 480px) { .formations-grid .formation-card:first-child .badge-auto { top: 32px; } }
.formation-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
.formation-card h3 { color: var(--primary-color); font-size: 1.5rem; margin-bottom: 1.5rem; }
.formation-card .price { color: var(--secondary-color); font-size: 2.5rem; font-weight: bold; margin-bottom: 2rem; }
.formation-card p { color: var(--primary-color); font-weight: 500; margin: 1rem 0; font-size: 1.1rem; }
.formation-card ul { list-style: none; padding: 0; margin: 0 0 3rem 0; text-align: left; }
.formation-card ul li { padding: 0.6rem 0; border-bottom: 1px solid #eee; color: #666; }
.formation-card ul li:nth-last-child(2) { border-bottom: none; }
.formation-card .info-button { border: none; background-color: var(--primary-color); color: white; padding: 1rem 2rem; font-weight: 600; border-radius: 50px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; width: 100%; margin-top: 1rem; }
.formation-card .info-button:hover { background-color: var(--secondary-color); transform: scale(1.05); }
.formation-card .option-acceleree { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--secondary-color); color: var(--primary-color); font-weight: 500; }
.formation-card ul li.option-acceleree { border-bottom: none; }
.formation-card .option-acceleree strong { color: var(--accent-color); }
.formation-card .option-acceleree small { display: block; color: #666; font-size: 0.8rem; margin-top: 0.1rem; }
@media (max-width: 992px) { .formations-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* Contact */
.contact { padding: 3rem 2rem; background-color: #f0f0f0; }
.contact-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-form, .contact-info { background: #ffffff; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.info-item { display: flex; align-items: center; margin-bottom: 1.5rem; padding: 1rem; background: var(--light-bg); border-radius: 10px; transition: transform 0.3s ease; }
.info-item:hover { transform: translateX(10px); }
.info-item i { font-size: 1.5rem; color: var(--secondary-color); margin-right: 1rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; margin-left: 0.5rem; color: var(--primary-color); }
.info-item.no-icon .info-content { padding-left: 0; margin-left: 0; }
.info-item.no-icon h3 { margin-left: 0; }
.info-item.social-networks .social-icons { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
.info-item.social-networks .social-icon { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--primary-color); transition: transform 0.3s ease; }
.info-item.social-networks .social-icon i { font-size: 1.5rem; margin-bottom: 0.3rem; }
.info-item.social-networks .social-icon span { font-size: 0.8rem; }
.info-item.social-networks .social-icon:hover { transform: translateY(-3px); }
.info-item.social-networks .social-icon.snapchat:hover i { color: #FFFC00; }
.info-item.social-networks .social-icon.tiktok:hover i { color: #00f2ea; }
.info-item.social-networks .social-icon.instagram:hover i { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.contact-form h2 { color: var(--primary-color); margin-bottom: 1.5rem; font-size: 1.8rem; text-align: center; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--primary-color); font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #eee; border-radius: 8px; font-size: 1rem; font-family: 'Poppins', sans-serif; transition: all 0.3s ease; background: var(--light-bg); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); }
.form-group textarea { height: 150px; resize: vertical; }
.form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; background-color: white; cursor: pointer; transition: border-color 0.3s ease; }
.form-group select:focus { outline: none; border-color: var(--primary-color); }
.form-group select:hover { border-color: var(--primary-color); }
.form-group select option { padding: 10px; }
.contact-form button { width: 100%; padding: 12px; background: var(--secondary-color); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.contact-form button:hover { background: #ffde59; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); }
#formule { background-color: #f8f9fa; cursor: default; }
#formule:focus { outline: none; border-color: var(--secondary-color); }
@keyframes highlightForm { 0%{transform:translateY(0);} 5%{transform:translateY(-10px);} 10%{transform:translateY(0);} 15%{transform:translateY(-5px);} 20%{transform:translateY(0);} }
.contact-form.highlight { animation: highlightForm 2s ease; }
.notification { display: none; padding: 15px; margin-bottom: 20px; border-radius: 5px; text-align: center; font-weight: bold; }
.notification.show { display: block; animation: slideIn 0.3s ease-out; }
.notification.error { background-color: #ff6b6b; color: white; }
.notification:not(.error) { background-color: #4CAF50; color: white; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-20px);} to { opacity:1; transform: translateY(0);} }

/* Features, CPF, Services, Footer, Legal, Reviews, Media Queries ... (contenu identique à app/styles.css) */

/* ===== Admin legacy specific styles (ported) ===== */
body { margin: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-form { max-width: 400px; width: 90%; padding: 2.5rem; background: white; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.login-form h2 { color: var(--primary-color); margin-bottom: 1.5rem; text-align: center; font-size: 1.8rem; }
.login-form input:not([type="checkbox"]) { width: 100%; padding: 12px 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 1rem; transition: border-color 0.3s ease; }
.login-form input:focus { outline: none; border-color: var(--secondary-color); }
.remember-me { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--primary-color); }
.login-form button { width: 100%; padding: 12px; background: var(--secondary-color); color: white; border: none; border-radius: 8px; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 1rem; transition: all 0.3s ease; margin-bottom: 10px; }
.login-form button:hover { background: #ffde59; transform: translateY(-2px); }
.back-to-site { display: block; text-align: center; margin-top: 15px; color: white; text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.forgot-password { text-align: center; margin: 15px 0 20px; }
.forgot-password a { color: var(--primary-color); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }

/* Modal reset password */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; backdrop-filter: blur(5px); }
.modal .modal-content { position: relative; background: white; max-width: 400px; margin: 100px auto; padding: 2rem; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); transition: color 0.3s ease; }
.success-message { color: #27ae60; text-align: center; margin: 10px 0; display: none; }

/* Admin layout */
.admin-section-wrapper { max-width: 1200px; width: 95%; margin: 6rem auto 2rem auto; padding-top: 2rem; }
.admin-buttons { display: flex !important; justify-content: flex-end; gap: 1rem; margin-bottom: 1rem; padding: 1rem 0; position: sticky; top: 1rem; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 1rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.return-btn, .logout-btn { padding: 10px 20px; border-radius: 8px; cursor: pointer; font-family: 'Poppins', sans-serif; transition: all 0.3s ease; display: flex !important; align-items: center; gap: 8px; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-decoration: none; z-index: 10; position: relative; }
.return-btn { background: var(--secondary-color) !important; color: white !important; }
.logout-btn { background: var(--accent-color) !important; color: white !important; border: none; }
.return-btn:hover, .logout-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.admin-container { background: white; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 20px; }
.admin-header { text-align: center; margin-bottom: 2rem; padding: 1rem 0; border-bottom: 2px solid #f0f0f0; }
.admin-header h1 { font-size: 2rem; color: var(--primary-color); margin: 0; }

/* Dots and actions */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.unread-dot { background-color: #2196F3; }
.read-dot { background-color: #4CAF50; }
.bold-date { font-weight: bold; }
.action-button { display: block; width: 100%; border: none; cursor: pointer; padding: 8px 12px; margin: 5px 0; border-radius: 4px; font-size: 0.9rem; transition: all 0.2s ease; text-align: left; }
.actions-container { display: flex; flex-direction: column; margin-top: 5px; padding-top: 5px; border-top: 1px solid #eee; }
.actions-container .read-btn { background-color: #2196F3 !important; color: white !important; }
.actions-container .read-btn.read { background-color: #2e7d32 !important; }
.actions-container .delete-btn { background-color: #e74c3c !important; color: white !important; }
.email-link { color: #2196F3; text-decoration: none; }

/* Stats and links */
.message-stats { display: flex; gap: 20px; align-items: center; margin-bottom: 10px; }
.gsc-link { display: flex; align-items: center; gap: 10px; padding: 10px 15px; background: #f0f0f0; border-radius: 5px; color: #1a73e8; text-decoration: none; transition: all 0.3s ease; }

/* Tables */
.messages-table, .adherents-table, #adherentsTable { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.messages-table th, #adherentsTable th { background-color: var(--primary-color); color: white; font-weight: 500; padding: 15px; }
.messages-table td, #adherentsTable td { border: 1px solid #eee; padding: 15px; text-align: left; }
.messages-table tr:nth-child(even), #adherentsTable tr:nth-child(even) { background-color: var(--light-bg); }
.messages-table tr:hover, #adherentsTable tr:hover { background-color: #f0f0f0; }
.sortable { cursor: pointer; position: relative; padding-right: 25px !important; transition: all 0.3s ease; }
.sortable:hover { background-color: rgba(44,62,80,0.1) !important; color: #2c3e50 !important; }
.sortable::after { content: '↓'; position: absolute; right: 8px; opacity: 0.5; color: #2c3e50; transition: transform 0.3s ease; }
.sortable.asc::after { transform: rotate(180deg); opacity: 1; }
.sortable.desc::after { transform: rotate(0deg); opacity: 1; }

/* === Adherents table buttons === */
.action-buttons { display: flex; align-items: center; gap: 8px; }
.relance-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1a73e8; color: #fff; border: none;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.9rem; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  box-shadow: 0 2px 8px rgba(26,115,232,0.25);
}
.relance-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,115,232,0.35); }

.action-buttons .edit-btn,
.action-buttons .delete-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 8px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease; color: #fff;
}
.action-buttons .edit-btn { background: #2e7d32; }
.action-buttons .edit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(46,125,50,0.35); }
.action-buttons .delete-btn { background: #e74c3c; }
.action-buttons .delete-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(231,76,60,0.35); }
.action-buttons .edit-btn i, .action-buttons .delete-btn i { pointer-events: none; }

/* Adherent modal */
#adherent-modal.modal { display: none; }
#adherent-modal .modal-content { position: relative; background: white; width: 90%; max-width: 500px; margin: 50px auto 100px auto; padding: 2rem; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); max-height: calc(100vh - 100px); overflow-y: auto; }
#adherent-modal .close { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; color: #2c3e50; }
#adherent-modal h2 { color: #2c3e50; margin-bottom: 1.5rem; text-align: center; font-size: 1.5rem; }
#adherent-modal .form-group { margin-bottom: 1rem; }
#adherent-modal label { display: block; margin-bottom: 0.5rem; color: #2c3e50; font-weight: 500; }
#adherent-modal input, #adherent-modal select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
#adherent-modal .submit-button { position: sticky; bottom: 0; margin-top: 1rem; width: 100%; padding: 12px; background: var(--secondary-color); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: all 0.3s ease; }

/* Relances modal */
#relances-modal .modal-content { background: white; padding: 30px; border-radius: 15px; width: 90%; max-width: 450px; position: relative; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
#relances-modal h2 { color: #2c3e50; text-align: center; margin-bottom: 25px; font-size: 1.8em; }
.relances-options { background: #f8f9fa; padding: 20px; border-radius: 12px; margin: 20px 0; }
.relances-options label { display: flex; align-items: center; padding: 12px 15px; margin: 8px 0; background: white; border-radius: 8px; transition: all 0.3s ease; border: 1px solid #e0e0e0; }
.relances-options input[type="checkbox"] { width: 20px; height: 20px; margin-right: 15px; cursor: pointer; accent-color: #2ecc71; }
#relances-modal .submit-button { width: 100%; padding: 12px; background: #2ecc71; color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 500; margin-top: 20px; cursor: pointer; transition: all 0.3s ease; }

/* Confirm modal */
.confirm-modal { display: none; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; }
.confirm-modal p { margin-bottom: 15px; color: #e74c3c; font-weight: bold; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }

/* Responsive admin */
@media (max-width: 768px) {
  .admin-container { padding: 10px; overflow-x: hidden; }
  .admin-header h1 { font-size: 1.5rem; }
  .admin-buttons { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .messages-table, .adherents-table { font-size: 0.85rem; display: block; width: 100%; }
  .messages-table thead, .adherents-table thead { display: none; }
  .messages-table tbody, .adherents-table tbody { display: block; width: 100%; }
  .messages-table tr, .adherents-table tr { display: block; margin-bottom: 15px; background-color: #f9f9f9; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); padding: 10px; }
  .messages-table td, .adherents-table td { display: flex; justify-content: space-between; align-items: center; padding: 8px 5px; border-bottom: 1px solid #eee; }
  .messages-table td:last-child, .adherents-table td:last-child { border-bottom: none; }
}
