/* ============================================
   ARTOIS ÉNERGIES RENOUVELABLES — MAIN CSS
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-50:  #f0fdf4;
    --green-100: #dcfce7;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --blue-50:   #eff6ff;
    --blue-500:  #3b82f6;
    --blue-600:  #2563eb;
    --blue-700:  #1d4ed8;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-300:  #d1d5db;
    --gray-400:  #9ca3af;
    --gray-500:  #6b7280;
    --gray-600:  #4b5563;
    --gray-700:  #374151;
    --gray-800:  #1f2937;
    --gray-900:  #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--green-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-700); }
ul { list-style: none; }
img { max-width: 100%; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition); white-space: nowrap;
    text-decoration: none;
}
.btn-primary { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.btn-outline { background: transparent; color: var(--green-600); border-color: var(--green-600); }
.btn-outline:hover { background: var(--green-50); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-white { background: var(--white); color: var(--green-700); border-color: var(--white); }
.btn-white:hover { background: var(--green-50); }
.btn-danger { background: #ef4444; color: var(--white); border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-success  { background: var(--green-100); color: var(--green-700); }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-secondary{ background: var(--gray-100); color: var(--gray-600); }

/* --- Alerts --- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-success { background: var(--green-100); color: var(--green-800); border-left: 4px solid var(--green-500); }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info    { background: var(--blue-50); color: var(--blue-700); border-left: 4px solid var(--blue-500); }

/* --- Info box --- */
.info-box {
    background: var(--blue-50);
    color: var(--blue-700);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--blue-500);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: inherit;
}
.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--green-600), var(--blue-600));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.brand-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #ffffff;
    flex-shrink: 0;
}
.site-header .brand-logo-img {
    background: transparent;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 1rem; color: var(--gray-900); }
.brand-sub  { font-size: 0.72rem; color: var(--gray-500); font-weight: 500; }

.nav-links {
    display: flex; align-items: center; gap: 0.5rem;
    list-style: none;
}
.nav-link {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--gray-600); font-weight: 500; font-size: 0.95rem;
    transition: all var(--transition);
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    color: var(--green-600); background: var(--green-50);
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--gray-700); border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================
   MAIN & FOOTER
   ============================================ */
.main-content { min-height: calc(100vh - 70px); }

.site-footer {
    background: var(--gray-900); color: var(--gray-300);
    padding: 3.5rem 0 1.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { color: var(--gray-400); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--green-400); }
.footer-desc { color: var(--gray-400); font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.7; }
.footer-col .brand-name { color: var(--white); }
.footer-col .brand-sub { color: var(--gray-400); }
.footer-col .brand-icon { background: linear-gradient(135deg, var(--green-600), var(--blue-600)); }
.contact-list li { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--gray-400); }
.contact-list a { color: var(--gray-400); }
.contact-list a:hover { color: var(--green-400); }
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: var(--gray-500);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 5rem 0; }
.bg-light { background: var(--gray-50); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-label {
    display: inline-block;
    background: var(--green-100); color: var(--green-700);
    padding: 0.3rem 0.9rem; border-radius: 999px;
    font-size: 0.82rem; font-weight: 700;
    margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--gray-900); line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; line-height: 1.7; }
.section-cta { text-align: center; margin-top: 3rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--green-600), var(--blue-600));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #f0fdf4 100%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(34,197,94,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59,130,246,.12) 0%, transparent 50%);
}
.hero-content {
    position: relative; z-index: 1;
    padding: 4rem 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    background: var(--white); border: 1px solid var(--green-200);
    color: var(--green-700);
    padding: 0.45rem 1.1rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; line-height: 1.1;
    color: var(--gray-900); margin-bottom: 1.25rem;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--gray-600);
    max-width: 640px; margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex; gap: 1rem; justify-content: center;
    flex-wrap: wrap; margin-bottom: 4rem;
}
.hero-stats {
    display: flex; gap: 3rem; justify-content: center;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--green-600); }
.stat-label { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--gray-400); font-size: 1.5rem;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-300);
}
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-500); font-size: 0.93rem; line-height: 1.7; margin-bottom: 1.25rem; }
.service-link { color: var(--green-600); font-weight: 600; font-size: 0.9rem; }
.service-link:hover { color: var(--green-700); }

/* ============================================
   WHY SECTION
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-card h3 { font-weight: 700; margin-bottom: 0.5rem; color: var(--gray-900); }
.why-card p { color: var(--gray-500); font-size: 0.93rem; line-height: 1.7; }

/* ============================================
   AIDES SECTION
   ============================================ */
.aides-inner {
    display: grid; grid-template-columns: 1fr auto; gap: 4rem;
    align-items: center;
}
.aides-text h2 { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1rem; }
.aides-text p { color: var(--gray-600); margin-bottom: 1.5rem; }
.aides-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.aides-list li { color: var(--gray-700); font-size: 0.95rem; }
.aides-visual {
    display: flex; align-items: center; justify-content: center;
}
.aides-card {
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
}
.aides-card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.aides-card-title { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.5rem; }
.aides-card-value { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.aides-card-sub { font-size: 0.85rem; opacity: 0.85; margin-top: 0.5rem; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-box {
    background: linear-gradient(135deg, var(--green-600), var(--blue-700));
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-box p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   PAGE HERO (intérieur)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--green-50), var(--blue-50));
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--gray-200);
}
.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; margin-bottom: 0.75rem; color: var(--gray-900);
}
.page-hero-sub { color: var(--gray-500); font-size: 1.1rem; }

/* ============================================
   SERVICE DETAILS
   ============================================ */
.service-detail-inner {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 4rem; align-items: center;
}
.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }
.service-detail-visual {
    display: flex; align-items: center; justify-content: center;
}
.service-big-icon {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--green-50), var(--blue-50));
    border-radius: var(--radius-lg);
    width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
}
.service-detail-content h2 {
    font-size: 1.8rem; font-weight: 800; color: var(--gray-900);
    margin-bottom: 1rem;
}
.service-detail-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 1.5rem; }
.service-features { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.service-features li { color: var(--gray-700); font-size: 0.95rem; }
.service-detail-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.badge-eco {
    background: var(--green-100); color: var(--green-700);
    padding: 0.3rem 0.75rem; border-radius: 999px;
    font-size: 0.82rem; font-weight: 600;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 3rem; align-items: start;
}
.contact-form-wrap h2, .contact-info h2 {
    font-size: 1.5rem; font-weight: 700; color: var(--gray-900);
    margin-bottom: 1.5rem;
}
.info-card {
    background: var(--gray-50); border-radius: var(--radius);
    padding: 1.75rem; margin-bottom: 1.5rem;
}
.info-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.info-item:last-child { border-bottom: none; }
.info-icon { font-size: 1.3rem; min-width: 2rem; }
.info-item strong { display: block; color: var(--gray-800); margin-bottom: 0.25rem; }
.info-item a { color: var(--green-600); }
.info-badges { display: flex; flex-direction: column; gap: 0.5rem; }
.info-badge {
    background: var(--green-50); border: 1px solid var(--green-200);
    color: var(--green-700);
    padding: 0.6rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group label {
    font-size: 0.9rem; font-weight: 600; color: var(--gray-700);
}
.form-group label small { font-weight: 400; color: var(--gray-400); margin-left: 0.3rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.form-group input:disabled {
    background: var(--gray-100); color: var(--gray-500); cursor: not-allowed;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-actions {
    display: flex; gap: 1rem; align-items: center;
    padding-top: 0.5rem;
}

.input-password-wrap { position: relative; }
.input-password-wrap input { padding-right: 3rem; }
.btn-eye {
    position: absolute; right: 0.75rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 1rem;
    color: var(--gray-400);
}

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--green-50), var(--blue-50));
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.auth-container { width: 100%; max-width: 460px; }
.auth-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.auth-brand { margin-bottom: 2rem; display: flex; justify-content: center; }
.auth-title {
    font-size: 1.6rem; font-weight: 800; color: var(--gray-900);
    margin-bottom: 0.35rem; text-align: center;
}
.auth-subtitle { color: var(--gray-500); text-align: center; margin-bottom: 1.75rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; }
.auth-footer a { color: var(--gray-500); font-size: 0.9rem; }
.auth-demo {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--gray-500);
    border: 1px dashed var(--gray-300);
}
.auth-demo p { margin-bottom: 0.25rem; }

/* ============================================
   CLIENT SPACE
   ============================================ */
.client-section { padding: 3rem 0 4rem; }
.client-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }

.client-sidebar {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow); text-align: center;
    position: sticky; top: 90px;
}
.client-avatar { font-size: 3rem; margin-bottom: 0.75rem; }
.client-name { font-weight: 700; font-size: 1.05rem; color: var(--gray-900); }
.client-email { color: var(--gray-400); font-size: 0.85rem; margin-bottom: 1.5rem; }

.client-nav { display: flex; flex-direction: column; gap: 0.35rem; text-align: left; }
.client-nav-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 1rem; border-radius: var(--radius-sm);
    color: var(--gray-600); font-weight: 500; font-size: 0.9rem;
    transition: all var(--transition); text-decoration: none;
}
.client-nav-link:hover, .client-nav-link.active {
    background: var(--green-50); color: var(--green-700);
}
.client-nav-danger { color: #ef4444; }
.client-nav-danger:hover { background: #fee2e2; color: #dc2626; }

.client-main { display: flex; flex-direction: column; gap: 2rem; }
.client-welcome h1 { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); }
.client-welcome p { color: var(--gray-500); }

.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.client-stat-card {
    background: var(--white); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow-sm);
    display: flex; gap: 1rem; align-items: center;
    border: 1px solid var(--gray-100);
}
.stat-icon { font-size: 2rem; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: 0.82rem; color: var(--gray-500); font-weight: 500; }

.section-block h2 { font-size: 1.3rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }

/* Next RDV */
.next-rdv-card {
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    border-radius: var(--radius); padding: 1.75rem; color: var(--white);
}
.next-rdv-card h2 { font-size: 1rem; font-weight: 600; opacity: 0.85; margin-bottom: 1rem; }
.next-rdv-inner { display: flex; align-items: center; gap: 1.5rem; }
.next-rdv-date {
    background: rgba(255,255,255,.2); border-radius: var(--radius-sm);
    padding: 1rem 1.25rem; text-align: center; min-width: 80px;
}
.rdv-day { font-size: 2rem; font-weight: 900; line-height: 1; }
.rdv-month { font-size: 0.8rem; font-weight: 600; opacity: 0.85; text-transform: uppercase; }
.next-rdv-details { flex: 1; }
.next-rdv-service { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.next-rdv-time { font-size: 0.9rem; opacity: 0.85; }
.next-rdv-full-date { font-size: 0.85rem; opacity: 0.75; }
.next-rdv-notes { font-size: 0.85rem; opacity: 0.75; margin-top: 0.4rem; }
.next-rdv-status .badge { background: rgba(255,255,255,.25); color: var(--white); }

/* RDV list */
.rdv-list { display: flex; flex-direction: column; gap: 0.75rem; }
.rdv-item {
    background: var(--white); border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: 1.5rem;
}
.rdv-item-date { min-width: 100px; }
.rdv-item-date strong { display: block; color: var(--gray-900); }
.rdv-item-date span { color: var(--gray-400); font-size: 0.85rem; }
.rdv-item-info { flex: 1; }
.rdv-item-service { font-weight: 600; color: var(--gray-800); }

/* RDV list full */
.rdv-list-full { display: flex; flex-direction: column; gap: 1rem; }
.rdv-card-full {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    display: flex; gap: 1.5rem; align-items: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.rdv-card-full:hover { box-shadow: var(--shadow); }
.rdv-date-block {
    display: flex; flex-direction: column; align-items: center;
    background: var(--green-600); color: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem; min-width: 70px; text-align: center;
}
.rdv-date-block .rdv-day { font-size: 1.75rem; font-weight: 900; line-height: 1; }
.rdv-date-block .rdv-month { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; opacity: 0.9; }
.rdv-date-block .rdv-year { font-size: 0.72rem; opacity: 0.75; }
.rdv-card-content { flex: 1; }
.rdv-card-service { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.35rem; }
.rdv-card-meta { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.35rem; }
.rdv-card-notes { font-size: 0.85rem; color: var(--gray-500); }
.admin-note { color: var(--blue-600); font-style: italic; }
.rdv-card-status { min-width: 110px; text-align: right; }

/* Empty state */
.empty-state {
    text-align: center; padding: 3rem 2rem;
    background: var(--white); border-radius: var(--radius);
    border: 2px dashed var(--gray-200);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; color: var(--gray-700); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-400); margin-bottom: 1.5rem; }

/* Filter tabs */
.filter-tabs {
    display: flex; gap: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
}
.filter-tab {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem; font-weight: 600;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    text-decoration: none;
}
.filter-tab:hover, .filter-tab.active {
    color: var(--green-600); border-bottom-color: var(--green-600);
}

/* page-header-row */
.page-header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
}
.page-header-row h1 { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); }

.subtitle { color: var(--gray-500); margin-bottom: 1.5rem; }

/* ============================================
   MISC UTILITIES
   ============================================ */
.mt-2 { margin-top: 1rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .aides-inner { grid-template-columns: 1fr; }
    .aides-visual { display: none; }
    .service-detail-inner { grid-template-columns: 1fr; }
    .service-detail-inner.reverse { direction: ltr; }
    .service-big-icon { width: 120px; height: 120px; font-size: 4rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute; top: 70px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem; gap: 0.25rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .hero { min-height: 80vh; }
    .hero-stats { gap: 1.5rem; }

    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    /* Espace client */
    .client-layout { grid-template-columns: 1fr; }
    .client-sidebar { position: static; top: auto; }
    .client-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .client-sidebar nav a { padding: .55rem .75rem; font-size: .88rem; }

    .cta-box { padding: 2.5rem 1.5rem; }
    .cta-box h2 { font-size: 1.6rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.7rem; }

    .rdv-card-full { flex-wrap: wrap; gap: .75rem; }
    .next-rdv-inner { flex-wrap: wrap; gap: .75rem; }
    .page-header-row { flex-wrap: wrap; gap: 1rem; }

    /* Auth */
    .auth-card { margin: 1rem; }

    /* Tables dans espace client */
    .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
    .container { padding: 0 .875rem; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .auth-card { padding: 1.5rem; }

    /* Espace client — stats 1 col sur très petit */
    .client-stats { grid-template-columns: 1fr; }

    /* Formulaires */
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; text-align: center; }

    /* Badges */
    .badge { font-size: .72rem; padding: 2px 7px; }
}
